67
ifm
Programming Manual
ecomatmobile
CabinetController (CR0301) Runtime System V05
2016-04-21
ifm function elements
ifm function elements for the device CR0301
>
CAN1_EXT_RECEIVE_ALL
20913
x = 1 = number of the CAN interface
Unit type = function block (FB)
Unit is contained in the library
ifm_CAN1_EXT_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
4326
CANx_EXT_RECEIVE_ALL configures all data receive objects and reads the receive buffer of the
data objects.
The FB must be called once during initialisation to inform the CAN controller about the identifiers of the
data objects.
In the further program cycle CANx_EXT_RECEIVE_ALL is called for reading the corresponding
receive buffer, also repeatedly 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 FB 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.
Receive buffer: max. 16 software buffers per identifier.
>
Parameters of the inputs
4329
Parameter
Data type
Description
CONFIG
BOOL
TRUE (in the 1st cycle):
configure data object
FALSE:
during further processing of the program
CLEAR
BOOL
TRUE:
delete receive buffer
FALSE:
function element is not executed
Summary of Contents for Ecomat 100 Mobile CR0301
Page 212: ......