Login

Please login for an individual price calculation.

Forgot Password?

Always stay up to date

With our e-mailings you will receive regular information about products, events, services and Balluff.

REGISTER AS A COMPANY

We will check whether you already have a customer number with us in order to link your new online account with it.

Register
Products
Service & Support
Industries & Solutions
Company
Version 1.0
·
Last edited on 2025-08-08

IO-Link Port Configuration for a Balluff Modbus TCP IO-Link Master Module

1. IO-Link Port Configuration

IO-Link Port Configuration on a Balluff Modbus TCP IO-Link master module is located in specific Modbus register for each M12 port.  There are 6 Modbus registers for each M12 port on the Balluff IO-Link master, starting at the following Modbus registers:

9100-9105 for Port X01

9200-9205 for Port X02

9300-9305 for Port X03

9400-9405 for Port X04

9500-9505 for Port X05

9600-9605 for Port X06

9700-9705 for Port X07

9800-9805 for Port X08

 

A table with numbers and symbolsAI-generated content may be incorrect.

The Modbus registers are broken down to the following.  The 'n' represents each port on the IO-Link Modbus TCP master.

9n00 Byte 0 is the Master Cycle Time, Byte 1 is reserved

9n01 Byte 0 configures Pin 2 Port Mode.  A value of 0 deactivates the port.  A value of 1 sets up Pin 2 as a Digital Input.  A value of 2 sets up Pin 2 as a Digital Output.

9n01 Byte 1 configures Pin 4 Port Mode.  A value of 0 deactivates the port.  A value of 1 sets up Pin 4 as IO-Link manual.  A value of 2 sets up Pin 4 as IO-Link auto start.  A value of 3 sets up Pin 4 as a Digital Input.  A value of 4 sets up Pin 4 as a Digital Output.

9n02 Byte 0 configures the Validation ID Type on the Port.  A value of 0 sets up No Device Check.  A value of 1 sets up the port to be Compatible V1.0 IO-Link device. A value of 2 sets up the port to be Compatible V1.1 IO-Link device.  A value of 3 sets up the Port for Backup and Restore.  A value of 4 sets up the Port for Restore.

9n03 is the Vendor ID of the IO-Link device.  This is used when Validation ID is setup for a device check and backup and restore features of the IO-Link device.

9n04 Byte 0 is used for the most significant byte (MSB)  of the Device ID of the IO-Link device.

9n04 Byte 1 is the second byte of the Device ID of the IO-Link device.

9n05 is used for the least significant byte (LSB) of the Device ID of the IO-Link device.

2. IO-Link Auto Start Example

An example to enable the IO-Link port 01 on the Modbus TCP IO-Link master would be use Modbus Function 16 – Write Multiple Register command to write a value of 0x0202 hex to Modbus address 9101.  This will set Pin 2 Port Mode to be a Digital Output and Pin 4 Port Mode to be setup as IO-Link Auto start. The LED on Pin 4 of the IO-Link Master module will turn flashing green when the port is enabled for IO-Link.  The LED will turn solid green when there is an IO-Link device connected and communicating to the IO-Link Master module. 

To do the same for Port 2, Function 16 – Write multiple register command can be sent to Modbus register 9201 with a value of 0x0202 to setup the second port X02 as IO-Link on Pin 4 and digital output on Pin 2. 

In Auto Start mode, the IO-Link process data from the sensor is automatically sent to the Modbus TCP IO-Link master.  

3. IO-Link Manual With Backup and Restore Example

To setup IO-Link device parameter backup and restore, the following Modbus register can be written to:  9n01, 9n02, 9n03, 9n04 and 9n05.

The following example is used, where a Balluff discrete IO hub – BNI007Z is in Port X01.  The webserver of the Modbus TCP IO-Link master can be used to read the IO-Link vendor ID and device ID values to be entered into the Modbus registers.

Modbus Function 16 – Write Multiple Register would be used to write to the five registers:

9101 Pin 4 Port Mode – 0x0102 - IOL Manual

9102 Validation – 0x0003 – Backup and Restore

9103  Vendor ID – 0x0378 – Balluff

9104 Device ID MSB – 0x0005

9105 Device ID LSB – 0x0B00

Once the matching vendor ID and Device ID information is setup, the IO-Link port will backup and restore the IO-Link parameters.  If the vendor ID and device ID does not match up, the IO-Link port will flash red.

The configuration can be checked and verified on the webserver of the Modbus TCP IO-Link master module as well, under the Settings - Port.

 

Energy consumption labeling
Energy consumption labeling

EPREL - European Product Database for Energy Labeling

Do you have any questions or suggestions? We are at your disposal.

For all questions concerning commercial topics such as quotations, orders, delivery times, our inside sales department will be happy to support you.

Contact us directly by phone: +46 31 3408630


Balluff AB

Gamlestadsvägen 2, B19
415 11 Göteborg

Free sample product

In order to add a free sample product to the cart we will need to remove all the normal products from the cart. Are you sure you want to continue