![Omron CJ1G-CPU series Programming Manual Download Page 142](http://html1.mh-extra.com/html/omron/cj1g-cpu-series/cj1g-cpu-series_programming-manual_742489142.webp)
121
Data Control Instructions
Section 3-16
DEAD ZONE
CONTROL
ZONE
@ZONE
682
Output
Required
SCALING
SCL
@SCL
194
Output
Required
SCALING 2
SCL2
@SCL2
486
Output
Required
Instruction
Mnemonic
Code
Symbol/Operand
Function
Location
Execution
condition
S: Input word
C: 1st limit word
D: Output word
ZONE(682)
S
C
D
Positive bias (C+1)
Output
Input
Negative bias (C)
Adds the specified bias to input data and outputs the result.
S: Source word
P1: 1st parameter
word
R: Result word
SCL(194)
S
P1
R
(BCD)
(BIN)
(BCD)
(BIN)
R (unsigned BCD)
Point A
Point B
S (unsigned binary)
P
P1 + 1
P1 + 2
P1 + 3
Converted
value
Converted
value
Scaling is performed according
to the linear function defined
by points A and B.
Converts unsigned binary data into unsigned BCD data according to the
specified linear function.
S: Source word
P1: 1st parameter
word
R: Result word
SCL2(486)
S
P1
R
∆
Y
∆
X
∆
Y
∆
X
∆
Y
∆
X
∆
Y
∆
X
R (signed BCD)
S (signed binary)
P1
P1 + 1
P1 + 2
Positive Offset
Offset
R (signed BCD)
S (signed
binary)
Negative Offset
Offset
R (signed BCD)
S (signed
binary)
Offset of 0000
Offset = 0000 hex
Offset
(Signed binary)
(Signed binary)
(Signed BCD)
Converts signed binary data into signed BCD data according to the specified
linear function. An offset can be input in defining the linear function.
Summary of Contents for CJ1G-CPU series
Page 3: ...iv...
Page 5: ...vi...
Page 21: ...xxii Conformance to EC Directives 6...
Page 169: ...148 Task Control Instructions Section 3 32...
Page 203: ...182 Programming Device Operations for Tasks Section 4 4...
Page 253: ...232 Using File Memory Section 5 3...
Page 337: ...316 Other Functions Section 6 11...
Page 347: ......
Page 369: ......
Page 373: ......
Page 379: ......
Page 381: ...360 Revision History...