Can I have an output for "MACHINE ON" condition

More
17 Jul 2010 20:02 #3398 by ichudov
I am trying to run a Bridgeport Series II Interact 2 CNC mill and I am converting it to use with EMC.

So far it is going well. I am using PPMC.

However, I have one problem:

If I am out of estop, but without "machine on", the servo drives drift slowly and, as a result, the tables move very slowly.

I do not like this, as it will end up with a machine crash one day. What I want is to supply power to servo drives ONLY in "MACHINE ON" condition. In "machine on", drift is not a problem, as EMC holds position.

So: how can I tell EMC to send signal on some digital output pin, so that the motion power contactor would only be activated in "MACHINE ON" condition.

Thanks :woohoo:

Please Log in or Create an account to join the conversation.

More
18 Jul 2010 13:06 #3405 by BigJohnT
You will want to take a look at:

axis.N.amp-enable-out OUT bit

TRUE if the amplifier for this joint should be enabled

www.linuxcnc.org/docview/html//hal_basic_hal.html

John

Please Log in or Create an account to join the conversation.

More
22 Jul 2010 17:09 #3460 by jimmyservo
This worked for me:

In the ppmc.ini file under the HAL section type:

HALUI = halui

then, in the ppmc_io.hal file type:

# connect machine is on to I/O controller
newsig MachineIsOn bit
linksp MachineIsOn <= ppmc.0.dout.06.out
linksp MachineIsOn => halui.machine.is-on

This turns on output 6, but you can make that whatever you want to enable your servos.
F1 on the keyboard releases the E-stop, F2 enables your servos. No drift!:)

Please Log in or Create an account to join the conversation.

Time to create page: 0.067 seconds
Powered by Kunena Forum