How do you assign HOME and MAXLIM to one pin?

More
22 Jul 2010 17:23 #3461 by jimmyservo
Hello all. This is a repeat post because I put it in the wrong area (HAL). I think I broke my CNC mill by upgrading to EMC2.3.5.
Here are the machine specs:
Interface: Pico Systems PPMC (ENC, DAC, DIO)
Motors: Yaskawa SGM-0xA31x series (100, 200, 400 watt)
Drives: Yaskawa SGDA-0xAS series
Limit / Home Switches: AutomationDirect CR8-AN-2F prox switch NPN normal open

Homing worked fine using the Max Limit prox as Home until I upgraded to EMC2.3.5. (see sample config below). Now I get an error saying I cannot assign 2 signal names to 1 pin.
I understand that "linksp" and "newsig" have been replaced by "net" ,but worst is that assigning multiple signal names (like Xmaxlim AND Xhome) to a single pin is now treated as an error!!!

newsig Xminlim bit
newsig Xmaxlim bit
newsig Xhome bit
linksp Xminlim <= ppmc.0.din.01.in-not
linksp Xminlim => axis.0.neg-lim-sw-in
linksp Xmaxlim <= ppmc.0.din.02.in-not
linksp Xmaxlim => axis.0.pos-lim-sw-in
linksp Xhome <= ppmc.0.din.02.in-not
linksp Xhome => axis.0.home-sw-in

Anyone out there know how to translate my old ppmc_io.hal file?

Thank you!
jimmyservo

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

More
22 Jul 2010 23:35 #3464 by cmorley
a pin may only drive one signal.
only one pin can drive a signal
but a signal can drive many pins

so for
linksp Xmaxlim <= ppmc.0.din.02.in-not
linksp Xhome <= ppmc.0.din.02.in-not

switch to :
net Xmax-home <= ppmc.0.din.02.in-not
net Xmax-home => axis.0.pos-lim-sw-in
net Xmax-home => axis.0.home-sw-in

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

More
22 Jul 2010 23:35 #3465 by BigJohnT
I see you got your answer on the mailing list but for the lurkers the answer is here

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

John

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

More
31 Jul 2010 20:48 #3536 by jimmyservo
Yep, and here's the resulting "translation" to net:

net Xminlim <= ppmc.0.din.01.in-not => axis.0.neg-lim-sw-in
net Xmaxlim <= ppmc.0.din.02.in-not => axis.0.pos-lim-sw-in => axis.0.home-sw-in

. . . and while EMC2 is running type this into a terminal window:

halcmd show sig

. . . to verify the signals and pins.

I am closer to a working mill.:cheer:
Thanks everybody!
jimmyservo

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

More
01 Aug 2010 13:00 #3542 by BigJohnT
You can also go to Machine/Show HAL Configuration and see all the connections and watch the state of pins and signals...

John

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

Moderators: cncbasher
Time to create page: 0.063 seconds
Powered by Kunena Forum