Red Lion Button issue

Hey guys,


So this one is a bit tricky...


I have a die oven with a heat cycle mode and a preheat mode. The vendor programmed it so that the same bit that turns off the preheat mode is also the same bit that turns off the heat cycle mode. The problem is I'm trying send an email when the heat mode is stopped, but do not want an email when the preheat mode is stopped. In my stop tag, it's addressed to the stop bit of the PLC but then I also added a trigger...

if (Cav3_4.Cav004.Status.Cycle_ON == 1)
HeatCycleAbortedEmail();

HideAllPopups();

The if statement is so that I only run the email program when the heat cycle is stopped, and not when a preheat mode is stopped.

This would work great if the HMI would behave in a way that executed all actions every time. However, if the button is quickly tapped then the tag will only execute the PLC addressing and NOT the trigger code. So what ends up happening is the heat cycle is stopped, however the email program is not called and the popup is not hidden because the trigger is not being executed.


Is there something I can do so that they don't have to hold the button down to get the trigger to execute? Any ideas?
 
I doubt that this is the problem, but just in case. On a pushbutton that is programmed as a Push Button there is a settings called 'hold time', that gives the effect of holding the button for longer.

Button hold time.JPG
 
Based on your explanation it doesn't seem like you need to use a tag trigger. In the properties of your stop button, set the action to User Defined, and you can do all your actions there. For example, change the popup next to On Pressed to Complex, and you can include whatever code you want to execute.

complexcode.png
 
I doubt that this is the problem, but just in case. On a pushbutton that is programmed as a Push Button there is a settings called 'hold time', that gives the effect of holding the button for longer.


Yeah I did try that, but it didn't help. I'm surprised Red Lion would behave this way; you would think when you press a button it would execute everything that button was programmed to do including all triggers. The fact it will 'hit' the PLC address but not execute the triggers is very bizarre.


I ended up just doing everything with a script. I am finding that anytime I want an object or a tag to do more than 1 thing it's easiest and works best if I just write a script for it. Thanks for trying to help me though, I appreciate it.
 
Based on your explanation it doesn't seem like you need to use a tag trigger. In the properties of your stop button, set the action to User Defined, and you can do all your actions there. For example, change the popup next to On Pressed to Complex, and you can include whatever code you want to execute.


Yeah that's basically what I had to do since Red Lion was behaving so oddly. The reason I was using a trigger was because we already had the stop button addressed to a PLC tag as a NO momentary button. So I wanted to use the trigger to execute other stuff. This is what I ended up with...

g9z8MA6.png



Thanks Kolyur.
 

Similar Topics

Yes it's very legacy.. but sometimes it's necessary to use old stuff for fun.. and because it's so much cheaper. Crimson 3.0 had the ability to...
4
Replies
2,362
Views
The Crimson PDF manuals leave a little to be desired, and this isn't quite obvious, but how can you change the text of a button with a tag? I set...
6
Replies
3,423
Views
Hello, I have been reading through the manual for Crimson 3.0 and I know its possible to make a page "password protected" but is there anyway to...
6
Replies
7,105
Views
Hi everyone, I need to measure the current in my experimental setup and the supplier provided me with a GMINV8 and GMINI8 from Red Lion. My plan...
0
Replies
188
Views
Hello Guys, I am trynna start a project of standardization, firstly I will work on migrating an hmi that is Red Lion to Allen-Bradley Panel View...
9
Replies
549
Views
Top