FB_CoEDriveEnable
The FB_CoEDriveEnable function block enables a CoE drive in order to be able to subsequently supply it with setpoints using the function block FB_CoEDriveMoveVelocity.
Inputs
VAR_INPUT
bEnable : BOOL;
bReset : BOOL;
END_VAR
Name | Type | Description |
---|---|---|
bEnable | BOOL | Activates the CoE drive. |
bReset | BOOL | Performs a drive reset in the event of a fault. "Bit 7" is set in the drive control word. |
/ Inputs/Outputs
VAR_IN_OUT
stCoeDriveIoInterface : ST_CoeDriveIoInterface;
END_VAR
Name | Type | Description |
---|---|---|
stCoeDriveIoInterface | ST_CoeDriveIoInterface | Data structure to which the process image of the CoE drive must be linked. |
Outputs
VAR_OUTPUT
bStatus : BOOL;
bDriveError : BOOL;
END_VAR
Name | Type | Description |
---|---|---|
bStatus | BOOL | If bStatus=TRUE, the drive is ready for operation and follows the setpoints. |
bDriveError | BOOL | The drive is in the error state. |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT 3.1.4024.22 | PC or CX (x86 or x64) | Tc2_Drive |