Chapter 12 Troubleshooting
11
Distance
Distance
and the start position for reference jointly determine the target position which the axis will reach
under control of the instruction. The target position= the start position for ref
Distance
.
When
Distance
is set to 0, the target position for the axis motion is set as current position. The instruction
execution is finished in the next cycle since its execution and
Done
changes to TRUE.
As illustrated in the following left figure, the start position for reference is 10000. The axis moves in the
positive direction and the target position is 20000 (10000+10000) when Distance>0 (10000).
In the following right figure, the axis moves in the negative direction and the target position is 0
(10000-10000) when Distance<0(-10000).
Programming Example 1
The programming example is as follows when one MC_MoveRelative instruction is used.
1.
The variables and program
Variable name
Data type
Initial value
Pwr
MC_Power
Axis1
USINT
1
Pwr_En
BOOL
FALSE
Pwr_BM
MC_Buffer_Mode
0
Pwr_Sta
BOOL
Pwr_Bsy
BOOL
Pwr_Act
BOOL
Pwr_Err
BOOL
Pwr_ErrID
WORD
Rel
MC_MoveRelative
Rel _Ex
BOOL
FALSE
Rel _BM
MC_Buffer_Mode
0
Rel _Done
BOOL
Rel _Bsy
BOOL
Rel _Act
BOOL
Rel _Abt
BOOL
Rel _Err
BOOL
Rel _ErrID
WORD
Pos ition
20000
10000
Dis tanc e= 10000
Dist ance =-1000 0
P osit io n
200 00
100 00
S ta rt P osi ti on
Dista nce>0
D istance <0
Star t Po sitio n
Tar g et P osi tio n
Ta rg et Po siti on
Time
Time
0
11-39
Содержание DVP15MC11T
Страница 9: ...Memo viii...
Страница 15: ...DVP15MC11T Operation Manual _2 MEMO 2 4...
Страница 71: ...DVP15MC11T Operation Manual _7 Memo 7 10...
Страница 81: ...DVP15MC11T Operation Manual _8 Timing Chart F_TRG_CLK F_TRG_Q 8 10...
Страница 158: ...Chapter 8 Logic Instructions 8_ The program 1 ASIN EN ENO In Out ASIN_EN ASIN_In Out1 8 87...
Страница 213: ...DVP15MC11T Operation Manual _8 The program 1 LIMIT EN ENO MN Out MX In LIMIT_EN LIMIT_MN LIMIT_MX LIMIT_In Out1 8 142...
Страница 216: ...Chapter 8 Logic Instructions 8_ The program 1 BAND EN ENO MN Out MX In BAND_EN BAND_MN BAND_MX BAND_In Out1 8 145...
Страница 249: ...DVP15MC11T Operation Manual _8 8 178...
Страница 285: ...DVP15MC11T Operation Manual _8 Memo 8 214...
Страница 286: ...9 Chapter 9 Introductions of Axis Parameters Table of Contents 9 1 Description of Axis Parameters 9 2 9 1...
Страница 323: ...DVP15MC11T Operation Manual 10 MEMO 10 34...
Страница 549: ...DVP15MC11T Operation Manual A MEMO A 16...
Страница 571: ...DVP15MC11T Operation Manual C Memo C 10...
Страница 572: ...D Appendix D Explanation of Homing Modes Table of Contents D 1 Explanation of Homing Modes D 2 D 1...