Type Definition
Duration A data type that represents a time duration (days, hours, minutes, seconds, and milliseconds).
Safety Data Types and Standard Data Types
The Safety Control Unit classifies data types into the following two types to distinguish between safety
data and standard data.
• Safety data types: These data types represent data related to safety control.
•
Standard data types: These data types represent data related to standard control.
"SAFE" is prefixed to the names of the standard data types such as SAFEBOOL, to create the names
of the safety data types.
You can input a signal for a safety data type variable to a standard data type variable.
You cannot input a signal for a standard data type variable to a safety data type variable. A building
error will occur.
Basic Data Types
The basic data types are given below.
Classifi-
cation
Data type
Safety/
standard da-
ta type
Range of values Notation
Boolean BOOL Standard da-
ta type
FALSE or TRUE bool#0 or bool#1
FALSE or TRUE
SAFE-
BOOL
Safety data
type
Bit strings
BYTE
*1*2
Standard da-
ta type
byte#16#00 to byte#16#FF
byte#2#0101010
byte#2#0101_1010
byte#16#5A
You can use the separator charac-
ter “_”.
SAFE-
BYTE
Safety data
type
WORD
*3
Standard da-
ta type
word#16#0000 to
word#16#FFFF
SAFE-
WORD
*4
Safety data
type
Integers
INT Standard da-
ta type
int#-32768 to int#-32767 100
int#100
int#2#00000000_1100100
int#16#64
-100
SAFEINT Safety data
type
DINT Standard da-
ta type
dint#-2147483648 to
dint#-2147483647
SAFEDINT Safety data
type
Duration
TIME
*4
Standard da-
ta type
t#0ms(t#0d0h0m0s0ms)
to
t#4294967295ms
(t#49d17h02m47s295ms)
t#3000ms
SAFE-
TIME
*4
Safety data
type
*1. The BYTE data type cannot be used for an internal variable.
*2. If you use the BYTE data type for a global variable, you must define an exposed variable.
6 Programming
6 - 15
NX-series Safety Control Unit User's Manual (Z930)
6-2 Variables
6
6-2-5 Data Type