Red Lion Crimson 3.0 - Call a program?

jordan45

Member
Join Date
Oct 2017
Location
toronto
Posts
5
Hi I have a small script I wrote in "Programs" that I want to call when a buttom is pressed on the HMI.

How do I call this program from a button on a display page?
I tried going to the "Action" tab for the button, selecting "Push Button" as the Action Mode. But then it doesn't let me drop the program into the field like a tag.

Thanks
 
In the Action tab, change the Operation to "User Defined". Put the name of your program in the "On Pressed" action. Note that you have to put parentheses after the program name even if it has no arguments, i.e. Program1().
 
Just learning here myself. Select 'User Defined' as the Operation then you can drag in the Program to the On Pressed section, or On Released. You do need to compile a program before you can use it, if you click in the box where you have your code, a small but important button appears in the main toolbar that lets you 'Translate' the program.

Not quite quick enough typing the answer!!!
 
Just learning here myself. Select 'User Defined' as the Operation then you can drag in the Program to the On Pressed section, or On Released. You do need to compile a program before you can use it, if you click in the box where you have your code, a small but important button appears in the main toolbar that lets you 'Translate' the program.

Not quite quick enough typing the answer!!!

Ah right I was getting an error message! Do you by chance know what the command is to make a popup appear? In Wonderware it's "show <popup name>", tried that but it's not recognized.
 
Ah right I was getting an error message! Do you by chance know what the command is to make a popup appear? In Wonderware it's "show <popup name>", tried that but it's not recognized.

ShowPopup(), ShowModal() or ShowNested() depending on whether you want it to be nested, return a value, or just a plain pop-up.
 

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
103
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
666
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,112
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,012
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,660
Back
Top Bottom