EasyManua.ls Logo

Siemens S7-1200 - EN and ENO for LAD, FBD and SCL

Siemens S7-1200
1028 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Programming concepts
6.5 Programming language
S7-1200 Programmable controller
188 System Manual, 03/2014, A5E02486680-AG
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
Inputs/outputs
Operands
Data type
LAD
EN, ENO
Power flow
Bool
FBD
EN
I, I:P, Q, M, DB, Temp, Power Flow
Bool
ENO
Power Flow
Bool
SCL
EN
1
TRUE, FALSE
Bool
ENO
2
TRUE, FALSE
Bool
1
The use of EN is only available for FBs.
2.
The use of ENO with the SCL code block is optional. You must configure the SCL compiler to set ENO when the code
block finishes.

Table of Contents

Other manuals for Siemens S7-1200

Related product manuals