1 OVERVIEW
1.2 Data Specification Method
21
1
1.2 Data Specification Method
The following table lists the types of data that can be used for instructions in CPU modules.
Device data
*1 A constant can be used in the data specified for the source (s) or numerical data (n) by an instruction.
*2 For the specification method, refer to the detail page of each data type.
Data type Description Specifiable device/constant
*1
Bit Bit data can be handled.
Page 24 Bit data
• Bit device
• Bit specification of word device
Word Word data can be handled.
Page 25 16-bit data (word data)
• Word device
• Nibble specification of bit devices (K1 to
K4)
*2
• Decimal constant
• Hexadecimal constant
16-bit signed binary 16-bit data can be handled.
The value range varies depending on whether the value is signed or unsigned.
Page 25 16-bit data (word data)
16-bit unsigned binary
Double word Double-word data can be handled.
Page 27 32-bit data (double word data)
• Word device
• Double-word device
• Nibble specification of bit devices (K1 to
K8)
*2
• Decimal constant
• Hexadecimal constant
32-bit signed binary Two consecutive sets of 32-bit data or 16-bit data can be handled.
The value range varies depending on whether the value is signed or unsigned.
Page 27 32-bit data (double word data)
32-bit unsigned binary
BCD 4-digit BCD 4-digit data can be handled.
16-bit data is divided by 4 digits and each digit is specified in 0 to 9.
• Word device
• Nibble specification of bit devices (K1 to
K4)
*2
• Decimal constant
• Hexadecimal constant
BCD 8-digit BCD 8-digit data can be handled.
32-bit data is divided by 8 digits and each digit is specified in 0 to 9.
• Word device
• Double-word device
• Nibble specification of bit devices (K1 to
K8)
*2
• Decimal constant
• Hexadecimal constant
Single-precision real
number
Single-precision real number data (single-precision floating-point data) can be
handled.
Page 30 Configuration of single-precision real number data
• Word device
• Double-word device
• Real constant
Character string ASCII code and Shift JIS code character string data can be handled.
Page 32 Character string data
• Word device
• Character string constant
Data used in devices and labels Bit data
16-bit data (word data) 16-bit signed binary data
16-bit unsigned binary data
32-bit signed binary data
32-bit unsigned binary data
Single-precision real number data
BCD 4-digit data
BCD 8-digit data
String
32-bit data (double-word data)
Real number data (floating-point data)
BCD data
String data