I have tag in my PLC that is array based: TAG[X] (Real)
I want to display this value on the HMI and the element to be displayed will be based on a drop down list on the HMI that sets the value of X, which is actually the day of the week. I can do this easily by:
PLC,
IF X=0, MOVE TAG[0] INTO HMI_TAG
IF X=1, MOVE TAG[1] INTO HMI_TAG, etc.
HMI,
Use numeric indicator and connect it to HMI_TAG
However, I would prefer to just use the index X right in the HMI itself:
Numeric indicator connected to TAG[X]
I tried this in the HMI, and it liked the syntax, but it seems like it can't directly evaluate the index and thinks its a new tag.
Does anybody know how to use an expression or macro or something to alow direct connection to an indexed value?
I want to display this value on the HMI and the element to be displayed will be based on a drop down list on the HMI that sets the value of X, which is actually the day of the week. I can do this easily by:
PLC,
IF X=0, MOVE TAG[0] INTO HMI_TAG
IF X=1, MOVE TAG[1] INTO HMI_TAG, etc.
HMI,
Use numeric indicator and connect it to HMI_TAG
However, I would prefer to just use the index X right in the HMI itself:
Numeric indicator connected to TAG[X]
I tried this in the HMI, and it liked the syntax, but it seems like it can't directly evaluate the index and thinks its a new tag.
Does anybody know how to use an expression or macro or something to alow direct connection to an indexed value?