Skip to content

Commit 56bd78f

Browse files
committed
images added
1 parent f94731a commit 56bd78f

File tree

9 files changed

+32
-0
lines changed

9 files changed

+32
-0
lines changed
1.79 MB
Loading
548 KB
Loading
707 KB
Loading
547 KB
Loading
411 KB
Loading
389 KB
Loading
461 KB
Loading

content/hardware/07.opta/opta-family/opta/tutorials/18.opta-analog-expansion-plc-ide/content.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,40 @@ Once the available expansion appears in the **Detected config** column, enable i
9595

9696
## Programmable Inputs
9797

98+
The Opta™ Analog Expansion has 8x analog channels, identified with a letter, `I` or `O`, between the two connection terminals: `+` for signal and `-` as GND, common to the other `-` terminals on the board.
99+
Each input can be used as:
100+
101+
| **Mode** | **Specification** |
102+
|:------------------------------:|:-----------------:|
103+
| Digital input voltage | 0...24 V |
104+
| Analog input voltage | 0...10 V |
105+
| Analog input current | 0...25 mA |
106+
| Analog temperature input (RTD) | 0...1 MΩ |
107+
108+
***All the analog channels of the analog expansion can be used as inputs, including `O1` and `O2`, so a total of 8x analog inputs are available to the users.***
109+
98110
### Digital Input Mode
99111

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`.
113+
114+
![Digital Input Configuration](assets/plc-ide-8.png)
115+
116+
Now you can easily read this input state in your program no matter the programming language you are using.
117+
118+
For example in a **Ladder Diagram**:
119+
120+
- Create a new program in Ladder (LD), name it as you want, `digital_input` in this case and set the scanning speed to `fast`.
121+
122+
![Ladder Diagram program creation](assets/ladder-1.png)
123+
124+
- Configure the LED "L1" assigning the variable `LED1` in **Resources > LED Outputs**.
125+
126+
![LED setup](assets/led-setup.png)
127+
128+
- Assign the variable `IN1` to your contact and the `LED1` to your coil as follows:
129+
130+
![Ladder variables assigning](assets/digital-ld.gif)
131+
100132
### Analog Voltage Input Mode
101133

102134
### Analog Current Input Mode

0 commit comments

Comments
 (0)