Move, L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual

Page 466

Advertising
background image

L-force | PLC Designer

IEC Operators and additional norm extending functions

464

DMS 3.2 EN 02/2011 TD29



9.2.5

MOD

PLC Designer IEC operator: Modulo Division of one variable by another of the types:
BYTE, WORD, DWORD, SINT, USINT, INT, UINT, DINT, UDINT. The result of this function
will be the remainder of the division. This result will be a whole number.

Example in IL:

LD 9

MOD 2

ST Var1 (* Result is 1 *)

Example in ST:

var1 := 9 MOD 2;

Example in FBD:

9.2.6

MOVE

PLC Designer IEC operator: Assignment of a variable to another variable of an
appropriate type. As MOVE is available as a box in the graphic editors LD, CFC, there
the (unlocking) EN/EN0 functionality can also be applied on a variable assignment. In
the FBD editor this is not possible however.

Example in CFC in conjunction with the EN/EN0 function:

Only if en_i is TRUE, var1 will be assigned to var2.

Example in IL:

LD ivar1

MOVE

ST ivar2 (* Result: ivar2 gets assigned value of ivar1 *)

Advertising