InoDrive / IO / get_holding_brake


InoDrive.IO.get_holding_brake(self)

Get Motor Holding Brake Status.

Arguments: self (Object): Reference to IO Instance.

Returns:

Integer:

• 0 – Holding Brake is not Present or has Faulted.
• 1 – Holding Brake is Present.

import CkInoDriveAPI

# Instantiate InoDrive Object and Connect by Name
Drive = CkInoDriveAPI.InoDrive(target='Name', autoConnect=True)

# Get Motor Holding Brake Status
state = Drive.IO.get_holding_brake()

if state == 0:
    print("Motor Holding Brake is not present or has faulted.")
else:
    print("Motor Holding Brake is present and operational.")