84
ifm
Programming Manual
ecomat
mobile
BasicController (CR0403) Runtime System V03.02
2015-04-01
ifm function elements
ifm function elements for the device CR0403
>
CAN_TX_ENH
7558
= CAN TX enhanced
Unit type = function block (FB)
Unit is contained in the library
ifm_RawCAN_NT_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
7559
Additional setting options are offered through CAN_TX_ENH (for: enhanced). Here, all CAN specific
characteristics can be set individually, e.g.:
•
Is it an 11 or a 29 bit identifier?
•
The additional inputs can be preset so that
CAN_TX
(
→
) is not required.
>
If an instance of this FB is called several times during a cycle, the data is also sent several times.
>
Parameters of the inputs
7634
Parameter
Data type
Description
ENABLE
BOOL
FALSE
TRUE (edge):
Initialise block (only 1 cycle)
> Read block inputs
TRUE:
execute this function element
FALSE:
unit is not executed
>
Function block inputs are not active
>
Function block outputs are not
specified
CHANNEL
BYTE
CAN interface (1...n) depending on the device
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
Extended
(optional use of the parameter)
BOOL := FALSE
TRUE:
Extended Frame (ID = 0...2
29
-1)
FALSE:
Normal Frame (ID = 0...2
11
-1)
DATALENGTHCODE
BYTE
= Data Length Code
number of the data bytes to be sent (0...8)
DATA
ARRAY [0..7] OF BYTE
data to be sent (1...8 bytes)
Содержание CR0403
Страница 230: ...230 ifm Programming Manual ecomatmobile BasicController CR0403 Runtime System V03 02 2015 04 01 Notizen Notes Notes ...
Страница 231: ...231 ifm Programming Manual ecomatmobile BasicController CR0403 Runtime System V03 02 2015 04 01 Notizen Notes Notes ...
Страница 232: ...232 ifm Programming Manual ecomatmobile BasicController CR0403 Runtime System V03 02 2015 04 01 Notizen Notes Notes ...