Hi,
I have some logic inside the Loop section of the sps.sub. However I am not seeing the behavior I expect.
I have an IF statement that monitors an input status and copies one variable value to another. I have set the input value to permanently true for testing purposes but the variable values do not copy in real time. The value seems to update when I stop/start the system but I cannot pin point exactly when it updates. I am testing in T1 mode if that has any bearing? which I don't believe it does as the interpreter is running.
I also have a WHILE statement which monitors INPUT [1025} and carries out some logical expressions on 3 variables. I am using these variables as a speed overide that the operator can adjust from the machine HMI. The variable:
SPEED_OVERIDE is mapped to incoming BYTE from PLC (This value is changing fine)
SPEED_OFFSET_FAST is a REAL and declared in Config.dat
SPEED_OFFSET_MED is a REAL and declared in Config.dat
SPEED_OFFSET_SLOW is a REAL and declared in Config.dat
When the interpreter is running only the value of SPEED_OFFSET_SLOW changes which I can see in the variable monitor screen of the pendant. The other two remain showing a value of 0.