To lock the machine - Enter M17 in MDI mode and hit cycle start.
To unlock the machine - Enter M18 in MDI mode and hit cycle start.
When you touch the tool onto the probe, the offset is automatically set into the registry for you. The measure button is used when setting your Work Offsets.