ADS

Communication relating to IO link demand data is initiated via an ADS command. An ADS address always consists of a NetID and PortNo. TwinCAT relays ADS commands to the EP622x via AoE (ADS over EtherCAT), from where the command is relayed to the IO link master section and therefore the data channel.

AoE NetID

The EP622x is assigned a dedicated AoE-NetID for communication with the IO-Link master section. This is assigned by the configuration tool (Fig. Assignment AoE-NetID).
NetID at EP622x -> "EtherCAT"-> "Advanced Settings" -> "Mailbox" -> "AoE"

ADS 1:
AoE-NetID allocation

PortNo

The individual IO-Link ports for the master are allocated via the port number. The port numbers are allocated in ascending order from 0x1000. I.e. IO-Link Port1 corresponds to PortNo 0x1000 and IO-Link Portn corresponds to PortNo 0x1000 + n-1.
The following specification applies for the EP6224 (4-port IO-Link master):

ADS Indexgroup

As for CoE, the Indexgroup of an ADS command is specified as 0xF302 for the IO link data channel.

ADS Indexoffset

The IO link addressing with index and subindex is coded in the Indexoffset. The Indexoffset has a size of 4 bytes and is subdivided as follows: 2-byte index, 1-byte reserve, 1-byte subindex.