Delta AS Series Programming Manual page 388

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

Example 2
1.
Suppose the values in S
calculates the scaled value, and stores the scaled value in D10.
2.
For the equation: D10=(500×-168)÷1,000+534=450
Additional remarks
1.
You must know the slope and the offset to use SCAL. If the slope and the offset are unknown, you can use the
SCLP instruction.
2.
When the 16-bit instruction is performed, the value entered into S
value in S
exceeds the range, use the SCLP instruction.
2
3.
When the 32-bit instruction is performed, the value entered into S
2,147,483,647. If the value in S
4.
When you use the slope equation, note that the maximum source value should be larger than the minimum source
value. However, the maximum destination value is not necessarily larger than the minimum destination value.
5.
For the 16-bit instruction, if the value in D is larger than 32,767, the value stored in D is 32,767. If the value in D is
less than -32,768, the value stored in D is -32,768.
6.
When the 32-bit instruction is performed, if the value in D is larger than 2,147,483,647, the value stored in D will be
2,147,483,6477. If the value in D is less than -2,147,483,648, the value stored in D will be -2,147,483,648.
, S
, and S
are 500, -168, and 534 respectively. When X0.0 is ON, the SCAL instruction
1
2
3
exceeds the range, use the SCLP instruction.
2
Ch a pt er 6 A pp l i e d I n s tr uc t io ns
must be between –32,768 to 32,767. If the
2
must be between -2,147,483,648 to
2
6_
6 - 1 0 9

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents