Can anyone help with a macro program to prevent accidental use of a renishaw probe on a Hitachi Seiki horizontal milling machine. I recently had a mishap with my renishaw probe the probe is always kept in pocket 30 which is never used for anything else. I would like the machine to alarm out if the probe is in the spindle when spindle start operates.
Because no arguments have to be passed, you could create Sub Programs that are called by the M codes M03 an M04. Included in the Sub Program would be a Boolean statement that tests for the current tool number. If the current tool is 30, then an alarm would be raised. The Macro statements in the Sub Program and parameter setting for a Series 10,11,12 model control would be something like the following:
03 would be registered in parameter #7071 to call the Sub Program O9001 with M03
IF [#4120 EQ 30] GOTO100
#3000=1(PROBE IN SPINDLE)
Last edited by angelw; 02-04-2012 at 09:35 PM.