Red Lion Crimson 3 Pushbuttons

Edmhydraulics

Member
Join Date
Apr 2014
Location
Beaumont
Posts
173
Hey folks, I have a question on Crimson 3 pushbuttons, I am using a G15 HMI. I have 6 pushbuttons that select the number of straps for the auto bale strapper control. Just wondering if there is an easy way to set up the HMI so that when one pushbutton is pressed while another is selected that the previously selected button goes false and the new one selected goes true.

I have tried to do it with IF statements but that doesn't seem to be working within the individual tags.

Any quick ideas?

Edm
 
I think so;

if (To_PLC_65419.Strapper_Manual_Feed = 1){

To_PLC_65419.Straps5_11in = 0;
To_PLC_65419.Straps7_8in = 0;
To_PLC_65419.Straps9_6in = 0;
To_PLC_65419.Straps9_8inD = 0;
To_PLC_65419.Straps11_6inD = 0;}

if (To_PLC_65419.Straps5_11in = 1){

To_PLC_65419.Strapper_Manual_Feed = 0;
To_PLC_65419.Straps7_8in = 0;
To_PLC_65419.Straps9_6in = 0;
To_PLC_65419.Straps9_8inD = 0;
To_PLC_65419.Straps11_6inD = 0;}
 
Its been a while since I've used Red Lion, but I remember you have to call upon your script to run. It doesn't just constantly execute. I Believe you have to go to the tag that you want to trigger your script, and under Triggers you set trigger mode (active on), and action (general) then the name of your program with () after it. Something like scriptprogramnamehere(). There was also a way to execute it with an ontick() command which would execute the code once a second, but that was problematic for me.
 
Conditional logic should not be required for this. In your button properties, set the Action to User Defined, and the On Pressed action to Complex. In the editor that comes up, put code like this:

To_PLC_65419.Strapper_Manual_Feed := 1;
To_PLC_65419.Straps5_11in = 0;
To_PLC_65419.Straps7_8in = 0;
To_PLC_65419.Straps9_6in = 0;
To_PLC_65419.Straps9_8inD = 0;
To_PLC_65419.Straps11_6inD = 0;

In the other buttons, put similar code but just change the locations of the ones and zeros as appropriate.
 

Similar Topics

How do you install update on Red Lion Crimson ver 3.1. Do I just need to run the exe file on the host server?
Replies
1
Views
107
Hi, I am trying to increase the size of the user login pop up using a Red Lion CR1000 7” HMI with Crimson 3.1 software. The login pop up is very...
Replies
2
Views
675
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,122
Hi I have been using Red Lion products for some time, I had a thought over the bank holiday weekend, As you do. It would be nice if whenever a...
Replies
4
Views
1,017
Well, I have yet another question for the great minds on this forum! We have a red lion HMI for one of our machines and every time I hook my...
Replies
11
Views
1,672
Back
Top Bottom