top of page

Python 13.42. UDP extension axes synchronized with robot joint motion code example

from fairino import Robot
# Establish a connection with the robot controller and return a robot object if the connection is successful
robot = Robot.RPC('192.168.58.2')
# Set the UDP communication parameters and load
robot.ExtDevSetUDPComParam("192.168.58.88"202121003100110010)
robot.ExtDevLoadUDPDriver()
# Set the parameters of the extended axis
robot.SetAxisDHParaConfig(4200200000000)
robot.SetRobotPosToAxis(1)
robot.ExtAxisParamConfig(101100-1001010121310720100)
# Expand the axis to enable and return to zero
robot.ExtAxisServoOn(10)
robot.ExtAxisSetHoming(10203)
# Extended axis coordinate system calibration
pos = []  # Please fill in the specific coordinates
robot.SetRefPointInExAxisEnd(pos)
robot.PositionorSetRefPoint(1)  # This operation should be repeated 4 times (using 4 dots)
error,coord = robot.PositionorComputeECoordSys()
robot.ExtAxisActiveECoordSys(11, coord, 1)
# Synchronize the starting and ending points of the movement
startdescPose = []  # Please fill in the specific coordinates
startjointPos = []  # Please fill in the specific coordinates
startexaxisPos = []  # Please fill in the specific coordinates
enddescPose = []  # Please fill in the specific coordinates
endjointPos = []  # Please fill in the specific coordinates
endexaxisPos = []  # Please fill in the specific coordinates
# Move to the starting point
robot.ExtAxisMove(startexaxisPos, 20-1)
offdese = [000000]
robot.MoveJ(joint_pos=startjointPos,tool= 1,user= 1,vel= 100,acc= 100,ovl= 100,exaxis_pos= startexaxisPos,blendT= 0,offset_flag= 0,offset_pos= offdese)
robot.ExtAxisSyncMoveJ(endjointPos, enddescPose, 11, endexaxisPos, 100100100-10, offdese)
robot.CloseRPC()

13.43. UDP extension axes synchronized with robot linear motion

New in version python: SDK-v2.1.5

Prototype

ExtAxisSyncMoveL(desc_pos, tool, user, exaxis_pos, joint_pos = [0.0,0.0,0.0,0.0,0.0,0.0,0.0], vel=20.0, acc=0.0, ovl=100.0, blendR=-1.0, search=0, offset_flag= 0, offset_pos=[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],config=-1)

Description

UDP extension axis synchronized motion with robot linear motion

Mandatory parameters

  • desc_pos: target Cartesian position in [mm][°];

  • tool: tool number, [0 to 14];

  • user: artifact number, [0 to 14];

  • exaxis_pos: external axis 1 position ~ external axis 4 positions;

Default Parameters

  • joint_pos: target joint position in [°] Default initial value is [0.0,0.0,0.0,0.0,0.0,0.0,0.0], default value calls inverse kinematics to solve for the return value.

  • vel: percentage of speed, [0~100] default 20.0;

  • acc: percentage of acceleration, [0~100] not open yet, default 0.0;

  • ovl: velocity scaling factor, [0~100] default 100.0;

  • blendR: [-1.0]-motion in place (blocking), [0~500.0]-smoothing time (non-blocking) in [ms] default -1.0;

  • search: [0] - no wire search, [1] - wire search;

  • offset_flag: [0] - no offset, [1] - offset in workpiece/base coordinate system, [2] - offset in tool coordinate system Default 0;

  • offset_pos: position offset in [mm][°] default [0.0,0.0,0.0,0.0,0.0,0.0] ;

  • config: Reverse the joint space configuration, [-1]- calculate based on the current joint position, [0~7]- solve based on the specific joint space configuration, default -1

Return Value

Error Code Success-0 Failure- errcode;


robotic arm
FAIRINO ROBOTIC ARMS

Contact

Location: 10637 Scripps Summit Court,

San Diego, CA. 92131
Phone: (619) 333-FAIR
Email: hello@fairino.us

© 2023 Fairino US official site Proudly created By G2T

bottom of page