The M code is a machine code used by CNC machines to control the movement of their axes. It consists of eight bits, each representing a single command.