Using Variable Tags In Factory talk Studio ME 7.00

cschlue

Member
Join Date
Nov 2013
Location
Davenport
Posts
34
Is it at all possible to use a "Variable Tag"?

An example would be i have a macro that runs on the close of a display that checks if a {Part_selection_A\Selected} tag is greater than 0, The tag is set by Interlocked Buttons on a part selection screen. If the tag is greater then zero I want to write {Part_Selection_A\Part_%} to the tag, and the % would be Equal to the same value of {Part_selection_A\Selected}

I'm trying to avoid writing the same macro over and over again just to change one number.
 
If you have a tag that needs to be used for two functions, then certainly you can reassign the value of the tag anytime you want. The problem is "how does the PLC and Factory Talk know WHEN it is the first function or the second function?

If you have some other event or time that can be used to determine which function the tag is now assigned, then yes, it can be made to work. For example you could look at the Part Selection Screen for T time after the operator changes a selection, and after that time the tag will always be the Part Number.

Instead of a timer, if there is an Event "A" that could be used (such as closing the Part Selection Screen), then

If Event "A" = TRUE, then {Part_selection_A\Selected} = Switch Inputs
If Event "A" = FALSE, then {Part_selection_A\Selected} = {Part_Selection_A\Part_%}
 

Similar Topics

Long story short, I am creating a display to display an array of Strings from PLC [topic]VarStrA_RPHD.Desc[VarStrB] totally 100 strings...
Replies
1
Views
1,403
So I know that in RSLogix 5000 you can use a tag in place of a static number in an argument of any instruction. For example... If I wanted to...
Replies
14
Views
3,472
Good Morning , I am using a Piloted List Selector , in conjunction with a Numeric Input Cursor . The first several states in the Piloted...
Replies
1
Views
3,757
Hi everyone, I am an automation Student and I'm new to PLC programming with Allen Bradley Rs Logix 500. I have to upgrade an actual automated...
Replies
0
Views
2,675
Hi everyone, I am an automation Student and I'm new to PLC programming with Allen Bradley Rs Logix 500. I have to upgrade an actual automated...
Replies
0
Views
2,535
Back
Top Bottom