MC_Power_SML (FB)ΒΆ
FUNCTION_BLOCK FINAL MC_Power_SML
Controls the power stage of an axis and can be used to issue a quick stop.
Note
- The inputs are only processed if - Enableis set.
- A call of - MC_Power_SMLwith- bRegulatorOn=FALSEsets the axis state to- PowerOff(disabled).
- A call of - MC_Power_SMLwith- bRegulatorOn``=``TRUEon a disabled axis sets the axis state to- Standstill, if there is no error on the axis. If an error is detected, the state of the axis is set to- ErrorStop.
- If the inputs - Enable,- bRegulatorOnand- bDriveStart are ``TRUEbut the output- Statusremains in- FALSEfor a long time, there may be a problem with the power stage, or an external halt may be set.
- If power fails (also during operation), the axis state is set to - ErrorStop.
- InOut:
- Scope - Name - Type - Comment - Inout - Axis- Reference to the axis - Input - Enable- BOOL- Enables the function block - bRegulatorOn- BOOL- Enables the power stage - bDriveStart- BOOL- Disables the quickstop mechanism - Output - Status- BOOL- Axis ready for motion - bRegulatorRealState- BOOL- Effective state of the power stage - bDriveStartRealState- BOOL- Effective state of the quickstop mechanism - Busy- BOOL- Function block is executing - Error- BOOL- Signals that an error has occured - ErrorID- Error number