Download Print this page

YASKAWA Motoman NX100 Manual page 174

Hide thumbs Also See for Motoman NX100:

Advertisement

12.2 Instruction Description
WXOR Instruction
Format
WXOR S1, S2, D
S1: Source
S2: Source
D: Destination
Function
Exclusive OR operation between S1 and S2 is performed and the result is output to D when
the input signal is in ON state. The logic operation is performed in each correspondence bit of
S1 and S2.
D(S1∪S2)∩(S1∩S2)
S1
1100110011001100
S2
1010101010101010
D
0110011001100110
Ladder Program Example
The output cannot be done to the same relay two or more times.
NOTE
It is unable to use the multiple times outputs of the register used as a current position of the
TMR instruction and the CNT instruction.
<Ladder Diagram>
#70010
Register (M000-M499)
Decimal (0-65535)
Relay (byte)
Relay (word) W#XXXX0
Register (M000-M299)
Relay (byte)
Relay (word) W#XXXX0
Binary Data
Binary Data
Binary Data
M000
M001
WXOR
M010
12-26
#XXXX0
#XXXX0
< Program>
STR
#70010
WXOR
M000, M001, M010

Advertisement

loading