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 2005-04-08 16:12:14

yangyh
Member
From: Peoria IL
Registered: 2005-03-13
Posts: 6

How to make the global variable working?

I had a file defining all the global variables used in subroutine files. The format is like:

DEF INT  PgmMag,ReqMag
DEF BOOL BusyPocket[16]

I put them in the Setup->Toolpath->Toolpath list and make it before the main program. Still these varibles did not take into effect when I run the simulation. Could you please tell me what's the problem? If it's possible, I can send you my file to your email address. Thanks.

David

Offline

#2 2005-04-11 13:22:45

Al_V
Senior Member
From: Cleveland/Akron, Ohio
Registered: 2004-11-11
Posts: 79

Re: How to make the global variable working?

UNCHECK   >Setup >G code >Settings   "Initialize Machine/Control between Toolpaths"


Austin NC APT administrator.
Custom configure GPost for Pro/E,
and other ANC applications.

Offline

#3 2005-04-11 22:01:21

yangyh
Member
From: Peoria IL
Registered: 2005-03-13
Posts: 6

Re: How to make the global variable working?

Thank, it will fix the problem, but V5.4.2 will not support this function. I just copied all varible definitions at the top of main program as the temporary solution.

David

Offline

#4 2005-04-12 11:16:45

Al_V
Senior Member
From: Cleveland/Akron, Ohio
Registered: 2004-11-11
Posts: 79

Re: How to make the global variable working?

David,
There are also other ways to define variables.

If you want them defined in the control for all programs:
>Setup >Control >Advanced options >Events >Start of Processing
Add Variable definitions after Conversioninit.

Or if you want them defined only for this user file:
>Setup >G Code >Variables and set an Initial Value.


Austin NC APT administrator.
Custom configure GPost for Pro/E,
and other ANC applications.

Offline

Board footer