I just startet to make macro, and to quickly get on, I have some questions.

I have make this macro:
code ("G00 X0 Y0")
very simple. But want a function more. Something like:
'move to Z135 in machinecoordinate'
whilemoving ()
wend
code ("G00 X0 Y0")
I don't know hove to adress the move to the machine coordinate system.