3018 pro z axis failure

Yes. Change $1 to $1=255.

I don’t know for your machine. You’ll need to calibrate the steps/mm. When you set it up as an X-Carve it used the settings for the X-carve.