You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/hardware/07.opta/opta-family/opta/tutorials/18.opta-analog-expansion-plc-ide/content.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,7 +109,7 @@ Each input can be used as:
109
109
110
110
### Digital Input Mode
111
111
112
-
To set up an input in digital mode, navigate to **Programmable Channels** under your desired expansion in the left **Resources** menu. Define a variable name, `IN1` in this case and set the **IOType** to `Input - Digital`.
112
+
To set up an input in digital mode, navigate to **Programmable Channels** under your desired expansion in the left **Resources** menu. Define a variable name to **I1**, `IN1` in this case and set the **IOType** to `Input - Digital`.
@@ -135,11 +135,11 @@ For example in a **Ladder Diagram**:
135
135
136
136
### Analog Voltage Input Mode
137
137
138
-
To set up an input in voltage mode, navigate to **Programmable Channels** under your desired expansion in the left **Resources** menu. Define a variable name, `IN1` in this case and set the **IOType** to `Input - Voltage ADC`.
138
+
To set up an input in voltage mode, navigate to **Programmable Channels** under your desired expansion in the left **Resources** menu. Define a variable name to **I1**, `IN1` in this case and set the **IOType** to `Input - Voltage ADC`.
Now you can easily read this input voltage in your program. For example in a **Structured Language** program:
142
+
Now you can easily read this input voltage in your program. For example in a **Structured Text** program:
143
143
144
144
- Open your project main program navigating to the **Project** tab in the left panel, select **Main** in the project tree, and right-click on the **Local variables** window to insert a variable.
145
145
@@ -167,11 +167,11 @@ V_IN1 := IN1*10.0/65535.0;
167
167
168
168
### Analog Current Input Mode
169
169
170
-
To set up an input in current mode, navigate to **Programmable Channels** under your desired expansion in the left **Resources** menu. Define a variable name, `IN1` in this case and set the **IOType** to `Input - Current ADC`.
170
+
To set up an input in current mode, navigate to **Programmable Channels** under your desired expansion in the left **Resources** menu. Define a variable name to **I1**, `IN1` in this case and set the **IOType** to `Input - Current ADC`.
Now you can easily read this input current in your program. For example in a **Structured Language** program:
174
+
Now you can easily read this input current in your program. For example in a **Structured Text** program:
175
175
176
176
- Open your project main program navigating to the **Project** tab in the left panel, select **Main** in the project tree, and right-click on the **Local variables** window to insert a variable.
177
177
@@ -199,13 +199,13 @@ I_IN1 := IN1*25.0/65535.0;
199
199
200
200
### Analog RTD Input Mode
201
201
202
-
To set up an input in RTD mode for termperature measurement, navigate to **Programmable Channels** under your desired expansion in the left **Resources** menu. Define a variable name, `IN1` in this case and set the **IOType** to `Input - RTD 2 Wires` or `Input - RTD 3 Wires` .
202
+
To set up an input in RTD mode for termperature measurement, navigate to **Programmable Channels** under your desired expansion in the left **Resources** menu. Define a variable name to **I1**, `IN1` in this case and set the **IOType** to `Input - RTD 2 Wires` or `Input - RTD 3 Wires` .
***Channels I1 and I2 support 3 Wires RTD and 2 Wires RTD, all other channels only support 2 Wires RTD. If a 3 Wires RTD is defined, you need to set a current in mA for it, see your RTD datasheet.***
207
207
208
-
Now you can easily read this input resistance in your program. For example in a **Structured Language** program using a **PT100** sensor:
208
+
Now you can easily read this input resistance in your program. For example in a **Structured Text** program using a **PT100** sensor:
209
209
210
210
- Open your project main program navigating to the **Project** tab in the left panel, select **Main** in the project tree, and right-click on the **Local variables** window to insert a variable.
211
211
@@ -248,6 +248,7 @@ The Opta™ Analog Expansion has **8x analog programmable outputs** accessible t
248
248
249
249
### Analog Voltage Output Mode
250
250
251
+
To set up an output in voltage mode, navigate to **Programmable Channels** under your desired expansion in the left **Resources** menu. Define a variable name to **O1**, `OUT1` in this case and set the **IOType** to `Input - RTD 2 Wires` or `Input - RTD 3 Wires` .
251
252
252
253
### Analog Current Output Mode
253
254
@@ -342,7 +343,7 @@ END_IF;
342
343
343
344
Compile the project by clicking on the compilation button found in the upper left corner of the IDE. If no errors are shown, upload the program to the Opta™ controller by clicking the upload button highlighted next to it.
344
345
345
-

346
+

346
347
347
348
You can monitor the project variables in real-time while the project is running by dragging and dropping the desired variables from the left project panel to the **Watch** window:
0 commit comments