684
38 SAFETY DEVICES, SAFETY LABELS, AND CONSTANTS
38.5 Constants
Data types
Primitive data type
The following table lists the availability of primitive data types.
: Applicable, : Not applicable
Structures
The structure definition is shared by standard programs and safety programs. However, it cannot be used in the following
cases.
• A member of the primitive data type which cannot be used in safety programs exists.
• An initial value is set in the structure definition.
38.5 Constants
The decimal constant (K) and hexadecimal constant (H) can be used in safety programs. The specification method is the
same as that for standard programs. (Example: K1234, H1FFF) ( Page 401 CONSTANTS)
Data type Availability
Bit BOOL
Word [unsigned]/bit string [16 bits] WORD
Double word [unsigned]/bit string [32 bits] DWORD
Word [signed] INT
Double word [signed] DINT
Single-precision real number REAL
Double-precision real number LREAL
Time TIME
String STRING
String [Unicode] WSTRING
Timer TIMER
Retentive timer RETENTIVETIMER
Long timer LTIMER
Long retentive timer LRETENTIVETIMER
Counter COUNTER
Long counter LCOUNTER
Pointer POINTER