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 2010-07-01 12:37:50

ffcut
Member
Registered: 2009-11-04
Posts: 16

Substituting G Codes

Hi guys,

Suppose i have a code in my NCprogram like below.

"ABC+90"

What i want to do is substitute the "ABC+" with "ABC+360-" to make it "ABC+270"

The main thing is to simulate my machine correctly in Vericut i want Vericut to subtract the Value after ABC+ from 360.

Is it possible?

Thanks!

Offline

#2 2010-07-01 15:48:41

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

Re: Substituting G Codes

Rather than substitution you can use the override value field of the corresponding Word/Value and put "360 - $", where $ is any incoming value


Mustapha

Offline

#3 2010-07-02 05:59:33

ffcut
Member
Registered: 2009-11-04
Posts: 16

Re: Substituting G Codes

Thanks Mustapha.

Actually the code is:
PLANE SPATIAL SPA+90 SPB+0 SPC+270 STAY

This works fine in the machine but Vericut goes to the wrong place.

When i write the above line like:

PLANE SPATIAL SPA+0 SPB+90 SPC+90 STAY

Then the simulation is true.

So i made Substitution for "SPA+" to "SPB+" and "SPB+0" " " to ignore the second one. If only i can do a 360-$ to SPC+value then everything will be fine.

I tried to change the value of SPC in Word/Address in Override Value but made no changes in the variable number 122 which corresponds for SPC.

Offline

#4 2010-07-02 09:19:46

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

Re: Substituting G Codes

VERICUT is configured to work as you expect BUT with the "RELATIVE" function NOT the "SPATIAL" function, such as:
PLANE RELATIVE SPA+90 SPB+0 SPC+270 STAY


Mustapha

Offline

#5 2010-07-02 09:37:50

ffcut
Member
Registered: 2009-11-04
Posts: 16

Re: Substituting G Codes

But i changed SPATIAL to RELATIVE in the NC Program but it does not change anything.

Offline

#6 2010-07-02 09:52:42

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

Re: Substituting G Codes

Make sure you are using the latest control from CGTech library folder (V703). The configuration should look like :


Mustapha

Offline

#7 2010-07-02 10:37:36

ffcut
Member
Registered: 2009-11-04
Posts: 16

Re: Substituting G Codes

I do not see any images.

But you can see my controller
control.jpg
control2.jpg

Offline

#8 2010-07-05 07:49:02

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

Re: Substituting G Codes

Sorry for the misinterpreting of the results I get... It will be different if a previous rotation plane was in effect, it was the case with my test...
Anyway make sure the WorkingPlane2AbcType is using the correct value for your kinematic. Normally this macro should not be called as the software is looking for the good value, but it can be worth to call it in start event and select the correct value:

WorkingPlane2AbcType
Function — ROTATION PLANE
Status — ACTIVE
Valid Inputs — Value
1 = Generic A-C. A Nutator may exist on the table.
2 = Generic B-C. A Nutator may exist on either head or table
3 = Special A-C table on table machine with a horizontal head. A nutator on the table is NOT supported.
4 = Generic B-A.
5 = Special double angle BC nutator support for DMG DMU 50 eVo Linear machines. Supports any angles on the nutator.
99 = Universal (Default)


Mustapha

Offline

Board footer