Delta Electronics AH500 Manual page 232

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

Advertisement

API
Instruction code
203
D
SCLP
Device
X
Y
M
S
1
S
2
D
 S
 16-bit instruction: The setting of S
E xp la nat io n
 If the 16-bit instruction is used, S
 32-bit instruction: The setting of S
 If the 32-bit instruction is used, S
 Flag: M1162 is a decimal integer/binary floating-point value flag. (ON:
 Equation: D=[(S
 Relation between the source value in S
 After the parameters above are substituted for y, k, x, and b in the
5 - 11 7
Operand
P
S
, S
1
S
K
16#
F
Pulse instruction 16-bit instruction (7 steps) 32-bit instruction (9 steps)
: Source device; S
: Parameter (Unit: 0.001); D: Destination device
1
2
Device
Parameter
number
S
Maximum source value
2
S
+1
Minimum source value
2
S
+2
Maximum destination value -32768~32767
2
S
+3
Minimum destination value
2
Device
Parameter
number
Maximum
S
, S
+1
2
2
source value
Minimum source
S
+2, S
+3
2
2
value
Maximum
S
+4, S
+5
2
2
destination value
Minimum
S
+6, S
+7
2
2
destination value
Binary floating-point value)
–Minimum source value)×(Maximum destination
1
value–Minimum destination value)]÷(Maximum source value–Minimum
source value)+Minimum destination value
y=kx+b
y=Destination value (D)
k=Slope=(Maximum destination value–Minimum destination
value)÷(Maximum source value–Minimum source value)
x=Source value (S
)
1
b=Offset =Minimum destination value–Minimum source value×Slope
equation y=kx+b, the equation below will be obtained.
y=kx+b=D=kS
+b=Slope×S
1
value–Minimum source value×Slope=Slope×(S
+Minimum destination value =(S
Ch ap te r 5 Ap plie d Instruc tions
, D
2
KnM KnS
D
W
is described below.
2
Setting range
-32768~32767
-32768~32767
-32768~32767
will occupy four consecutive devices.
2
is decribed below.
2
Setting range
Integer
-2,147,483,648~
2,147,483,647
will occupy eight consecutive devices.
2
and the destination value in D:
1
+Offset=Slope×S
+Minimum destination
1
1
–Minimum source value)
1
–Minimum source value)×(Maximum
1
Function
Parameter scale
T
C
V
Z
Floating-point
value
32-bit
floating-point
values available

Advertisement

Table of Contents
loading

Table of Contents