Functions
CAN RAW
CODESYS provides the capability of sending and receiving CAN messages via the application. No devices are required in the device tree to do this. The access can also be executed parallel to the CAN stack.
There are basically two options:
Access via the CANbus API: You will find an example in the CODESYS Store or CODESYS Store US.
Target group: Application programmers
Access via the library
CAA Can Low Level Extern
Target group: Library developers and experts
Hint: You can insert all required libraries for CAN L2 via the use case library
CANbus
.

Reconfiguration – CANbus
The "Reconfiguration" function allows for the dynamic adaptation of a CAN bus configuration, which was initially downloaded to the controller, to the application at runtime.
With the function block DED.Reconfigure
, which is available when the generic device diagnosis is enabled (PLC Settings:), you can execute the following actions at runtime.
Change the network ID (
CANbus_Diag.SetNetId (METH)
method)Change the baud rate (
CANbus_Diag.SetBaudrate (METH)
method)