Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 439

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

Advertisement

Processing details
• These instructions convert the (n) points of BCD data (0 to 9999) starting from the device specified by (s) to 16-bit binary
data, and store the converted data in the device specified by (d) and later.
(s)
BCD 1234
0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0
(s)+1
BCD 5678
0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0
BCD 1545
(s)+2
0 0 0 1 0 1 0 1 0 1 0 0 0 1 0 1
BCD 4321
(s)+(n)-2
0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
(s)+(n)-1
BCD 5555
BIN 1234
0 0 0 0 0 1 0 0 1 1 0 1 0 0 1 0
(d)
BIN 5678
0 0 0 1 0 1 1 0 0 0 1 0 1 1 1 0
(d)+1
(d)+2
BIN 1545
0 0 0 0 0 1 1 0 0 0 0 0 1 0 0 1
(d)+(n)-2
BIN 4321
0 0 0 1 0 0 0 0 1 1 1 0 0 0 0 1
BIN 5555
0 0 0 1 0 1 0 1 1 0 1 1 0 0 1 1
(d)+(n)-1
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)
BIN
(n)
6 BASIC INSTRUCTIONS
6.6 Data Conversion Instructions
6
437

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents