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 2014-04-22 21:38:45

mcam
Beta User
From: Planet Earth
Registered: 2007-06-10
Posts: 81

Control Variable - Number Array

Hi there,

I have a variable defined in my control. The variable is VZOFZ (Z zero set for an Okuma control). This variable has two values, depending on G140 (main spindle) or G141 (sub spindle). I set up the variable as a number array, so it is under the control variables as: VZOFZ[2]
                         |
                         - [0]
                         |
                         - [1]

In my control file I have VZOFZ set up, with either G140 or G141 active. What is the correct syntax to propagate [0] and [1] respectively? When the NC file is read it puts the G140 VZOFZ value in 0, and then when it reads the G141 VZOFZ it updates [0] and not [1].

I believe I'm not using the right syntax. Anyone care to elighten me?

Regards,

Mike


New Zealand Vericut Reseller

Offline

#2 2014-04-22 22:50:33

mcam
Beta User
From: Planet Earth
Registered: 2007-06-10
Posts: 81

Re: Control Variable - Number Array

Actually. I think I have the process wrong. In the G code processing window, I have VZOFZ defined with a condition of G140 (G140 writes the value of 140 to the 6000 variable, and G141 writes the value of 141 to the 6000 variable). I just assumed that meant that if the VZOFZ value was encountered with the 6000 variable at 140, it would write the VZOFZ value to the VZOFZ variable. I realise that isn't the case.

So... what would the process be to make Vericut write the VZOFZ value, (when variable 6000 = 140) to the Variable number array location 0 for variable VZOFZ in the Control Variable page?


New Zealand Vericut Reseller

Offline

#3 2014-04-23 02:33:25

mcam
Beta User
From: Planet Earth
Registered: 2007-06-10
Posts: 81

Re: Control Variable - Number Array

As always, CGTechs outstanding tech support helped me out. The issue has been sorted smile

Cheers!


New Zealand Vericut Reseller

Offline

Board footer