This tutorial goes over:
Timer Compare is covered in the Timer Tutorial.
ON / OFF
They ask a question that answers YES or NO
- ON? asks: if something is ON (bit value 1)
- OFF? asks: if something is OFF (bit value 0)
There’s only 1 tag to fill out for ON and OFF Dialog Boxes.
Example: 12 > 32 : We’re asking is 12 greater than 32. This example’s answer is NO.
As shown above, there’s 2 slots for data. Use a Tag or a Number in each spot. The 2 slots don’t contain data of same type. We’ll do data conversion so they are correctly compared.
Be careful when using an ” = ” comparison with Floats. Floats don’t always perfectly represent numbers (but they are typically very very close). This isn’t specific to our devices, Floats are just prone to slight inaccuracies.
Wiring Decision Blocks
All Decision Blocks have this diamond shape and are wired the same way.
Dragging your first wire from a Decision Block will cause the box bellow to pop up. Choose the answer you want to cause your new wire to be followed.
|What a Decision Block looks like when it’s been placed and wired.
It’s not required that you wire both a YES and a NO path. If a YES or NO path isn’t wired and it is logically followed, the program will have reached it’s completion and will start back from the beginning.