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 2010-11-13 23:09:02

pamccrac
Member
From: Houston, TX
Registered: 2006-06-05
Posts: 10

How to set an error flag if % is not first in G-code tape

I want to get an error in G-code verification when a % is not the first character in a tape.  My current Vericut version is 6.2.1.  Any help is greatly appreciated.

Offline

#2 2010-12-02 17:50:37

RenatoC
Member
From: Paris, France
Registered: 2006-11-13
Posts: 4
Website

Re: How to set an error flag if % is not first in G-code tape

Hello,
It might not be 100% what you are looking for, but this should be enough.
1°) Create a variable that you will initialize to 0.
This variable should be triggered to 1 when reading the '%'.
2°) Test this value in a Word that you call in the beginning of your program
Try not to choose the 'N' word to avoid useless testing for each line.
Why not the Tool change (M06) or the plane selection (G17) for example.
==> If your variable is still at 0, that means no '%' was called yet, you can then display an error message.

Let us know if this is ok like that.
Regards

Offline

Board footer