EasyManua.ls Logo

LS Industrial Systems XBC-E Series - Page 396

LS Industrial Systems XBC-E Series
542 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 6 Instruction Details
XBC E-Type Main Unit 6-279 Ve r. 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

Table of Contents

Related product manuals