How does it control the Z axis, that's the tool up and down if it used HPGL ?

I always though in HPGL it was either up or down ?