GetSpecificDeviceError (FB)¶
FUNCTION_BLOCK GetSpecificDeviceError EXTENDS CBM.ETrigA
Bemerkung
The interpretation of pData is fieldbus dependent and will be specified by the associated fieldbus driver.
Bemerkung
This feature may not be supported by all fieldbus drivers.
eError will return ERROR.NOT_SUPPORTED if not supported.
- InOut:
Scope
Name
Type
Comment
Inherited from
Input
xExecuteBOOLRising edge: Action startsFalling edge: Resets outputsIf a falling edge occurs before the function block has completed its action, the outputs operate in the usual manner and are only reset if either the action is completed or in the event of an error. In this case, the corresponding output values (xDone,xError,iError) are present at the outputs for exactly one cycle.ETrigA
xAbortBOOLTRUE: Action is stopped immediately and all outputs are reset to their initial values.ETrigA
Output
xDoneBOOLTRUE: Action successfully completedETrigA
xBusyBOOLTRUE: Function block activeETrigA
xErrorBOOLTRUE: Error occurred, function block aborts actionFALSE: No errorETrigA
xAbortedBOOLTRUE: Action aborted by userETrigA
Input
itfNodedevice node
pDataCAA.PVOIDPointer to memory where specific device error information should be copied to.
Inout
szSizeCAA.SIZEIN: Size of memory pData points to. Out: Size of data copied to pData
Output
eErroroperation error code