Repetier wrote If you send G1 with Z... it will move to that height...
Yes, this is what i mentioned, after THC stops (G0), microcontroller takes control - it will move to that height... (travelling height), and moves to new cutting point, but there is unknown height, in that new point, need to be checked, because if too high, no arc could be formed, or point where cutting start will moves and you won't get fully cut. So microcontroller need to recheck the heigth before Gcode goes to G1.
When arc activated (G1), THC takes control over microcontroller, THC measuring voltage, and get diving to settled voltage/height, diving/calculation can take a time, and part of cutting will be missed (machine already moving because G1, but the torch still at the wrong height - too height. Torch also takes a time for full power able to cut), that why z axis floating head needed for plasma cutting.
G0 - microcontroller
G1 - THC
So need Gcode diving command of repetier firmware (before G1), that waiting until get confirmation from the end stop - zero point of z axis reached (Z0.0000), lift to (say Z2.0000) and good to go after that.
I can modify Gcode myself, just need to know which command of repetier firmware good to use in this case.
A Sample
G02 X86.3900 Y11.7731 I-108.3064 J-1.0374
G01 Y11.0013
G00 Z2.0000
G00 X200.0000 Y11.0000 Z2.0000 F3000
diving command that waiting until get confirmation from the end stop - zero point of z axis reached (Z0.0000), lift to (say Z2.0000) and good to go after that
G01 X204.8892 Y10.9991 F300
G01 X204.8885 Y9.0500 F1000
G01 X172.9900 Y9.0508
G01 Y13.4471
G01 X185.5972 Y13.4500
G01 X204.8900 Y13.4492
G01 X204.8892 Y10.9991
G00 Z2.0000
orbita
Could be used command M109? Like this;
M109 Z0.0000
G00 Z2.0000
M119 or M116?
Repetier
G0 and G1 are identical.
You only need homing once, but how do you home in your case? cnc also often has different homing and as said I have no plan about plasma cutting.
I see G1 Z2 to go up, but why not just G0 Z0 to go down again to old height?
You can use
M400
to wait for all moves to finish if you need to ignite plasma with a command.
M109 is heating extruder and wait for temperature. Has no Z parameter at all. M119 just outputs position and does nothing.
You can also use G4 Pmillis to wait for end of moves AND then milis milliseconds.
orbita
<a rel="nofollow" target="blank" title="Link: null">Repetier</a> said:
I see G1 Z2 to go up...
G0 and G1 are identical.
Where do you see G1 Z2 (G1) in my code? Have in use only G0 Z2 (G0).
G0 it's a traveling/Rapid move command (plasma cutter switched off). G1 is working/Linear move command (plasma cutter is On). The same as with the laser, just plasma cutter must start of cutting from correct/fixed height - not too low, not too high. The worst scenario when torch end and cutting surface too close. So they aren't identical in this case.
<blockquote class="Quote">
<a rel="nofollow" target="_blank">Repetier</a> said:
...why not just G0 Z0 to go down again to old height?
You can go down once arrived to new cutting point, but i have mentioned - because surface imperfections, working height could be changed (+/-) when you working with very large areas like 1 metre by length, you have to recheck and correct if changes detected. If torch too high from the surface of cutting - you getting one kind of problem, if too low - you getting another kind of problem, which was explained above. It would be time waste explaining all of them, and absolutely not related to topic. Point of z axis floating head is avoid this issues. So i need to make working z axis floating head (diving command that waiting until get confirmation from the end stop - zero point of z axis reached...).
<blockquote class="Quote">
<a rel="nofollow" target="_blank">Repetier</a> said:
You can also use G4 Pmillis to wait for end of moves AND then milis milliseconds.