Hello..
This is my diagram of TV400 and cabinet... And the last one on my scheme is SPINDLE DRIVE (u can recognize it because of spindle FAN)D1 D2 D3 are X Y Z and D4 is for ATC (automatic tool change) and C5 in my case is for APC arm (automatic pallet change and it is a PLC axis C5 ) the last is the spindle drive and it is D6 (in scheme is Unit5)
Best regards..