Elephant Robotics myCobot Pro 600 User Manual page 131

Table of Contents

Advertisement

Socket string format: program_run(line_number)
example: program_run(0)
the return string is formated in key-value pair, the key is the funciton name,
the value is the value from robot, if success: program_run:0. If any error
occurred, you will get program_run:error_message.
27 get the robot error
Socket string format: read_next_error()
example: read_next_error()
the return string is formated in key-value pair, the key is the funciton name,
the value is the value from robot, if success: read_next_error:message.
28 set the payload of the robot
Socket string format: set_payload(payload)
example: set_payload(5.0)
the unit of payload is kg
the return string is formated in key-value pair, the key is the funciton name,
the value is the value from robot, if success: set_payload:[ok]. If any error
occurred, you will get set_payload:error_message.
29 set the acceleration of the robot
Socket string format: set_acceleration(acc)
example: set_acceleration(50)
the acceleration must be an integer, the unit of acceleration is mm/s^2.
the return string is formated in key-value pair, the key is the funciton name,
the value is the value from robot, if success: set_acceleration:[ok]. If any
error occurred, you will get set_acceleration:error_message.
30 get the acceleration of the robot Socket string format: get_acceleration()
example: get_acceleration()
the unit of acceleration is mm/s^2
the return string is formated in key-value pair, the key is the funciton name,
the value is the value from robot, if success: get_acceleration:50.
31 assign variable
Socket string format: assign_variable('variable_name',value)
example: assign_variable('A',10) or assign_variable('B',"ABC")
the variable name need to bu quoted with single quote mark(''), if the value
is a string, need to bu quoted with double quotation marks("").
131

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the myCobot Pro 600 and is the answer not in the manual?

Questions and answers

Table of Contents