Another plasma component...
That would be great...Once I get this sorted I want to use my experience to help write a decent step by step guide with the mesa 7i76e outlining my mistakes and how I resolved them.
When you run pncconf you do not need to do anything with the pins for the plasma side of things, the configurator will sort that out. All you need to do is take a note of what pins you physically wired up and input them into the configurator.
setp hm2_7i76e.0.encoder.00.counter-mode 1
You could put it into the machine HAL file in your plasmac config after configurator is run but if you run configurator again later it will lose it.
Clear as mud?
Cheers, Phill.
Please Log in or Create an account to join the conversation.
- thefabricator03
- Offline
- Platinum Member
- Posts: 1130
- Thank you received: 533
You could put it into the machine HAL file in your plasmac config after configurator is run but if you run configurator again later it will lose it.
.
Just to be clear it goes into the original machine hal that is in the plasmac created config folder, not one of the hals created for plasmac?
Please Log in or Create an account to join the conversation.
Here is some stuff out of my hal file.
loadrt hm2_eth board_ip="10.10.10.10" config="firmware=/home/plasma/linuxcnc/configs/Plasma3.10.01/7i76e_7i76x1_PktD.bit num_encoders=1 num_pwmgens=0 num_stepgens=5 sserial_port_0=2xxxx"
# --- 7i76e ENCODER SETUP ---
setp hm2_7i76e.0.encoder.00.scale -1
setp hm2_7i76e.0.encoder.00.counter-mode 1
Just ignore the firmware entry in the first line and use what you already have in your file now
I'm not using plasmac to scale the voltage so I guess plasmac will make this connection for you.
net THCAD-velocity-in <= hm2_7i76e.0.encoder.00.velocity
net THCAD-velocity-in => thcad10.velocity-in
I wrote a fair bit about setting up the THCAD last night. I'll share a document with you. Please let me know if it helps or if its incorrect as I wrote it away from a Linuxcnc config so I might have got something wrong.
Please Log in or Create an account to join the conversation.
The best place is in the HAL file you created for your machine before you ran the configurator. That way you will always have a correct HAL file. The configurator will also make a copy of that in your final plasmac configuration directory.Just to be clear it goes into the original machine hal that is in the plasmac created config folder, not one of the hals created for plasmac?
Cheers, Phill.
Please Log in or Create an account to join the conversation.
I had the same heart burn a few weeks ago. I also wound up adding these lines to my hal
setp hm2_7i96.0.encoder.00.filter 1
setp hm2_7i96.0.encoder.00.scale -1
I still think it would be nice to have a simple THCAD configuration gui for us rookies, something that could also be used to help with calibration settings / calculations. I've started tinkering with gtk / glade but I honestly doubt I would have time to knock it out anytime soon... Finally just started tacking together my table yesterday!
@rodw
I look forward to seeing your THCAD write up.
Please Log in or Create an account to join the conversation.
Reading Arc Voltage with the Mesa THCAD
The Mesa THCAD board is a remarkably well priced and accurate voltage to frequency converter that is designed for the hostile noisy electrical environment associated with plasma cutting. Internally it has a 0-10 volt range. This range can be simply extended by the addition of some resistors as described in the documentation. This board is available in two versions, the THCAD-10 with a 0-10 volt range and the THCAD-300 which is precalibrated for a 300 volt extended range. Each board is individually calibrated and a sticker is applied to the board that states the frequency at 0 volts and full scale. For use with LinuxCNC, its recommended that the 1/32 divisor be selected by the appropriate link on the board. IN htis case, be sure to also divide the stated frequencies by 32. This is more appropriate for the 1 kHz servo thread and also allows more time for the THCAD to average and smooth the output.
There is a lot of confusion around how to decode the THCAD output so lets consider the THCAD-10 and a Mesa 7i76e for a moment with the following hypothetical calibration data
Full scale 928,000 Hz (1/32 29,000 Hz)
0 volt 121,600 Hz (1/32 3,800 Hz)
Because the full scale is 10 volts, then the frequency change per volt is
(29,000 - 3,800) / 10 = 2,520 Hz per volt
So assuming we have a 5 volt input, the calculated frequency would be:
(2520 * 5) + 3,800 = 16,400
So now it should be fairly clear how to convert the frequency to its voltage equivalent
Volts = (frequency - 3,800) / 2,520
THCAD Connections
On the high voltage side:
Connect the divided or raw arc voltage to IN + and IN-
Connect the interconnect cable shield to the SHield connection.
Connect the other Shield terminal to frame ground.
Assuming its connected.a 7i76e, connect the output to the spindle encoder input
THCAD +5v to TB3 Pin 6 (+5 VP)
THCAD -5v to TB3 Pin 1 (GND)
THCAD FOUT+ to TB3 Pin 7 (ENC A+)
THCAD FOUT- to TB3 Pin 8 (ENC A-)
THCAD initial testing
Make sure you have the following line in your ini file (assuming a Mesa 7i76e):
setp hm2_7i76e.0.encoder.00.scale -1
hm2_7i76e.0.encoder.00.counter-mode 1
Power up your controller and open Halshow (Axis: Show Homing Configuration) Drill down to find the hm2_7i76e.0.encoder.00.velocity pin. With 0 volts applied, it should be hovering around the 0 volt frequency (3,800 in our example). Grab a 9 volt battery and connect it to IN+ and IN-. For a THCAD-10 you can now calculate the expected velocity. (26,480 in our hypothetical example). If you pass this test, then you are ready to configure your LinuxCNC plasma controller.
Please Log in or Create an account to join the conversation.
The online asciidoc version is here
There is a pdf version available here which needs a bit of work on the layout but I will leave that until it is finished.
The user guide is a work in progress so if I have left something out, got something wrong or you have something you would like to contribute please let me know.
Cheers, Phill.
Please Log in or Create an account to join the conversation.
I really think think Plasmac must be ready to be pushed to master branch. Its not going to break anything so maybe you can maintain it from there just like Norbert does with Gmoccapy. It would be so cool to avoid compiling from source.
I'd also like to see a link on the main master documents page linuxcnc.org/docs/devel/html/
under User interfaces with a heading something like:
Plasmac, A complete CNC plasma controller for LinuxCNC
Its actually a lot more than a user interface. In fact, there is no precedent in the history of Linuxcnc that attempts to do what you have done.
Also note that if you've authored the content in Google Drive it is easy to translate to other languages if that becomes a requirement for mainstream docs. I know the English to French translation is perfect as I asked somebody to edit a translated 20 page technical document for me and he said there was nothing to be done. German must also be pretty good becasue Chrome automatically translates the forum for me and I can understand what is being said.
Please Log in or Create an account to join the conversation.
nice there needs to be a page that tels what hardware it can handle from install
as so many has gone in that is not available all over the world or realy expensiv at the start of a mashine build to hobbyists
even me as cutting 200+ sheets per day it is only a step by step update to the mashines
Please Log in or Create an account to join the conversation.
I wrote it in asciidoc format so it should be able to go straight into the docs. I think I need to check with the devs to find out where exactly it should go and also to make sure the configs are sitting in the relevant place. I'm not sure when to try to get it into master as there is still some bits and pieces I would like to add.
pl7i92,
plasmac should work with any hardware that works with LinuxCNC and has enough I/O for the connections.
Cheers, Phill.
Please Log in or Create an account to join the conversation.