User manual

Highlevel Instructions
3 297
Description
Checks the state [on (1) or off (0)] of bit position specified by n in the 16-bit data specified by D. The judgment
result is output to special internal relay R900B (=flag).
The specified bit is checked by special internal relay R900B.
When the specified bit is on (1), special internal relay R900B (= flag) turns off.
When the specified bit is off (0), special internal relay R900B (= flag) turns on.
The “n” is decimal data specifying the bit position to be checked. Range of “n”: K0 to K15
n
····Bit position ·····
15 12 11 8 7 4 3 0
The data in bit positions
4 through 15 are invalid.
Range of “n”: K0 to K15 (H0 to HF)
———— ———— ————
0000
Precaution when the judgement flag R900B is used two or more times
The judgment flag R900B is updated each time an operation instruction or comparison instruction is
executed.
If the judgment flag is used two or more times,
the program in which the judgment flag is used should be input immediately following the instruction
which executes the judgment.
the flag should be output to output relays or internal relays for each separate instruction.
Flag conditions
Error flag (R9007): Turns on and stays on when the area specified using the index modifier
exceeds the limit.
Error flag (R9008): Turns on for an instant when the area specified using the index modifier
exceeds the limit.
= flag (R900B): Turns on for an instant when the specified bit to be checked is in the off (0)
state.