162
ifm
Programming Manual ecomatController/60-1 (CR711S) Operating System V2.5.0.n
2017-12-19
ifm function libraries
Library ifmRawCAN.library
>
10.9.1
CAN_Enable
8709
Function block type:
Function block (FB)
Behaviour model:
ENABLE
Library:
ifmRawCAN.library
Symbol in CODESYS:
>
Description
7073
The FB activates the CAN Layer 2 functions of a CAN interface with a certain transmission rate.
Simultaneously the FB writes information about the current state of the CAN interface into the global
variable CAN State.
Changes of the transmission rate or of the CAN interface are applied at once. All existing reception
and send buffer storages are deleted.
The FB does not have any influence on a CANopen Manager / CANopen Device at the
selected CAN interface. In this case the FB cannot change the transmission rate of the CAN
interface.
>
Input parameter
11241
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.
eBaudrate
CAN_
BAUD
RATE
Baud rate of the CAN channel
→
CAN_BAUDRATE (ENUM)