Author Topic: Need a little help with Mach4 Post Processor  (Read 20364 times)

Offline stevehuckss396

  • Wookie
  • ****
  • Posts: 460
    • View Profile
Need a little help with Mach4 Post Processor
« on: March 20, 2022, 22:37:23 pm »
Below is a little snippet of code generated by CamBam

The G81 and G83 lines read as

G81 X-0.4136 Y0.1305 Z-0.03 R0.025 F5.0
G81 X0.4139 Z-0.03

G83 X-0.4136 Y0.1305 Z-0.6 Q0.05 R0.025 F5.0
G83 X0.4139 Z-0.6

How do I make the post processor put in the complete line of code every time. Mach4 needs the complete line or it wont run the code. I'm sure the processor only puts on the line what variables have changed but now it needs to do it for every line weather it changed or not. See below changes.

G81 X-0.4136 Y0.1305 Z-0.03 R0.025 F5.0
G81 X0.4139 Y0.1305 Z-0.03 R0.025 F5.0

G83 X-0.4136 Y0.1305 Z-0.6 Q0.05 R0.025 F5.0
G83 X0.4139 Y0.1305 Z-0.6 Q0.05 R0.025 F5.0













( Made using CamBam - http://www.cambam.co.uk )
( CaliperFrontFixture 3/25/2015 9:15:04 PM )
( T1 : 0.047 )
( T2 : 0.062 )
( T3 : 0.055 )
G20 G90 G91.1 G64 G40
G0 Z0.125
( T1 : 0.047 )
T1 M6
( Center Drill )
G17
M3 S1000
G0 X-0.4136 Y0.1305
G98
G81 X-0.4136 Y0.1305 Z-0.03 R0.025 F5.0
G81 X0.4139 Z-0.03
G80
( 1/16 Drill Bit )
G0 Z0.125
( T2 : 0.062 )
T2 M6
M3 S1000
G0 X-0.4136
G98
G83 X-0.4136 Y0.1305 Z-0.6 Q0.05 R0.025 F5.0
G83 X0.4139 Z-0.6
G80
( 1/16 Endmill )
G0 Z0.125
( T3 : 0.055 )
T3 M6
« Last Edit: March 20, 2022, 22:41:14 pm by stevehuckss396 »

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9079
    • View Profile
Re: Need a little help with Mach4 Post Processor
« Reply #1 on: March 20, 2022, 23:12:07 pm »
Upload your exact post-processor here, if you need help past this.

Any item with the "$" sign followed by an underscore is considered 'durable', and won't be re-issued on the next utterance of a command containing the SAME variables.  Remove the underscores, and they'll be issued on every utterance.

Lloyd
« Last Edit: March 20, 2022, 23:24:24 pm by lloydsp »
"Pyro for Fun and Profit for More Than Fifty Years"

Offline stevehuckss396

  • Wookie
  • ****
  • Posts: 460
    • View Profile
Re: Need a little help with Mach4 Post Processor
« Reply #2 on: March 20, 2022, 23:20:29 pm »

So just change this

{$g82} {$_x} {$_y} {$_z} {$p} {$_r} {$_f}


To this?

{$g82} {$x} {$y} {$z} {$p} {$r} {$f}

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9079
    • View Profile
Re: Need a little help with Mach4 Post Processor
« Reply #3 on: March 20, 2022, 23:25:04 pm »
YES!

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline stevehuckss396

  • Wookie
  • ****
  • Posts: 460
    • View Profile
Re: Need a little help with Mach4 Post Processor
« Reply #4 on: March 21, 2022, 00:07:29 am »
Done. Thank you!

I would like to send a copy of the new Mach4 post processor to a pal. Where are they stored on the hard drive?

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9079
    • View Profile
Re: Need a little help with Mach4 Post Processor
« Reply #5 on: March 21, 2022, 00:19:01 am »
It's in the CAMbam system folder, under the posts subdirectory.

Depending upon what versions you're running, you might have two such folders/directories.  Look and see.

The other thing (most folks would do) is to just search for Mach4.cbpp in your windows search function! <grin>

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7578
    • View Profile
    • Cambam V1.0 French Doc
Re: Need a little help with Mach4 Post Processor
« Reply #6 on: March 21, 2022, 12:12:11 pm »
Hello,
Done. Thank you!

I would like to send a copy of the new Mach4 post processor to a pal. Where are they stored on the hard drive?

In Cambam > tools/browse system folder > in the Post folder.

++
David

Offline stevehuckss396

  • Wookie
  • ****
  • Posts: 460
    • View Profile
Re: Need a little help with Mach4 Post Processor
« Reply #7 on: March 23, 2022, 23:07:30 pm »
Thanks. For the record I did do a search and nothing came up. Must have screwed that up a little.

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5330
  • Made in England
    • View Profile
Re: Need a little help with Mach4 Post Processor
« Reply #8 on: March 24, 2022, 08:18:08 am »
I attached a Mach4 post here; https://cambamcnc.com/forum/index.php?topic=9612.msg74346#msg74346
but the OP did not come back to say if it worked okay.

Filmed in Supermarionation

Offline stevehuckss396

  • Wookie
  • ****
  • Posts: 460
    • View Profile
Re: Need a little help with Mach4 Post Processor
« Reply #9 on: March 24, 2022, 13:49:55 pm »
I would have to look bur I think I had to remove the underscore from the $R so it would be present on every line. For G83 there were 2 variables that needed the underscore removed.  Again I'm guessing and would need to check.