EasyManua.ls Logo

Delta DVP-20PM

Delta DVP-20PM
580 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...
5 Applied Instructions and Basic Usage
DVP-20PM Application Manual
5-136
API
Applicable model
20PM
203
D
D
SCLP
P
P
Parameter scale
Bit device Word device
X Y M S K H KnX KnY KnM KnS T C D V Z
S
1
S
2
S
3
D
Note: Please refer to specifications for more information about device
ranges.
16-bit instruction (7 steps)
SCLP
Continuity
instruction
SCLPP
Pulse
instruction
32-bit instruction (13 steps)
DSCLP
Continuity
instruction
DSCLPP
Pulse
instruction
Flag: M1162
Explanation
16-bit instruction:
The setting of S
2
is described below.
S
1
: Source device; S
2
: Parameter (Unit: 0.001); D: Destination device
Device
number
Parameter Setting range
S
2
Maximum source value -32768~32767
S
2
+1 Minimum source value -32768~32767
S
2
+2 Maximum destination value -32768~32767
S
2
+3 Minimum destination value -32768~32767
If the 16-bit instruction is used, S
2
will occupy four consecutive devices.
32-bit instruction: The setting of S
2
is decribed below.
Setting range
Device
number
Parameter
Integer Floating-point value
S
2
, S
2
+1 Maximum source value
S
2
+2, S
2
+3 Minimum source value
S
2
+4, S
2
+5 Maximum destination value
S
2
+6, S
2
+7 Minimum destination value
-2,147,483,648~
2,147,483,647
32-bit floating-point
values available
If the 32-bit instruction is used, S
2
will occupy eight consecutive devices.
Equation: D=[(S
1
–Minimum source value)×(Maximum destination
value–Minimum destination value)]÷(Maximum source value–Minimum source
value)+Minimum destination value
Relation between the source value in S
1
and the destination value in D:
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
After the parameters above are substituted for y, k, x, and b in the equation
y=kx+b, the equation below will be obtained.
y=kx+b=D=kS
1
+b=Slope×S
1
OffsetSlope×S
1
Minimum destination
value–Minimum source value×Slope=Slope×(S
1
–Minimum source value)
Minimum destination value =(S
1
–Minimum source value)×(Maximum destination
value–Minimum destination value)÷(Maximum source value–Minimum source
value)Minimum destination value
If the value in S
1
is greater than the maximum source value, the value in S
1
will
be equal to the maximum source value. If the value in S
1
is less than the
minimum source value, the value in S
1
will be equal to the minimum source
value. After input values and parameters are set, an output curve will be gotten.

Table of Contents

Other manuals for Delta DVP-20PM

Related product manuals