
6 BASIC INSTRUCTIONS
6.5 Data Conversion Instructions
247
6
Precautions
• Binary data is used in all operations in CPU module including arithmetic operations (+-
), increment and decrement
instructions. When receiving digital switch information in binary-coded decimal (BCD) format into a CPU module, use the
BIN(P) instructions (for converting BCD data into binary data). Furthermore, to output data to seven-segment display unit
handling binary-coded decimal (BCD) data, use the BCD(P) instructions (for converting binary data into BCD data).
Operation error
(d)
Number of digits
Data range
K1X0
1-digit
0 to 9
K2X0
2-digit
00 to 99
K3X0
3-digit
000 to 999
K4X0
4-digit
0000 to 9999
Error code
(SD0/SD8067)
Description
3401
The value of each digit of the device specified by (s) is other than 0 to 9. (The data is not binary-coded decimal data.)
Summary of Contents for MELSEC iQ-F FX5 series
Page 1: ...MELSEC iQ F FX5 Series Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 21: ...19 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW ...
Page 98: ...96 4 STANDARD FUNCTIONS FUNCTION BLOCKS 4 2 Standard Function Blocks MEMO ...
Page 840: ...838 23 TIME DATA FUNCTIONS 23 4 Division MEMO ...
Page 887: ......