Skip to main content
Submitted by kennytsh@gmail.com on Thu, 04/16/2015 - 19:56

Recently we found out one of our linear motor stop its movement before reaching its destination.
So we did some checking on the driver and galil card.

1. Driver servo remain on without error
2. Galil error led indicator OFF
3. SC return 4 which is stands for "Decelerating or stopped by Stop Command (ST)"
4. TE return 0
5. TC1 return 0

Then we suspect this might be something related to the software.
After study we found out we do not have the full source code on the motor motion. What we know the C++ program send these commands

TS
After check condition
SHX
PAX = xxxxxx
BGX
=====================
Check Motion Function
MG_BGX
SCX
MG_AB
Encrypted function with ST command inside
=====================

We suspect that the calculation inside the encrypted function might have some issue. Is it possible to take out the Check Motion Function &
create a DMC program like this?
#MotionCompleteX
AMX
END

Then combine it with C++ function
TS
After check condition
SHX
PAX = xxxxxx
BGX
Call label #MotionCompleteX

We just need the motion done before continue our next sequence.

Why we want to combine in this way?
we do not have the galil motion c++ program source code, we only have some limited function like call label, move function, check position function.

Any ideas are appreciated. Thanks!

Comments 1