6F3B0253
Basic Hardware and Function 163
7. Instructions
FUN 064 TEST Bit test
Expression
Input [ A TEST B ] Output
Function
When the input is ON, this instruction finds logical AND of A and B. Then if the result is not 0, sets
the output to ON.
Execution condition
Input Operation Output
OFF No execution OFF
ON Ex ecution W hen the result is not 0 ON
When the result is 0 OFF
Operand
Name Device Register Constant Index
X Y R S T. C. XWYWRWSW T C D I J K
ASource √√√√√√√√√√ √
BTest data √√√√√√√√√√ √
Example
Logical AND operation is executed for the data of RW07 and the constant data H0FFF, and if
the result is not 0, R00A is turned ON. (R00A is turned ON when any device from R070 to
R07B is ON.)
If the data of RW07 is H4008, R00A is turned ON.
FEDCBA9876543210
RW07 0100000000001000
4008
AND
Constant 0000111111111111
0FFF
Result is not 0
Result 0000000000001000 R00A comes ON