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 2006-02-16 20:28:55

Armageddon1801
Member
From: Germany
Registered: 2006-02-16
Posts: 6

IF THEN - statement on FANUC-16i/18i...

Hi everybody,

i have one question about the simluation of macroprogramms inside VeriCut.

The following Code works in the Machine but in VeriCut comes alarm.

IF[#10EQ#0]THEN IF[#23NE#0]THEN #3000=0(TESTALARM)

looks like the second IF THEN - statement dont work in VeriCut.
But why?

Thanks for answers

Offline

#2 2006-02-17 20:50:39

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

Re: IF THEN - statement on FANUC-16i/18i...

Turn in Enhancement Requests.  big_smile

Vericut does not simulate every condition in the Macro B language.  Neither does it do all the Macro B syntax checks.

Use of [] or non use of [] has little effect in IF statements unless precedence is involved.  You can even mismatch them and there is no error.

THEN is not  defined only GOTO is.  THEN  is a default action.  You can leave it off and it acts as if it is there in most cases.  It wont work at the machine.

Offline

#3 2006-02-17 23:01:08

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

Re: IF THEN - statement on FANUC-16i/18i...

Control > Adv. Options ; Events tab
Start of Processing

Add the macro:  IfCheckAllMacros With an override value of 1, it causes the IfCheck macro to be applied to all macros called after the IfCheck on the current block.

I did some short tests and it seemed to work.

Serge

Offline

#4 2006-02-18 15:50:05

Armageddon1801
Member
From: Germany
Registered: 2006-02-16
Posts: 6

Re: IF THEN - statement on FANUC-16i/18i...

I will try it. Thanks.

Offline

Board footer