10 operands in plc designer, Constants, Bool constants – Lenze PLC Designer PLC Designer (R2-x) User Manual

Page 506: Time constants, L-force | plc designer

Advertising
background image

L-force | PLC Designer

Operands in PLC Designer

504

DMS 3.2 EN 02/2011 TD29



10

Operands in PLC Designer

In »PLC Designer« Constants, variables, addresses and possibly function calls can
appear as operands.

10.1

Constants

10.1.1

BOOL Constants

BOOL constants are the logical values TRUE and FALSE.

10.1.2

TIME Constants

TIME constants can be declared in PLC Designer. These are generally used to operate
the timer in the standard library. A TIME constant is always made up of an initial "t" or
"T" (or "time" or "TIME" spelled out) and a number sign "#".

This is followed by the actual time declaration which can include days (identified by

"d"), hours (identified by "h"), minutes (identified by "m"), seconds (identified by "s")
and milliseconds (identified by "ms"). Please note that the time entries must be given
in this order according to length (d before h before m before s before m before ms) but
you are not required to include all time increments.

Examples of correct TIME constants in a ST assignment:

TIME1 := T#14ms;

TIME1 := T#100S12ms;

(*The highest component may be allowed to exceed its limit*)

TIME1 := t#12h34m15s;

the following would be incorrect:

TIME1 := t#5m68s;

(*limit exceeded in a lower component*)

TIME1 := 15ms;

(*T# is missing*)

TIME1 := t#4ms13d;

(*Incorrect order of entries*)

Advertising