There are several ways to configure an IO-Link port. The simplest way is to use the AUTOCOM mode. In this mode the Master accepts all Devices and sets its internal parameters according to the Device's requirements. Start up in AUTOCOM mode is done as follows:
Another way is to set up a specific Device by Vendor and Device ID. During the startup procedure it is checked if the correct Device is connected or if the Device is compatible. If this check fails, it is indicated by the port mode IOL_ePortMode_COMP_FAULT
The most complex way is to check if the Serial Number is also correct. This is also the safest way to check, wheter the connected Device is the exact one which is expected on the specific port. If the check fails, it is indicated by the port mode IOL_ePortMode_SERNUM_FAULT
The communication can be stopped by setting the port to the inactive state:
The Port is set to SIO mode by the following command:
After each establishment of a communication relation, the Process Data is marked invalid. The application layer has to set the data valid again by IOLM_API_AL_eControlReq.
This can be done via the IOL_ePortMode_SM_OPERATE event in the function IOLM_Port_SM_vPortMode.