Giter Club home page Giter Club logo

solidcam-mach3-post's Introduction

SolidCam-Mach3-Post

A SolidCam postprocessor for Mach3, supporting 4x and 5x operations

Use this post at your own risk! Always check the produced code before running it on a real machine!

Inspired by bogan.

Special thanks to Bruno Silva - test part modelling and code testing.

CNCZone discussion link.

Setup: standard 3 axis mill. A axis rotary, along X or Y.

Current status :

Here's a video of a part being cut with code generated by this post :

video

  • 3 axis - working
  • 4 axis - working / for both repositioning moves and 4x toolpaths
  • 5 axis - working
  • Drill cycles - G81 (drill), G82 (drill+dwell), G83 (peck drilling), Canned cycles: G85 (boring), G86 (bore and stop), G89 (in, dwell, out)
  • Tapping seems to work

TODO :

  • 4x indexial use may need some more work to avoid unnecessary retracts to clearance. As of now it's safe but can be made faster w/o retracts.
  • Tool offsets and compensation

Installation and usage notes :

  • Put the .gpp and .vmid files in C:\Users\Public\Documents\SolidCAM\SolidCAMXXXX\Gpptool. You need to restart SolidWorks for it to pick up the new files.
  • Usage in SolidCam - Select Mach3_4X_Y for CNC-Machine
  • Mach3 setup:
  • Config > General Config - tick A-axis is angular, set IJ mode to incremental, uncheck all in Rotational, possibly also check G04 dwell in ms
  • Config > Toolpath - Check Y-axis for axis of rotation and enable A-rotations. 3d compass also helps. I recall having issues with 360 wrap around so check by cutting air before destroying an important part.

Usage : Do set your CoordSyses so that the CS origin is on the pivot point (axis of rotation) and X/Y is the axis around which the part revolves

PostDevTestMachine

Is a completely new implementation of the post, that uses SolidCam's new kinematics (pos_to_machine=Y).

This is now the one to use. Files in the /old directory are kept just for reference. The only version currently available is for machine that has the 4th axis along Y. Should there be interest I will make a version that has the 4th axis parallel to machine X.

Testers needed - any feedback appreciated.

solidcam-mach3-post's People

Contributors

biqut2 avatar reesewang avatar teodoryantcheff avatar tsipa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

solidcam-mach3-post's Issues

G82 & G83 Drilling Operations

Hi guys,

first of all: AMAZING WORK and thanks a lot for doing this.
I have tested the post processor on a 3 Axis Machine and had some issues with the Spot and Deep drill operations.

Spot Drilling will output the following code:
( -------------------- )
( 4-SPOT DRILL - DRILL )
( -------------------- )
G0 X23. Y9.615 Z10. A0.
G82 Z-2.79 R0.21 P0 F200
X40.2 Y9.615 Z0.21
X57.4 Y9.615 Z0.21
X74.6 Y9.615 Z0.21
X91.8 Y9.615 Z0.21
X109. Y9.615 Z0.21
G80
( ---- End of 4-Spot Drill ---- )

Mach 3 (at least mine) does the first hole as planned but then moves to hole 2 at height 0.21 only, does not spot drill and move on to the next holes.

Same effect with deep drilling:
( ------------------------- )
( 5-4.2MM-DEEPDRILL - DRILL )
( ------------------------- )
G0 X23. Y9.615 Z10. A0.
G83 Z-7.732 R0.21 Q0. P0 F200
X40.2 Y9.615 Z0.21
X57.4 Y9.615 Z0.21
X74.6 Y9.615 Z0.21
X91.8 Y9.615 Z0.21
X109. Y9.615 Z0.21
G80
( ---- End of 5-4.2mm-DeepDrill ---- )

I manually edited the code to add the G83/G82 string after each re-positioning move and it works fine after that.

Did I do something wrong?

Thanks !

Vmid adjust for mill turn options

Is not an Issue, just a contribution. I change the controller definition, defined parametes and working style in the VMID file. Now can do a mill-turn operation in solidcam. Work fine for me in my cnc. Please check it. Thanks!

PD: sorry for my bad english, I´m from Argentina.

Mach3_4X_Y.zip

3 AXIS OPERATION

Hi, I wanted to know if I use the post process, can I still work using only the 3 axes I have is it only necessary when I work with 4 axes? i have not finished the cnc cutter yet and i have no way to try for this i ask.

Milling pocket with island - tool retract

I've come across a problem that I haven't solved.
I was machining a pocket with an island using multiple step downs.
The g-code appeared to generate the correct tool path, until near the end of the pass, when the tool moves from one end to the other cutting diagonally across the island without retracting.
I'm new to Solidcam and CNC but have coding experience, am I missing some setting or is there a bug in the postprocessor?

Spindle Direction

In the following code the directions are inverted. M3 is CW and M4 is CCW.

@start_tool
if tool_direction eq CW then
mcode = 4
else ; CCW
mcode = 3
endif

{nb, 'S'spin:integer_def_f, ' M'mcode}
{nb, 'M8'}

endp

Questions about usage.

First of all. Thanks for sharing this :)

I have modeled a part in solidworks and I have access to a CNC machine controled by Mach3 software. See this video for what I'm trying to do.
If I understand correctly. To use this postprocessor. I need to install it as instructed in the readme file, choose the Mach3 machine in solidcam and then export the Gcode.

Is there a way to simulate the code outside of solidcam, using the exported Gcode files, for verification before taking them to the machine?

Does the postprocessor support face and milling operations from solidcam? (those kind of operations are the ones I'm using)

What is the difference between using the Mach3_4X and Mach3_4Y machines?

Thanks in advance for any help! :)

Same tool different operation

imachining same tool diferrent operation feed chanhes but cant see spindle speed changes so over lot of operations and same tool no speed changes just feed, is that postproccessor problem or is how imachining works? If i generate per operation all ok, just dont want spend time to make one file....

Spindle start code, rotate direction

The spindle start code is M4 when assigning CW tools to an operation and M3 when assigning CCW tools, while expecting M3 for CW tools and M4 for CCW tools. Haven't figured out where the problem is yet.

Explain use_solidcam_feeds

Could you please explain use_solidcam_feeds variable? I'm getting correct feeds for 4th axis when it's set to NO. Sometimes if I set it to YES, the 4th axis gets very high feed rate and I couldn't find the cause of this.

4 axis machine x

Hi..happy new year..!! Can you tell me please if you have post processor for 4axis machine x..??

No feed rates generated in G-code

First of all great work!
I'm using the "rotary maching 4 axis" option, unfortunately the generated G-code doesn't include the specified tool feed rates.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.