Hello Guest it is April 19, 2024, 12:21:20 AM

Author Topic: Accessing value stored in a parameter  (Read 3484 times)

0 Members and 1 Guest are viewing this topic.

Accessing value stored in a parameter
« on: July 22, 2006, 07:48:38 AM »
The manual has an example of using a probe to find the centre and diameter of a hole (section 10.7.12.3).
It stores the value for the calculated average diameter in paramater #1034

How to I know what the value is, after the program has run?
....
N320 #1034=[[#1014 + #1024] / 2.0] (find average hole diameter)
...
Re: Accessing value stored in a parameter
« Reply #1 on: July 22, 2006, 09:45:44 AM »
I think you can do a GetVar(1034) in VB...
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com
Re: Accessing value stored in a parameter
« Reply #2 on: July 22, 2006, 10:37:22 AM »
I was suggested to send the value to the message bar, if possible, how would this be done?
 
« Last Edit: July 22, 2006, 10:43:44 AM by looker1 »
Re: Accessing value stored in a parameter
« Reply #3 on: July 22, 2006, 10:47:45 AM »
You could do a macro like this:

Test = GetVar(1034)
Code("Msg, The Dia = " & Test)

OR you coudl do this
 Test = GetVar(1034)
MsgBox("Msg, The Dia = " & Test)
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com