Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Macho3 on May 11, 2017, 07:54:24 AM

Title: How to create customized drawing of G-code?
Post by: Macho3 on May 11, 2017, 07:54:24 AM
Tell me, please, how to create customized drawing of G-code?

How can I do this in Mach3?

I'm going to do this via m1s-script, but I can not find the graphics commands.


Like this:

(http://i.imgur.com/QlvjAuQ.png)

Or in window:

(http://i.imgur.com/9iaMwQg.png)
Title: Re: How to create customized drawing of G-code?
Post by: Tweakie.CNC on May 11, 2017, 08:16:05 AM
You can, to some extent, do this using the 'Teach' function and the keyboard arrow keys but I suggest you use a CAD/CAM program - it does a much better job.

Tweakie.
Title: Re: How to create customized drawing of G-code?
Post by: Macho3 on May 11, 2017, 08:23:07 AM
Thank you!

But I need to get the data about a loaded g-code and custom draw it.

This is need for the machine operator.
Title: Re: How to create customized drawing of G-code?
Post by: Tweakie.CNC on May 11, 2017, 08:33:14 AM
Quote
But I need to get the data about a loaded g-code and custom draw it.

This is need for the machine operator.

I think you are expecting too much from Mach3 which is just a Machine Controller - it does not have a CAD function as such.

Tweakie.
Title: Re: How to create customized drawing of G-code?
Post by: Macho3 on May 11, 2017, 08:40:07 AM

I think you are expecting too much from Mach3 which is just a Machine Controller - it does not have a CAD function as such.

Tweakie.

I do not expect Mach3 to do it for me. I want to make the program myself (for example, in Visual Basic or Visual C ++) for customized drawing.
Title: Re: How to create customized drawing of G-code?
Post by: Tweakie.CNC on May 11, 2017, 08:46:22 AM
obviously nothing is impossible but there is no way you can code that into Mach3.

Tweakie.
Title: Re: How to create customized drawing of G-code?
Post by: RICH on May 11, 2017, 08:55:32 AM
Quote
But I need to get the data about a loaded g-code and custom draw it.

You can make a drawing of a gcode program. This is called backplotting. It basically provides the instructions to
the CAD software on how to draw each coded line. So you get a drawing  of the pathing. You can buy a backplotter program  like NC Plot ($300) or some others.
I use a custom backplotter ( sorry,  can't  share it ).

RICH
Title: Re: How to create customized drawing of G-code?
Post by: Macho3 on May 11, 2017, 09:19:27 AM
Quote
But I need to get the data about a loaded g-code and custom draw it.

You can make a drawing of a gcode program. This is called backplotting. It basically provides the instructions to
the CAD software on how to draw each coded line. So you get a drawing  of the pathing. You can buy a backplotter program  like NC Plot ($300) or some others.
I use a custom backplotter ( sorry,  can't  share it ).

RICH


Thanks for your reply!

Can you tell me more information about this?

How did you develop your custom backplotter?
Title: Re: How to create customized drawing of G-code?
Post by: Macho3 on May 11, 2017, 09:27:29 AM
Quote
But I need to get the data about a loaded g-code and custom draw it.

You can make a drawing of a gcode program. This is called backplotting. It basically provides the instructions to
the CAD software on how to draw each coded line. So you get a drawing  of the pathing. You can buy a backplotter program  like NC Plot ($300) or some others.
I use a custom backplotter ( sorry,  can't  share it ).

RICH


I looked, NCPlot is a independent program.

I have the my independent program for viewing g-code.

But I need to integrate it into Mach3 (or create new program for Mach3).
Title: Re: How to create customized drawing of G-code?
Post by: Macho3 on May 11, 2017, 12:52:05 PM
Friends, I found a solution: I call the browser using CreateObject in m1s and pass the data to it for drawing.
Title: Re: How to create customized drawing of G-code?
Post by: RICH on May 11, 2017, 04:11:21 PM
Quote
How did you develop your custom backplotter?

I did not develop the backplotter. A friend created it  based on what he wanted to do / have from one....really neat as you can do a bunch of things with it  like having it create different levels / color / line type for the gcodes, save it back to a dxf /cvs /spread sheet and even generate gcode from modifications of the backplotted gcode. Additionally can manipulate screen data from machscreen create a drawing from it for easy manipulation and then put the modified info back into machscreen.


RICH