Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 437

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Processing details
• These instructions convert the (n) points of 16-bit binary data (0 to 9999) starting from the device specified by (s) to BCD
data, and store the converted data in the device specified by (d) and later.
(1)
(s)
BIN 1234
0 0 0 0 0 1 0 0 1 1 0 1 0 0 1 0
(s)+1
BIN 5678
0 0 0 1 0 1 1 0 0 0 1 0 1 1 1 0
(s)+2
BIN 1545
0 0 0 0 0 1 1 0 0 0 0 0 1 0 0 1
(s)+(n)-2
BIN 4321
0 0 0 1 0 0 0 0 1 1 1 0 0 0 0 1
(s)+(n)-1
BIN 5555
0 0 0 1 0 1 0 1 1 0 1 1 0 0 1 1
(d)
BCD 1234
0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0
(d)+1
BCD 5678
0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0
(d)+2
BCD 1545
0 0 0 1 0 1 0 1 0 1 0 0 0 1 0 1
(d)+(n)-2
BCD 4321
0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1
(d)+(n)-1
BCD 5555
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
(1) Set 0s.
Operation error
Error code
Description
(SD0)
2821H
The device ranges specified by (s) and (d) are overlapping.
3401H
The (n) points of data starting from the device specified by (s) is out of the range, 0 to 9999.
(n)
BCD
(n)
6 BASIC INSTRUCTIONS
6.6 Data Conversion Instructions
6
435

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents