Data Types; Structures; Constants - Mitsubishi Electric MELSEC iQ-R-R00CPU User Manual

Melsec iq-r series cpu module application user's manual
Table of Contents

Advertisement

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.
34.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)
34 SAFETY DEVICES, SAFETY LABELS, AND CONSTANTS
562
34.5 Constants
BOOL
WORD
DWORD
INT
DINT
REAL
LREAL
TIME
STRING
WSTRING
TIMER
RETENTIVETIMER
LTIMER
LRETENTIVETIMER
COUNTER
LCOUNTER
POINTER
Availability

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents