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 2007-03-29 20:58:48

moudy
Member
Registered: 2004-11-11
Posts: 19

Fanuc macro bracket matching

Has anyone found or know of a way to catch unmatched brackets such as

#1=[#2+3]*5]

The machine alarms on the missing bracket, I need Vericut to do the same.

Thanks

Offline

#2 2008-12-01 21:48:18

marting
Member
From: Trois-Rivieres, Quebec
Registered: 2008-11-26
Posts: 16
Website

Re: Fanuc macro bracket matching

Anybody has an answer for this.  I do need vericut to do the same.

Martin


Martin Grenier
Vericut latest production revision
Mastercam latest production revision

Offline

#3 2008-12-02 08:14:31

MustaphaC
VERICUT Specialist
From: Le Mans, France
Registered: 2004-10-14
Posts: 130
Website

Re: Fanuc macro bracket matching

Hello Martin,

Since VERICUT 6.2 there is "Syntax Check" in the VERICUT Editor (Info > NC Program...) under "Utilities" menu.
Select this menu and press "Setting" button in "Syntax Check" window, then check the "Unbalanced number of parentheses or brackets" option, press OK.
Press button "Check To End" in "Syntax Check" window, VERICUT will list all syntax errors found for the selected type of error... When you select one of those errors, VERICUT will point the corresponding line in VERICUT Editor.

Mustapha


Mustapha

Offline

#4 2008-12-03 22:29:31

vhubbard
Beta User
From: Dallas, TX
Registered: 2004-11-11
Posts: 222
Website

Re: Fanuc macro bracket matching

You can also add your own rules to the syntax check in 6.2.  I added 2 conditions one checks for any use of } and another for any use of {.  To check for use of the wrong brackets also. They are the upper case of ] and [ on our keyboards and easily confused.   We have all the predefined options enabled also.

Offline

Board footer