MOVE

IEC-operator is used to assign a variable to another variable of a corresponding type.

Since MOVE is available as a function block in the CFC, FBD and LD editors, you can apply the EN/EN0 functionality to a variable assignment there.

Examples:

Result: var2 receives the value of var1.

CFC in conjunction with the EN/EN0 function:

If en_i is TRUE, TwinCAT assigns the value of variable var1 to variable var2.

MOVE 1:

ST:

ivar2 := MOVE(ivar1);

This corresponds to:

ivar2 := ivar1;