Red Lion Help

Is there a complex code that can pulse 0-1-0-1 continuously when the HMI screen power ups.

DispCount.0

This value will change from 0 to 1 to 0 over and over every time the Display updates (which is pretty fast).

If this is too fast, try DispCount.1 or DispCount.2

This is simply picking a bit from the Integer value of the number of display updates since the last reset.
 
Along the same lines as JHarbin's suggestion, I frequently use the expression 'TimeNow & 1' to create a pulsating lamp on the HMI (once a second).
 
Thanks Guys, but how do u write this back to the PLC using an 'M' contact or similar? I need the PLC to know when I have a comms failure.
 
Lots of ways to do it. Here's one:

Create a data tag in the Red Lion that points to the M Coil such as MyCoil.

Go to the Red Lion Programs tab and create a program named fInit
Inside the program:
// Toggle coil every tick (1 second)
MyCoil = !MyCoil;

Go to the Red Lion Display Pages, and go to the top level folder (above all pages). If you right click on it you'll see the On Tick Global Action. Call your program once a second from here: enter 'fTick()'

In your PLC program you'll need a timer that checks when this toggling bit goes away - meaning your comms have died. I would leave it fairly long timer in case there is a hiccup - say 10 seconds.
 
Thank [FONT=&quot]you nwboson

That worked perfectly for me. You have pulled me out of a great big hole!!!
Also, apologies for the double posting, I'm new to forums like this.
Thanks again, much appreciated.

Darren
[/FONT]
 

Similar Topics

Hello, We are currently running a bunch of g310's connected to their SLC5 PLCs through ethernet. I've attempted to upgrade the program from 2.0...
Replies
1
Views
1,119
I'm working on a Graphite that is continuously looping through the start up sequence then stops and shows a page that says "system could not...
Replies
15
Views
4,895
Hey guys, I was wondering if a G303 Red Lion HMI can be used as a scanner? I am having trouble finding information on this. Thanks
Replies
4
Views
1,363
When you are compiling (translating in Red Lion parlance) user defined programs - what does "Unexpected End-of-Text" error mean? It is at the END...
Replies
3
Views
1,784
Hello everyone, Brian the Newb here again regarding Crimson 3.0 and J1939 CAN protocols. I had searched the archives and I DID find a couple of...
Replies
2
Views
2,983
Back
Top Bottom