6 Programming
6-12
NJ-series CPU Unit Software User’s Manual (W501)
*1 In the Sysmac Studio version 1.01 or lower, at least one BOOL input variable is required.
*2 In the Sysmac Studio version 1.07 or lower, it is impossible to change the value of an input variable from out-
side the function block. However, accessing it from outside the function block is possible.
*3 In the Sysmac Studio version 1.01 or lower, at least one BOOL output variable (including ENO) is required.
Refer to Attributes of Variables on page 6-29 for details on setting variable attributes.
If you define an external variable with the same name as a global variable in a function block, it is
defined automatically based on that global variable.
ENO
• When ENO is FALSE, the previous values of all other output variables are retained.
External vari-
ables
No limit External variables are used to access global variables.
EN 0An EN variable cannot be used in a function block. (This applies to both user-
defined function blocks and FB instructions.)
ENO 0 or 1 Generally, this is a BOOL output variable that is set to TRUE for a normal end,
and to FALSE for an error end.
• You can also omit it for some FB instructions.
• Refer to ENO on page 6-20 for details.
Variables Number Specification