How to set z-axis origin in any position ?

Hi :
I want to set z-axis origin in any position with my 3D printer,but i find it is useless ,what should i do?

Imported from wikidot

Why do you want to set a position if you consider it useless?
Anyway, you can send a G92 X0 for example to set the X position to zero at the current position.