MC_Power
The enablings for an axis are set with the function block MC_Power.
VAR_INPUT
VAR_INPUT
Enable : BOOL;
Enable_Positive : BOOL;
Enable_Negative : BOOL;
Override : LREAL;
END_VAR
Enable : The command is executed as long as the input is TRUE.
Enable_Positive: .
Enable_Negative :
Override: Override value in percent (e.g. 68.123%)
VAR_OUTPUT
VAR_OUTPUT
Status : BOOL;
Error : BOOL;
ErrorID : UDINT;
END_VAR
Status : Becomes TRUE once all enablings were set successfully. This signal includes the drive's ready signal when available.
Error: Becomes TRUE, as soon as an error occurs.
ErrorID : Supplies the error number when the Error output is set.
VAR_IN_OUT
VAR_IN_OUT
AxisRefIn : NCTOPLC_AXLESTRUCT;
AxisRefOut : PLCTONC_AXLESTRUCT;
END_VAR
Axis : Axis structure.
Requirements
Development environment | Target system type | PLC libraries to be linked |
---|---|---|
TwinCAT v2.8 | PC (i386) | TcMC.Lib |