ifm
System Manual
ecomat
mobile
SmartController (CR2500) V05
CAN in the ecomatmobile controller
Description of the CAN functions
77
By evaluating the output OVERFLOW, an overflow of the data buffer can be detected. If
OVERFLOW = TRUE, at least 1 data object has been lost.
Receive buffer: max. 16 software buffers per identifier.
Parameters of the function inputs
Name
Data type
Description
CONFIG
BOOL
TRUE (only for 1 cycle):
Configure data object
FALSE: Function is not executed
CLEAR
BOOL
TRUE: Deletes the data buffer (queue)
FIRST_ID CAN1:
WORD
CAN2: DWORD
Number of the first data object identifier of the sequence.
Permissible values normal frame = 0...2 047 (2
11
)
Permissible values extended frame = 0...536 870 912 (2
29
)
LAST_ID CAN1:
WORD
CAN2: DWORD
Number of the last data object identifier of the sequence.
Permissible values normal frame = 0...2 047 (2
11
)
Permissible values extended frame = 0...536 870 912 (2
29
)
LAST_ID has to be bigger than FIRST_ID.
Parameters of the function outputs
Name
Data type
Description
ID CAN1:
WORD
CAN2: DWORD
ID of the transmitted data object
DATA
ARRAY[0...7] OF BYTE
The array contains max. 8 data bytes
DLC
BYTE
Number of bytes transmitted in the array DATA
Possible values = 0...8.
AVAILABLE
BYTE
Number of messages in the buffer
OVERFLOW BOOL
TRUE: Overflow of the data buffer
→
loss of data!
FALSE: Buffer not yet full