just 1 axis
13 Oct 2011 11:52 #13889
by BigJohnT
Replied by BigJohnT on topic Re:just 1 axis
If I read this correctly you have a relay tied to your drive inhibit input. If that relay is wired to inhibit the drive until the relay is on then use axis enable to pull in that relay via a gpio output. This way the drive will come alive only when EMC is ready to control the drive.
John
John
Please Log in or Create an account to join the conversation.
13 Oct 2011 12:13 #13890
by bill.j
Replied by bill.j on topic Re:just 1 axis
thanks john,
Yes, that's correct. But, hmm, how could I exactly do that? And how about this inverting that PCW said?
Yes, that's correct. But, hmm, how could I exactly do that? And how about this inverting that PCW said?
Please Log in or Create an account to join the conversation.
13 Oct 2011 13:51 - 13 Oct 2011 13:53 #13891
by BigJohnT
Replied by BigJohnT on topic Re:just 1 axis
Well, you could wire through the normally closed contact on the relay to the inhibit pin on your drive. This way when the drive power is on the drive it is inhibited.
Use an output from EMC to turn on the relay with drive enable bit.
The hal line might look like this:
net enable-x axis.0.amp-enable-out => hm2_5i23.0.gpio. some pin number
Also you have to tell hostmot2 that you want to use a pin as an output.
www.linuxcnc.org/docview/html/hal_basic_hal.html
www.linuxcnc.org/docview/html/drivers_hostmot2.html#r1_12
John
Use an output from EMC to turn on the relay with drive enable bit.
The hal line might look like this:
net enable-x axis.0.amp-enable-out => hm2_5i23.0.gpio. some pin number
Also you have to tell hostmot2 that you want to use a pin as an output.
www.linuxcnc.org/docview/html/hal_basic_hal.html
www.linuxcnc.org/docview/html/drivers_hostmot2.html#r1_12
John
Last edit: 13 Oct 2011 13:53 by BigJohnT.
Please Log in or Create an account to join the conversation.
Time to create page: 0.092 seconds