API Reference v9.2.0
Ge1xGripperclass
Module: zaber_motion.product
Class representing a gripper in the GE1x series.
The following example illustrates how you can obtain an instance of this type:
from zaber_motion.product import Ge1xGripper
ge_1_x_gripper = Ge1xGripper.open_connection('COM3')Index
cConstants
pProperties
mMethods
Constants
c
Properties
Methods
m
ge_1_x_gripper.activate_preset(preset_number, wait_until_idle = True)Activates a preset, causing the gripper to move to the preset position using the preset force and speed.
Arguments
| Name | Type | Description |
|---|---|---|
| preset_number | int | The preset number to activate, from 1 to 4. |
| wait_until_idle | bool | Wait until the move has completed before returning. |
m
m
m
ge_1_x_gripper.get_error()Gets the current error of the gripper.
Return Value
Ge1xGripperError The current error of the gripper.m
m
m
ge_1_x_gripper.get_state()Gets the current state of the gripper.
Return Value
Ge1xGripperState The current state of the gripper.m
m
m
ge_1_x_gripper.move(position, wait_until_idle = True)Moves the gripper to a specified position.
Arguments
| Name | Type | Description |
|---|---|---|
| position | float | The target position for the gripper as a percentage, where 0 is closed and 100 is open. |
| wait_until_idle | bool | Wait until the move has completed before returning. |
m
m
s
Ge1xGripper.open_connection(port_name, device_address = DEFAULT_DEVICE_ADDRESS, timeout = 500)Opens a serial connection to a gripper.
Arguments
| Name | Type | Description |
|---|---|---|
| port_name | str | The name of the serial port to connect to. |
| device_address | int | The address of the gripper to connect to. |
| timeout | int | The timeout in milliseconds for any request sent using this connection. |
Return Value
Ge1xGripper A Ge1xGripper instance representing the connection to the gripper.m
m
ge_1_x_gripper.set_auto_home(enabled, save_to_flash = True)Enables or disables automatic homing on power up.
Arguments
| Name | Type | Description |
|---|---|---|
| enabled | bool | True to enable automatic homing on power up, false to disable. |
| save_to_flash | bool | Save the auto home setting to flash memory so it is retained on power cycle. |
m
m
ge_1_x_gripper.set_home_direction(direction, save_to_flash = True)Sets the home direction for the gripper.
Arguments
| Name | Type | Description |
|---|---|---|
| direction | Ge1xGripperDirection | The home direction to set. |
| save_to_flash | bool | Save the home direction setting to flash memory so it is retained on power cycle. |
m
ge_1_x_gripper.set_io_enabled(enabled, save_to_flash = True)Enables or disables IO control for the gripper. When enabled, the gripper will not move to a preset position until the IO input changes.
Arguments
| Name | Type | Description |
|---|---|---|
| enabled | bool | True to enable IO control, false to disable. |
| save_to_flash | bool | Save the IO enabled setting to flash memory so it is retained on power cycle. |
m
ge_1_x_gripper.set_io_input_filter(duration, save_to_flash = True)Sets the debounce filter time for the gripper IO input to suppress noise.
Arguments
| Name | Type | Description |
|---|---|---|
| duration | int | The IO input filter time in milliseconds. |
| save_to_flash | bool | Save the IO input filter setting to flash memory so it is retained on power cycle. |
m
ge_1_x_gripper.set_preset(preset_number, position, force = 100, speed = 100, save_to_flash = True)Saves a position, force, and speed as a preset that can be enabled using I/O or the activatePreset() method. Note that presets are only activated by I/O when the I/O input changes to that preset number.
Arguments
| Name | Type | Description |
|---|---|---|
| preset_number | int | The preset number to save the preset to, from 1 to 4. |
| position | float | The target position for the preset as a percentage, where 0 is closed and 100 is open. |
| force | int | The gripping force for the preset as a percentage from 20 to 100. |
| speed | int | The maximum speed for the preset as a percentage from 1 to 100. |
| save_to_flash | bool | Save the preset to flash memory so it is retained on power cycle. |
m
m
m