I control/set SetCtrSV 2, Eosplugs with DM[100] from HMI. I want to further manipulate this data with an expression.
If I understand the "mechanics" The PLC program is pointed to DM[n] by a CusFN. Lable name " Value" from the define table points to DM[1]. "Value" is an easier way to say DM[1] = DM[100] - 1.
Numerical values from HMI are PLUG DIAMETER and KERF WIDTH.
CusFN:
EosPlugs= EosLength/(PlugDiameter+Kerfwidth). // = DM[100]
Lable Name Variable
EosPlugs DM[100]
Value DM[1]
Add to CusFn
Value = EosPlugs -1
SETCTRSV 6, value //This should be a CRTSV 1 less than CTRSV 2 by DM[100].
To make this work in the sample program "simulation" I need to enter a value in the view variables table for DM[100] not DM[1]
?
.