In Hardware Editor adding variable, variable.value or variable.IO what's the difference
When I am assigning the Variable in the Hareware Editor it shows .value, .IO
Also simply we can enter the tag name i.e.
1. Application_1.Program1.BLR_TI,
2. Application_1.Program1.BLR_TI.value,
3. Application_1.Program1.BLR_TI.IO
what is the difference between these three and which is the best among them.
Answers
Hello,
BoolIO is the data type used in digital IO channel. When you are using it for hardware digital IO, the harware channel datat type in HW tree shall be BoolIO and it can be connected directly without going in to Value or IOValue. When you use it to connect to a bool data type, you may use Value or IOValue based on requirement.
Value => logical value.
IOValue => Field value.
In input channels, IOValue is moved to Value when not Forced. In Output channels, Value is moved to IOValue when not forced. So forceing shall allow the user to change the Value at the input side and IOValue at the output side.
Add new comment