Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 349

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

Advertisement

Processing details
• These instructions extract the bit data at the position specified by (s2) of the double-word device specified by (s1), and write
it to the bit device specified by (d).
(1)
b31
∙∙∙
b21
∙∙∙
b16
(s1)+1
(1) (s2) bit (When (s2)=21)
• The bit device specified by (d) turns off when the extracted bit data is 0 and turns on when the bit data is 1.
• Specify the bit position (0 to 31) of the double-word data in (s2). When 32 or a greater value is specified in (s2), the
remainder of (s2)32 becomes the bit position.
Ex.
When (s2)=34: The remainder of 3432 is 2, and therefore the data in bit 2 will be extracted.
Operation error
There is no operation error.
b15
∙∙∙
b0
(s1)
(d)
6.4 Bit Processing Instructions
6 BASIC INSTRUCTIONS
347
6

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents