Chapter 6 Instruction Details
XBC E-Type Main Unit
6-279
Ver. 1
2) Program example
(1) SCAL program scales value between 0 and 16000 to value between 100 and 200.
P00000
SCAL D0 D100 D200 D1000
D100 = 16000
D101 = 0
D200 = 200
D201 = 100
subsitution
input
D0
-100
0
5000
16000
18000
output
D1000
100
100
131
200
200
(2) RSCAL program scales value between 0 and 1000 to value between 2000 and 1000.
P00000
RSCAL D0 D100 D200 D1000
D100 = 1000
D102 = 0
D200 = 1000
D202 = 2000
substitution
input
D0
-100
0
300
1000
1100
output
D1000
2000
2000
1700
1000
1000
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...