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-26 15:24:58

markusklein
Member
From: skövde, sweden
Registered: 2007-02-23
Posts: 2

sinumeric 840D question.

Hi, I was hopping somebody would be able to help with a little problem I ran into at work last week while I was making a program in sinumeric 840D. I've written theese lines in my program.

Def bool brunn_1==1
if brunn_1=1 $do r101==6

what I want the program do is to set r101=6 if brunn_1=1
but it seemes I'm doing something wrong, I get a alarm when the program reads the second line i've typed. Could somebody please tell me the correct way to make this work?

sorry about my bad spelling
/Markus

Offline

#2 2007-02-26 18:56:01

markusklein
Member
From: skövde, sweden
Registered: 2007-02-23
Posts: 2

Re: sinumeric 840D question.

Oh, come on, somebody must know about this, I would really like to try this program before my shift ends. I guess its the command "$do" that is wrong, but I cant figure out what the correct command is.

/Markus

Offline

#3 2007-02-27 11:08:53

MustaphaC
VERICUT Specialist
From: Le Mans, France
Registered: 2004-10-14
Posts: 130
Website

Re: sinumeric 840D question.

Hi Markus,

1- I think you reversed the '=' (Math affectation) and the '==' (Logical equal). Your two lines should look like this ?

Def bool brunn_1=1
if brunn_1==1 $do r101=6

2- Vericut support the Def siemens function but for the 'bool' it considers it as an integer. That's why in the avanced option of the control there is a substitution of 'BOOL' by 'INT'. Unfortunatly it is case sensitive. So you have to add another substitution of 'bool' by 'INT' (or rewrite 'BOOL' instead of 'bool' in your NC program)

3- The $do is not needed for Vericut so you can just create the word in the Word/Format and select Type=Special + Sub-Type=Ignore (Or add another condition to the IF word in the word/adress...)

Try this and let us know... Thanks

Mustapha


Mustapha

Offline

Board footer