Is there a posssibility to use BoolIO in AND?
I need to put two BoolIO signals into AND block, but can't figure out how.
Voted best answer
You need to use te value variable:
Name Data Type atributes
MyBoolIO01 BoolIO retain
MyBoolIO02 BoolIO retain
BoolResult bool retain
BoolResult := MyboolIO01.Value and MyboolIO02.Value;
Answers
Hi,
Two BoolIOs cannot be used, AND is a binary function. you have to use BOOL values for AND function.
Two BoolIOs cannot be used, AND is a binary function. you have to use BOOL values for AND function.
BoolIO is a structured DataType, and the AND block is configured to BOOL DataTypes, so you must to set the extension you need. To do it you must put a .(doc) in the end of the name of your BoolIO variable, and choose the extension, e.g.
VAR1.Value
VAR1.Value
Add new comment