How to convert a basic machine with Axis GUI to PlasmaC Gmoccapy GUI
20 Apr 2020 06:22 - 20 Apr 2020 06:25 #164776
by phillc54
This should be close for the thcad:
# Keep your plasmac i/o connections here to prevent them from
# being overwritten by updates or pncconf/stepconf changes
# Other customisations may be placed here as well
# This file is built by the configurator in your configuration directory
#***** debounce for the float switch *****
# the lower the delay here the better
# each 1 is a 0.001mm (0.00004") increase in probed height result
loadrt debounce cfg=3
setp debounce.0.delay 5
addf debounce.0 servo-thread
#***** arc voltage lowpass cutoff frequency *****
#***** change to the cutoff frequency you require *****
setp plasmac.lowpass-frequency 0
#***** the joint associated with the Z axis *****
net plasmac:axis-position joint.3.pos-fb => plasmac.axis-z-position
#***** encoder for thcad *****
loadrt encoder num_chan=1
setp encoder.0.counter−mode 1
setp encoder.0.position−scale -1
addf encoder base-thread
net arc-voltage-raw parport.1.pin-04-in encoder.0.phase-A
net plasmac:arc-voltage-in encoder.N.velocity => plasmac.arc-voltage-in
net plasmac:float-switch parport.1.pin-02-in => debounce.0.0.in
# net plasmac:breakaway {YOUR BREAKAWAY PIN} => debounce.0.1.in
# net plasmac:ohmic-probe {YOUR OHMIC PROBE PIN} => debounce.0.2.in
# net plasmac:ohmic-enable plasmac.ohmic-enable => {YOUR OHMIC ENABLE PIN}
net plasmac:torch-on => parport.0.pin-01-out
# a 1 here allows multiple tools to be used
# gcode M3 S1 needs to be changed to:
# M3 $0 S1 for the plasma torch
# M3 $1 S1 for the scribe
# M3 $2 S1 for spotting
setp plasmac.multi-tool 0
# net plasmac:scribe-arm plasmac.scribe-arm => ***YOUR_SCRIBE_ARMING_OUTPUT***
# net plasmac:scribe-on plasmac.scribe-on => ***YOUR_SCRIBE_ON_OUTPUT***
Replied by phillc54 on topic How to convert a basic machine with Axis GUI to PlasmaC Gmoccapy GUI
I don't know what to say, it worked fine here albeit on a sim config. I'll have a look through your hal file.We have tried the HOME_SEQUENCE things, over and over and in different ways, and it just doesn't work. Gmoccapy hangs and returns errors. And where do I find the debug file if I create that ? Something else that bugs me, where to find debugging files. Anyway, Gmoccapy just doesn't work for us and it will be interesting to see actual ini and hal files of gantry machines that do work with Gmoccapy, we are losing faith in the whole business.
This should be close for the thcad:
Warning: Spoiler!
# Keep your plasmac i/o connections here to prevent them from
# being overwritten by updates or pncconf/stepconf changes
# Other customisations may be placed here as well
# This file is built by the configurator in your configuration directory
#***** debounce for the float switch *****
# the lower the delay here the better
# each 1 is a 0.001mm (0.00004") increase in probed height result
loadrt debounce cfg=3
setp debounce.0.delay 5
addf debounce.0 servo-thread
#***** arc voltage lowpass cutoff frequency *****
#***** change to the cutoff frequency you require *****
setp plasmac.lowpass-frequency 0
#***** the joint associated with the Z axis *****
net plasmac:axis-position joint.3.pos-fb => plasmac.axis-z-position
#***** encoder for thcad *****
loadrt encoder num_chan=1
setp encoder.0.counter−mode 1
setp encoder.0.position−scale -1
addf encoder base-thread
net arc-voltage-raw parport.1.pin-04-in encoder.0.phase-A
net plasmac:arc-voltage-in encoder.N.velocity => plasmac.arc-voltage-in
net plasmac:float-switch parport.1.pin-02-in => debounce.0.0.in
# net plasmac:breakaway {YOUR BREAKAWAY PIN} => debounce.0.1.in
# net plasmac:ohmic-probe {YOUR OHMIC PROBE PIN} => debounce.0.2.in
# net plasmac:ohmic-enable plasmac.ohmic-enable => {YOUR OHMIC ENABLE PIN}
net plasmac:torch-on => parport.0.pin-01-out
# a 1 here allows multiple tools to be used
# gcode M3 S1 needs to be changed to:
# M3 $0 S1 for the plasma torch
# M3 $1 S1 for the scribe
# M3 $2 S1 for spotting
setp plasmac.multi-tool 0
# net plasmac:scribe-arm plasmac.scribe-arm => ***YOUR_SCRIBE_ARMING_OUTPUT***
# net plasmac:scribe-on plasmac.scribe-on => ***YOUR_SCRIBE_ON_OUTPUT***
Last edit: 20 Apr 2020 06:25 by phillc54.
Please Log in or Create an account to join the conversation.
20 Apr 2020 06:27 #164778
by rodw
Replied by rodw on topic How to convert a basic machine with Axis GUI to PlasmaC Gmoccapy GUI
Can you remove the comments in parenthesis from the HOME_SEQUENCE lines? Unless there has been an enhancement, comments of any kind on the same line as an entry is not permitted in HAL and INI files.
To debug, open a command line window and start linuxcnc by typing linuxcnc and press enter. Any errors will be printed on the screen.
To debug, open a command line window and start linuxcnc by typing linuxcnc and press enter. Any errors will be printed on the screen.
Please Log in or Create an account to join the conversation.
20 Apr 2020 06:29 #164780
by phillc54
Replied by phillc54 on topic How to convert a basic machine with Axis GUI to PlasmaC Gmoccapy GUI
Please Log in or Create an account to join the conversation.
20 Apr 2020 07:39 - 20 Apr 2020 07:44 #164798
by bbsr_5a
Replied by bbsr_5a on topic How to convert a basic machine with Axis GUI to PlasmaC Gmoccapy GUI
@ philip
is it posible to make for bestter understandin of the entrys a 3rd Col to the Table 5.3
so the
Arc OK COL0
Modes 1 and 2 only COL1
the HAL pin you have connected your arc ok signal to
hm2_7i92.0.gpio.015.in COL2
parport.0.pin-10-in-not
is it posible to make for bestter understandin of the entrys a 3rd Col to the Table 5.3
so the
Arc OK COL0
Modes 1 and 2 only COL1
the HAL pin you have connected your arc ok signal to
hm2_7i92.0.gpio.015.in COL2
parport.0.pin-10-in-not
Last edit: 20 Apr 2020 07:44 by bbsr_5a. Reason: table problem
Please Log in or Create an account to join the conversation.
20 Apr 2020 07:45 #164799
by phillc54
Replied by phillc54 on topic How to convert a basic machine with Axis GUI to PlasmaC Gmoccapy GUI
Do you mean add another column with example connections?
If so that is probably a good idea.
If so that is probably a good idea.
Please Log in or Create an account to join the conversation.
20 Apr 2020 07:46 #164800
by bbsr_5a
Replied by bbsr_5a on topic How to convert a basic machine with Axis GUI to PlasmaC Gmoccapy GUI
yes
hm2_7i92.0.gpio.015.in
parport.0.pin-10-in-not
hm2_7i92.0.gpio.015.in
parport.0.pin-10-in-not
Please Log in or Create an account to join the conversation.
20 Apr 2020 07:48 #164801
by phillc54
Replied by phillc54 on topic How to convert a basic machine with Axis GUI to PlasmaC Gmoccapy GUI
OK, I will have a look tomorrow.
Please Log in or Create an account to join the conversation.
20 Apr 2020 10:44 #164815
by CFE
Replied by CFE on topic How to convert a basic machine with Axis GUI to PlasmaC Gmoccapy GUI
Hi Gentlemen,
Thank you for all your input, we will try to implement everything tomorrow morning.
To Phil : sorry about the configurator thing, we are very much aware that we need a working machine before we run the PlasmaC configurator, and we have run the PlasmaC configurator many times. That works well, the only thing that's a bit hard to get my head around is the labeling of the HAL pins, especially the Arc Voltage Pin.
What we have right now is a working machine with a base configuration and the Axis GUI, and we used the PlasmaC configurator on that succesfully. I am working to connect the THCAD-10 to the HAL pins, as you already have shown (Thanks for that !). I hope we will be able to try this configuration in the morning.
But when we try to set up a base configuration with Gmoccapy (not adding PlasmaC yet, as it is clearly shown that the base configuration needs to work first), then we run into problems with the kinstype thing and the homing stuff. I am starting to wonder whether there is something in the Linux system that is not quite right, but I will try to start from scratch to set up a base configuration with Gmoccapy, just to see if we can get that to work.
Rest assured, we follow every step in the documentation and all the suggestions everybody is putting up here, and it's all very much appreciated.
And again, if somebody has working ini and hal files for gantry machines we would very much appreciate to see them, so we can compare and see if and what is going askew for us.
Cheers, Peter
Thank you for all your input, we will try to implement everything tomorrow morning.
To Phil : sorry about the configurator thing, we are very much aware that we need a working machine before we run the PlasmaC configurator, and we have run the PlasmaC configurator many times. That works well, the only thing that's a bit hard to get my head around is the labeling of the HAL pins, especially the Arc Voltage Pin.
What we have right now is a working machine with a base configuration and the Axis GUI, and we used the PlasmaC configurator on that succesfully. I am working to connect the THCAD-10 to the HAL pins, as you already have shown (Thanks for that !). I hope we will be able to try this configuration in the morning.
But when we try to set up a base configuration with Gmoccapy (not adding PlasmaC yet, as it is clearly shown that the base configuration needs to work first), then we run into problems with the kinstype thing and the homing stuff. I am starting to wonder whether there is something in the Linux system that is not quite right, but I will try to start from scratch to set up a base configuration with Gmoccapy, just to see if we can get that to work.
Rest assured, we follow every step in the documentation and all the suggestions everybody is putting up here, and it's all very much appreciated.
And again, if somebody has working ini and hal files for gantry machines we would very much appreciate to see them, so we can compare and see if and what is going askew for us.
Cheers, Peter
Please Log in or Create an account to join the conversation.
20 Apr 2020 10:53 - 20 Apr 2020 10:55 #164816
by phillc54
Replied by phillc54 on topic How to convert a basic machine with Axis GUI to PlasmaC Gmoccapy GUI
I used your _original_4_axis.ini file with the Configurator to create a Gmoccapy config and the only changes I made were to specify DISPLAY = gmoccapy plus the HOME_Sequence for all axes exactly
as posted earlier
.
I used a 4 axis hal sim file I have and it worked a treat.
What were the error messages you were getting?
Edit: here is the ini as I used it.
I used a 4 axis hal sim file I have and it worked a treat.
What were the error messages you were getting?
Edit: here is the ini as I used it.
Last edit: 20 Apr 2020 10:55 by phillc54.
Please Log in or Create an account to join the conversation.
20 Apr 2020 11:53 #164823
by phillc54
Replied by phillc54 on topic How to convert a basic machine with Axis GUI to PlasmaC Gmoccapy GUI
I got the addf wrong before, it should be:
addf encoder.update-counters base-thread
addf encoder.capture-position servo-thread
Please Log in or Create an account to join the conversation.
Moderators: snowgoer540
Time to create page: 0.085 seconds