Red Lion scripting

How do I accomplish this? I'm terrible at scripting...
Right click on the border of the page editor window and click "Properties..."

On the dialog box that opens up, click on the Actions tab.

In the "On Select:" field, type in a tag name you will use to store the value you want to assign to this page followed by an assignment to the value you want.

PageNo.png
 
Okay I'm feeling a little better about things. I did find the help file pretty helpful with basic operators. I was a bit confused this morning if you couldn't tell, haha! But I've learned a ton from you OkiePC just on this thread alone not to mention all the other times I've found answers from you without even needing to ask a question. Very thankful to this forum and all the contributors such as yourself and Ken Roach. Thanks so much y'all!
 
To have the HMI keep track of what page is being displayed, I will create a tag with "internal" as the source, I will mark it as retentive.

Then on each page properties I will use the "on select" event to assign a value to that tag.


Getting close to completeing this first Red Lion project, thanks to your hand holding OkiePC. Very appreciative. I do have a quick question though...


For tracking page numbers in the HMI, I'm noticing that the popup pages don't update the tag with their page number...do you know why or at least what I can do to remedy that?
 
The On Select property of a popup page should be run when it is displayed, so you ought to be able to use that mechanism. Be aware, though, that when the popup is removed, the page number of the underlying page won't be reinstated as the On Select action of that page won't be re-run. The easiest work-around is something like "OldPage = PageNo, PageNo = 2" for the On Select of the popup, and "PageNo = OldPage" for the On Remove. For nested popups, it'll get a bit more complex, but for simple ones, that'll do it.
 

Similar Topics

Hi All, As a precaution my company has been collecting copies all the HMI and PLC programs. I have recorded copies of most of our sites...
Replies
0
Views
57
While they came up quickly with a fix for the alarm date issue quickly I will have to drive around for a week or so, burning up a lot of fuel...
Replies
4
Views
273
From the Red Lion website, after some customer enquiries in the last week or so... Rev. March 25, 2024 [18:30] Just thought it might help a...
Replies
9
Views
283
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
117
Hello All, I need the ability to remotely reboot a Red Lion CR3000 HMI. Due to some graphics issues when the database is updated the HMI must be...
Replies
4
Views
237
Back
Top Bottom