3. Instructions
676
CS/CJ/NSJ Series Instructions Reference Manual (W474)
SCL2
Applicable Program Areas
Operands
P1: First Parameter Word
z 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
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage OK OK OK 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/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
S
OK OK OK OK OK OK OK OK OK OK ---
OK
--- OK --- --- --- ---P1 ---
R OK
S: Source word
P1: First parameter word
R: Result word
SCL2(486)
S
P1
R
∆Y
∆X
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)