configuration help needed
- lucky phil
- Offline
- Junior Member
-
- Posts: 24
- Thank you received: 0
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
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
- Posts: 23323
- Thank you received: 4948
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.
- lucky phil
- Offline
- Junior Member
-
- Posts: 24
- Thank you received: 0
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.
- Todd Zuercher
-
- Away
- Platinum Member
-
- Posts: 4996
- Thank you received: 1458
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
Please Log in or Create an account to join the conversation.
- lucky phil
- Offline
- Junior Member
-
- Posts: 24
- Thank you received: 0
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
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
- Posts: 23323
- Thank you received: 4948
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.
- Todd Zuercher
-
- Away
- Platinum Member
-
- Posts: 4996
- Thank you received: 1458
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.
- Rick G
-
- Offline
- Junior Member
-
- Posts: 26
- Thank you received: 155
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
Please Log in or Create an account to join the conversation.
- lucky phil
- Offline
- Junior Member
-
- Posts: 24
- Thank you received: 0
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.
- andypugh
-
- Offline
- Moderator
-
- Posts: 23323
- Thank you received: 4948
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.