beckhoff TwinCAT 3 — 11.1.7.3.4 Advanced settings for specific applications

CAN | CAN Interface ISO Mode When Bosch introduced the first specification for CAN FD in 2012, it was immediately implemented by various semiconductor manufacturers in early microcontrollers and test tools. However, during the subsequent incorporation into the official ISO standard (2015), a mathematical vulnerability was discovered in the detection of certain bit flips. ISO subsequently adjusted the frame format, resulting in the creation of ISO mode . ISO mode introduces additional security features in the data frame to ensure comprehensive error detection: Stuff-bit counter (stuff count): In ISO mode, a 3-bit counter plus a parity bit is inserted before the CRC field.

This counts the number of dynamic stuff bits in the frame. This counter is not available in non-ISO mode. Fixed stuff bits: In the CRC field of both modes, stuff bits with inverted levels are inserted at fixed positions, which improves synchronization. Modified CRC calculation: The mathematical calculation of the checksum (CRC) differs between the two modes. The polynomials are indeed the same. In ISO mode, however, the starting value is different, and the stuff bits are included in the calculation. If you establish a connection between a controller in ISO mode and a controller in non-ISO mode, the controllers will not recognize each other’s CRC checksums.

This inevitably leads to error frames , and communication is interrupted. Current standard : Almost all modern production vehicles and CAN FD controllers (e.g., newer MCAN revisions or STMicroelectronics FDCAN) use ISO mode by default. Non-ISO mode: Non-ISO mode generally exists only as a backward compatibility option in development tools (e.g., Vector interfaces or PEAK system adapters) to communicate with very old ECU prototypes from 2012 through 2015. Edge filter The edge filter in CAN FD controllers is a hardware function designed to suppress short interference pulses during the bus integration phase. Operating principle and purpose Two dominant bits:

When enabled, the hardware requires at least two consecutive dominant time quanta ( tq ) to detect a hard synchronization or an edge. Against spikes: It filters out short, dominant spikes that are only 1 ( tq ) long, which would otherwise reset the counter used to detect bus idle (11 recessive bits) and delay bus integration. Only when integrated: This function is active only during the integration phase (after startup or protocol exceptions) and does not take effect during normal communication operations. Effect: During accurate synchronization with the bus (after startup or after a bus-off), very short glitches are ignored. Application: Cables with interference or reflections.

Exception Protocol exception for a defined procedure when a control device receives a message that uses a newer format with which it is not yet familiar. Effect: Frames from a newer protocol (e.g., CAN XL) are ignored instead of being answered with an error frame. Application: Networks with CAN-XL participants. I/O 44 Version: 2.3.0