from memory
if matrix, it's PLC parameter RB0.1 or so. this allows chuck open/close by M code or not.
then, if matrix, it could want an M106/7, M206/7 or even M306/7. Instead of the older M6/7.
M100 codes are for the first (primary) spindle
M200 are for the second (opposed) spindle
M300 are for the third, usually driven tools off the turret.
The PLC Parameter for the sub spindle, or Head 2 in the Mazak books, is different parameter number, but if you want to use chuck open close by program this also needs to be changed.
Use your PLC parameter books that live in the electrical cabinet on the machine to confirm PLC info!
-90% Jimmy
I can hit the books if this doesn't get you there. need control type to be accurate, and Mazak is up to about 6th generation mazatrol these days!