Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 289

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

• The data in the device specified by (s) can be converted if it is in the range from 0 to 9999 (BCD).
• The table below shows nibble specification for the data in the device specified by (s) and (d).
X0
(s)
(d)
BIN
In case of K4X0
(d)
K1X0
K2X0
K3X0
K4X0
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
Error code
Description
(SD0/SD8067)
3401H
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.)
BCD
6
7
8
9
X4 to
X14 to
X10 to
X0 to
X17
X13
X7
X3
BIN
BIN CPU module
Number of digits
1-digit
2-digit
3-digit
4-digit
Data range
0 to 9
00 to 99
000 to 999
0000 to 9999
7 BASIC INSTRUCTIONS
7.5 Data Conversion Instructions
7
287

Hide quick links:

Advertisement

loading