174
ifm
Programming Manual ecomatController/60-1 (CR711S) Operating System V2.5.0.n
2017-12-19
ifm function libraries
Library ifmRawCAN.library
>
10.9.7
CAN_RxRange
11731
Function block type:
Function block (FB)
Behaviour model:
ENABLE
Library:
ifmRawCAN.library
Symbol in CODESYS:
>
Description
11732
The FB receives CAN messages of a coherent area. The area is defined by an upper and lower limit.
The following rules apply to the definition of this area:
Lower and upper limit:
Standard Frames: 0 ... 2047 (11-bit identifier)
Extended Frames: 0 ... 536 870 911 (29-bit identifier)
The value for the lower limit must be <= the value of the upper limit.
Example:
Lower limit:
000 0000 0010
Upper limit:
000 0000 1000
Result: All CAN messages with an identifier whose 4 least significant bits have a value between
"0010" and "1000" are received.
General behaviour of the FB:
→
CAN_Rx
(
>
Input parameter
14639
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
udiIDStart
UDINT
Start of the required area
E.g. 000 0000 0010
udiIDStop
UDINT
End of the required area
E.g. 000 0000 1000
* ... preset value