Does any one recommend how to write a expression or other for a Tag Sequencing in Vision.
I want to press a Button to start a (TAG)bit sequence to check comms in my OPC via Modbus TCP
Operation:
(TAG)40501.0 on for 1 sec then off. Move to (TAG)40501.1 on for 1 sec then off. Move to next tag.
I know the image is not even close to be correct but I posted for example
This is not the sort of thing that belongs in Vision.
Use a gateway timer event and a memory tag to hold state. Could be as simple as -2 for idle, -1 to start, 0-15 for which bit is on. Run it on a 1-second interval, incrementing by one when >=-1, setting to -2 when incremented past bit 15, and setting the entire HR with the correct bit pattern after incrementing.
Your UI button to kick it off would just set the memory tag to -1.
(Linear sequences in jython are almost always the wrong approach.)