IFM Electronic CR0403 Programming Manual page 74

Hide thumbs Also See for CR0403:
Table of Contents

Advertisement

ifm
Programming Manual
ecomatmobile
ifm function elements
>
CAN_RX_ENH
= CAN RX enhanced
Unit type = function block (FB)
Unit is contained in the library ifm_RawCAN_NT_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
In addition, CAN_RX_ENH provides the following possibilities (as opposed to
• select the frame type (11 or 29 bits),
• define a mask for the evaluation of the CAN ID.
Bit comparison of
ID and mask:
With the mask several identifiers can be defined as filters.
Example:
ID = 0x100 = 0b0001 0000 0000
ID_MASK = 0x1F1 = 0b0001 1111 0001
Result
>
Parameters of the inputs
Parameter
ENABLE
CHANNEL
ID
Extended
(optional use of the parameter)
ID_Mask
(optional use of the parameter)
BasicController (CR0403) Runtime System V03.02
If ID_MASK-Bit = 0, then CAN-ID-Bit may be = 0 or 1.
If ID_MASK-Bit = 1, then CAN-ID-Bit must be = ID-Bit.
The CAN IDs with the following bit pattern are evaluated:
0bxxx1 0000 xxx0 (x = any), i.e. for this example (all in [hex]):
100, 102, 104, 106, 108, 10A, 10C, 10E,
300, 302, 304, 306, 308, 30A, 30C, 30E,
500, 502, 504, 506, 508, 50A, 50C, 50E,
700, 702, 704, 706, 708, 70A, 70C, 70E
Data type
BOOL
BYTE
DWORD
BOOL := FALSE
DWORD := 0
74
ifm function elements for the device CR0403
CAN_RX
Description
TRUE:
execute this function element
FALSE: unit is not executed
> Function block inputs are not active
> Function block outputs are not specified
CAN interface (1...n) depending on the device
Number of the data object identifier:
normal frame (2
IDs):
11
0...2 047 = 0x0000 0000...0x0000 07FF
Extended Frame (2
IDs):
29
0...536 870 911 = 0x0000 0000...0x1FFF FFFF
TRUE:
Extended Frame (ID = 0...2
FALSE:
Normal Frame (ID = 0...2
filter mask for the identifier:
if ID_MASK bit = 0, CAN ID bit may be = 0 or 1
if ID_MASK bit = 1, CAN ID bit must be = ID bit
2015-04-01
7606
7608
(→ page 73)):
7609
-1)
29
-1)
11

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents