Hello Guest it is April 25, 2019, 08:42:54 PM

Author Topic: Toolpath Display  (Read 1193 times)

0 Members and 1 Guest are viewing this topic.

Toolpath Display
« on: September 17, 2015, 01:04:05 PM »
I'm converting old machines with custom controllers and operator interface. They don't use G-codes. I'm writing a converter for their file format to G-code. They have a "Guide Line" which is a vector not intended to operate the machine but used to illustrate jigs, reference positions etc... I wondering if there is a G-code that will display on the Mach3 Toolpath display but not be machine operable?

Offline BR549

*
  •  6,863 6,863
    • View Profile
Re: Toolpath Display
« Reply #1 on: September 17, 2015, 02:43:34 PM »
The only way I know of that it can be done is to code teh Vectors into the Gcode files with a block delete charector. That way they can be turn OFF and it will not run them .

BBBBUUUTTTT if you forget to turn the block delete ON you will have a MESS/CRASH on your hands. 

You can also do the fixture vectors as a SUB and call it with a parameter  (m98 P#100)  then set the  parameter if you want to see it. BUT the same warning applies.

(;-) TP

Offline BR549

*
  •  6,863 6,863
    • View Profile
Re: Toolpath Display
« Reply #2 on: September 17, 2015, 03:11:26 PM »
OK this could work.  Program the fixture vectors as a SUB but make all teh Z height at Z home position. Use a block delete on the SUB call that way you only have 1 block delete to do .  Place the SUB call as the last line before the M30 This way EVEN if you forgot to turn ON block delete there is no harm done as the Fixture vectors would run at Z home height. AND you could simply stop the program at that point.  No harm no foul.

Example Gcode :

G0 X0 Y0
G0 X5 Y5
(Cut a Circle)
G91
G0 X3
G1 Z-1 F30
G02 X0 Y0 I-3 J0
G0 X-3
G90
( End of Circle Cut)
/ M98 P1 L1
M30

o1
G28 Z0
G0 X0 Y0
G0 X10
Y10
X0
Y0
M99
%