你好再次,
谢谢你的回复。在Polyscope上使用set IO22=1会产生此错误消息。
Set_standard_digital_out:无效端口号(22)
因此,我尝试直接在PolyScope上运行RoboDK生成的脚本。global ref_frame = p[0,0,0,0,0,0]定义的似乎有其他坐标,如RoboDK与UR控制器相比。机器人直接从RoboDK运行时移动方式不同。这是剧本。
def S1 ():
#全局参数:
全局speed_ms = 0.250
全局speed_rads = 0.750
全局加速度mss = 1.200
全局accel_radss = 1.200
Global blend_radius_m = 0.001
全局ref_frame = p[0,0,0,0,0]
#主程序:
由RoboDK v5.2.2在19/05/2021 10:55:58为UR5生成的程序
#使用标称运动学。
Speed_rads = 3.142
Speed_ms = 3.000
Movej ([0.282689, -1.716702, 1.980006, -1.813572, -1.567613, 2.633754],accel_radss,speed_rads,0,0)
Movej ([-0.027119, -1.169233, 1.714831, -2.098828, -1.566906, 2.318076],accel_radss,speed_rads,0,blend_radius_m)
Movel (pose_trans(ref_frame,p[-0.591575, -0.094414, -0.098837, -2.906536, 1.185291, -0.027940]),accel_mss,speed_ms,0,blend_radius_m)
Movel (pose_trans(ref_frame,p[-0.591575, -0.094414, -0.089837, -2.906536, 1.185291, -0.027940]),accel_mss,speed_ms,0,blend_radius_m)
set_configurable_digital_out(真正的)
睡眠(2.000)
Movej ([0.282689, -1.716702, 1.980006, -1.813572, -1.567613, 2.633754],accel_radss,speed_rads,0,blend_radius_m)
Movej ([-0.511704, -1.858357, 2.090503, -1.793849, -1.579778, 1.839001],accel_radss,speed_rads,0,blend_radius_m)
Movej ([-0.389263, -1.324049, 1.951418, -2.189201, -1.579923, 1.949672],accel_radss,speed_rads,0,blend_radius_m)
假set_configurable_digital_out (2)
set_configurable_digital_out(真正的)
睡眠(1.000)
set_configurable_digital_out(假)
Movej ([-0.511704, -1.858357, 2.090503, -1.793849, -1.579778, 1.839001],accel_radss,speed_rads,0,blend_radius_m)
Movej ([0.282689, -1.716702, 1.980006, -1.813572, -1.567613, 2.633754],accel_radss,speed_rads,0,blend_radius_m)
主程序结束
结束
S1 ()