InoDrive / IO / getHoldingBrake


InoDrive.IO.getHoldingBrake()

Get Motor Mechanical Holding Brake Status.

Returns: Holding Brake (Boolean)
• 0 – Holding Brake is not Present or has Faulted.
• 1 – Holding Brake is Present.

// Import InoDrive API Library
import { InoDriveApiJS }  from "ck-inodrive-api" 

// Instatiate the API
let InoDriveApi = new InoDriveApiJS.InoDriveApi({ connectAppUrl: "", secure: false })

// Instantiate InoDrive Object
let Drive = await InoDriveApi.InoDrive({ target: "Name", autoConnect: true })

# Get Motor Holding Brake Status
let state = await Drive.IO.getHoldingBrake()

if (state == 0) {
    console.log("Motor Holding Brake is not present or has faulted.")
}
else {
    console.log("Motor Holding Brake is present and operational.")
}