Omron CP1E CPU UNIT SOFTWARE User Manual page 387

Cp1e cpu unit software
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents