Set Alarm with bit stops switching

I am trying to set up an alarm on a Red Lion touchscreen that is connected to an Allen Bradley PLC through a wireless link from dredge to dredge about a mile away. I have a bit that flashes between 0 and 302 every second to indicate that the communication is active between the 2 devices. I want to flash COM Loss on the screen if that link is loss. The red lion display uses Crimson 3 which uses C++. I know some C programing but I not an expert at all. I am thinking I need to set up a while loop but I'm not sure how to structure it. It would be easier if the value changed to a different number, but all I have to work with is the 0 and 302. If the Red Lion screen doesn't see those values switch after 10 seconds I want the screen to flash. Can anybody please help me with this. I am slightly loss and not sure how to proceed. Thanks in advance for your time.
If you have access to the code, you'll need to determine which value in the code displays the 0 - 302.

If the program is like most and there are no comments, you might look for help on the forum / helpdesk from the company that makes it.

The trick will then be to create your check, without disrupting the running program very much.

I looked http://www.yamaharobotics.com/Integration/?oid=98061c2eed2e4d0088bd6cff202f7d18 and found source code but it's in some .cd3 format. I'm not sure how to edit that.

I'm going to guess, but I'd look for a loop that already exist and insert your code.
Last edited on
Topic archived. No new replies allowed.