Rectangular Grid Compensation seems to be reversed

Hello I’m using this code found on zproble module page :
G28 (Home XYZ)
(Move Z at least 30mm away from the bed if it’s not, and attach probe if you have a removable probe)
G32 ( Probe the grid )
(Remove probe if you have a removable probe)
M500 (to save probe results)
G28 (Home XYZ)
(jog down to touch the plate)
M306 Z0
M500 (to save homing offset)
G28
(Machine is now grid-levelled and knows it’s correct height above the bed)

But when print runs, it seems that compensation is reversed. Z rises instead of going down and vice versa

What I am doing wrong ?

Best regards

Imported from wikidot

This is just an example to show how it can be done, it’s not meant to be copy/pasted as-is, it’s meant to be understood and adapted.

If your Z levelling is reverse, that probably has nothing to do with the gcode sequence though.

Are you sure your Z isn’t inverted ? Can you describe your machine and your Z axis ?