Does M10 open or close?+−
It depends on the machine, and there is no way to know without looking it up. It varies by machine: on Haas lathes, for example, M10 clamps and M11 unclamps, and on other models it is the reverse. You check it in the auxiliary function list in the manual or by testing it in MDI with the machine empty, which takes two minutes and removes all doubt.
Are they the same on Haas, Fanuc and Mazak?+−
The number exists on all of them, but what it does is defined by each builder's PLC. It is not even guaranteed within the same brand across models and years. This is exactly the kind of code you never transplant between machines without verifying it.
Can I open the workholding from the program with the spindle turning?+−
The machine's interlock should prevent it, and on any properly configured machine it does. But you do not program counting on that: you stop the spindle, wait until it has truly stopped and only then command the M-code. The inertia of a heavy part does not vanish the instant the rotation command drops.
Do I need a G04 after it?+−
On many machines, yes. If the PLC waits for the end-of-stroke confirmation before finishing the block, you do not need one; if it just sends the command and moves on, the program can start the spindle before the chuck has pressure. A half-second dwell is cheap and covers both cases.
Where is the M-code list for my lathe?+−
In the operator's manual, in the auxiliary functions chapter, and sometimes on a sticker inside the electrical cabinet. If the machine is second-hand and came without documentation, the builder's service department can usually supply it from the serial number.