5
Categories and Use of Basic Application Instructions
DVP-PM Application Manual
5-137
7. If
S
1
> max. source value,
S
1
will be set as max. source value. If
S
1
< min. source value,
S
1
will be set as min.
source value. When the source value and parameters are set, the following output figure can be obtained:
D
1
Min. destination value
Max. Destination value
Destination value
Source value
Max.
source value
Min.
source value
8.
Flag: M1126. Flag for switching between decimal integer and binary floating point for SCLP instruction
ON: binary floating point; OFF: decimal integer
Program Example 1:
1. Assume
source
value
S
1
= 500, max. source value D0 = 3000, min. source value D1 = 200, max. destination
value D2 = 500, and min. destination value D3 = 30. When X0 = ON, SCLP instruction executes and the result
of proportional calculation will be stored in D10.
2.
Equation: D10 = [(500 – 200)
×
(500 – 30)]
÷
(3000 – 200) + 30 = 80.35. Rounding off the result into an
integer, D10 =80.
X0
SCLP
K500
D0
D10
X0
MOV
MOV
MOV
MOV
K3000
K200
K500
K30
D0
D1
D2
D3
D
0
S =500
1
= 30
= 500
Source value
Destination value
Summary of Contents for DVP-10PM
Page 1: ......
Page 45: ...2 Hardware Specifications and Wiring DVP PM Application Manual 2 30 MEMO...
Page 125: ...3 Functions of Devices in DVP PM DVP PM Application Manual 3 80 MEMO...
Page 341: ...8 Application Examples DVP PM Application Manual 8 2 Trajectory 3 Trajectory 4...
Page 427: ...9 Electrical CAM DVP PM Application Manual 9 74...
Page 437: ...10 Encrypting User Program DVP PM Application Manual 10 10 MEMO...
Page 458: ...11 G code Application DVP PM Application Manual 11 21 B O100 main program...
Page 561: ...14 Appendix DVP PM Application Manual 14 4 MEMO...