Need to connect pin problem
02 Jun 2012 12:47 #20596
by cwebs
Replied by cwebs on topic Re:Need to connect pin problem Edited
Other one
Please Log in or Create an account to join the conversation.
02 Jun 2012 13:50 #20598
by BigJohnT
Replied by BigJohnT on topic Re:Need to connect pin problem Edited
I don't see anything wrong in your hal file. I assume that your loading halui in your ini file with
HALUI = halui
linuxcnc.org/docview/html/config/ini_con...id_sub_hal_section_a
Open up a watch window and put the parallel port pin in the watch window and cycle the machine power.
John
HALUI = halui
linuxcnc.org/docview/html/config/ini_con...id_sub_hal_section_a
Open up a watch window and put the parallel port pin in the watch window and cycle the machine power.
John
Please Log in or Create an account to join the conversation.
02 Jun 2012 15:08 #20599
by cwebs
Replied by cwebs on topic Re:Need to connect pin problem Edited
Hal Configuration/pins/halui/machine/is-on shows the watch light changing from red to yellow OK.
Hal Configuration/pins/parport/0/pin-16-out shows no change. light stays red.
HALUI = halui is in the ini file. Here is the .ini file. I have made no entries to the .ini. Carl
Hal Configuration/pins/parport/0/pin-16-out shows no change. light stays red.
HALUI = halui is in the ini file. Here is the .ini file. I have made no entries to the .ini. Carl
Please Log in or Create an account to join the conversation.
02 Jun 2012 15:32 #20600
by BigJohnT
Replied by BigJohnT on topic Re:Need to connect pin problem Edited
I see nothing strange in your ini and it looks ok.
What about the signal when you put it into a watch window what do you see?
John
What about the signal when you put it into a watch window what do you see?
John
Please Log in or Create an account to join the conversation.
02 Jun 2012 15:38 #20601
by ArcEye
Replied by ArcEye on topic Re:Need to connect pin problem Edited
Hi
You have posted hal files called Carl_s_hal.hal and Carl_s_CNC.hal whereas the .ini file names your .hal file as
Carl's_CNC.hal
Linux is literal and case sensitive plus having an apostrophe in a file name breaks file naming conventions.
Is Linuxcnc finding the file you mean it to, or does it keep reading one called Carl's_CNC.hal which is why none of the changes you make in another slightly differently named file work?
regards
You have posted hal files called Carl_s_hal.hal and Carl_s_CNC.hal whereas the .ini file names your .hal file as
Carl's_CNC.hal
Linux is literal and case sensitive plus having an apostrophe in a file name breaks file naming conventions.
Is Linuxcnc finding the file you mean it to, or does it keep reading one called Carl's_CNC.hal which is why none of the changes you make in another slightly differently named file work?
regards
Please Log in or Create an account to join the conversation.
02 Jun 2012 15:50 #20603
by BigJohnT
Replied by BigJohnT on topic Re:Need to connect pin problem Edited
I commented out your estop input and changed the signal name
net machine-is-on halui.machine.is-on => parport.0.pin-16-out
# net estop-ext <= parport.0.pin-10-in-not
and put the estop loop back in
net estop-out => iocontrol.0.emc-enable-in
and commented out both your custom and postgui as well as your joystick.
And the attached files work fine for me now.
John
net machine-is-on halui.machine.is-on => parport.0.pin-16-out
# net estop-ext <= parport.0.pin-10-in-not
and put the estop loop back in
net estop-out => iocontrol.0.emc-enable-in
and commented out both your custom and postgui as well as your joystick.
And the attached files work fine for me now.
John
Please Log in or Create an account to join the conversation.
02 Jun 2012 16:38 #20605
by cwebs
Replied by cwebs on topic Re:Need to connect pin problem Edited
I renamed everything to carl
Swapped the files.
Well that worked! now, How do I get my joypad back?
Now you got me pulling chest hairs out. What's next??
Swapped the files.
Well that worked! now, How do I get my joypad back?
Now you got me pulling chest hairs out. What's next??
Please Log in or Create an account to join the conversation.
02 Jun 2012 18:01 #20606
by BigJohnT
Replied by BigJohnT on topic Re:Need to connect pin problem Edited
In your main ini file uncomment the last line by removing the # in front of loadusr.
Test run that.
John
Test run that.
John
Please Log in or Create an account to join the conversation.
02 Jun 2012 18:04 #20607
by BigJohnT
Replied by BigJohnT on topic Re:Need to connect pin problem Edited
In your ini file uncomment the two HAL entries for custom.hal and postgui.hal. Make sure you file name is postgui.hal.
Test that.
John
Test that.
John
Please Log in or Create an account to join the conversation.
02 Jun 2012 18:47 #20608
by cwebs
Replied by cwebs on topic Re:Need to connect pin problem Edited
BigJohnT wrote:
Removed the comment and no change. Program runs and pin 16-out works the relay. Joypad dead.
This line is not in the .ini. It is in the .halIn your main ini file uncomment the last line by removing the # in front of loadusr.
Test run that.
John
Removed the comment and no change. Program runs and pin 16-out works the relay. Joypad dead.
Please Log in or Create an account to join the conversation.
Time to create page: 0.101 seconds