pylabrobot.brooks.precise_flex.PreciseFlex.attach#

async PreciseFlex.attach(attach_state: int | None = None) int#

Attach or release the robot, or get attachment state.

Parameters:

attach_state (int | None) – If omitted, returns the attachment state. 0 = release the robot; 1 = attach the robot.

Returns:

If attach_state is omitted, returns 0 if robot is not attached, -1 if attached. Otherwise returns 0 on success.

Return type:

int

Note

The robot must be attached to allow motion commands.