Chapter 5 Instruction Specifications
5-9
R7F
4
R7F
3
R7F
2
R7F
1
R7F
0
Process
time
(
µ
s)
C
la
ssi
fica
tio
n
It
em
num
ber
Ladder symbol
In
str
ucti
on
sy
m
bol Instruction
name
Process descriptions
I/O types used
DER ERR SD
V
C
MICRO-EH
S
teps Remarks
Sh
if
t/r
otate
10 BSR(d, n)
BCD shift
right
Shifts BCD to right by n
digits.
[Word]
d: WY, WR, WM,
TC
n: WX, WY, WR,
WM, TC,
Constant
z z z z z
32
40
3
3
Upper
case: W
Lower
case: DW
11 BSL(d, n)
BCD shift
left
Shifts BCD to left by n
digits.
[Double word]
d: DY, DR, DM
n: WX, WY, WR,
WM, TC,
constant
z z z z z
32
39
3
3
Upper
case: W
Lower
case: DW
Tr
an
sf
er 12 MOV(d, s, n)
Block
transfer
Transfers (copies) n bits (or
words) of data from I/O
number s to the n bit (or
word) range from I/O
number s.
[Bit]
d, s: R, M
n(0-255): WX,
WY, WR, WM,
TC, Constant
↕
z z z z
153
4 *3
Upper
case: B
[Word]
d, s: WR, WM
n(0-255):WX,
WY, WR, WM,
TC, Constant
124
4 Lower
case: W
13 COPY(d, s, n)
Copy
Copies the bit (or word)
data of I/O number s to the
n bit (or word) range from
I/O number d.
[Bit]
d: R, M
s: X, Y, R, M,
Constant
n(0-255): WX,
WY, WR, WM,
TC, Constant
↕
z z z z
80
4 *3
Upper
case: B
[Word]
d: WR, WM
s, n(0-255): WX,
WY, WR, WM,
TC, Constant
73
4 Lower
case: W
14 XCG(d1, d2, n)
Block
exchange
Exchanges the n bit (or
word) range from I/O
number d1 and the n bit (or
word) range from I/O
number d2.
[Bit]
d1, d2: R, M
n(0-255): WX,
WY, WR, WM,
TC, Constant
↕
z z z z
139
4 *3
Upper
case: B
[Word]
d: WR, WM
n(0-255): WX,
WY, WR, WM,
TC,
Constant
120
4 Lower
case: W
15 NOT(d)
Reverse
Reverses the bit for the I/O
number d value.
[Bit]
Y, R, M
z z z z z
27
2 Upper
case: B
[Word]
WY, WR, WM
22
2 Middle
case: W
N
eg
atio
n / T
w
o'
s co
m
pl
em
ent / S
ig
n
[Double word]
DY, DR, DM
28
2 Lower
case: DW
16 NEG(d)
Two's
complement
Stores two's complement of
the value stored in I/O
number d, in d.
[Word]
WY, WR, WM
z z z z z
22
2 Upper
case: W
[Double word]
DY, DR, DM
29
2 Lower
case: DW
17 ABS(d, s)
Absolute
value
z z z z
↕
30
3 Upper
case: W
Stores the absolute value of
s in d, and the sign value of
s in carry (R7F0).
(0: Positive, 1: Negative)
41
4 Lower
case: DW
[Word]
d: WY, WR, WM
s: WX, WY, WR,
WM, TC,
Constant
[Double word]
d: DY, DR, DM
s: DX, DY, DR,
DM, Constant
d
0
→
d
←
0
Summary of Contents for HIDIC MICRO-EH
Page 1: ...HITACHI PROGRAMMABLE CONTROLLER APPLICATION MANUAL NJI 350B X ...
Page 12: ...MEMO ...
Page 14: ...Chapter 1 Features 1 2 MEMO ...
Page 50: ...Chapter 4 Product lineup and wiring 4 18 MEMO ...
Page 196: ...Chapter 5 Instruction Specifications 5 146 ...
Page 263: ...Chapter 11 Communication Specifications 11 10 MEMO ...