EasyManua.ls Logo

IFM CR711S - Use RawCAN (CAN Layer 2)

IFM CR711S
205 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
87
ifm Programming Manual ecomatController/60-1 (CR711S) Operating System V2.5.0.n 2017-12-19
Programming Use RawCAN (CAN Layer 2)
>
8.5 Use RawCAN (CAN Layer 2)
RawCAN: Control CAN network nodes ............................................................................................... 87
RawCAN: Send and receive CAN messages ..................................................................................... 87
RawCAN: Request and send remote CAN messages ........................................................................ 88
23545
► Observe the notes on task configuration! (→ Configure task processing (→ p. 80))
In order to access one of the CAN interfaces configured for CANopen operation, the following POUs
are available.
Requirements:
The CAN interface is configured for operation as RawCAN (CAN Layer 2)
(→ Configure CAN interfaces (→ p. 70)).
>
8.5.1 RawCAN: Control CAN network nodes
23546
The following POUs are available to control a node in a CAN network:
Function element
Short description
CAN_Enable (→ p. 162)
initialises the specified CAN interface
configures the CAN baud rate
CAN_Recover (→ p. 164)
controls the processing of a failure of the specified CAN channel
If the CAN channel fails, reset the CAN interface and reboot
>
8.5.2 RawCAN: Send and receive CAN messages
23547
The following POUs are available to send or receive messages in a CAN network:
Function element
Short description
CAN_Rx (→ p. 170)
configures a data receive object and reads the receive buffer of the data object
CAN_RxMask (→ p. 172)
receives CAN messages of a non-coherent area
The area is defined via a bit pattern and a bit mask
CAN_RxRange (→ p. 174)
receives CAN messages of a coherent area
The area is defined via an upper and lower limit
CAN_Tx (→ p. 176)
asynchronous transmission of CAN messages

Table of Contents