Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 476

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

Advertisement

Processing details
• These instructions store the binary value, corresponding to the bit which is set to 1 in the 2
by (s), in the device specified by (d).
8
7
6 5 4 3 2 1 0
(s)
0
1 0 0 0 0 0 0
0
• 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
Description
(SD0)
3401H
The value specified by (n) is out of the range, 0 to 8.
The bits in the 2
6 BASIC INSTRUCTIONS
474
6.6 Data Conversion Instructions
(d)
=6
1 1 0
(n)
bit data in the device specified by (s) are all 0s.
(n)
bit data in the device specified

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents