The engraving machine uses End Stop Switch to locate the origin, called Homing.This is very useful when carving machines always do the same thing.
More How to install a Hard Limit Switch
Enable Homing
$22=1
$23=3
Start a Homing
G28 X0 Y0 Z0