Data types
Primitive data type
The following table lists the availability of primitive data types.
: Applicable, : Not applicable
Data type
Bit
Word [unsigned]/bit string [16 bits]
Double word [unsigned]/bit string [32 bits]
Word [signed]
Double word [signed]
Single-precision real number
Double-precision real number
Time
String
String [Unicode]
Timer
Retentive timer
Long timer
Long retentive timer
Counter
Long counter
Pointer
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.
BOOL
WORD
DWORD
INT
DINT
REAL
LREAL
TIME
STRING
WSTRING
TIMER
RETENTIVETIMER
LTIMER
LRETENTIVETIMER
COUNTER
LCOUNTER
POINTER
Availability
4 LABELS
4.8 When a Safety Program Is Used
4
53