'set current position (integer) (set variable, not physical position. units as steps)'

def setPos(self, pos):

    if ((pos >= 0) and (pos <= 65535)):
        (posMSB, posLSB) = _int2bytes(pos)
        p = snap.Packet(self.address, snap.localAddress, 0, 1, [CMD_SETPOS, posMSB, posLSB])
        p.send()
    else:
        raise _RepRapError('Invalid    position    value')
