Red Lion Crimson 3 tag index questions

dougm52

Member
Join Date
Feb 2012
Location
Austin, TX
Posts
6
I have some questions related to Crimson 3 tags.

1. Lets say I add an action to multiple data boxes so that they all launch the same popup. How can a tag pass its name and/or tag index to the popup in a cstring and/or int tag so that the popup knows which data box was pressed to launch it.

2. How can a tag reference it's own Tag.Name or Tag.index in it's own complex code without a complete database path?
 
1.You should be able to right click on the object that launches the popup window and click 'Add Action'. From there you can make it a momentary button and add event triggers to a set of flag 'Status' tags. You can then either right a script to process that or use the event viewer to find the information you're looking for.

2.You can reference tags within their own complex code. I try to stay away from doing this though. When I come back to the program for a modification 2 years later I may not remember exactly where all that code went.

I'm not sure I completely understand your question. Are you meaning that you have a tag name Tag.aaa.bbb.ccc and you want to enter Tag.aaa.bbb.somevariable? I suppose that is technically possible, I did a program similar to that when I was in high school but have forgotten exactly how I did it. Today I would make an 'indexing integer' and run a switch statement.
 
It seems that I should be able to create a cstring tag array, and assign text boxes to each element. When the tags have been associated with the text boxes, it seems like I should be able to access the tag properties using something like Visual Basic does, ie: Me.Name, Me.Label, rather than retyping Page1.Source.Name, etc.

This seems important because I could then write code for an action in the first text box, and do a copy/paste and have things work without hand editing the action code for successive array elements. Perhaps widgets provides something like this?
 
My experience so far has been that a tag array has only one tag index. All elements of the array share the same tag index. I'm still trying to understand when the array index variable "i" mentioned I think on on page 76 or 79 of the users guide is available to in code. Can't really find any examples of it's use in a complex code block.
 

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
668
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,121
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,015
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,670
Back
Top Bottom