Hi Jan,
The Z signal is probably an index pulse that happens at one or maybe several places along the scale. It is normally used for homing. You can connect that to any spare 5V tolerant input on KFLOP as homing is performed in software which an be coded to watch any input.
Regards