EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 427

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
425
6
Processing details
These instructions convert the 32-bit signed binary data (ANY32_U) in the label specified by (s) to 32-bit unsigned binary
data (ANY32_S), and store the converted data in the label specified by (d).
The following figure shows a program example using the UDINT2DINT(P) instruction.
Ex.
The D+ instruction requires ANY32_S to be specified by the operand, and therefore, before the D+ instruction is executed, the
UDINT2DINT instruction is used to convert udLabel0 of ANY32_U to dLabel1 of ANY32_S.
The value in udLabel0 is stored in dLabel1 as is.
Operation error
There is no operation error.
bSwitchA: Bit
dLabel0, dLabel1: Double word [signed]
udLabel0: Double word [unsigned]/bit string [32 bits]
(1) The value is stored as is.
(2) The data type of the value is converted to the one of the operand in the D+ instruction, and the operation starts.
bSwitchA
(s)
8000HudLabel0
b31 b16
0001H
b15 b0
UDINT2DINT udLabel0 dLabel1
D+ dLabel0 dLabel1
(d)
8000HdLabel1
b31 b16
0001H
b15 b0
UDINT2DINT
(1)
(2)

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals