Overview CAN ESD

This function block connects IO modules of type ESD (CANopen) via the CAN bus. Two module types are supported: IO56 (4 analog inputs and 56 digital inputs/outputs) and IO8 (8 digital inputs/outputs).

The modules are assigned via the "Serial numbers" parameter: for each module the serial number and the node ID (1-16) are stored.

Generating variables creates the addresses automatically. The main group is taken from the parameter "Main group IO56" resp. "Main group IO8", the middle group corresponds to the node ID of the module.

The following addresses are created:
  • IO56 – address 0-3: 4 analog inputs; address 4-59: 56 digital inputs/outputs (data type bit)
  • IO8 – address 0-7: 8 digital inputs/outputs (data type bit)


Inputs




Outputs

TE
Received
Number of received telegrams
TG Sent Number of sent telegrams



Parameters

Main group IO56 Main group under which the addresses of the IO56 modules are created and addressed.
Main group IO8 Main group under which the addresses of the IO8 modules are created and addressed.
Baud rate CAN bus baud rate in bit/s (default 1000000 for 1 Mbit/s). Applied automatically to the CAN interface (can0) at start-up and after a recovery.
USB reset command Shell command used to reset (re-enumerate) a USB-CAN adapter. Leave the field empty to disable the function. If the adapter does not recover over several recovery cycles (e.g. a stuck driver, send error ENOBUFS), this command is executed automatically to avoid a power-cycle of the controller.

Example for a canable.io adapter (USB ID 1d50:606f):
usbreset 1d50:606f
Serial numbers Assignment of the ESD modules via their serial numbers and node IDs.
Debug Enables debug output in the program log (incl. incoming and outgoing CAN frames). Enable for troubleshooting only.







See also common parameters of all function blocks.