Table of Contents

roboticArm.movexyzonebyone()

Function Definition: roboticArm.movexyzonebyone(XPOS, YPOS, ZPOS, TIME = 1000)

Parameters

NameTypeDescriptionExpected ValuesDefault Value
XPOSintWhen Y = 0 and Z = 0 Then, Range of X will be X = -212 to 212-212 to 2120
YPOSintWhen X = 0 and Z = 0 Then, Range of Y will be Y = 125 to 212125 to 2120
ZPOSintWhen X = 0 and Y = 0 Then, Range of Z will be Z = 0 to 1200 to 1200
TIMEintTime in miliseconds.100 to 100001000

Description

This function is used to move a robotic arm from its current position to a specific X, Y, and Z coordinate position over a specified period of time. It takes in multiple parameters, such as the current position of the arm, the coordinates to move to, and the interval in which to move.

The function then determines how many steps must be taken in each axis to reach the destination point, and moves in the X axis first, then the Y axis, and lastly the Z axis before returning the successful result.

Note: The ranges of X, Y, and Z are interdependent, and modifying one value causes the ranges of the others to update accordingly.

Example

There are no examples documented for this article.