operation is commonly performed on a milling machine but can also be done on a lathe. Some mill based EEFs consist of an internal switch. Upon physical contact with the reference surface, the contact either opens or closes. This state change is fed into CNC code which controls the motion of the mill .