2 Instructions
2-276 CP1E CPU Unit Instructions Reference Manual(W483)
SCL
Applicable Program Areas
Operands
P1: First Parameter Word
Operand Specifications
Instruction Mnemonic Variations Function
code Function
SCALING SCL @SCL 194 Converts unsigned binary data into unsigned BCD
data according to the specified linear function.
Symbol
SCL
Area Step program areas Subroutines Interrupt tasks
Usage OK OK OK
Operand Description Data type Size
S Source word UINT 1
P1 First parameter word LWORD 4
R Result word WORD 1

Note P1 to P1+3 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
SCL(194)
S
P1
R
P1
P1+1
P1+2
P1+3
15 0
15 0
15 0
15 0
Scaled value for point A (Ar)
0000 to 9999 (4-digit BCD)
Unscaled value for point A (As)
0000 to FFFF (binary)
Scaled value for point B (Br)
0000 to 9999 (4-digit BCD)
Unscaled value for point B (Bs)
0000 to FFFF (binary)