Hi Everyone,
I have a somewhat silly question. I've primarily programmed with Beckhoff PLCs in the past. In those, we can assign the string TRUE or FALSE to their literal values of 1 and 0. It is nice because it makes it clear when assigning the Boolean value to a variable, that the variable is in fact a Boolean type.
However, I can't seem to find a way to assign this in Studio 5000. Is there a way to do this?
As an example, this is how I'd like to do assignments to Boolean variables:
bTestVar := TRUE;
Instead, this is how I'm currently having to do it in Studio5000:
bTestVar := 1;
Thanks everyone!
I have a somewhat silly question. I've primarily programmed with Beckhoff PLCs in the past. In those, we can assign the string TRUE or FALSE to their literal values of 1 and 0. It is nice because it makes it clear when assigning the Boolean value to a variable, that the variable is in fact a Boolean type.
However, I can't seem to find a way to assign this in Studio 5000. Is there a way to do this?
As an example, this is how I'd like to do assignments to Boolean variables:
bTestVar := TRUE;
Instead, this is how I'm currently having to do it in Studio5000:
bTestVar := 1;
Thanks everyone!