3 Function Construction
3.4 EN and ENO
33
FXCPU Structured Programming Manual
(Application Functions)
1
O
utlin
e
2
Function Li
st
3
Functi
on
Cons
tructi
on
4
Ho
w t
o R
ea
d
Explanati
on of
Func
tions
5
Appl
ie
d
Functions
6
Stan
dard
Functi
on
Blocks
A
Correspondence
be
tw
een Dev
ice
s
an
d A
ddres
ses
3.4
EN and ENO
Execution of an instruction can be controlled when the instruction contains "EN" in its name.
• "EN" inputs the instruction execution condition.
• "ENO" outputs the instruction execution status.
• The table below shows the "ENO" status corresponding to the "EN" status and the operation result.
EN
ENO
Operation result
TRUE(Executes operation.)
TRUE(Operation error did not occur.) Operation output value
FALSE(Operation error occurred.)
Indefinite value
FALSE(Stops operation.)
FALSE
Indefinite value
BOOL_TO_STR_E
EN
ENO
VAR_D10
X000
_BOOL
M1
In the above example, the function "BOOL_TO_STR_E"
is executed only when X000 is "TRUE".
When the function is executed normally, "TRUE" is output to M1.