Let's say I have a FT global object that is an analog indicator. It has a simulation-enable button, simulation value entry, and normal PV indication when not in simulation.
I can lay down a ton of these globals and just define the changing part of the tag each time I lay down an instance: {[#1]#2#3} where #1 is my PLC name, #2 is a tag and #3 is that tag's suffix.
This is nice, but let's assume you can't just have ALL indicators showing 1 decimal place or 2 decimal places. You have instruments with 0, 1, 2, and 3 decimal places. And there are dozens of each.
I understand I can just have a global for each number of decimal places and pick the right one for the right instrument.
But, it would be nice to have a global object parameter value as you lay down instances where you define the decimal places.
Like for a text field you have: /*N:5 {[#1}#2#3} NOFILL DP:1*/
I tried replacing DP:1 with "#5", but it just treats it as text.
I can't figure out how to do this. It appears this is a shortfall of FT.
Anybody get around this?
I can lay down a ton of these globals and just define the changing part of the tag each time I lay down an instance: {[#1]#2#3} where #1 is my PLC name, #2 is a tag and #3 is that tag's suffix.
This is nice, but let's assume you can't just have ALL indicators showing 1 decimal place or 2 decimal places. You have instruments with 0, 1, 2, and 3 decimal places. And there are dozens of each.
I understand I can just have a global for each number of decimal places and pick the right one for the right instrument.
But, it would be nice to have a global object parameter value as you lay down instances where you define the decimal places.
Like for a text field you have: /*N:5 {[#1}#2#3} NOFILL DP:1*/
I tried replacing DP:1 with "#5", but it just treats it as text.
I can't figure out how to do this. It appears this is a shortfall of FT.
Anybody get around this?