FB_SoEAX5000ParkAxis_ByDriveRef
The parking functionality of an AX5000 is activated with the FB_SoEAX5000ParkAxis_ByDriveRef function block. A parked channel of an AX5000 is temporarily disabled.
In a modular machine concept, certain motors may not be available. The channels can be disabled via this function to ensure that errors do not occur (e.g. feedback errors).
Inputs
VAR_INPUT
stDriveRef : ST_DriveRef;
bExecute : BOOL;
bPark : BOOL;
tTimeout : TIME;
END_VAR
Name | Type | Description |
---|---|---|
stDriveRef | Reference to the drive. The reference to the drive can be linked directly to the PLC in the development environment. To do this, an instance of the ST_PlcDriveRef structure must be allocated and the NetID must be converted from the byte array into a string. | |
bExecute | BOOL | The function block is enabled via a positive edge at this input. |
bPark | BOOL | Specifies whether the FB parks ( |
tTimeout | TIME | Maximum time allowed for the execution of the function block. |
Outputs
VAR_OUTPUT
bBusy : BOOL;
bError : BOOL;
iAdsErrId : UINT;
iSercosErrId : UINT;
END_VAR
Name | Type | Description |
---|---|---|
bBusy | BOOL | This output is set when the function block is activated, and remains set until feedback is received. |
bError | BOOL | This output is set after the bBusy output has been reset when an error occurs in the transmission of the command. |
iAdsErrId | UINT | Returns the ADS error code of the last executed command when the bError output is set. |
iSercosErrId | UINT | Returns the Sercos error of the last executed command in the event of a set bError output. |