You Don’t [Always] Need to Import the IODD File for IO-Link

The IODD file is presented as a necessary component in the chain between IO-Link equipped sensors, the IO-Link master, and the PLC. This engineering brief presents a case study showing how the cyclic data are transferred from sensor to PLC without loading the IODD files into the PLC or into the IO-Link Master. Effectively, we are replacing the IODD abstraction bridge with an explicit mapping that occurs within the PLC. Instead of a system dependency on IODD file, you, the programmer, use it to identify the analog and digital fields. This technique is considered the minimal configuration for receiving cyclic IO-link data.

The featured equipment is shown in Figure 1 including:

The TIA Portal V20 program may be downloaded here:
ET200_IO_Link.zip (2.3 MB)

Key Takeaways

  • This technique eliminates the need to load the IODD files into the IO-Link master.
  • The example is limited to cyclic reading of the sensor’s process data.
  • The IODD file is used by the programmer to manually determine the sensor to PLC mapping.
  • The teach-in settings reside with the individual sensors.
  • The convenience of IODD-assisted abstraction is lost. This must be weighed against maintainability.
  • The system’s “truth” is now held within the PLC and the individual sensors. Here, “truth” is the abstraction bridge operating in the IO-Link master that depends on the IODD file.
  • The real win is the reduction in the number of recovery steps upon component failure with an emphasis on the IO-Link Master itself.

This article is part of the DigiKey Field Guide for Industrial Automation

Location: Program It → Networks & Protocols
Difficulty: :gear: Engineer — difficulty levels explained
Author: Aaron Dahlen | MSEE | Senior Applications Engineer, DigiKey
Last update: 28 Oct 2026


Figure 1: A Siemens ET 200SP-based IO-Link master is shown next to several SICK sensors.

How to Locate the Cyclic Process Data Defined in the IODD File

The data fields for the cyclic data are often defined in the manufacturer’s literature as well as the IODD file. As an example, consider the featured SICK proximity sensor. We can find the information in the sensor’s IODD Overview as shown in the excerpt in Figure 2 . Four byte fields are shown including:

  • The sensor’s analog value as a 16-bit unsigned integer contained in bytes 0 and 1.
  • Boolean assignments are held within byte 3:
    • bit 3: Qint.4
    • bit 2: Qint.3
    • bit 1: QL2
    • bit 0: QL1
  • While it’s not part of the process data, we should mention the Port Qualifier information (PQI) status byte. The fields for the Siemens Master are included in Figure 3.
  • The next Tech Tip addresses the byte padding.

Tech Tip: For this project I have configured the IO-Link master to write into a 16-byte array (15 bytes input plus the PQI). This is a single configuration setting for the featured ET 200SP-based Siemens IO-Link master. The size is clearly excessive for the proximity sensor. However 15 bytes should be wide enough to accommodate most, but not all, sensors. Hopefully I have set it wide enough so that it the program does not adjustment to accommodate complex sensor with process data larger than 15 bytes.

Figure 2: Process data byte assignments for the SICK proximity sensor.

Figure 3: PQI byte for the Siemens ET 200SP IO-Link master.

The information may also be derived from the IODD file as shown in Listing 1.

Observe:

  • Each piece of data is bounded by <RecordItem and </RecordItem>. I’ve added white space to emphasize the break.
  • For convenience, I’ve added the textID fields as a comment.
  • The subindex constant sequentially identifies each piece of data.
  • The bitoffest descriptor identifies the starting bit position. This feels backwards as it works backwards from the least significant bit of the last byte sent. For example, referring back to Figure 2, QL1 is located in byte 3 while the analog value is anchored in the first two bytes.

For more information about the IODD file, refer to the official documentation.

 <ProcessDataCollection>
            <ProcessData id="PDI_e9d88bfd-37d1-4bb9-89e0-fb6244ecb8a3">
               <ProcessDataIn id="DI_55652927-db73-446f-9471-d7cf63b5184f" bitLength="32">
                  <Datatype xsi:type="RecordT" subindexAccessSupported="false" bitLength="32">
				  
                     <RecordItem bitOffset="0" subindex="1">
                        <SimpleDatatype xsi:type="BooleanT">
                           <SingleValue value="true">
                              <Name textId="TI_object_detected"/>
                           </SingleValue>
                           <SingleValue value="false">
                              <Name textId="TI_no_object_detected"/>
                           </SingleValue>
                        </SimpleDatatype>
                        <Name textId="TI_f7e48e6d-c775-4bba-9ce5-160ff1c7bfa8"/>    <!-- value="QL1"> -->
                     </RecordItem>
					 
					 
                     <RecordItem bitOffset="1" subindex="2">
                        <SimpleDatatype xsi:type="BooleanT">
                           <SingleValue value="true">
                              <Name textId="TI_object_detected"/>
                           </SingleValue>
                           <SingleValue value="false">
                              <Name textId="TI_no_object_detected"/>
                           </SingleValue>
                        </SimpleDatatype>
                        <Name textId="TI_451a0e08-e93e-4b14-b67b-a1fdc63cb5c4"/>    <!-- value="QL2" -->
                     </RecordItem>
					 
					 
                     <RecordItem bitOffset="2" subindex="3">
                        <SimpleDatatype xsi:type="BooleanT">
                           <SingleValue value="true">
                              <Name textId="TI_object_detected"/>
                           </SingleValue>
                           <SingleValue value="false">
                              <Name textId="TI_no_object_detected"/>
                           </SingleValue>
                        </SimpleDatatype>
                        <Name textId="TI_b55e2921-f0db-477f-9309-2a0fba9ca11d"/>    <!-- value="Qint.3" -->
                     </RecordItem>
					 
					 
                     <RecordItem bitOffset="3" subindex="4">
                        <SimpleDatatype xsi:type="BooleanT">
                           <SingleValue value="true">
                              <Name textId="TI_object_detected"/>
                           </SingleValue>
                           <SingleValue value="false">
                              <Name textId="TI_no_object_detected"/>
                           </SingleValue>
                        </SimpleDatatype>
                        <Name textId="TI_e2106565-6877-41a2-afb2-f941cf583fe4"/>    <!-- value="Qint.4" -->
                     </RecordItem>
					 
					 
                     <RecordItem bitOffset="16" subindex="5">
                        <SimpleDatatype xsi:type="UIntegerT" bitLength="16"/>
                        <Name textId="TI_c14ef60b-5470-4eea-bfc2-48cbf9e93497"/>    <!-- value="Analog value" -->
                     </RecordItem>
					 
					 
                  </Datatype>
                  <Name textId="TI_67dd290d-589f-4add-a5ea-653315315a8d"/>          <!-- value="Process Data InProcess Data In" -->
               </ProcessDataIn>
            </ProcessData>
         </ProcessDataCollection>

Listing 1: Excerpt from the SICK proximity sensor’s IODD file.

PLC Hardware Configuration

The pertinent PLC configuration is captured in Figure 4. This image is focused on the configuration screen for the ET 200SP-based IO-Link master.

Observe:

  • Device Overview: Each of the four ports is configured for a 16-byte width for both I and Q. This corresponds with memory addresses 68..131 for the four consecutive 16-byte data blocks associated with the four IO-Link ports.
  • Port 1 configuration: The port is set to IO-Link Autostart. The import IODD File is unused (grayed out). Also, we see that 15 bytes are dedicated to data while one byte is reserved for the PQI.
  • Port 1 Input addresses: In this case Input describes cyclic data coming from the sensor to the PLC. The specific address for the data and PQI are given.
  • Port 1 Output addresses: The PLC to IO-Link addresses are giveen. Note that they are not used for the featured project.

Tech Tip: Don’t forget to compile and then download the configuration to the ET 200SP. Recall that this is independent from the PLC programming operation. If I had a quarter for every time I forgot to download the new hardware configuration…

Speaking of downloads, Danny M. reminds us to place the PLC programmer on a lofty pedestal and then download the program to the PLC. He does so while standing on a desk to make the point.

Figure 4: Configuration of the IO-Link master from within TIA Portal.

Memory Mapping

A simple memory mapping is included as Listing 2. It is not strictly required. However, I prefer to pull the raw data into a DB for debugging purposes. It also provides a level of abstraction for the decoding function blocks. There is also something to be said for a single Constant location to change the start addresses for the individual IO-Link ports, specifically, P1_Addr and P2_Addr.

// REF: https://docs.tia.siemens.cloud/r/en-us/v20/scl-s7-1200-s7-1500/move-operations-s7-1200-s7-1500/read/write-access-s7-1200-s7-1500/peek-read-memory-address-s7-1200-s7-1500

// Map port 1

FOR #i := 0 TO 15 DO
    #"Port 1".Bytes[#i] :=
    PEEK(
              area := 16#81,   // Memory area for input is 16#81: Input
              dbNumber := 0,   // Not area = DB, otherwise "0"
              byteOffset := #P1_Addr + #i
    );
END_FOR;


// Map port 2

FOR #i := 0 TO 15 DO
    #"Port 2".Bytes[#i] :=
    PEEK(
         area := 16#81,
         dbNumber := 0,
         byteOffset := #P2_Addr + #i
    );
END_FOR;

Listing 2: Mapping of IO-Link I addresses to a DB.

How to Read the Cyclic Process Data within the PLC

We arrive here with the cyclic data stored in a DB. We then reconstruct the analog and digital fields using the information we obtained from the OEM’s literature or from deconstructing the IODD file.

Listing 3 presents a simple example for the mapping of DB values to a function block’s outputs. Figure 5 shows the end result. While there are many ways to perform the mapping, I used bit and byte slicing as it is a straightforward technician friendly method when compared to other techniques such as Deserialize.

Note that the PQI is used as a quality check for the IO-Link data. An xValid output is available for the functions that depend on the IO-Link data. As a design choice, all outputs from the block are zeroed if the PQI byte signals failure.

Tech Tip: The example code uses Hungarian notation where each decoded variable is prefaced with its data type. For example, x for Boolean and uint for unsigned integer. Personally, I find this useful as it forces me to slow down and consider the data types used in every statement.

(* Cyclic data decode block for the SICK IMC18-12NPPVC0SA00 proximity sensor (P# 1079295).

Test the PQI. On failure, set all outputs to zero.

Note:
* Big-endian
* DB is a 16-byte array (15 data plus the PQI) 
* * The raw analog sensor value is 16-bit unsigned integer contained in bytes 0 and 1.
* * Boolean data are held in byte 3:
* * * bit 3: xQint4
* * * bit 2: xQint3
* * * bit 1: xQL2
* * * bit 0: xQL1

Ref: https://www.sick.com/gb/en/catalog/products/detection-sensors/inductive-proximity-sensors/imc/imc18-12nppvc0sa00/p/p483958
*)


#xValid := ((#Cyclic_Data.Bytes[15] AND 16#E0) = 16#A0);

IF #xValid THEN
    #uintSensorCounts.%B1 := #Cyclic_Data.Bytes[0];    // Big-endian
    #uintSensorCounts.%B0 := #Cyclic_Data.Bytes[1];
    
    #xQL1 := #Cyclic_Data.Bytes[3].%X0;
    #xQL2 := #Cyclic_Data.Bytes[3].%X1;
    #xQint3 := #Cyclic_Data.Bytes[3].%X2;
    #xQint4 := #Cyclic_Data.Bytes[3].%X3;
    
ELSE
    
    #uintSensorCounts := 0;
    
    #xQL1 := FALSE;
    #xQL2 := FALSE;
    #xQint3 := FALSE;
    #xQint4 := FALSE;
    
END_IF;

Listing 3: Example code used to decode the proximity sensor’s cyclic data.

Figure 5: Ladder logic representation of the proximity sensor function block.

Next Steps

Breaking the dependence on the IODD file can be advantageous for simple IO-Link applications. When things break, specifically the IO-Link Master itself, it may be easier to restore your plant as the system’s IO-Link bridge has been replaced with statements that live within the PLC. Yet the sensor configuration remains “out there” in the wild field. I’m torn on the implementation details. It’s highly desirable to use the PLC for everything. Yet, there is value in teaching a sensor independently of the PLC using either the local sensor control or tools such as SICK’s SOPAS.

This technique may fit cleanly with the life cycle of your plant. Then again, we recognize that we have turned our backs on many IO-Link features. As a next step, we could attempt to move the sensor configuration to within the PLC using IODD-free acyclic writes.

I’d love to hear your thoughts on this topic.

:books: Continue Exploring Industrial Control Systems

If this discussion was helpful, you may also want to explore:

:world_map: DigiKey Navigation

:japanese_symbol_for_beginner: Related Foundational Articles

About This Author

Aaron Dahlen, LCDR USCG (Ret.), is a Senior Applications Engineer at DigiKey in Thief River Falls. His background in electronics and industrial automation was shaped by a 27-year military career as both technician and engineer, followed by over a decade of teaching.

Dahlen holds an MSEE from Minnesota State University, Mankato. He has taught in an ABET-accredited electrical engineering program, served as coordinator of an electronic engineering technology program, and instructed military technicians in component-level repair.

Today, he has returned to his home in northern Minnesota, completing a decades-long journey that began with a search for capacitors. Read his story here.