*3.
If you use the WORD data type for a global variable, you must define an exposed variable or use a con-
stant.
*4.
If you use the SAFEWORD, TIME, or SAFETIME data type for a global variable, you must set a constant.
Bit String Data Format
This section describes the data format for bit string data.
"Bit 0" is the least significant bit of a bit string variable.
Bit values are expressed as 1 or 0.
0
Bit 0
Bit 7
BYTE#16#3B
0 1 1 1 0 1 1
6-2-6
Variable Attributes Other Than Data Type
This section describes the variable attributes other than the Data Type.
Variable Name Attribute
The variable name is used to identify the variable.
Each variable in a POU must have a unique name. However, you can declare local variables with the
same variable name in different POUs. These are treated as two separate variables.
You cannot declare an internal variable with the same variable name as a global variable.
Initial Value Attribute
The variable is set to the initial value in the following situations.
• When the power supply is turned ON
• When the mode is changed to RUN mode
• When the mode is changed to DEBUG mode (STOPPED)
l
Types of Variables That Can Have Initial Values
You can set initial values for only some types of variables. A list is provided below.
Variables
Initial Value Settings
Global variables
Yes (required)
Internal variables
Input variables
Output variables
External variables
Not possible.
You must set initial values for all variables that allow them.
6 Programming
6 - 16
NX-series Safety Control Unit User's Manual (Z930)
Содержание NX-SIH400
Страница 4: ...Introduction 2 NX series Safety Control Unit User s Manual Z930 ...
Страница 46: ...Revision History 44 NX series Safety Control Unit User s Manual Z930 ...
Страница 108: ...2 Specifications 2 42 NX series Safety Control Unit User s Manual Z930 ...
Страница 132: ...3 Installation and Wiring 3 24 NX series Safety Control Unit User s Manual Z930 ...
Страница 148: ...4 Safety Control Unit Operation 4 16 NX series Safety Control Unit User s Manual Z930 ...
Страница 216: ...5 System Configuration and Setup 5 44 NX series Safety Control Unit User s Manual Z930 ...
Страница 306: ...6 Programming 6 90 NX series Safety Control Unit User s Manual Z930 ...
Страница 378: ...7 Checking Operation and Actual Operation 7 72 NX series Safety Control Unit User s Manual Z930 ...
Страница 390: ...8 Calculating Safety Reaction Times 8 12 NX series Safety Control Unit User s Manual Z930 ...
Страница 412: ...11 Safety Data Logging 11 10 NX series Safety Control Unit User s Manual Z930 ...
Страница 504: ...12 Troubleshooting 12 92 NX series Safety Control Unit User s Manual Z930 ...
Страница 550: ...l Safety I O Terminal Settings l I O Map Settings Appendices A 38 NX series Safety Control Unit User s Manual Z930 ...
Страница 554: ...l I O Map Settings Appendices A 42 NX series Safety Control Unit User s Manual Z930 ...
Страница 558: ...l Safety I O Terminal Settings l I O Map Settings Appendices A 46 NX series Safety Control Unit User s Manual Z930 ...
Страница 564: ...l Safety I O Terminal Settings l I O Map Settings Appendices A 52 NX series Safety Control Unit User s Manual Z930 ...
Страница 623: ...I Index I 1 NX series Safety Control Unit User s Manual Z930 I ...
Страница 625: ......