ANET DIY Printer with Smoothieboard V1.1 X5

Hey Guys, just a starter question for advanced users.
I’m printing on an Anet A6 Ctc DIY Printer. With Ramps, Marlin 1.1.9 an 3D Touch it was working fine, not Z (gamma) endstop was needed, but on smoothie I couldn’t get it to work. What is needed to make 3D Touch probe z0?

If I install the gamma endstop, and probe the bed, it starts printing below the bed.

Best regards and many thanks in advance