Mitsubishi MELSEC Q Series Programming Manual page 436

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

TEST(P),DTEST(P)
(3) The position designated by
block (0 to 31). When 32 or more is designated at
indicated by the remainder of n / 32. For example, when n
since the remainder of 34 / 32
Operation Error
(1) There are no operation errors associated with the TEST(P) or DTEST(P) instructions.
Program Example
(1) The following program turns M0 ON or OFF based on the status of the 10th bit in the 1-word
data block (D0).
[Ladder Mode]
[Operation]
b15
D0
1 0 1 1 0 0 1 1 0 1 1 0 1 0 1 0
b15
D0
0 0 1 0 0 1 1 1 1 0 1 0 0 0 0 1
7-62
indicates the position of an individual bit in a 2-word data
S2
1 is "2".
S2
bit
(When
S2
b31
b21
b16
S 1 +1
b10
b0
Turns M0 OFF since b10 is "0."
b10
b0
Turns M0 ON since b10 is "1."
, the target is the bit data at the position
S2
=21)
b15
b0
S 1
[List Mode]
Step
Instruction
34, the target is the data at b2
D
Device

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents