configuration help needed

More
05 Jul 2016 13:09 #77029 by lucky phil
Hi
I am getting further with my machine but need some help.
I am trying to setup buttons in a pyvcp, I have got some of them working. I have some buttons that I want to be able to touch off with on individual axes's rather than using the touch off button on the main axis screen & I am having trouble trying to get O words to work.
I have copies some bits of Jerry's config as I thought it would be easier to have <cmd-01> type files to make it easier to add MDI commands.
I have got a button and led in my panel for activating the coolant mist & flood but cant get the buttons & leds to work together as i've been using the same halpin and linux doesnt like it.
attached are my config files, in my hal file any line with ##### is there so I can edit my configs on my laptop as it doesn't have a parallel port and it wont run my config without #ing them out.
Not sure whether I have explained this clearly enough for anyone to understand what I exactly want but can clarify if needed.
Regards
Philip
Attachments:

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

More
06 Jul 2016 13:22 #77080 by andypugh
Replied by andypugh on topic configuration help needed
One thing I do see is that at least one file is faulty.

origin-z.ngc is:
o<home-x> sub
G00 Z1
o<home-z> endsub
M2

The O sub and O endsub tags don't match.

Also, you probably want to use G53 G00 Z1

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

More
07 Jul 2016 06:36 #77127 by lucky phil
Thanks Andy
I will change it tonight and give it another try.
Do you know the command I can use for a halpin to use with my panel buttons to home individual axis'
regards
Philip

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

More
07 Jul 2016 11:39 - 07 Jul 2016 11:49 #77138 by Todd Zuercher
The hal pin to home one at a time would be.
halui.joint.N.home

What the exact command in your hal file will depend on how your hardware is connected.
if for example your button to home joint 0 (the x-axis) would be connected to parallel port 0 pin 10 a line you could use in your hal file might be:
net home0 <= parport.0.pin-10-in => halui.joint.0.home
Last edit: 07 Jul 2016 11:49 by Todd Zuercher.

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

More
08 Jul 2016 07:16 - 08 Jul 2016 07:17 #77170 by lucky phil
Hi Todd
Thanks but forgive me, What I meant to ask is the command to touch off on an individual axis instead of using the touch off on the main screen.
Philip
Last edit: 08 Jul 2016 07:17 by lucky phil.

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

More
08 Jul 2016 09:12 #77173 by andypugh
Replied by andypugh on topic configuration help needed

What I meant to ask is the command to touch off on an individual axis


"Touch-off" is actually a G10 command.
linuxcnc.org/docs/2.7/html/gcode/g-code.html#gcode:g10-l1

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

More
08 Jul 2016 13:34 #77178 by Todd Zuercher
To set that up for use with a button you could use a halui MDI command.
linuxcnc.org/docs/2.7/html/gui/halui.html
Where you can use a hal pin signal to trigger a predefined mdi command such as G10...

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

More
09 Jul 2016 06:51 - 09 Jul 2016 06:53 #77208 by Rick G
Replied by Rick G on topic configuration help needed
An example of MDI commands for "touching off" In the ini file
taken from wiki.linuxcnc.org/cgi-bin/wiki.pl?Adding...imple_Remote_Pendant

# # # # #
#Uncomment and use the following MDI_COMMANDS in the .ini file in the HALUI section"
#these four set each axis to zero similar to touch off, but using G10 you can change to numbers to reflect the size of #your edge finder these must be in the proper order
#MDI_COMMAND = G10 L20 P1 X-.125
#MDI_COMMAND = G10 L20 P1 Y-.125
#MDI_COMMAND = G10 L20 P1 Z0.000
#MDI_COMMAND = G10 L20 P1 W0.000


Rick G
Last edit: 09 Jul 2016 06:53 by Rick G.

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

More
10 Jul 2016 10:56 #77246 by lucky phil
thanks guys
I have now got my individual touch off buttons working along with buttons to release back to home & some to move to 0 positions.
I am now going to have a read about classic ladder as I want to be able to pulse my mist output for a cutter lube/coolant mist, and be able to adjust on & off times for it from the panel.
thanks again to all and feel free to send me samples of code if you have any.
Philip

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

More
11 Jul 2016 13:45 #77291 by andypugh
Replied by andypugh on topic configuration help needed

I am now going to have a read about classic ladder as I want to be able to pulse my mist output for a cutter lube/coolant mist, and be able to adjust on & off times for it from the panel.


It is probably worth learning about CL anyway, but you could do what you want by feeding a siggen HAL component into a oneshot HAL component.

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

Time to create page: 0.158 seconds
Powered by Kunena Forum