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.
What model is the control? As the machine is a Hitachi Seiki, and this section of the Forum is relating to all things Fanuc, I assume it to be an older model control. The parameters and variables used for the following method would be contingent on the control model.
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
%
O9001
IF [#4120 EQ 30] GOTO100
M03
GOTO101
N100
#3000=1(PROBE IN SPINDLE)
N101 M99
%
Regards,
Bill
Last edited by angelw; 02-04-2012 at 09:35 PM.