InoDrive / IO / setHoldingBrake


InoDrive.IO.setHoldingBrake()

Turn the holding brake on or off. Only applicable if the motor has a holding brake. Must use takeControl before it is possible to set Mechanical Holding Brake

Arguments:
State (Boolean) True or False

Returns: Promise (Boolean) { success: true } True or None on successfully setting Motor Holding Brake

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

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

// Instantiate InoDrive Object
Drive = await InoDriveApi.InoDrive({target:'Name', autoConnect:True})

// Set Motor Holding Brake to Release
Drive.setHoldingBrake(True)