CAN Master | This
function block connects IO modules of the type CAN Master. The IO
modules communicate with the controller via CAN bus, therefore they
can only be used with controllers that have an integrated CAN bus
interface. The use of CAN adapters is not possible. With "Create addresses" the addresses are created automatically. Here the corresponding addresses are created using the parameters "Main group" and "Number of IO modules". The following addresses are predefined for this:
|
Inputs |
||
Outputs |
||
| TE |
Received |
Number of received telegrams |
| TG | Sent | Number of sent telegrams |
Parameters |
||
| Number of IO modules | Number of IO modules specifies the quantity when creating addresses; depending on the number, a correspondingly large number of addresses is created. | |
| Main group IO | Main group under
which the addresses of the IO modules (analog/digital inputs and
outputs) are created and addressed. |
|
| Number of IO Extensions | Number of IO
extensions. Determines how many extension addresses are created
when generating addresses. |
|
| Main group Extensions | Main group under
which the addresses of the IO extensions are created and
addressed. |
|
| Baud rate | CAN bus baud rate in
bit/s (e.g. 20000 for 20 kbit/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 |
|
| Debug | Enables debug output
in the program log (incl. incoming and outgoing CAN frames). Enable
for troubleshooting only. |
|