6 BASIC INSTRUCTIONS
6.6 Data Conversion Instructions
419
6
Processing details
• These instructions convert the 32-bit signed binary data (ANY32_S) in the label specified by (s) to 32-bit unsigned binary
data (ANY32_U), and store the converted data in the label specified by (d).
• The following figure shows a program example using the DINT2UDINT(P) instruction.
Ex.
The D+_U instruction requires ANY32_U to be specified by the operand, and therefore, before the D+_U instruction is
executed, the DINT2UDINT instruction is used to convert dLabel0 of ANY32_S to udLabel1 of ANY32_U.
The value in dLabel0 is stored in udLabel1 as is.
Operation error
There is no operation error.
bSwitchA: Bit
dLabel0: Double word [signed]
udLabel0, udLabel1: 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+_U instruction, and the operation starts.
bSwitchA
(s)
8000H
dLabel0
b31
b16
∙∙∙
0001H
b15
b0
∙∙∙
DINT2UDINT
dLabel0
udLabel1
D+_U
udLabel0
udLabel1
(d)
8000H
udLabel1
b31
b16
∙∙∙
0001H
b15
b0
∙∙∙
DINT2UDINT
(2)
(1)
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......