175
ifm
Programming Manual ecomatController/60-1 (CR711S) Operating System V2.5.0.n
2017-12-19
ifm function libraries
Library ifmRawCAN.library
>
Output parameter
14642
Parameter
Data type Description
Possible values
xError
BOOL
Indication if an error occurred during the FB
execution
FALSE
No error occurred or the FB is
still being executed
TRUE
Error occurred
Action could not be
executed
Note diagnostic
information
eDiagInfo
DIAG_INFO Diagnostic information
→ List below (diagnostic codes:)
aData
ARRAY
[0...7] OF
USINT
Array for storage of the data received
usiDLC
UINT
Number of the data bytes in the CAN
message (DLC = Data Length Count)
0
...
7
0 bytes*
...
7 bytes
uiAvailable
UINT
Number of received CAN messages
since the last FB call
Current CAN message is taken into
account
0
No CAN messages received
between 2 FB calls
n
n CAN messages received
udiID
UDINT
Identifier of the CAN message
for Standard Frame (11 bits
identifier):
0 ... 2047
for Extended-Frame (29 bits
identifier):
0 ... 536.870.911
Diagnostic codes:
STAT_INACTIVE
State: FB/Function is inactive.
STAT_DONE
State: FB/Function has been successfully executed and completed. There are valid
results on the outputs.
ERR_INACTIVE_INTERFACE Error: Selected CAN channel is deactivated.
ERR_BUFFER_OVERFLOW
Error: Transmission buffer full; CAN message cannot write to buffer storage and is not
transmitted
ERR_INVALID_VALUE
Error: at least 1 invalid input parameter or invalid combination of input parameters;
Function call has been stopped.
ERR_INTERNAL
Error: Internal system error
► Contact the ifm Service Center!
ERR_UNDEFINED
Error: Unknown error
► Contact the ifm Service Center!
>