JLand
Member
Hi folks,
I have a situation where a popup is called from a global object button with a single parameter. This parameter is a 4 digit hard-coded number (e.g. "2063"). This parameter is referenced in the popup to display certain setpoints from a PLC (an L8 ControlLogix, if that matters). For example, setpoint "{/RSLinx::[PLC_Shortcut]T_#1_Full_SP}" or something. The setpoint interaction works really nicely, and when #1 is 2063 is properly displays the setpoint for T_2063_Full_SP.
What is not working nicely is animations based on this parameter. I want to animate the visibility of a graphical element visible or invisible based on an equality statement including this parameter. I also really need to avoid VBA at all costs (project request). For example, I would like to animate visible a graphical element if #1=2063. No matter what I do, I can't get this to work and I suspect it is because #1 is a string and 2063 is an integer.
Has anyone ran into this problem before? Is there something I can do to work around this? Can I convert the global object from string to number somehow?
This is FactoryTalk View SE network distributed v12.
I have tried:
All combinations I can imagine of curly brackets, quotation marks (double and single), and single vs. double equals signs.
Using a working literal number numeric variable from a text object (which works) in the visibility animation (e.g. "/*LN:5 #1 NOFILL DP:0*/ = 2063").
Trying a horizontal position animation instead of visibility (to move the graphical element out from behind a background colored square).
Set a text object's caption to the global object parameter and use textobject.Caption in my visibility animation (e.g. Text95.Caption = 2063).
Set a text object's caption to the number and used the textobject.Caption in my visibility animation (e.g. {#1} = Text95.Caption).
Thank you!
I have a situation where a popup is called from a global object button with a single parameter. This parameter is a 4 digit hard-coded number (e.g. "2063"). This parameter is referenced in the popup to display certain setpoints from a PLC (an L8 ControlLogix, if that matters). For example, setpoint "{/RSLinx::[PLC_Shortcut]T_#1_Full_SP}" or something. The setpoint interaction works really nicely, and when #1 is 2063 is properly displays the setpoint for T_2063_Full_SP.
What is not working nicely is animations based on this parameter. I want to animate the visibility of a graphical element visible or invisible based on an equality statement including this parameter. I also really need to avoid VBA at all costs (project request). For example, I would like to animate visible a graphical element if #1=2063. No matter what I do, I can't get this to work and I suspect it is because #1 is a string and 2063 is an integer.
Has anyone ran into this problem before? Is there something I can do to work around this? Can I convert the global object from string to number somehow?
This is FactoryTalk View SE network distributed v12.
I have tried:
All combinations I can imagine of curly brackets, quotation marks (double and single), and single vs. double equals signs.
Using a working literal number numeric variable from a text object (which works) in the visibility animation (e.g. "/*LN:5 #1 NOFILL DP:0*/ = 2063").
Trying a horizontal position animation instead of visibility (to move the graphical element out from behind a background colored square).
Set a text object's caption to the global object parameter and use textobject.Caption in my visibility animation (e.g. Text95.Caption = 2063).
Set a text object's caption to the number and used the textobject.Caption in my visibility animation (e.g. {#1} = Text95.Caption).
Thank you!