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

Page 648

Advertising
background image

L-force | PLC Designer

PLC Designer Libraries

646

DMS 3.2 EN 02/2011 TD29



Example in ST:

arINT1 := FIND ('abcdef','de');

Note!

String functions are not "thread safe": When using tasks, string functions may only
be used in a single task. If the same function is used in different tasks, there is a
danger of overwriting.

19.1.2

Bistable Function Blocks...

SR

Provided by standard.lib.

Making Bistable Function Blocks Dominant:

Q1 = SR (SET1, RESET) means:

Q1 = (NOT RESET AND Q1) OR SET1

The input variables SET1 and RESET as well as the output variable Q1 are type BOOL.

Declaration example:

SRInst : SR ;

Example in IL:

CAL SRInst(SET1 := VarBOOL1, RESET := VarBOOL2)

LD SRInst.Q1

ST VarBOOL3

Example in FBD:

Advertising