2 Instructions
2-280 CP1E CPU Unit Instructions Reference Manual(W483)
SCL2
Applicable Program Areas
Operands
P1: First Parameter Word
Operand Specifications
Instruction Mnemonic Variations Function
code Function
SCALING 2 SCL2 @SCL2 486
Converts signed binary data into signed BCD data
according to the specified linear function. An offset
can be input in defining the linear function.
Symbol
SCL2
Area Step program areas Subroutines Interrupt tasks
Usage OK OK OK
Operand Description Data type Size
S Source word INT 1
P1 First parameter word WORD 3
R Result word WORD 1

Note P1 to P1+2 must be in the same area.

Area Word addresses Indirect DM addresses Constants CF Pulse bits TR bits
CIO WR HR AR T C DM @DM *DM
S, P1, ROKOKOKOKOKOKOK OK OK --- --- --- ---
S: Source word
P1: First parameter word
R: Result word
SCL2(486)
S
P1
R
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)