Mitsubishi MELSEC Q Series Programming Manual page 437

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

Advertisement

(2) The following program turns Y40 ON or OFF, depending on the status of the 19th bit of the
2-word data (W0 and W1).
[Ladder Mode]
[Operation]
b31
b19
1 0 1 1 0 0 1 0 1 0 1 1 0 0 0 0
b31
b19
0 1 1 0 1 1 0 1 1 1 0 1 1 0 0 1
Remark
Programs using the bit test instruction can be rewritten as programs using bit
designation of word devices.
If the program in example (1) were changed to use bit designation of a word
device, it would appear as follows:
D0.A
[List Mode]
Step
b16
b15
1 0 1 1 0 1 1 1 0 1 1 1 0 1 1 0
Turns Y40 OFF since b19 is "0."
b16
b15
1 0 1 0 1 1 0 0 0 0 1 0 1 1 0 1
Turns Y40 ON since b19 is "1."
M0
Designation of b10 of D0
TEST(P),DTEST(P)
Instruction
Device
b0
b0
M0 turns ON/OFF depending on the ON/OFF
status of b10 of D0 (D0.A).
1
2
3
4
6
6
7
8
7-63

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents