Delta Electronics AH500 Manual page 230

Motion control module
Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
202
SCAL
Device
X
Y
M
S
1
S
2
S
3
D
E xp la nat io n
E xamp le 1
5 - 11 5
Operand
P
S
, S
1
S
K
16#
F
Pulse instruction 16-bit instruction (7 steps) 32-bit instruction
S
: Source device; S
: Slope (Unit: 0.001); S
1
2
device
The values in S
, S
, and S
1
2
Equation: D=(S
×S
)÷1000+S
1
2
To obtain the value in S
round the result to the nearest integer, and get a 16-bit integer. To obtain
the value in S
, the users have to use the offset equation below, round
3
the result to the nearest integer, and get a 16-bit integer.
Slope equation: S
=[(Maximum destination value–Minimum destination
2
value)÷(Maximum source value–Minimum source value)]×1,000
Offset equation: S
= Minimum destination value–Minimum source
3
value×S
÷1,000
2
Output curve
Minimum source value
Suppose the values in S
When X0.0 is ON, the instruction SCAL is executed, and a scale is
stored in D0.
Equation: D0=(500×168)÷1000+(-4)=80
X0.0
Ch ap te r 5 Ap plie d Instruc tions
, S
, D
2
3
KnM KnS
D
W
: Offset; D: Destination
3
must be in the range of -32767 to 32767.
3
3
, users have to use the slope equation below,
2
Destinati on value
Maximum destination value
D
S
Maximum sourc e value
1
Minimum des tination value
, S
, and S
are 500, 168, and -4 respectively.
1
2
3
SCAL
K500
K 168
Function
Scale
T
C
V
Z
Sourc e value
K -4
D0

Advertisement

Table of Contents
loading

Table of Contents