Skip to content

Latest commit

 

History

History
116 lines (108 loc) · 3.32 KB

xarm_api_code.md

File metadata and controls

116 lines (108 loc) · 3.32 KB

xArmSDK API code description

API return value status code

  • -9: emergency stop
  • -8: out of range
  • -7: joint angle limit
  • -6: cartesian pos limit
  • -5: revesed, no use
  • -4: command is not exist
  • -3: revesed, no use
  • -2: xArm is not ready, may be the motion is not enable or not set state
  • -1: xArm is disconnect or not connect
  • 0: success
  • 1: there are errors that have not been cleared
  • 2: there are warnings that have not been cleared
  • 3: get response timeout
  • 4: tcp reply length error
  • 5: tcp reply number error
  • 6: tcp protocol flag error
  • 7: tcp reply command and send command do not match
  • 8: send command error, may be network exception
  • 9: state is not ready to move
  • 10: reversed, no use
  • 11: other error
  • 12: parameter error
  • 20: tgpio id error
  • 21: modbus baudrate not supported
  • 22: modbus baudrate not correct
  • 23: modbus reply length error
  • 31: trajectory read/write failed
  • 32: trajectory read/write timeout
  • 33: playback trajectory timeout
  • 41: wait to set suction cup timeout
  • 100: wait finish timeout
  • 101: too many consecutive failed tests
  • 102: end effector has error
  • 103: end effector is not endabled

Controller warning code

  • 11: uxbux que is full
  • 12: parameter error
  • 13: the instruction does not exist
  • 14: command has no solution

Controller error code

  • 1: The Emergency Stop Button is pushed
  • 10: Servo motor error
  • 11: Servo motor 1 error
  • 12: Servo motor 2 error
  • 13: Servo motor 3 error
  • 14: Servo motor 4 error
  • 15: Servo motor 5 error
  • 16: Servo motor 6 error
  • 17: Servo motor 7 error
  • 19: Gripper Communication Error
  • 21: Kinematic Error
  • 22: Self-Collision Error
  • 23: Joints Angle Exceed Limit
  • 24: Speed Exceeds Limit
  • 25: Planning Error
  • 26: Linux RT Error
  • 27: Command Reply Error
  • 28: End Module Communication Error
  • 29: Other Errors
  • 30: Feedback Speed Exceeds limit
  • 31: Collision Caused Abnormal Current
  • 32: Three-point drawing circle calculation error
  • 33: Controller GPIO error
  • 34: Recording Timeout
  • 35: Safety Boundary Limit
  • 36: The number of delay commands exceeds the limit
  • 37: Abnormal movement in Manual Mode

Servo Error Code

  • 10: Current Detection Error
  • 11: Joint Current Overlimit
  • 12: Joint Speed Overlimit
  • 14: Position Command Overlimit
  • 15: Joints Overheat
  • 16: Encoder Initialization Error
  • 17: Single Ring Encoder Error
  • 18: Multi-turn Encoder Error
  • 19: Low Battery Voltage
  • 20: Driver IC Hardware Error
  • 21: Driver IC Initialization Error
  • 22: Encoder Configuration Error
  • 23: Large Motor Position Deviation
  • 26: Joint N Positive Overrun
  • 27: Joint N Negative Overrun
  • 28: Joint Commands Error
  • 33: Drive Overloaded
  • 34: Motor Overload
  • 35: Motor Type Error
  • 36: Driver Type Error
  • 39: Joint Voltage Overload
  • 40: Joint Voltage Insufficient
  • 49: EEPROM Read and Write Error
  • 52: Motor Angle Initialization Error

Gripper Error Code

  • 9: Gripper Current Detection Error
  • 11: Gripper Current Overlimit
  • 12: Gripper Speed Overlimit
  • 14: Gripper Position Command Overlimit
  • 15: Gripper EEPROM Read and Write Error
  • 20: Gripper Driver IC Hardware Error
  • 21: Gripper Driver IC Initialization Error
  • 23: Gripper Large Motor Position Deviation
  • 25: Gripper Command Over Software Limit
  • 26: Gripper Feedback Position Software Limit
  • 33: Gripper Drive Overloaded
  • 34: Gripper Motor Overload
  • 36: Gripper Driver Type Error