Changing Local Variable to shift tool setter

LOTT

Member
Joined
Mar 23, 2021
Messages
82
Reaction score
43
I need to move the tool setter on a S500X1, pushing it about three inches in Y+ to the edge of the table. From looking through the tool setting program it appears that #25 sets the Y offset; I went through the data bank and found the local variables table, but they are all blank. Is there some secret code that needs to be punched in to access these? And it really going to be as easy as changing one number?

Here the section of code:

(AUTO TOOL LENGTH MEASUREMENT)

(MACRO CALL FORMAT - )
( G65 P8324 X# Y# A# )
(EXTERNAL VARIABLES - )
( X = #24 X OFFSET FROM CENTER OF PROBE)
( Y = #25 Y OFFSET FROM CENTER OF PROBE)
( A = #1 SET AT 1 FOR M99, OMIT FOR M30)
(NOTE, THIS PROGRAM CAN BE RUN AS A SUB)
( OR AS A STAND-ALONE PROGRAM )


Thanks.
 

angelw

Well-known member
Joined
Mar 21, 2021
Messages
313
Reaction score
595
I need to move the tool setter on a S500X1, pushing it about three inches in Y+ to the edge of the table. From looking through the tool setting program it appears that #25 sets the Y offset; I went through the data bank and found the local variables table, but they are all blank. Is there some secret code that needs to be punched in to access these? And it really going to be as easy as changing one number?

Here the section of code:

(AUTO TOOL LENGTH MEASUREMENT)

(MACRO CALL FORMAT - )
( G65 P8324 X# Y# A# )
(EXTERNAL VARIABLES - )
( X = #24 X OFFSET FROM CENTER OF PROBE)
( Y = #25 Y OFFSET FROM CENTER OF PROBE)
( A = #1 SET AT 1 FOR M99, OMIT FOR M30)
(NOTE, THIS PROGRAM CAN BE RUN AS A SUB)
( OR AS A STAND-ALONE PROGRAM )


Thanks.
Hello LOTT,
Unless prevented from doing so by parameter setting, Local Variables are set to Vacant when a number of conditions exist, when Reset is pressed and power to the control is cycled for example; the default is for the Local and Common, Volatile Variables to be set to Vacant.

In your example code, X/Y arguments are being passed to Macro Program O8324 to populate Local Variables #24 and #25 respectively. You need to post the contents of O8324 for an informed answer to be given as to use of these Local Variables within O8324. It could be that they're used to Offset a Face Mill so that the tip of an insert is over the centre of the Probe. Who knows without digesting the Macro?

Regards,

Bill
 
Last edited:

LOTT

Member
Joined
Mar 23, 2021
Messages
82
Reaction score
43
Bill, so #25 is the offset from the probe for large tools, and the actual Y position of the probe is #32=#891? 8324 and 8325 in their entirety are attached.

(Side note- I wasn't sure if anyone was watching this, so I added the same question to another thread on PM)

------------------------------------
8324

(AUTO TOOL LENGTH MEASUREMENT)

(MACRO CALL FORMAT - )
( G65 P8324 X# Y# A# )
(EXTERNAL VARIABLES - )
( X = #24 X OFFSET FROM CENTER OF PROBE)
( Y = #25 Y OFFSET FROM CENTER OF PROBE)
( A = #1 SET AT 1 FOR M99, OMIT FOR M30)
(NOTE, THIS PROGRAM CAN BE RUN AS A SUB)
( OR AS A STAND-ALONE PROGRAM )

M9

(UNIT SCALE FACTOR - INCH/METRIC)
#27=1
IF[#4006EQ21]GOTO1
#27=.03937
N1

#28=[50.*#27] (DEFAULT MIN TOOL LENGTH FROM G.LINE)

M98P8325(SET TOOL PROBE LOCATION)


G91G28Z0M19
G90G00G53X[#24+#31]Y[#25+#32]
M321
(FEED DOWN QUICKLY TO TOUCH)
G53G131Z[#33+#28]F[2000*#27]
M320
G91G0Z[1.5*#27]
M321
(FEED DOWN SLOWLY TO TOUCH)



/#3004=2
G90G53G131Z[#33+#28]F[50*#27]
(CHECK TO VERIFY CONTACT)
M320



/#3004=0
(IF CONTACT, CONTINUE)
(STORE OFFSET FOR TOOL IN SPINDLE)
#[#3700+11000]=[#5023-#33]
G91G0Z[1.5*#27]
M321
G91G28Z0
G90
#[900+#3700]=#[11000+#3700]
IF[#1NE1]GOTO1
M99
N1M30

--------------------------------

8325

(SET ACTIVE TOOL PROBE VALUES)
(RESERVE VARIABLES #890-#899)

IF[#5024EQ0]GOTO1 (SINGLE TABLE MACHINE)
IF[#5024EQ-180.150]GOTO1 (PALLET 1)
IF[#5024EQ0.150]GOTO2 (PALLET 2)

#3000=1(PALLET POS NOT DETECTED)

N1
(SET PALLET 1/SINGLE TABLE)
#31=#890 (PROBE C.LINE - X AXIS)
#32=#891 (PROBE C.LINE - Y AXIS)
#33=#892 (PROBE ACTIVATION HEIGHT FROM TABLE)
M99

N2
(SET PALLET 2)
#31=#893 (PROBE C.LINE - X AXIS)
#32=#894 (PROBE C.LINE - Y AXIS)
#33=#895 (PROBE ACTIVATION HEIGHT FROM TABLE)
M99
 

LOTT

Member
Joined
Mar 23, 2021
Messages
82
Reaction score
43
Solved for posterity (which is actually me next year when I've forgotten how to do it):

#891 is the Y offset. Why that has to go through #32 to be used I still don't understand, but at least the current conundrum is solved.
 

angelw

Well-known member
Joined
Mar 21, 2021
Messages
313
Reaction score
595
Bill, so #25 is the offset from the probe for large tools, and the actual Y position of the probe is #32=#891? 8324 and 8325 in their entirety are attached.

(Side note- I wasn't sure if anyone was watching this, so I added the same question to another thread on PM)
Hello LOTT,
Yes, #31 and #32 are working copies of #890 and #891 respectively. The #800 series of variables are Common, Non-volatile Variables, meaning that they're Common to all programs that access them and are not Reset to Vacant even when the power to the control is cycled. Accordingly, if you want to move the location of the Probe, modify the registry of variables #890 and #891; this can be done manually by accessing the Macro Variable pages.

Regards,

Bill
 

angelw

Well-known member
Joined
Mar 21, 2021
Messages
313
Reaction score
595
Solved for posterity (which is actually me next year when I've forgotten how to do it):

#891 is the Y offset. Why that has to go through #32 to be used I still don't understand, but at least the current conundrum is solved.
Hello LOTT,
Just looking at the program quickly, it uses the Local Variables #31 and #32 to simplify the program and so that the one program can be universally used on different variations of the base machine. The Common Non-volatile variables copied into #31 and #32 used for the Centre of the Probe depends on whether the machine is a Single Pallet machine and which Pallet of a two Pallet machine.

Regards,

Bill
 
Top Bottom