En/eno, L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual
Page 244

L-force | PLC Designer
Menu Commands sorted by Categories
242
DMS 4.1 EN 03/2011 TD29
12.7.4
EN/ENO
Symbol:
This command (category CFC) is used to give a selected block (Cursor position 3.) an
additional Boolean enable input EN and a Boolean output ENO (Enable Out).
Abb. 76
ADD-box with EN/ENO
In this example ADD will only be executed if the boolean variable condition is TRUE.
VarOut will be set to TRUE after the execution of ADD. Notice that if afterwards
condition changes to FALSE, ADD will not be executed any longer and also VarOut will
be set to FALSE.
The example below shows how the ENO value can be used for further blocks:
Abb. 77
Use of EN/ENO, example
For this example initialize x with "1". The numbers in the right corner of the boxes
indicate the order in which the commands are executed.
As long as x is less than 10 (0), it will be increased by one (1). As soon as x = 10 the
output of LT(0) will deliver the value FALSE and SUB (6) and ADD (4) will be executed. x
will be set back to the value 1 and y will get increased by 1. LT (0) will be executed
again as long as x is less than 10. Thus y is counting how often x passes though the
value range 1 to 10.