PLCnext IEC Move function.
Hello,
I'm trying to move a set point to a PID controller. But I have two different set points, one for use in automatic and one for manual control.
As you can see in the attachments, if the last move is not active the value will be Zero. How can I fix this so that the value is the set point that is active?
I'm trying to move a set point to a PID controller. But I have two different set points, one for use in automatic and one for manual control.
As you can see in the attachments, if the last move is not active the value will be Zero. How can I fix this so that the value is the set point that is active?
Comments
this is a normal behaviour as the last line always overwrites the value. When the MOVE function is not enabled, the value is set to 0. Try to use the SEL function block. This is used to select between 2 values based on a boolean input.