Snuggly's Plasma Build
- snugglylovemuffin
- Topic Author
- Offline
- Elite Member
- Posts: 209
- Thank you received: 11
I have a 5x10 plasma table running linuxcnc 2.8. My controller is a Mesa 7i96 w/ dm542a stepper drivers powering Nema 23's. The THC is a Proma 150.
My current plasma cutter is a HF start Eastwood Versacut40; it will be among the first things to be upgraded. Because the machine is HF start, I've gone to great effort to ground the machine including running a ground wire to my shop's earth.
Now that the controller is setup and the machine files are largely complete, it's time to integrate the THC. The Toma files from Proma were developed for Parallel Port and were too difficult to modify for the Ethernet board. Grotius had/had been developing a plasma/laser branch that looks promising; however at this stage the development is too new for a machine to reliably run for a noob as myself. For posterity, here is the link is to the Grotius development thread: forum.linuxcnc.org/plasma-laser/34916-us...lasma-thread?start=0
For the reasons above, I will be trying to use THCUD (THC specific to Mesa) : linuxcnc.org/docs/html/man/man9/thcud.9.html
I've had difficulty in the past implementing THCUD, I hope that this thread will hope those struggling with the software end of the plasma cutter build!
Please Log in or Create an account to join the conversation.
- islander261
- Offline
- Platinum Member
- Posts: 757
- Thank you received: 216
Do you have your basic X,Y,Z motion working with all desired homing and limits? Are you running 2.8 pre because you have a dual drive gantry machine? Do you have your probing for material surface working ( G code subroutine or inline code)? What input pins do you have your Arc Ok, Down and Up signals connected to? Does your Arc Ok signal work correctly when you manually trigger the torch? Have tried to use Halscope to monitor your input pins yet? To sound like a broken record .ini and .hal files are a big help when trying to solve configuration problems.
John
Please Log in or Create an account to join the conversation.
- snugglylovemuffin
- Topic Author
- Offline
- Elite Member
- Posts: 209
- Thank you received: 11
I am using 2.8 because I have a dual drive gantry.
I do have a float switch, however I've not been able to verify that it works.
Pinouts for the THC are:
Input #7 = float switch
Input #8 = arc ok
Input #9 = down
Input #10 = up
I'm not familiar with halscope yet, it's something I'm working on figuring out. I'll post my THCUD build here soon when I'm done with it.
Please Log in or Create an account to join the conversation.
- snugglylovemuffin
- Topic Author
- Offline
- Elite Member
- Posts: 209
- Thank you received: 11
WILL MY PROMA WORK ON HF START?
THCUD connections found @: linuxcnc.org/docs/ja/html/man/man9/thcud.9.html
thcud.torch-up bit in = pin 10 (hm2_7i96.0.gpio.010.in)
thcud.torch-down bit in = pin 9
thcud.current-vel float in = Connect to motion.current-vel ????????????????
thcud.requested-vel float in = Connect to motion.requested-vel ??Float switch (pin 7)??
thcud.torch-on bit in= Connect to motion.spindle-on ?????????
thcud.arc-ok bit in = pin 8
thcud.enable bit in = Enable the THC, if not enabled Z position is passed through ?????????
thcud.z-pos-in float in = Z Motor Position Command in from axis.n.motor-pos-cmd ?????????
thcud.z-pos-out float out = Z Motor Position Command Out
thcud.z-fb-out float out = Z Position Feedback to Axis
thcud.cur-offset float out = The Current Offset
thcud.vel-status bit out = When the THC thinks we are at requested speed
thcud.removing-offset bit out = Pin for testing
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
- Posts: 19196
- Thank you received: 6434
WILL MY PROMA WORK ON HF START?
Yes, it will.
If you have to open plasma to get the voltage for it ( in case your plasma does not have a connector with the voltage divider inside ), have a look at this before you attempt to wire it yourself.
Please Log in or Create an account to join the conversation.
- islander261
- Offline
- Platinum Member
- Posts: 757
- Thank you received: 216
John
[Just a bit of wiring practice and question about specific components. Obviously question marks will show what I don't quite understand how to wire up. I'm not running an encoder on my Z axis, so I think a few of these commands are superfluous for my application.
WILL MY PROMA WORK ON HF START? YES
THCUD connections found @: linuxcnc.org/docs/ja/html/man/man9/thcud.9.html YES
thcud.torch-up bit in = pin 10 (hm2_7i96.0.gpio.010.in) YES
thcud.torch-down bit in = pin 9 YES
thcud.current-vel float in = Connect to motion.current-vel ???????????????? YES
thcud.requested-vel float in = Connect to motion.requested-vel ?? YES
Float switch (pin 7)?? = motion.probe−input
thcud.torch-on bit in= Connect to motion.spindle-on ????????? Usually
thcud.arc-ok bit in = pin 8 YES
thcud.enable bit in = Enable the THC, if not enabled Z position is passed through ?????????YES
thcud.z-pos-in float in = Z Motor Position Command in from axis.n.motor-pos-cmd ?????????YES
thcud.z-pos-out float out = Z Motor Position Command Out pid.z.command
thcud.z-fb-out float out = Z Position Feedback to Axis YES
thcud.cur-offset float out = The Current Offset
thcud.vel-status bit out = When the THC thinks we are at requested speed
thcud.removing-offset bit out = Pin for testing
/quote]
Please Log in or Create an account to join the conversation.
- snugglylovemuffin
- Topic Author
- Offline
- Elite Member
- Posts: 209
- Thank you received: 11
@Islander261 - I have no clue how to deal with the portions of the code that have question marks next to them. I don't even know if all these are supposed to go into the machine HAL. I am assuming as much, but more complete instructions are necessary for my skill level.
Just a quick peek inside my (grounded) control box
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
- Posts: 19196
- Thank you received: 6434
Use a simple relay for the probe switch, powered from the same power supply as the drives ( assuming you are using 24V ), or if you do have a 5V one. The probe switch should just turn on that relay, nothing else, the NO side of the relay should be wired to the input of your mesa card. That will eliminate all the interference from the cable going to probe switch.
As a side note, i refrain from putting the Proma THC anywhere near the plasma, i use double shielded cable to wire the output voltage wires to the proma. I am fully aware that if those two wires come near each other all hell will break loose the instance the torch is fired.
I would advise to move the voltage cables from the output terminals and rewire them as near as possible to the capacitors that are used to protect the rectifier inside the plasma. That will help a lot in avoiding interference.
Please Log in or Create an account to join the conversation.
- islander261
- Offline
- Platinum Member
- Posts: 757
- Thank you received: 216
You need to do something like this to connect the hal component pins together:
net thc-connect-current-vel motion.current-vel thcud.current-vel
or the way I find easier to follow
net thc-connect-current-vel <= motion.current-vel
net thc-connect-current-vel => thcud.current-vel
more details here:
linuxcnc.org/docs/devel/html/hal/basic-hal.html#_net
Use halmeter or halscope to test operation.
John
Please Log in or Create an account to join the conversation.
- snugglylovemuffin
- Topic Author
- Offline
- Elite Member
- Posts: 209
- Thank you received: 11
I'll swap over the proma to the controller box and run a shielded cable to it. I'll see what I can do about adjusting the mounting points of the the voltage cables for the thc, it's a pretty dense unit and it was pretty difficult to get them where they are currently.
My float switch is normally open and I have my relay setup (inside the shielded controller box) as normally open, with pins 13(-) and 14(+) triggering the relay. That would be => hm2_7i96.0.ssr.0.out-00
@Islander261
I think the problem I'm having is understanding the actual inputs of these individual components. I'm going to have to read that source and see if I can make heads or tails of this code.
Please Log in or Create an account to join the conversation.