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-12-06 08:33:46

Svante
Senior Member
From: Trollhättan, Sweden
Registered: 2005-02-23
Posts: 60

Variables

Hi,

I have defined a word ZDIFF as a numeric macro. ZDIFF is a special written probe sequence for measuring the difference between two surfaces. It includes 10 placeholders. See picture.

CGTechforum2.JPG

Pos 1 to 3 is X, Y and Z-coordinate for the first point, pos. 4 to 6 are the coordinates for measuring point 2, pos.7 is ignored, pos. 8 is the retract coordinate in Z, pos. 9-10 ignored.

CGTechforum.JPG

I want to use the value in pos. 8 (variable #safez) as Z-motion value in ZDIFF 3 and ZDIFF 6. But varialbe safez remains zero until after parsing ZDIFF 8... How can I make Vericut read ZDIFF 8 in advance and store the value on safez so #safez can be used the way I want??

Any help is appreciated.

Best regards,

Svante


Svante Eriksson
System owner
GKN Aerospace Engine Systems Sweden
Vericut 7.2.1, 7.3.4, 7.4 - NX 9.0.3

Offline

#2 2005-12-07 09:03:12

Volkov
Member
From: St. Petersburg, Russia
Registered: 2004-12-15
Posts: 25
Website

Re: Variables

Hello Svante,
Try simply to locate "ZDIFF 8" word/address before "ZDIFF 3" into the Word/Address tree. The order of words appearence is important for its handling.


Regards.
Igor
www.bee-pitron.com

Offline

#3 2005-12-07 16:19:26

Svante
Senior Member
From: Trollhättan, Sweden
Registered: 2005-02-23
Posts: 60

Re: Variables

Hi Igor and thank you for answering,

First I tried to put the whole "ZDIFF 8" word/address before "ZDIFF 3" and then first of all, before "ZDIFF 1".
But none of it succeeded...
I think this way of doing it was what you meant?? Moving around the word/addresses in Vericut and not edit the tool path??

If I edit the actual block in the tool path, putting the 300 at the first position in the ZDIFF(300,x,y,z,x1,y2,z2,ignore,ignore,ignore) and then move the corresponding ZDIFF word/address to set the variable, it works perfect.
Same thing if I via MDI run the ZDIFF (with its original settings) once more - works perfect since the safez value is set during the first run.

But - the tool path has to remain as it is. Therefore I still have to deal with this...

There must be some work around for it??  :?

Best regards,

Svante


Svante Eriksson
System owner
GKN Aerospace Engine Systems Sweden
Vericut 7.2.1, 7.3.4, 7.4 - NX 9.0.3

Offline

#4 2005-12-08 10:54:41

Volkov
Member
From: St. Petersburg, Russia
Registered: 2004-12-15
Posts: 25
Website

Re: Variables

the tool path has to remain as it is

Of course, it's nothing to discuss.

Another way is to make subroutine and to call it after all necessary variables  from ZDIF command are defined.
The subroutine should contain all necessary axes movements that you defined already through Word/Address tree.

In that case, define all of ZDIFF words just for assigning variables (like #zdiff1,#zdiff2,...,#zdiff10). Then define the last "ZDIFF 10" word  to assign variable (#zdiff10) and to call your subroutine.

Hope it helps.


Regards.
Igor
www.bee-pitron.com

Offline

#5 2005-12-08 14:40:37

Svante
Senior Member
From: Trollhättan, Sweden
Registered: 2005-02-23
Posts: 60

Re: Variables

Hi Igor,

It worked perfect! But it's a shame I didn't found out about it by myself... I did as you said, using ZDIFF 1-6 and ZDIFF 8 only to assign the coordinate values to variables, and ZDIFF 9 to perform all the motion. But I didn't call a sub routine. I did use macros instead which didn't seem to make the ctl-file much bigger.

Again, thanks a lot!

Svante


Svante Eriksson
System owner
GKN Aerospace Engine Systems Sweden
Vericut 7.2.1, 7.3.4, 7.4 - NX 9.0.3

Offline

#6 2005-12-09 06:29:56

Volkov
Member
From: St. Petersburg, Russia
Registered: 2004-12-15
Posts: 25
Website

Re: Variables

It worked perfect!

Nice to hear.  big_smile
Always ready to help.


Regards.
Igor
www.bee-pitron.com

Offline

Board footer