Option: Use of distance sensor and motor encoder
Release Note
This option is available starting at CNC Build V2.11.2804.02 and higher.
Distance sensor
Normally the distance is just measured by the distance sensor. The actual position of the Z axis is not included.
Deviation = Set distance - Sensor value
Δd = dcom - dact (controllerDistCtrl: Zoffset,i = Zoffset,i-1 + Δd)
dact = Filter (d’act)
Distance sensor and motor encoder
As an extension, both the distance sensor and the Z actual value sensor can be used. The inverse coupling of the two encoders (motor, distance) generally causes a reduction in oscillation tendency.
Deviation = Set distance - Sensor value
Δd = dcom - dact (Zoffset,i = Zoffset,i-1 + dε)
dact = filter (d’act + Zact - Zcom) = filter (d’act - ΔΖ)
Example
Example parameters
kenngr.distc.mode_dist_use_both_encoder 1 # Motor and distance encoder active