
ifm
System Manual
ecomat
mobile
SmartController (CR2500) V05
CAN in the ecomatmobile controller
Description of the CAN functions
67
8.6.5
Function CAN1_EXT_RECEIVE
Contained in the library:
ifm_CAN1_EXT_Vxxyyzz.LIB
Available for:
•
CabinetController: CR0301, CR0302, CR0303
•
ClassicController: CR0020, CR0505
•
ExtendedController:
CR0200
•
PCB controller: CS0015
•
SafetyController: CR7020, CR7021, CR7200, CR7201, CR7505, CR7506
•
SmartController:
CR2500
•
PDM360 smart: CR1070, CR1071
Function symbol:
CAN1_EXT_RECEIVE
CONFIG
DATA
CLEAR
DLC
ID
RTR
AVAILABLE
OVERFLOW
Description
CAN1_EXT_RECEIVE configures a data receive object and reads the receive buffer of the data
object.
The function must be called once for each data object during initialisation to inform the CAN controller
about the identifiers of the data objects.
In the further program cycle CAN1_EXT_RECEIVE is called for reading the corresponding receive
buffer, this is done several times in case of long program cycles The programmer must ensure by
evaluating the byte AVAILABLE that newly received data objects are retrieved from the buffer and
further processed.
Each call of the function decrements the byte AVAILABLE by 1. If the value of AVAILABLE is 0, there
is no data in the buffer.
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.
NOTE
If this function is to be used, the 1st CAN interface must first be initialised for the extended ID with the
function CAN1_EXT (
→
page
Содержание Ecomat Mobile Series
Страница 1: ...System Manual SmartController CR2500 CoDeSys V2 3 Target V05 7390675 00 10 2009...
Страница 6: ......