PLC PM554
Hi,
How can i get set value data,what i set from HMI after Power loss.
can anyone help me.
How to move setvalue to retain memory.
How can i get set value data,what i set from HMI after Power loss.
can anyone help me.
How to move setvalue to retain memory.
Voted best answer
Hi,
Look for retain and persistent type of variables:
VAR RETAIN PERSISTENT
VAR RETAIN
VAR PERSISTENT
Detect the first cycle with TASK_INFO. For the first cycle num_cycles is 1
I usually use TON with 5 sec after the first cycle.
So during this time you have to write the setpoints from Retain persistent variables to the setpoints coming from HMI by means of jumps
And opposite - after the TON for first cycle, write all setpoints from HMI to the retain persistent variables.
Look for retain and persistent type of variables:
VAR RETAIN PERSISTENT
VAR RETAIN
VAR PERSISTENT
Detect the first cycle with TASK_INFO. For the first cycle num_cycles is 1
I usually use TON with 5 sec after the first cycle.
So during this time you have to write the setpoints from Retain persistent variables to the setpoints coming from HMI by means of jumps
And opposite - after the TON for first cycle, write all setpoints from HMI to the retain persistent variables.
Add new comment