Need to connect pin problem

More
02 Jun 2012 12:47 #20596 by cwebs
Other one

File Attachment:

File Name: Carl_s_CNC.hal
File Size:3 KB
Attachments:

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

More
02 Jun 2012 13:50 #20598 by BigJohnT
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

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

More
02 Jun 2012 15:08 #20599 by cwebs
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

File Attachment:

File Name: Carl_s_CNC.ini
File Size:2 KB
Attachments:

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

More
02 Jun 2012 15:32 #20600 by BigJohnT
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

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

More
02 Jun 2012 15:38 #20601 by ArcEye
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

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

More
02 Jun 2012 15:50 #20603 by BigJohnT
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

File Attachment:

File Name: carl.zip
File Size:3 KB
Attachments:

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

More
02 Jun 2012 16:38 #20605 by cwebs
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??

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

More
02 Jun 2012 18:01 #20606 by BigJohnT
In your main ini file uncomment the last line by removing the # in front of loadusr.

Test run that.

John

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

More
02 Jun 2012 18:04 #20607 by BigJohnT
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

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

More
02 Jun 2012 18:47 #20608 by cwebs
BigJohnT wrote:

In your main ini file uncomment the last line by removing the # in front of loadusr.

Test run that.

John

This line is not in the .ini. It is in the .hal

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
Powered by Kunena Forum