A-35
Appendices
CP2E CPU Unit Software User’s Manual(W614)
A-1 Instruction Functions
App
A-1-15 Data Control Instructions
SCALING 2 SCL2 @ Converts signed binary data into signed BCD data according to
the specified linear function. An offset can be input in defining the
linear function.
P1: First Parameter Word
Note P1 to P1+2 must be in the same area.
Instruction Mnemonic Variations Symbol/Operand Function
SCL2(486)
S
P1
R
S: Source word
P1: 1st parameter word
R: Result word
ΔY
ΔX
ΔY
ΔX
ΔY
ΔX
ΔY
ΔX
P1
P1 + 1
P1 + 2
R (signed BCD)
Offset
R (signed BCD)
Offset
R (signed BCD)
Offset of 0000
Offset
(Signed BCD)
(Signed binary)
(Signed binary)
Offset = 0000 hex
S (signed
binary)
S (signed
binary)
S (signed binary)
Positive Offset Negative Offset
P1
P1+1
P1+2
15 0
15 0
15 0
Offset of linear function
8000 to 7FFF (signed binary)
8000 to 7FFF (signed binary)
0000 to 9999 (BCD)