The feedback from the motor is connected to MOTOR FEEDBACK C6 connector. STM+/STM- are thermal sensor connections. HU,HV and HW are commutation signals. A/B/Z are incremental signals.
Please conisder the correct pinout in respect to the connector type shown below.