Simple up and down movement is not working


#1

Hello,

I try to do simple up and down movement with the Dobot Magician, but it is not working as expected.

I run this simple script from DobotStudio. Move the robot between the current position, and a higher point.

pos = dType.GetPose(api)
x = pos[0]
y = pos[1]
z = pos[2]
r = pos[3]

while(True):
	dType.SetPTPCmd(api, dType.PTPMode.PTPMOVLXYZMode, x, y, z, r, 1)
	dType.SetWAITCmd(api, 500, 1)
	dType.SetPTPCmd(api, dType.PTPMode.PTPMOVLXYZMode, x, y, z + 50, r, 1)
	dType.SetWAITCmd(api, 500, 1)

Here is the video, what it does.

I have no idea, what I could do wrong.

Robot firmware: V3.6.12 (latest)
DobotStudio version: 1.7.1 (latest)

Thank you for the suggestions in advance.

David