I have 2 1998 mori seiki sv500s made within a month of each other. I have a haimler taster as tool #1 for setting work offsets. I use it to adjust offsets on every part sometimes. following will be some code as an example.
The first mill will run this fine. It stops at M00, I hit offset button, change the offset, hit the mem button, hit the green button and away we go. Tool #1 is labeled a sensor tool in the control.
If the sensor tool rotates for any reason, it will alarm. The 1st mill locks the spindle the whole time. The second mill unlocks the spindle on M00 and then sets a sensor rotate alarm. Is there a parameter to keep the spindle locked at M00?
The control is fanuc 18ima.

O0000
(OP1 G54 FRONT)
(DATE 06-03-19 TIME 10:24)
( T4 | 1/4 CARB 3FL LOC=1.75 | H4 )
N5 G20
N10 G0 G17 G40 G49 G80 G90
N15 G91 G28 Z0.
N20 G30 X0. Y0.
N25 T1 M6
N30 G0 G90 G54 X-2.9 Y1.0 T4
N35 Z1.
N40 G1 Z0. F50.
N45 M00(SET Z ZERO)
N50 G0 Z2.
N55 X-1.4 Y-.5
N60 G1 Z-.13
N65 Y0.
N70 M00 (SET Y ZERO)
N75 Y-.5
N80 G0 Z2.
N85 X-6. Y.3
N90 G1 Z.3
N95 X-6.464
N100 M00 (SET X TO -6.464)
N105 X-6.
N110 G0 Z2.
N115 G91 G28 Z0.
N120 G30 X0. Y0.
N125 M01
( 1/4 CARB 3FL LOC=1.75 | TOOL - 4 | DIA. OFF. - 4 | LEN. - 4 | TOOL DIA. - .25 )
( CONTOUR 3 COUNTERBORES )
N130 T4 M6
N135 G0 G90 G54 X-5.6074 Y.8171 S2000 M3