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

Page 464

Advertising
background image

L-force | PLC Designer

IEC Operators and additional norm extending functions

462

DMS 3.2 EN 02/2011 TD29



Example in FBD:

9.2.3

SUB

PLC Designer IEC operator: Subtraction of one variable from another of the types:
BYTE, WORD, DWORD, SINT, USINT, INT, UINT, DINT, UDINT, REAL and LREAL.

A TIME variable may also be subtracted from another TIME variable resulting in third
TIME type variable. Note that negative TIME values are undefined.

Example in IL:

LD 7

SUB 2

ST Var1

Example in ST:

var1 := 7-2;

Example in FBD:

Advertising