75
ifm
Programming Manual
ecomatmobile
CabinetController (CR0301) Runtime System V05
2016-04-21
ifm function elements
ifm function elements for the device CR0301
>
CANx_TRANSMIT
609
x = 1...n = number of the CAN interface (depending on the device,
→ Data sheet)
Unit type = function block (FB)
Unit is contained in the library
ifm_CR0301_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
612
CANx_TRANSMIT transmits a CAN data object (message) to the CAN controller for transmission.
The FB is called for each data object in the program cycle, also repeatedly in case of long program
cycles. The programmer must ensure by evaluating the FB output RESULT that his transmit order was
accepted. Simplified it can be said that at 125 kbits/s one transmit order can be executed per ms.
The execution of the FB can be temporarily blocked (ENABLE = FALSE) via the input ENABLE. So,
for example a bus overload can be prevented.
Several data objects can be transmitted virtually at the same time if a flag is assigned to each data
object and controls the execution of the FB via the ENABLE input.
If CAN2_TRANSMIT is to be used, the second CAN interface must be initialised first using
CAN2
.
>
Parameters of the inputs
613
Parameter
Data type
Description
ID
WORD
number of the data object identifier
permissible values = 0...2 047
DLC
BYTE
Number of bytes to be transmitted from the DATA array
allowed: 0...8
DATA
ARRAY [0..7] OF BYTE
data to be sent (1...8 bytes)
ENABLE
BOOL
TRUE:
execute this function element
FALSE:
unit is not executed
> Function block inputs are not active
> Function block outputs are not specified
>
Parameters of the outputs
614
Parameter
Data type
Description
RESULT
BOOL
TRUE (only for 1 cycle):
Function block accepted transmit order
FALSE:
Transmit order was not accepted
Summary of Contents for Ecomat 100 Mobile CR0301
Page 212: ......