CamBam
News:
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
June 24, 2019, 11:49:01 am


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Plasma postprocessor: How to combine cuts within StartCut/EndCut for plunge arcs  (Read 290 times)
cpr
CNC Ewok
*
Offline Offline

Posts: 6


View Profile
« on: April 29, 2019, 16:31:34 pm »

Hi,

this chinese plamsa cutter here has its own Z axis control and I have successfully removed all Z axis code generated from http://www.cambam.info/ref/ref.plasma

I have also added "torch on/off" commands to the StartCut / EndCut sections of the postprocessor.

BUT I somehow need to combine the "plunge in arc"-cut with the following cuts.
The CNC controller uses M7 as "torch on" and M8 as "torch off".
When I am using StartCut/EndCut with these M-commands I get 2 torch cycles,
- one for the plunge arc,
- one for the rectangle.
As the plunge arc is generated by CamBam and not part of the dxf I am hoping that it will be possible to combine these two operations.


Here is my postprocessor:
<?xml version="1.0" encoding="utf-8"?>
<PostProcessor xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="0.9.8.0">
  <PostFile>{$comment} Made using CamBam - http://www.cambam.co.uk {$endcomment}
{$header}
{$mops}
{$footer}
</PostFile>
  <Header>G92X0Y0
G91
G00 X{$mop.first.X} Y{$mop.first.y}</Header>
  <Footer>
{$cbfile.footer}
</Footer>
  <StartCut>M7
G41</StartCut>
  <EndCut>M8
G40</EndCut>
  <ToolChange />
  <MOP>
{$mop.header}
{$blocks}
{$mop.footer}
  </MOP>
  <G0>G00</G0>
  <G1>G01</G1>
  <G2>G02</G2>
  <G3>G03</G3>
  <EndRewind />
  <Rapid>{$g0} {$_x} {$_y}</Rapid>
  <FeedMove>{$g1} {$_x} {$_y}</FeedMove>
  <ArcCW>{$g2} {$_x} {$_y}</ArcCW>
  <ArcCCW>{$g3} {$_x} {$_y}</ArcCCW>
  <MinimumArcLength>0.0001</MinimumArcLength>
  <MaximumArcRadius>10000</MaximumArcRadius>
  <LineNumberFormat>0000</LineNumberFormat>
</PostProcessor>


And this is the generated code for a rectangle:
( Made using CamBam - http://www.cambam.co.uk )
G92X0Y0
G91
G00 X-1.8 Y-1.0
G00
M7
G41
G03 X0.2 Y1.0
M8

G40
G00
M7
G41
G01 Y37.0
G02 X1.0 Y37.8
G01 X37.0
G02 X37.8 Y37.0
G01 Y1.0
G02 X37.0 Y0.2
G01 X1.0
G02 X0.2 Y1.0
M8
G40
G00
M7
G41
G03 X-1.8 Y3.0

(At the bolded lines the "problem" starts.)


This is a working example from the controllers sample files:
G92X0Y0
G91
G0X150.000Y210.000
M7
G42
G3X-10.000Y-10.000R10.000
G3X0.000Y0.000I60.000J0.000
G3X10.000Y-10.000R10.000
M8
G40
G0X-44.436Y-58.578
M02

Logged

--
Best regards,
Chris
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.099 seconds with 20 queries.

Copyright © 2018 HexRay Ltd. | Sitemap