Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 287

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

Advertisement

• Data specified by (s) can be converted if it is within the range from K0 to K99999999 BDC (decimal).
• The table below shows nibble specification for the data in the device specified by (s) and (d).
X0
(d)
DBCD
(s)
When "K8Y0" is specified
(d)+1, (d)
K1Y0
K2Y0
K3Y0
K4Y0
K5Y0
K6Y0
K7Y0
K8Y0
Precautions
• When using the SEGL instruction, because BCDbinary conversion is automatically executed, the BCD(P) instruction do
not have to be used.
• 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
Data in the device specified by (s) is out of the valid range (0 to 99999999).
CPU module DBCD
Y34 to
Y30 to
Y24 to
Y20 to
Y14 to
Y37
Y33
Y27
Y23
Y17
Number of digits
1-digit
2-digit
3-digit
4-digit
5-digit
6-digit
7-digit
8-digit
BIN
Y10 to
Y4 to
Y0 to
Y13
Y7
Y3
BCD
Data range
0 to 9
00 to 99
000 to 999
0000 to 9999
00000 to 99999
000000 to 999999
0000000 to 9999999
00000000 to 99999999
7 BASIC INSTRUCTIONS
7.5 Data Conversion Instructions
7
285

Hide quick links:

Advertisement

loading