69
ifm
Programming Manual
ecomatmobile
CabinetController (CR0301) Runtime System V05
2016-04-21
ifm function elements
ifm function elements for the device CR0301
>
CAN1_EXT_TRANSMIT
4307
Unit type = function block (FB)
Unit is contained in the library
ifm_CAN1_EXT_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
4337
CAN1_EXT_TRANSMIT transfers a CAN data object (message) to the CAN controller for
transmission.
The FB is called for each data object in the program cycle; this is done several times in case of long
program cycles. The programmer must ensure by evaluating the output RESULT that his transmit
order was accepted. To put it simply, at 125 kbits/s one transmit order can be executed per 1 ms.
The execution of the FB can be temporarily blocked via the input ENABLE = FALSE. This can, for
example, prevent a bus overload.
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 this unit is to be used, the 1st CAN interface must first be initialised for the extended ID with
CAN1_EXT
(
>
Parameters of the inputs
4380
Parameter
Data type
Description
ID
DWORD
Number of the data object identifier:
normal frame (2
11
IDs):
0...2 047 = 0x0000 0000...0x0000 07FF
extended Frame (2
29
IDs):
0...536 870 911 = 0x0000 0000...0x1FFF FFFF
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: ......