VERICUT Users' Forum

Due to relentless spammers, we are no longer automatically accepting new forum registrations. If you wish to register for this forum, please send an e-mail to: info@cgtech.com

You are not logged in.

#1 2009-12-31 14:29:50

maestro
Member
Registered: 2009-12-31
Posts: 1

G2 or G3 on same line as G41 or G42

In some instances when I post a program from Mastercam, I will end up with a line of code to turn on cutter comp that will have a G2 or G3 command on the same line as G41 or G42. As an example. G3 G41 X0 Y0 F50. Most machine tool controls will alarm out when reading such a line of code. Vericut will go ahead and run this line of code without giving any error messages. This is using the Makpro5 and Hass controls. Is there a way to configure vericut to give an error message when it incounters this situation so that it can be corrected before running the program at the machine and having it alarm out and stop?

Offline

#2 2009-12-31 17:00:53

SergeV
Senior Member
From: Irvine, CA
Registered: 2004-10-08
Posts: 507
Website

Re: G2 or G3 on same line as G41 or G42

You can do it in 2 ways:

1) You can add a condition with G2/G3 that if the word G42 or G41 is on the same line, then it calls a macro causing an error message.
Refer to the training session 110 in the help for an example and the steps.

2) Info > NC Program...
Utilities > Check Syntax...
Settings...
Add
under the collumn A, enter: G2 G3
click unde the Condition collumn, in the pull-down menus select AND
under the collumn B, enter G41 G42
OK (to close the settings panel)
in the Check Syntax panel:   Check All

it will scan your NC program for the error condition before the simulation. There is a list of more common syntax errors pre-defined that you can simply check.

In the User Defined syntax errors, you can detect incorrect pairs (like G2 and G42) or missing parameters in a statement (like G81 without a F)

The settings are saved in your control file, so they will be there for your next part.

Offline

Board footer