View Full Version : Testing for drive enable?


murphy625
04-06-2005, 02:36 AM
Short of running a wire from my Galil ICM2900 EnableX pin to an input and then testing the input for 1 or 0, is there a way to test to see if the galil card has the X axis enable=true or false?

I know there is a command to test for Moving, but I just want to know if the enable circuit is true or false without using an input. I dont care if its moving or not..

Thanks
Murphy

Al_The_Man
04-06-2005, 09:52 AM
I assume you want to record when the AEN is activated by the MO motor off command?
If so, if you look in the command Summary for Galil, the MO command can be interogated
e.g. Var=_MOX , this will record the status of the X axis off command in Var(iable).
Al

camsoft
04-06-2005, 10:42 AM
Murphy,

Answers to a few question from today.

(1) WAITUNTIL #19=1 '#19 is an output

Since #19 is an output, you can:
(a) Click on the #19 relay light on the Digital I/O panel to change states
(b) Use the FAKE command
(c) Type #19=1 in Diagnostic
(d) Hit Esc

(2) Amp Enable.
Al is correct here. We would also say the input is important to react to since the amp itself may be in distress or over heated.

(3) If you're using the default Jogging then this has 'plug and play" jog features by default. You can customize this using the JOG.FIL file but it will work without any customization.

Tech Support
CamSoft Corp.
(951) 674-8100
support@camsoftcorp.com
www.cnccontrols.com

murphy625
04-06-2005, 01:55 PM
Murphy,
(1) WAITUNTIL #19=1 '#19 is an output
Since #19 is an output, you can:
(a) Click on the #19 relay light on the Digital I/O panel to change states
(b) Use the FAKE command
(c) Type #19=1 in Diagnostic
(d) Hit Esc

(2) Amp Enable.
Al is correct here. We would also say the input is important to react to since the amp itself may be in distress or over heated.
]

(a) is not an option because that panel wont be open during normal run and the machine needs to break-out by itself.

(b). This is interesting.. FAKE I search the help files and got nothing on this one. Never even heard of it.. I dont have the paper manual with me, but I dont recall seeing it in there either.

(c) goes back to (a) so it wont work.

(d) Doesnt Esc end program?? We dont want to do that either.. I just want to break out of the wait..

I think if there is no way to break out of it then I am going to replace the WAITUNTIL with a GOTO LOOP code. (at least I can break out of that easy)

(2) Al is correct here.. (YES Al is like that often!) :D

Thanks for the advice! You folks are a big big help!!!
Murphy

murphy625
04-06-2005, 01:58 PM
I assume you want to record when the AEN is activated by the MO motor off command?
If so, if you look in the command Summary for Galil, the MO command can be interogated
e.g. Var=_MOX , this will record the status of the X axis off command in Var(iable).
Al


Yes.. That's it.. Thank you AGAIN Al...
I am obviously not very familiar with the galil commands. The SH and MO commands you taught me have really made things easier!!!

Can I say thanks again??? LOL

Thanks
Murphy

murphy625
04-06-2005, 04:04 PM
FIXED IT !!!

I used a loop command and just checked a variable then :EXIT if true.

Thanks,
Murphy