Chapter 12 Troubleshooting
11
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
Data type
Initial value
NOT_EN
BOOL
FALSE
NOT_ENO
BOOL
Touch1
DMC_TouchProbe
Axis2
USINT
1
Touch1_Ex
BOOL
FALSE
Touch1_Tri
MC_Triggerinput
Touch1_Mode
INT
2
Touch1_Done
BOOL
Touch1_Bsy
BOOL
Touch1_Act
BOOL
Touch1_Abt
BOOL
Touch1_Err
BOOL
Touch1_ErrID
UINT
Touch1_Pos
LREAL
1
2
NO T
E N
ENO
In
Ou t
NOT_EN
Touc h1_Done
NOT_E NO
Touc h1_Ex
DMC_TouchProbe
Ax is
Done
Touc h1
Ex ecut e
Trigg erI nput
Busy
Act iv e
Windowonly
Erro r
ErrorID
CommandAborted
Firs tpos
Las tpos
Mode
Mas k
Rec ordedPosition
A xis2
Touch1_Tri
Touc h1_Ex
Touc h1_Mode
Touch1_Done
Touc h1_Pos
Touc h1_ErrID
Touc h1_Err
Touc h1_Abt
Touc h1_Act
Touc h1_Bsy
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.
11-127
Summary of Contents for DVP15MC11T
Page 9: ...Memo viii...
Page 15: ...DVP15MC11T Operation Manual _2 MEMO 2 4...
Page 71: ...DVP15MC11T Operation Manual _7 Memo 7 10...
Page 81: ...DVP15MC11T Operation Manual _8 Timing Chart F_TRG_CLK F_TRG_Q 8 10...
Page 158: ...Chapter 8 Logic Instructions 8_ The program 1 ASIN EN ENO In Out ASIN_EN ASIN_In Out1 8 87...
Page 249: ...DVP15MC11T Operation Manual _8 8 178...
Page 285: ...DVP15MC11T Operation Manual _8 Memo 8 214...
Page 323: ...DVP15MC11T Operation Manual 10 MEMO 10 34...
Page 549: ...DVP15MC11T Operation Manual A MEMO A 16...