Hitachi HIDIC MICRO-EH Applications Manual page 108

Table of Contents

Advertisement

Item number
Arithmetic instructions-13
Ladder format
d = s1 AND s2
Instruction format
d = s1 AND s2
Usable I/O
d
Substitution destination
s1
Comparand
s2
Relational number
Function
Obtains AND 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
X00111
DIF111
WR0102 = WR0100 AND WR0101
Program description
At the leading edge of X00111, the AND of WR0100 and WR0101 is set in WR0102.
WR0100 = H1234
When
WR0101 = H5678
WR0102 = H1230
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
0
0
1
s1
s2
Bit
Bit
Word
Word
Double word
WR0100 = 0001001000110100
WR0101 = 0101011001111000
WR0102 = 0001001000110000
5-58
Chapter 5 Instruction Specifications
Logical AND
Processing time (µs)
R7F1
R7F0
Average Maximum
V
C
46
36
Steps
4
49
6
Word
Double word
WR,
DR,
WM TC DX DY
DM
LD X00111
AND DIF111
[
WR0102=WR0100 AND WR0101
]
Remark
Upper case: B
Middle case: W
Lower case: DW
Other

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents