Z-axis going in the wrong direction during Initialization

Have you sent the correct machine configuration?

see: