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-18 15:56:08

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

Where can we change lokal position variables

Another question,

the lokal position variables are

#5001 = X-Axis / #5021 and so on
#5002 = Y-Axis / #5022
#5003 = Z-Axis / #5023

How can we change it to

#5001 = X-Axis / #5021 and so on
#5002 = Z-Axis / #5022
#5004 = Y-Axis / #5023

or some other constelation?

Offline

#2 2006-02-21 17:50:47

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

Re: Where can we change lokal position variables

Go to Setup > Adv. Option; Event tab

Look for the macro SetDynamicVars with the Override text:
AxisLocalPlus 0000000 5001 5002 5003 5004 5005 5006 5007 5008 5009

edit the override text to assigne the values as needed. The order is XYZABCUVW
so you might have something like:
AxisLocalPlus 0000000 5001 5004 5002...

To get more information on the configuration, select the macro name and press F1.

Offline

#3 2006-02-21 18:22:17

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

Re: Where can we change lokal position variables

Thats easy. *lol* should open my eyes. *g*

Seems in the samples are wrong settings.
If i load a fanuc lathe demo and look at the variables screen on local-x then this data is in radius value. When i type in MDI:

T0101
G0 X50.0

The tool goes to this position but in the variables display on local-x it is 25.0
If i show the info screen and switch workpiece coordinates on there is the same value. X25.0

Wrong settings or bug? Or i am mad.  :?

Offline

#4 2006-02-21 18:58:34

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

Re: Where can we change lokal position variables

The program is in diameter mode, the X50 represents a diameter of 50, therefore the local tool position relative the NC program origin is 25.

It is not a bug, it is how the control is configured. Now, the question is: Is it how your real control behaves?

When you have X50, what is the value of #5001? 50 or 25?

Serge

Offline

#5 2006-02-21 19:17:28

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

Re: Where can we change lokal position variables

On the real Control #5001 is 50 on a diameter of X50.0
#5021 and #5041 are also in diameter mode

Offline

#6 2006-02-21 21:56:31

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

Re: Where can we change lokal position variables

In the Events:

under End of Block Processing
Add/Modify
Select-- Variable
Variable Number = 5001
Override Value = 2 * #5001   (spaces between the expressions)
Add

--repeat for #5021, #5041

Offline

#7 2006-02-22 09:38:23

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

Re: Where can we change lokal position variables

Thanks that works fine.

But on the status window the position of the tool is always an diameter value. :?

Offline

#8 2006-02-22 20:03:36

jsmillett
Member
From: Chatsworth, CA
Registered: 2005-02-25
Posts: 42

Re: Where can we change lokal position variables

What I have done is let SetDynamicVars set variables 50?0 to the X radius values then have End of Block Processing set variables 50?1 to the diameter values of twice the radius values.  Also, in the user file under Setup -> G-Code -> Variables, I define 50?0 as the Radius X values and 50?1 as the Diameter X values.   In this way, any references to the 50?1 variables get the desired Diameter values. 

EVENTS {
TYPE CONVERSION_INIT {
  MACRO "SetDynamicVars" { TEXT_OVERRIDE_VALUE "AxisLocalPlus 0000000 5000 ... }
  MACRO "SetDynamicVars" { TEXT_OVERRIDE_VALUE "AxisMachineMinus 0000000 5020 ... }
  ... }
TYPE BLOCK_FINISH {
  MACRO "BlockFinish"
  VARIABLE "5001" { OVERRIDE_EXP "2 * #5000" }
  VARIABLE "5021" { OVERRIDE_EXP "2 * #5020" }
  ... }
}


Jerry Millett

Offline

Board footer