Post Processor for LinuxCNC and PlasmaC
- islander261
- Offline
- Platinum Member
- Posts: 757
- Thank you received: 216
You really need to fix your material/tool files. No PP that is made to work with Plasmac will work unless you do. Your band aid is a poor work around at best. To realize the full potential of the Plasmac branch you must fix this. Sorry you are trying to use an experimental branch with advanced features that aren't well documented yet, it is a very steep hill to climb.
You need to edit your imperial_plasmac_material.cfg file for all the materials (tools) you use and have a corresponding tool number in your Sheetcam tool list. The example for editing your material file is in the file. Make a material entry for each material and cutting condition you will need. So for me I have a 14ga HRstl Finecut, 14ga HRstl Finecut openlines and 14ga HRstl holes. All for cutting 14ga HR steel at 45A with Finecut consumables. I have many others for different materials that I build when I need them. Build your files one set of cutting parameters at a time as you need them, it is much easier that way.
I have a new PP that appears to work from code inspection that will not put in extra feed rate commands either for plunging or cutting. I may get to to test actual cutting tomorrow. I spent the day chasing a SheetCam "feature" that inserts an extra do nothing G0 block in the code when you change tools. It must be hard coded some where in the tool change code because it is totally nonmodal and doesn't have any effect on the modality of the following code. I traced this back for the last couple of years after a few more gray hairs and there aren't many left. I couldn't get the parking from SheetCam to work with the features I want so the parking position must be set in your copy of the PP (or you can comment out my code and use the SheetCam parking position).
John
Please Log in or Create an account to join the conversation.
- thefabricator03
- Offline
- Platinum Member
- Posts: 1130
- Thank you received: 533
If not why not? It really comes in handy to be able to use the Sheetcam rules to turn off the THC before the end of a cut, Also as the others mentioned on holes having two tools. it would be easier to just have one tool rather than having multiple tools, As Tom and Rod pointed out in another thread, There is lots of reasons to have multiple tools. Like different amps, shields, nozzles,gases, cutting speeds etc, If we need to have another set of tools for THC enable and THC disabled it is going to be a nightmare to get set up.
Please Log in or Create an account to join the conversation.
Phill, some questions:
1. could you confirm the motion.adaptive feed pin is used by reverse run?
2. Is reverse run only in use when the program is paused? eg. halui.program.is-paused is true?
What I had in mind was to reduce the feedrate using a sheetcam code snippet using adaptive feed and use a motion.analog-out.nn pin to set the adaptive feed pin from gcode using m67/m68. Plasmac's corner lock would halt the THC action when the speed was reduced.
This might be able to be done if a mux component could select between the plasmac pin and the analog pin based on the machine state (eg is paused).
This would allow some cutting rules to be set for holes in the sheetcam post processor.
But in the mean time, I might look at seeing if I can add a flag in the post processor that determines if the plasmac or sheetcam feed rate is used.
But the plasmac way would be to create a second materials set that has the thc disabled as Islander261 does. Then its just a matter of moving your holes to a different layer using the different tool.
Incidentally, this highlights the importance of the Linuxcnc state tags branch for plasma operations. The real problem is that Linuxcnc is never told what the commanded feedrate is. If state tags were implemented, plasmac would be able to know what the commanded feed rate is and it could be set in Sheetcam with no problems.
JTK's issue also highlights the need for the ability to enable and disable the THC from gcode. This would avoid using 2 plasmac tools and also avoid the need for layers as sheetcam code snippets could control settings for holes. An additional external THC hold pin would be very nice.
Please Log in or Create an account to join the conversation.
- islander261
- Offline
- Platinum Member
- Posts: 757
- Thank you received: 216
Yes you can. I did it before the material change from Sheetcam feature became available. You will need to have a post GUI hal file and break the link from the GUI to the Plasmac component and put an OR component in there. Your Plasmac material in the GUI will always have the THC disabled. You will then control the THC with a bit setting/clearing M code. Sorry the examples I have are so out of date they are useless now. I am not sure about THC or ARC early off. THC is easy as corner hold will freeze the cut height. I think the M codes may cause the blending to break. Usually for lasers there are special M codes that allow early off for the beam but they aren't implemented in the standard LinuxCNC releases.
You are quickly heading into decisions made to keep plasmac self contained and not dependent on any specific PP or CAM program. I didn't make those decisions so I just rolled with the punches and am still thrilled with the result.
John
Please Log in or Create an account to join the conversation.
Is it possible to turn on and off the THC from Gcode with Plasmac?
If we need to have another set of tools for THC enable and THC disabled it is going to be a nightmare to get set up.
My thought exactly. There needs to be a seperate plasmac.external-hold pin that is or'ed with the plasmac.thc-enable pin internal to the component. Then this pin could be toggled with a digital pin with M62/M63 It would be very simple to implement.
Please Log in or Create an account to join the conversation.
As I stated earlier, I am not a cutter so I am providing what my interpretation is of what you guys want.
I am not sure what is the "correct" way of doing things is so if you think I have done something wrong then let me know and I will fix it.
To make changes though there does need to be some sort of consensus.
You also need to bear in mind that not everyone uses SheetCam and I will not tie this configuration to any particular CAM package.
Cheers, Phill.
Please Log in or Create an account to join the conversation.
Rod,rodw wrote:
1. could you confirm the motion.adaptive feed pin is used by reverse run?
2. Is reverse run only in use when the program is paused? eg. halui.program.is-paused is true?
1: Yes
2. Only in the way I have connected it.
If you want to do adaptive-feed changes then you would need to unlinkp motion.adaptive-feed and then reconnect it to whatever...
Then you can use the whole range of -1 to 1 on the fly.
Cheers, Phill.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- thefabricator03
- Offline
- Platinum Member
- Posts: 1130
- Thank you received: 533
This is an interesting discussion.
As I stated earlier, I am not a cutter so I am providing what my interpretation is of what you guys want.
I am not sure what is the "correct" way of doing things is so if you think I have done something wrong then let me know and I will fix it.
To make changes though there does need to be some sort of consensus.
You also need to bear in mind that not everyone uses SheetCam and I will not tie this configuration to any particular CAM package.
Cheers, Phill.
Phill,
I would not expect you to tie your work into one particular CAM software, That would almost be defeating the open source intentions of Linuxcnc.
As Rod has mentioned could we not just create a pin that we can call from a post processor to turn the THC on and off? That would be post processor specific and any CAM software written for Plasmac could use that feature.
Please Log in or Create an account to join the conversation.
An alternative:I notice that the THC has an auto mode that comes on if the tool calls for it. It would be kinda handy in my situation if, keep in mind I’m thinking out loud. Would be cool if you could tie the THC to turn off if a G02 or G03 is called out with an IJ or K exc that’s under a specified size. This way your not having to use sheetcam to mod the gcode to add thc on/off commands.
Say your cutting a sheet and the feed-rate in the cut parameters of the run tab is 100 units
You cut a line with the gcode feed-rate of F#<_hal[plasmac.cut-feed-rate]> (which equals 100 units)
You want to cut a hole so you do that with a feed-rate less than 99% of the feed-rate in the cut parameters of the run tab
So a gcode of F 98
This never reaches 99% of the feed-rate in the cut parameters of the run tab so THC does not get enabled.
Cheers, Phill.
Edit: actually those 99% should read 99.9% so you could use F99.8
Please Log in or Create an account to join the conversation.