474
6 BASIC INSTRUCTIONS
6.6 Data Conversion Instructions
Processing details
• These instructions store the binary value, corresponding to the bit which is set to 1 in the 2
(n)
bit data in the device specified
by (s), in the device specified by (d).
• Specify a value 1 to 8 for (n).
• When (n)=0, no processing is performed and the values in the device specified by (d) remain unchanged.
• A bit device is treated as 1 bit, and a word device is treated as 16 bits.
• When two or more bits are 1, the upper bit position is used for processing.
Operation error
Error code
(SD0)
Description
3401H
The value specified by (n) is out of the range, 0 to 8.
The bits in the 2
(n)
bit data in the device specified by (s) are all 0s.
1 1 0
(d)
7
0
8
6 5 4 3 2 1 0
0
1 0 0 0 0 0 0
(s)
=6
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: ......