2-8
Section 2 Programming Languages
<Considerations in using functions with EN/ENO enabled>
1) Using user functions
When the circuit shown in the gure below is created by using a user function, S2 is assigned to the temporary area. If a variable
A associated with the EN terminal is set to “OFF,” an S2 value is undened.
MOVE
EN
ENO
S1
A
S2
2) Using programs and user function blocks
When the circuits shown in the gure below are created by using a program or user function block, portion C is assigned to the
temporary area. If a variable B associated with the EN terminal is set to “OFF,” C is undened, resulting in S4 and S5 being
undened. In any such case, take either one of actions 1 and 2.
MOVE
EN ENO
B
S3
MOVE
EN ENO
S4
MOVE
EN ENO
S5
When B is set to “OFF
C
MOVE
EN ENO
B
S3
MOVE
EN ENO
S4
MOVE
EN ENO
S5
When B is set to “OFF
,” unchanged.
<Action 1> Connect EN/ENO.
<Action 2> Use a variable explicitly for portion C.
MOVE
EN ENO
B
S3
MOVE
EN ENO
S4
MOVE
EN
S30
S30
S30
ENO
S5
When B is set to “OFF