![background image](http://html1.mh-extra.com/html/ifm/cr711s/cr711s_original-programming-manual_3891703172.webp)
172
ifm
Programming Manual ecomatController/60-1 (CR711S) Operating System V2.5.0.n
2017-12-19
ifm function libraries
Library ifmRawCAN.library
>
10.9.6
CAN_RxMask
14643
Function block type:
Function block (FB)
Behaviour model:
ENABLE
Library:
ifmRawCAN.library
Symbol in CODESYS:
>
Description
14641
The FB receives CAN messages of a non-coherent area. The area is defined by a bit pattern and a bit
mask.
The following rules apply to the bit mask:
0: The equivalent bit of the CAN identifier can be 0 or 1
1: The equivalent bit of the CAN identifier must have the same value as the bit in the bit
pattern
Example:
Pattern:
000 0010 0000
Mask:
000 1111 1111
Result:
xxx 0010 0000
All CAN messages with an identifier whose 8 least significant bits have the value "0010 0000" are
received.
E.g. 110
0010 0000
000
0010 0000
, 001
0010 0000
General behaviour of the FB:
→
CAN_Rx
(
>
Input parameter
14638
Parameter
Data type
Description
Possible values
xEnable
BOOL
Control activity of the FB
FALSE
FB is deactivated
TRUE
FB is activated
eChannel
CAN_
CHANNEL
Identifier of the CAN Interface
→
CAN_CHANNEL (ENUM)
(
→ p.
xExtended
BOOL
Requested frame type:
- Standard Frame (11 bits identifier)
- Extended-Frame (29 bits identifier)
FALSE
Standard Frame*
TRUE
Extended Frame
udiIDSet
UDINT
Preset bit pattern for the masking of the
identifier of the CAN message
E.g. 000 0010 0000
udiIDMask
UDINT
Bit pattern of the required area
1 ... bit relevant for selection
0 ... bit not relevant for selection
E.g. 000 1111 1111
* ... preset value