Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
7-62
TEST(P),DTEST(P)
(3) The position designated by indicates the position of an individual bit in a 2-word data
block (0 to 31). When 32 or more is designated at , the target is the bit data at the position
indicated by the remainder of n / 32. For example, when n 34, the target is the data at b2
since the remainder of 34 / 32 1 is "2".
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] [List Mode]
[Operation]
S2
S2
S1
D
b15 b0b31 b16b21
S1
+1
bit
S2
S2
(When =21)
Step Instruction Device
1
0
1 1
0 0
1 1
0
1 1
0
1
0
1
0
D0
b0b15 b10
Turns M0 OFF since b10 is "0."
0 0
1
0 0
1 1 1 1
0
1
0
0 0 0
1
D0
b0b15 b10
Turns M0 ON since b10 is "1."