Reply To: Two move in a row

Home Evil Mad Scientist Forums AxiDraw Two move in a row Reply To: Two move in a row

#29492
Windell Oskay
Keymaster

The penup() command raises the pen, if the pen is down. It does not raise the pen if it is already raised.

The pendown() command lowers the pen, if the pen is up. It does not lower the pen if it is already lowered.

I will also note that your ad.options.pen_pos_up = 80 command needs to be followed by an update().

If you aren’t using the penup()/pendown() commands in the usual way — to lift and lower the pen between two independent states — then you might consider something like the following (which could be wrapped up as a function in your python script):

ad.options.pen_pos_up = 80
ad.options.pen_pos_down = 80
ad.update()
ad.penup()
ad.pendown()

That will set the pen up and pen down positions to be the same, and leave it in the pen-down logical state.