5
Categories and Use of Basic Application Instructions
DVP-PM Application Manual
5-135
D
1
0
= 500
Slope=168
Offset=-4
Destination value
Source value
Program Example 2:
1. Assume
S
1
= 500,
S
2
= -168 and
S
3
= 534. When X0 = ON, SCAL instruction executes and the result of
proportional calculation will be stored in D10..
2.
Equation: D10 = (500 × -168 ) ÷ 1000+ 534 = 450
X10
SCAL
K500
K-168
K534
D10
Offset = 534
D
S = 500
1
0
Slope = -168
Destination value
Source value
Points to note:
1.
This instruction is applicable for known slope and offset. If slope and offset are unknown, please use SCLP
instruction for the calculation.
2.
S
2
has to be within the range -32,768 ~ 32,767. If
S
2
exceeds the applicable range, use SCLP instruction
instead.
3.
When adopting the slope equation, please note that the Max. source value must be larger than the min. source
value. However the max. destination value does not need to be larger than the min. destination value.
4. If
D
> 32,767,
D
will be set as 32,767. If
D
< -32,768,
D
will be set as -32,768.
Содержание DVP-10PM
Страница 1: ......
Страница 45: ...2 Hardware Specifications and Wiring DVP PM Application Manual 2 30 MEMO...
Страница 125: ...3 Functions of Devices in DVP PM DVP PM Application Manual 3 80 MEMO...
Страница 341: ...8 Application Examples DVP PM Application Manual 8 2 Trajectory 3 Trajectory 4...
Страница 427: ...9 Electrical CAM DVP PM Application Manual 9 74...
Страница 437: ...10 Encrypting User Program DVP PM Application Manual 10 10 MEMO...
Страница 458: ...11 G code Application DVP PM Application Manual 11 21 B O100 main program...
Страница 561: ...14 Appendix DVP PM Application Manual 14 4 MEMO...