rscott9399
Member
I am having difficulty doing something i do in every other plc without a problem
I have created an SCL AOI.
I have an integer input to it. Lets call it "BITS"
for now. obviously bits has the following components
BITS.0
BITS.1
BITS.2
etc etc etc
i then write the following in the script
IF BITS.0 = TRUE THEN
DO SOMETHING
END_IF
Thats all i have done.
Nothing special, just typical bit access of an integer.
All im getting is compile errors and i dont get why.
Anyone with any ideas
the compile error im getting is
'BITS.0': BOOL tag not expected in expression.
I have created an SCL AOI.
I have an integer input to it. Lets call it "BITS"
for now. obviously bits has the following components
BITS.0
BITS.1
BITS.2
etc etc etc
i then write the following in the script
IF BITS.0 = TRUE THEN
DO SOMETHING
END_IF
Thats all i have done.
Nothing special, just typical bit access of an integer.
All im getting is compile errors and i dont get why.
Anyone with any ideas
the compile error im getting is
'BITS.0': BOOL tag not expected in expression.