IO-Link Master  1.09.00
IO-Link Master Example Project

CCS Example Project

Connect the Evaluation Board

LP-AM243

  • Connect the IO-Link/Breakout Board BOOSTXL-IOLINKM-8 to the LP-AM243 board via J1/J3, J2/J4, J5/J7, and J6/J8 connectors.
  • Connect the J10 connector on the LP-AM243 to a USB-C 5.0V power supply (min. 3.0A)
  • Connect the J7 connector on the IO-Link/Breakout Board BOOSTXL-IOLINKM-8 to a 24V power supply.
  • Connect the LP-AM243 to a computer using a micro-USB cable going to the J20 connector. This is for UART (for IOLink SMI Communication) as well as JTAG (for uploading and debugging).

AM243x EVM

  • Connect the IO-Link/Breakout Board TMDS64DC01EVM to the AM243x EVM board via J2 and J3.
  • Connect the AM243x EVM to a 12V power supply.
  • Connect the IO-Link/Breakout Board TMDS64DC01EVM to a 24V power supply.
  • Connect the evaluation board to a computer using two micro-USB cables going to J26 UART
    (for IOLink SMI Communication) and J28 JTAG (for uploading and debugging) on the AM243x EVM board.

Steps to Run the Example

Modify Example

This example runs the Master stack functions in its own seperate task. This task initializes
all needed interfaces and then executes the IOLM_exampleRun() function in an endless loop.
The IOLM_exampleRun() function is located in the ExampleSMI.c file,
where it is possible to add or modify code to fit the desired environment.

SMI - Graphical User Interface

The IO-Link Master GUI can be used to connect to the IO-Link Master's
Standardized Master Interface (SMI) via usb, set up configuration parameters,
read status information and communicate with attached IO-Link devices.

Connect to the Master

The Master has to be connected to the UART USB port for the AM243x EVM or to XDS debug port for the AM243x Launchpad.

  • Make sure the example project is running on the IO-Link Master.
  • Start the IO-Link Master GUI tool.
  • Wait for it to scan available interfaces
  • COMX: Master should appear in Serial Connection → Port.
  • Click on Serial Connection → Connect

Port Configuration

In the Std Port Config tab the configuration and status of the Master's eight ports
can be read and changed.

You can retrieve the Master's current port configuration and port status
by clicking the corresponding buttons.

The default setting sets all ports except the first one (port number: 0) to DEACTIVED.
Port 0 is by default set to IOL_AUTOSTART, which starts an auto-detect-sequence.
For more details on port modes see the section Set up IO Link Port
and the IO-Link Specification v1.1.2.

After changing the Master's port configuration it will be saved in its internal
non-volatile memory and remain even after restarting or turning it off.

To connect a Device to a certain port, its mode has to be changed to IOL_AUTOSTART.

  • Physically connect your Device to the IO-Link add-on board.
  • Set the Port Number to the desired port one wants to configure.

  • Open the dropdown list Port Mode:.
  • Select the desired mode.

  • Click on Set Port Config to send your altered configuration to the Master.

If a Device is connected and the communication is established, the port's status changes
from DEACTIVED to OPERATE.

  • Click on Get Port Status to see if the device is connected.

Read/Write Process Data

To read Process Data from a Device go to the Process Data tab
and set Port: to its corresponding port number.

  • Click on Read to read Process Data.

  • Select Auto (ms):.
  • Click on Read to get continuous data.

Read/Write ISDUs

In the On Request Data tab you can request Indexed Service Data Units (ISDUs)
from the Device or send ISDUs to the Device.
For more information on ISDUs see the IO-Link Specification v1.1.2.

As an example, you can get the vendor name by setting the Index to 16
and leaving the Sub-Index set to 0.

Load IODD files

It is possible to import IO Device Description (IODD) files for ones connected Devices
in the Std Port Config tab. This makes it easier to read and set Device parameters.
For more information on IODD files see the IO-Link Specification v1.1.2 and the IODDFinder.

  • Make sure the port status is in OPERATE mode.
  • Click on Read IODD.

  • Navigate to the specific IODD file for the Device.
  • Click on Open.

  • Click on the ISDU Request Data tab.
  • Click on Update List to read all available ISDUs from the Device.

Values which aren't read-only can be changed and then sent to the Device by pressing the Write button.