6-2
Variables
In the Safety CPU Unit, variables are used to exchange I/O information with external devices, to per-
form data calculations, and to perform other processes.
This section describes variable designations in detail.
6-2-1
Variables
Variables store I/O data for exchange with external devices or temporary data that is used for internal
POU processing. In other words, a variable is a data container with attributes, such as the name and
data type.
You do not need to assign a memory address to a variable. The Sysmac Studio automatically allo-
cates memory addresses in the memory area for variables.
6-2-2
Types of Variables
Variables are broadly classified into the following two types.
l
User-defined Variables
The user defines all of the attributes of a user-defined variable.
The rest of this section describes "user-defined variables".
l
Semi-user-defined Variables
For semi-user-defined variables, some attributes are designed by the system, while others are de-
fined by the user.
This includes variables that are used to access specific devices and data.
This is the equivalent of a "device variable" in the Safety Control Unit.
6-2-3
Type of User-defined Variable
There are five types of user-defined variables as defined according to their function in a POU.
Type of user-defined variable
POU type
Programs FB
Local variables Internal variables
Provided Provided
Input variables Not provided
Provided
Output variables Not provided
Provided
External variables
Provided
Not provided
Global variables
Provided
*1
Not provided
*1. You can define global variables as external variables to access the global variables through the external var-
iables.
6 Programming
6 - 12
NX-series Safety Control Unit User's Manual (Z930)