pip install pyserial
python demo.py
-
Function: Get the main version number of the gripper firmware
-
Parameter: None
-
Return:
(int)
Firmware main version number
-
Function: Get the sub-version number of the gripper firmware
-
Parameter: None
-
Return:
(int)
Firmware sub-version number
-
Function: Get the gripper ID
-
Parameter: None
-
Return:
(int)
Gripper ID
-
Function: Get the baud rate of the gripper
-
Parameter: None
-
Return:
(int)
0-50
: 1152001
: 10000002
: 576003
: 192004
: 96005
: 4800
- Function: Get the current position data of the gripper
- Parameter: None
- Return:
(int)
The current position data of the gripper
- Function: Get the current status of the gripper
- Parameter: None
- Return:
(int)
0-30
: Moving1
: Stopped moving, no object was detected2
: Stopped moving, object was detected3
: After detecting that the object is clamped, the object falls
-
Function: Get the current speed of the gripper
-
Parameter: None
-
Return:
(int)
The current speed of the gripper
-
Function: Get the P value of the gripper PID
-
Parameter: None
-
Return:
(int)
The P value of the gripper PID
-
Function: Get the I value of the gripper PID
-
Parameter: None
-
Return:
(int)
The I value of the gripper PID
-
Function: Get the D value of the gripper PID
-
Parameter: None
-
Return:
(int)
The D value of the gripper PID
- Function: Get the clockwise runnable error of the gripper
- Parameter: None
- Return:
(int)
Clockwise runnable error of the gripper
- Function: Get the counterclockwise runnable error of the gripper
- Parameter: None
- Return:
(int)
Counterclockwise runnable error of the gripper
- Function: Get the minimum starting force of the gripper
- Parameter: None
- Return:
(int)
Minimum starting force of the gripper
- Function: Get the opening angle of the gripper Io
- Parameter: None
- Return:
(int)
Opening angle of the gripper Io
- Function: Get the closing angle of the gripper Io
- Parameter: None
- Return:
(int)
Get the closing angle of the gripper Io
-
Function: Get the amount of data in the current queue of the gripper
-
Parameter: None
-
Return:
(int)
The amount of data in the current queue of the gripper
-
Function: Get the virtual position value of the gripper servo
-
Parameter: None
-
Return:
(int)
The virtual position value of the gripper servo
-
Function: Get the gripper clamping current
-
Parameter: None
-
Return:
(int)
The gripper clamping current
- Function: Set the gripper ID
- Parameters:
value
:(int)
Gripper ID, value range1-254
- Return:
(int)
0-10
: Failed1
: Success
- Function: Set the gripper baud rate
- Parameter:
value
:(int)
Gripper baud rate, value range0-5
0
: 1152001
: 10000002
: 576003
: 192004
: 96005
: 4800
- Return:
(int)
0-10
: Failed1
: Successful
- Function: Set the gripper enable state
- Parameter:
value
:(int)
Enable state, value range0-1
0
: Disabled1
: Enabled
- Return:
(int)
0-10
: Failed1
: Success
- Function: Set the gripper to rotate to the specified position at the specified speed
- Parameter:
value
:(int)
Position, value range0-100
speed
:(int)
Speed, value range1-100
- Return:
(int)
0-10
: Failed1
: Success
- Function: Set the gripper Zero Calibration
- Parameter: None
- Return:
(int)
0-10
: Failed1
: Success
- Function: Set the P value of the gripper PID
- Parameters:
value
:(int)
P value, value range0-254
- Return:
(int)
0-10
: Failed1
: Success
- Function: Set the I value of the gripper PID
- Parameters:
value
:(int)
I value, value range0-254
- Return:
(int)
0-10
: Failed1
: Success
- Function: Set the D value of the gripper PID
- Parameters:
value
:(int)
D value, value range0-254
- Return:
(int)
0-10
: Failed1
: Success
-
Function: Set the clockwise running error of the gripper
-
Parameter:
value
:(int)
Error, value range0-16
-
Return:
(int)
0-10
: Failure1
: Success
-
Function: Set the counterclockwise running error of the gripper
-
Parameter:
value
:(int)
Error, value range0-16
-
Return:
(int)
0-10
: Failure1
: Success
- Function: Set the minimum starting force of the gripper
- Parameter:
value
:(int)
Minimum starting force, value range0-254
- Return:
(int)
0-10
: Failed1
: Success
- Function: Set gripper torque
- Parameter:
value
:(int)
Torque, value range0-300
- Return:
(int)
0-10
: Failed1
: Success
-
Function: Set gripper IO
-
Parameter:
value
:(int)
Gripper IO, value range0-3
0
: out1 off,out2 off1
: out1 on,out2 off2
: out1 off,out2 on3
: out1 on,out2 on
-
Return:
(int)
0-10
: Failed1
: Success
- Function: Set the gripper Io open position
- Parameter:
value
:(int)
position, value range0-100
- Return:
(int)
0-10
: Failed1
: Success
- Function: Set the gripper Io closed position
- Parameter:
value
:(int)
position, value range0-100
- Return:
(int)
0-10
: Failed1
: Success
- Function: Set the gripper speed
- Parameters:
speed
:(int)
speed, value range1-100
- Return:
(int)
0-10
: failed1
: successful
- Function: Set the gripper to rotate to the specified absolute position at the specified speed
- Parameters:
value
:(int)
position, value range1-100
speed
:(int)
speed, value range1-100
- Return:
(int)
0-10
: failed1
: successful
- Function: Set the virtual position value of the gripper servo
- Parameters:
value
:(int)
virtual position, value range0-100
- Return:
(int)
0-10
: Failed1
: Success
- Function: Set the gripper gripping current
- Parameter:
value
:(int)
Virtual position, value range1-254
- Return:
(int)
0-10
: Failed1
: Success
- Function: Set the gripper to pause motion
- Remarks: Only valid for set_abs_gripper_value()
- Parameter: None
- Return:
(int)
0-10
: Failed1
: Success
- Function: Set the gripper to resume motion
- Remarks: Only valid for set_abs_gripper_value()
- Parameters: None
- Return:
(int)
0-10
: Failure1
: Success
- Function: Set the gripper to stop moving and clear the message queue
- Remarks: Only valid for set_abs_gripper_value()
- Parameters: None
- Return:
(int)
0-10
: Failure1
: Success