EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 417

Mitsubishi Electric MELSEC iQ-R Series
2110 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6 BASIC INSTRUCTIONS
6.6 Data Conversion Instructions
415
6
Processing details
These instructions convert the 32-bit signed binary data in the device specified by (s) to 16-bit signed binary data, and store
the converted data in the device specified by (d).
The following program example converts, when M0 turns on, the 32-bit signed binary data stored in D0 and D1 to 16-bit
signed binary data, and stores the converted data in D100.
Operation error
(1) Data before conversion is stored in the lower 16 bits.
Error code
(SD0)
Description
3401H The 32-bit signed binary data in the device specified by (s) is out of the range, -32768 to 32767.
b31 b16
(-26506)
9876H
FFFFHD1, D0
(d)
b15 b0
(-26506)
9876HD100
(s)
b15 b0
  
SM402
(s)
(d)
M0
DMOVP
HFFFF9876
D0
DINT2INT
D0
D100
(1)

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals