There is a bit more to it then just position.
usual place to start is to compare the sum of the squares of the velocity signal from the gavlo feedback chain. This gives you net vector velocity which is pretty much the speed of the projected beam.
You also have to detect galvo failures, and software failures, ie static beam, and graphics card failing etc
plus a watchdog on the pic to make sure its working.
Steve
Qui habet Christos, habet Vitam!
I should have rented the space under my name for advertising.
When I still could have...