The communication module CM598-CAN can be used to realize CAN bus based networks in combination with library ABB_CM598Can_AC500.library.
To enable the support for the desired protocol it must be appended to CM598-CAN.
-
Right-click “CM598_CAN (CM598-CAN)” in the device tree and select “Add device” in the context menu.
Window “Add object below: CM598_CAN_1” appears.
-
Select “CAN 2.0 A” or “CAN 2.0 B” from the list.
Parameterization
The CAN data transmission requires a buffer for the incoming data that can be read with function blocks of library ABB_CM598Can_AC500.library.
-
Right-click “CAN_2_0A_11_bit_identifier_ (CAN 2.0A)” or “CAN_2_0B_29_bit_identifier_ (CAN 2.0B)” and select “Add object”.
-
Select “Buffer for CAN 2A” for CAN 2.0A. Or select “Buffer for CAN 2B” for CAN 2.0B from the list.
-
Double-click on “Buffer_for_CAN_2A (Buffer for CAN2A)” or “Buffer_for_CAN_2B (Buffer for CAN2B)” in the device tree to open the “Buffer configuration” in the editor window.
The following parameters are available:
Parameter |
Default value |
Value |
Description |
---|---|---|---|
Identifier |
0 |
CAN 2A: 0 ... 2047 CAN 2B: 0 ... 536870911 |
The value of the CAN identifier that is compared with the identifier of the incoming telegrams. The telegrams will be added to the buffer if the identifier matches. |
Number of receive buffers |
1 |
1 ... 16 |
The size of the buffer in number of telegrams. |
Behavior on receive buffer overflow |
Overwrite |
Overwrite |
The oldest telegram in the buffer is overwritten by the incoming telegram. |
Discard |
Incoming telegrams are discarded as long as the buffer is full. |
||
Enable triggering of IEC task |
No |
No |
Disables the triggering of the execution of the related IEC task. |
Yes |
Enables the triggering of the execution of the related IEC task as soon as a CAN frame with the specified CAN-ID arrives ⮫ “Triggering of event tasks with CAN-IDs”. |