HomeKnowledgeDiagnostic method for when the IO-Link slave cannot be connected

Diagnostic method for when the IO-Link slave cannot be connected

2023-10-16

Using IOL7-EC01B-8A + TwinCAT3 as an example, the figure shows the IOL7 master module after it has been added.

Diagnostic method for when the IO-Link slave cannot be connected


After expanding it, the TxPDO IO-Link status column is visible.

Diagnostic method for when the IO-Link slave cannot be connected


First, an introduction to the 8 ports of the master module: taking port0 as an example, it is a 5-pin female connector. PIN1 is 24 V+, PIN3 is 0 V, providing a 24 V power supply for IO-Link slaves, sensors, etc. PIN4 supports three modes: DI/DO/IO-Link, while PIN2 supports only DI.


When the port is configured in IO-Link mode, the port status can be monitored here. The IO-Link port status is represented by 1 byte, where Bit0 ... 3 indicates the IO-Link port status and Bit4 ... 7 indicates the IO-Link port error message. When the master has connected successfully, diagnostic information can be easily obtained by monitoring the data here.

Bit0 ... 3 are defined as follows:

Value (DEC)

Description

0

Port Inactive

1

Port is in input mode

2

Port is in output mode

3

The port is in IO-Link mode and communication is normal.

4

The port is in IO-Link mode and communication is abnormal.

Bit4 ... 7 are defined as follows:

Value (DEC)

Description

0

No error

1

Watchdog Error

2

Buffer Overflow

3

Invalid device ID

4

Invalid vendor ID

5

Invalid IO-Link version

6

Invalid frame capability

7

Invalid Cycle Time

8

Invalid Input Process Data Length

9

Invalid Output Process Data Length

10

No Device Detected

11

PreOP State Error


Example: The port is configured in IO-Link mode, but no slave is actually connected, and the status indicates 0xA4. The port is configured in IO-Link mode, but the input process data length does not match, and the status indicates 0 x 84. The port is configured in IO-Link mode and connected successfully, and the status indicates 0 x 03.

Diagnostic method for when the IO-Link slave cannot be connected


①PORT0 is configured for 2/2 bytes and connected to the IOL7-16CB-M12 module, with normal communication, so the status is 3;

②PORT1 is configured for 2/2 bytes but no IO-Link slave is connected, so the status is 164 (0xA4);

③PORT2 is configured for 1 byte and connected to the IOL7-16CB-M12 module. The IO-Link Master detects the IO-Link slave, but the process data length is incorrect, so the status is 132 (0 x 84);

④PORT3 to PORT7 are configured in DI mode, so the status is 1.


These are the common statuses. For other combinations, such as watchdog error and buffer overflow, refer to the table.