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-02-21 11:53:36

sae
Member
From: Sweden
Registered: 2005-04-26
Posts: 20

Substitute

Hi!

Is it possible to use wildcards in Adv. Control Options Subs. Tab

Regards/sae

Offline

#2 2007-02-21 18:14:33

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

Re: Substitute

The substitution is simply a text to text replacement. You cannot use wildcard or conditions.

What are you trying to achieve? maybe there is another solution?

Serge

Offline

#3 2007-02-22 05:20:08

sae
Member
From: Sweden
Registered: 2005-04-26
Posts: 20

Re: Substitute

Hi Serge!

In this case i want VCut to ignore Heidenhain tol.  and repl. with nothing .

  ex.     N1110 G62 T0.05 P01 0 P02 5.

  parametres after G62 can have a lot of diff. values .

Maybe there is a more clever solution for this instead of using substitute ?

Regards/sae

Offline

#4 2007-02-22 09:22:55

danr
Member
From: Derby, UK
Registered: 2006-07-24
Posts: 19

Re: Substitute

Depending on what you want to acheive (Forgive my lack of understanding of the Heidenhain!) there are two possibilities.

@ It seems to to me that you could use the conditional field in your control:

E.g under the T word have a conditional that reads 'And Word G62' and then under that have an override value of T0

This could be repeated for any other parameters

@ Alternatively to ignore everything after the G62 you could substitute for G62 followed by a begin comment symbol:

E.g if ; is the symbol for begin comment:
Substitute G62 -> G62 ;

Cheers...Daniel


Current version: Vericut 7.0.3

Offline

#5 2007-02-22 09:43:42

sae
Member
From: Sweden
Registered: 2005-04-26
Posts: 20

Re: Substitute

Thanks for your help!

Substitute  G62 ->  ;       
                                   works perfect



Regards from a cold and snowy Sweden/sae

Offline

#6 2007-02-22 21:23:40

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

Re: Substitute

I personnaly don't like substitution, I use them as a last resort when there is no other way.

It works, don't get me wrong. But when I debug a control, I first look in the Word/Address to see how it is configured. The substitution bypass all that.

For your case, I suggest a different approach:

N1110 G62 T0.05 P01 0 P02 5.

In Word/Address, set T, P01 and P02 with a condition of G 62 to call the macro named IgnoreMacro. This macro does absolutly nothing but gives you the indication that it is voluntarely ignored.

IMO a cleaner solution.

Offline

#7 2007-02-23 11:01:05

sae
Member
From: Sweden
Registered: 2005-04-26
Posts: 20

Re: Substitute

Hi , thanks for your answer !

I will try this solution also .

Regards/sae

Offline

Board footer