Option: Use of distance sensor and motor encoder

Release Note

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)

Block diagram of distance control with distance sensor
Block diagram of distance control with distance sensor

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 - ΔΖ)

Block diagram with distance sensor and motor encoder
Block diagram with distance sensor and motor encoder

Example

example

Example parameters

kenngr.distc.mode_dist_use_both_encoder

1 # motor and distance encoder active