En And Eno For Lad, Fbd And Scl - Siemens S7-1200 System Manual

Hide thumbs Also See for S7-1200:
Table of Contents
Programming concepts
6.5 Programming language
Adding block comments to SCL code
You can include a block comment in your SCL code by including the comment text between
(* and *). You can have any number of comment lines between the (* and the *). Your SCL
program block can include many block comments. For programming convenience, the SCL
editor includes a block comment button along with common control statements:
6.5.4

EN and ENO for LAD, FBD and SCL

Determining "power flow" (EN and ENO) for an instruction
Certain instructions (such as the Math and the Move instructions) provide parameters for EN
and ENO. These parameters relate to power flow in LAD or FBD and determine whether the
instruction is executed during that scan. SCL also allows you to set the ENO parameter for a
code block.
● EN (Enable In) is a Boolean input. Power flow (EN = 1) must be present at this input for
the box instruction to be executed. If the EN input of a LAD box is connected directly to
the left power rail, the instruction will always be executed.
● ENO (Enable Out) is a Boolean output. If the box has power flow at the EN input and the
box executes its function without error, then the ENO output passes power flow
(ENO = 1) to the next element. If an error is detected in the execution of the box
instruction, then power flow is terminated (ENO = 0) at the box instruction that generated
the error.
Table 6- 3
Operands for EN and ENO
Program editor
LAD
FBD
SCL
The use of EN is only available for FBs.
1
The use of ENO with the SCL code block is optional. You must configure the SCL compiler to set ENO when the code
2.
block finishes.
188
Inputs/outputs
EN, ENO
EN
ENO
EN
1
ENO
2
Operands
Power flow
I, I:P, Q, M, DB, Temp, Power Flow
Power Flow
TRUE, FALSE
TRUE, FALSE
Data type
Bool
Bool
Bool
Bool
Bool
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
Table of Contents
loading

Table of Contents