Delta Electronics DVP15MC11T Operation Manual page 450

Table of Contents

Advertisement

Programming Example 2
Capture the position converted from the number of pulses that the servo motor feeds back to the servo
drive according to axis parameters when the external signal triggers DI7 of servo's CN1 under Mode 2.
1.
The variable table and program
Variable name
NOT_EN
NOT_ENO
Touch1
Axis2
Touch1_Ex
Touch1_Tri
Touch1_Mode
Touch1_Done
Touch1_Bsy
Touch1_Act
Touch1_Abt
Touch1_Err
Touch1_ErrID
Touch1_Pos
2.
Timing Chart
Di7 o f s erv o's CN1
Touc h1_Ex
Touc h1_Don e
Tou ch1_ Bsy
Touc h1_Ac t
Tou ch1 _Abt
Touc h1_E rr
Touc h1_E rrI D
Touc h1_ Pos
When Touch1_Ex changes from FALSE to TRUE, Touch1_Bsy changes from FALSE to TRUE
in the first cycle and Touch1_Act changes from FALSE to TRUE in the second cycle.
When the execution of DMC_TouchProbe is finished after the external signal triggers DI7 of
servo's CN1, Touch1_Done changes from FALSE to TRUE and Touch1_Pos outputs the
position converted from the number of pulses which the servo motor feeds back to the servo
drive according to the axis parameters. Meantime Touch1_Bsy and Touch1_Act change from
TRUE to FALSE. When Touch1_Ex changes from TRUE to FALSE, Touch1_Done changes
from TRUE to FALSE and the position that Touch1_Pos captures will not be cleared to 0.
NOT_EN
E N
Touc h1_Done
In
DMC_TouchProbe
A xis2
Ax is
Touc h1_Ex
Ex ecut e
Touch1_Tri
Trigg erI nput
Windowonly
Firs tpos
Las tpos
Touc h1_Mode
Mode
Mas k
Data type
BOOL
BOOL
DMC_TouchProbe
USINT
BOOL
MC_Triggerinput
INT
BOOL
BOOL
BOOL
BOOL
BOOL
UINT
LREAL
1
NO T
ENO
NOT_E NO
Ou t
Touc h1_Ex
Touc h1
2
Done
Touch1_Done
Touc h1_Bsy
Busy
Act iv e
Touc h1_Act
CommandAborted
Touc h1_Abt
Erro r
Touc h1_Err
ErrorID
Touc h1_ErrID
Rec ordedPosition
Touc h1_Pos
Chapter 12 Troubleshooting
Initial value
FALSE
1
FALSE
2
11-127
11

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents