Hitachi HIDIC MICRO-EH Applications Manual page 109

Table of Contents

Advertisement

Item number
Arithmetic instructions-14
Ladder format
d = s1 XOR s2
Instruction format
d = s1 XOR s2
Usable I/O
d
Substitution destination
s1
Comparand
s2
Relational number
Function
Obtains exclusive OR (XOR) of s1 and s2, and substitutes the result into d.
s1
s2
0
0
0
1
1
0
1
1
Notes
The combinations of d, s1 and s2 are as follows:
d
Bit
Word
Double word
Double word
Program example
X00112
DIF112
WR0102= WR0100 XOR WR0101
Program description
At the leading edge of X00112, the XOR of WR0100 and WR0101 is set in WR0102.
WR0100 = H1234
When
WR0101 = H5678
WR0102 = H444C
Name
Condition code
R7F4
R7F3
R7F2
DER
ERR
SD
Number of steps
Condition
Bit, word
Double word
Bit
R,
TD, SS,
X
Y
M
CU, CT
WX WY
d
0
1
1
0
s1
s2
Bit
Bit
Word
Word
Double word
WR0100 = 0001001000110100
WR0101 = 0101011001111000
WR0102 = 0100010001001100
5-59
Chapter 5 Instruction Specifications
Exclusive OR
Processing time (µs)
R7F1
R7F0
Average Maximum
V
C
42
33
Steps
4
66
6
Word
Double word
WR,
DR,
WM TC DX DY
DM
LD X00112
AND DIF112
[
WR0102=WR0100 XOR WR0101
]
Remark
Upper case: B
Middle case: W
Lower case: DW
Other

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents