Variable Designations for Function Blocks
Input parameters
Output parameters
Instance name
Value is
assigned
Function block definition name or
instruction name
Input
variable
Output
variable
Internal
variables
Value is
assigned
The specifications for variables in function blocks are given below.
Variables
Number
Specification
Input varia-
bles
1 to 64
Input variables are used as input arguments within the function block. They
cannot be changed inside the function block.
•
When the function block is executed, the input variables are set to the values
of the input parameters.
•
You can specify either constants or variables for input parameters.
•
Omitting Input Parameters:
Refer to the
NX-series Safety Control Unit Instructions Reference Manual
(Cat. No. Z931)
.
Output varia-
bles
1 to 64
Output variables are used as output arguments from the function block.
•
The output parameters are set to the values of the output variables at the
end of execution.
•
You cannot specify a constant for an output parameter. Only variables may
be specified.
•
You can omit output parameter connections. If you omit an output parameter,
the value of the output variable is not assigned to any parameter.
•
Omitting Output Parameters:
Refer to the
NX-series Safety Control Unit Instructions Reference Manual
(Cat. No. Z931)
.
•
You can access the values from outside of the function block. Access these
values with the following format:
InstanceName.OutputVariableName
. How-
ever, you cannot write values directly to an output variable.
Internal vari-
ables
No limit
Internal variables are used for temporary storage within a function block.
•
The values of internal variables are retained regardless of whether the func-
tion block is executed.
•
The values cannot be referenced from outside of the function block.
*1.
The individual restrictions are listed in the above table. The actual upper limits depend on the overall pro-
gram capacity and internal memory capacity.
on page 6 - 13 for details on the variable attributes that can be
set for each type of variable.
Function Block Definitions and Instances
A function block consists of a "function block definition" that is made in advance and "instances" that
are used in the actual programs.
All instances of a function block are based on the "function block definition".
A "function block definition" consists of an algorithm and a local variable table.
6 Programming
6 - 8
NX-series Safety Control Unit User's Manual (Z930)
Summary of Contents for NX-SIH400
Page 4: ...Introduction 2 NX series Safety Control Unit User s Manual Z930 ...
Page 46: ...Revision History 44 NX series Safety Control Unit User s Manual Z930 ...
Page 108: ...2 Specifications 2 42 NX series Safety Control Unit User s Manual Z930 ...
Page 132: ...3 Installation and Wiring 3 24 NX series Safety Control Unit User s Manual Z930 ...
Page 148: ...4 Safety Control Unit Operation 4 16 NX series Safety Control Unit User s Manual Z930 ...
Page 216: ...5 System Configuration and Setup 5 44 NX series Safety Control Unit User s Manual Z930 ...
Page 306: ...6 Programming 6 90 NX series Safety Control Unit User s Manual Z930 ...
Page 390: ...8 Calculating Safety Reaction Times 8 12 NX series Safety Control Unit User s Manual Z930 ...
Page 412: ...11 Safety Data Logging 11 10 NX series Safety Control Unit User s Manual Z930 ...
Page 504: ...12 Troubleshooting 12 92 NX series Safety Control Unit User s Manual Z930 ...
Page 554: ...l I O Map Settings Appendices A 42 NX series Safety Control Unit User s Manual Z930 ...
Page 623: ...I Index I 1 NX series Safety Control Unit User s Manual Z930 I ...
Page 625: ......