Appendices
A-18
CP2E CPU Unit Software User’s Manual(W614)
SHIFT N-BITS
RIGHT
NASR
@
Shifts the specified 16 bits(NASR) or
3
2 bits(NSRL) of word data
to the right by the specified number of bits.
C: Control word
•
NASR
•
NSRL
DOUBLE
SHIFT N-BITS
RIGHT
NSRL
@
A-1-8
Increment/Decrement Instructions
Instruction
Mnemonic
Variations
Symbol/Operand
Function
INCREMENT
BINARY
++
@
Increments the 4-digit hexadecimal content of the specified word
by 1.
DOUBLE
INCREMENT
BINARY
++L
@
Increments the
8
-digit hexadecimal content of the specified words
by 1.
DECREMENT
BINARY
−
−
@
Decrements the 4-digit hexadecimal content of the specified word
by 1.
DOUBLE DEC-
REMENT
BINARY
−
−
L
@
Decrements the
8
-digit hexadecimal content of the specified
words by 1.
INCREMENT
BCD
++B
@
Increments the 4-digit BCD content of the specified word by 1.
Instruction
Mnemonic
Variations
Symbol/Operand
Function
NASR(5
8
1)
D
C
D
:
Shift word
C
: Control word
Lost
N bits
Contents of
"a" or "0"
shifted in
15
8
0
11
7
12
C
0
No. of bits to shift: 00 to 10 Hex
Always 0.
Data shifted into register
0 Hex: 0 shifted in
8
Hex: Contents of rightmost bit shifted in
15
8
0
11
7
12
C
0
No. of bits to shift: 00 to 20 Hex
Always 0.
Data shifted into register
0 Hex: 0 shifted in
8
Hex: Contents of rightmost bit shifted in
NSRL(5
8
3)
D
C
D
:
Shift word
C
: Control word
++(590)
Wd
Wd
:
Word
Wd
Wd
++L(591)
Wd
Wd
:
Word
Wd+1
Wd
Wd+1
Wd
− −
(592)
Wd
Wd
:
Word
Wd
Wd
− −
L(593)
Wd
Wd
:
1st word
Wd+1
Wd
Wd+1
Wd
++B(594)
Wd
Wd
:
Word
Wd
Wd
Summary of Contents for SYSMAC CP Series
Page 3: ......
Page 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Page 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Page 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Page 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Page 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Page 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Page 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Page 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Page 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Page 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Page 577: ......