How to set up machine mikro as midi device on traktor scratch with kontrolo z2.

How to set up machine mikro as midi device on traktor scratch with kontrolo z2.

Hi, my set-up is 2 turntable, 1 kontrol z2, 1 maschine mikro mk2. I would like to install and mapping maschine mikro as midi device on traktor scratch continuing to use kontrolo z2. I have some trouble to install and use both device. The maschine is directly connected via usb to kontrol z2.
I have just tried with setup wizard but It cannot recognize the maschine or if I select generic midi device traktor don’t find the Z2.
Someone can u help me please?