The low cost THCs DO have the pid loop built in and cost around $500 or less complete . It is a basic function of the system. You can also use a simple PLC and IF you can do the programming build in a PID loop to do it as welll.
THE advantage of using an existing DTHC to do this IS?


?? They react VERY VERY VERY fast to changing conditions and that is REquired IF you are going to try and keep up with cutting and Z height changes.
Now that brings up another related question HOW FAST is the sonic sensor and HOW accurate is it. A plasma torch is a very course user of the Zheight compared to routing . A plasma torch can have minor changes in Z height and you would probably not ever notice it in the cut quality. Do that too much with routing and you have an ugly mess.
SO are there any specs out there on the Sonic height sensor?? I personelly would not make a sonic sensor my first choice of sensors as it will be effected by swarf conditions and speed of Cut.
ANOTHER thought would be to use a linear scale to monitor the Zheight and slave it to the Z heightaxis so that the Quad ouput of the sensor DRIVES the Z axis to react like a CNC control BUT follow the surface directly.
Just some thoughts, (;-) TP
(;-) TP