HomeKnowledgeHow to Configure and Use the XB6S-PL20 Slice Encoder Counter module in TIA Portal

How to Configure and Use the XB6S-PL20 Slice Encoder Counter module in TIA Portal

2026-05-24

Quick overview

 

1. Demo product

XB6S-PL20

 

2. Communication protocol

PROFINET

 

3. Configuration Tool

Siemens TIA Portal

 

4. Supported signals

ABZ encoder signals/pulse direction signals/dual pulse signals

 

5. Functions Involved

Configuration/basic counting/probe latch (single/continuous)/compare output

 

 

How do you configure the Solidot slice 2-channel single-ended incremental encoder counter module XB6S-PL20 in TIA Portal and use its counting, probe latch and compare output functions?

 

This article uses the XB6S-PL20 with the PROFINET coupler XB6S-PN2002 to describe the configuration workflow and the operating instructions for the three functions: basic counting, probe latch and compare output.

How to Configure and Use the XB6S-PL20 Slice Encoder Counter module in TIA Portal

 

 

 

1. Configuration

1. Creating a New Project and Adding a device

Create a new project in TIA Portal, add the PLC device according to the actual hardware model, and complete the initial project creation.

How to Configure and Use the XB6S-PL20 Slice Encoder Counter module in TIA Portal

 

 

2. Installing the GSD configuration file

Click "Options" → "Manage general station description files (GSD)" in the TIA Portal menu bar to open the GSD file Management interface, select the folder containing the GSD file, select the corresponding file, and click "Install" to import the configuration file.

How to Configure and Use the XB6S-PL20 Slice Encoder Counter module in TIA Portal

 

How to Configure and Use the XB6S-PL20 Slice Encoder Counter module in TIA Portal

 

3. Assigning the device name and IP address

In the project tree, expand "Online access" → select the corresponding network interface Card (NIC) → "Update accessible devices". After the coupler is found (no device name or IP address is preset at the factory, so the scan result shows the MAC address), click "Online & diagnostics" → "Functions" to assign the IP address and the PROFINET device name.

How to Configure and Use the XB6S-PL20 Slice Encoder Counter module in TIA Portal

How to Configure and Use the XB6S-PL20 Slice Encoder Counter module in TIA Portal

 

How to Configure and Use the XB6S-PL20 Slice Encoder Counter module in TIA Portal

Note: The coupler has no preset device name or IP address at the factory. On first use, they must be assigned manually via online scan, otherwise the coupler cannot be identified by the PLC.

 

4. Online hardware detection and downloading the configuration

Click "Online" → "Hardware detection" → "PROFINET devices in the network", click "Start search", select the coupler and add it to the PLC network. After downloading the hardware configuration, switch to online status to confirm that the configuration was successful.

How to Configure and Use the XB6S-PL20 Slice Encoder Counter module in TIA Portal

 

How to Configure and Use the XB6S-PL20 Slice Encoder Counter module in TIA Portal

 

How to Configure and Use the XB6S-PL20 Slice Encoder Counter module in TIA Portal

 

 

II. Using the PL20 functions

 

1. Wiring method and terminal definitions

For the terminal wiring definitions, refer to the figure below and select the corresponding wiring method according to the signal type actually used (ABZ / pulse direction / dual pulse).

How to Configure and Use the XB6S-PL20 Slice Encoder Counter module in TIA Portal

 

6.2 Terminal Assignment

Encoder0

A

B

Terminal Marking

Terminal Assignment

Description

Terminal Marking

Terminal Assignment

Description

0 

A0

ENCO_A

0 

EOV

24 V encoder power supply

1 

BO

ENCO_B

1 

EOG

0 V encoder power supply

2 

ZO

ENCO_Z

2 

COM1

ENCO encoder common terminal

3 

X00

ENCO_Input0 (probe function)

3 

Y00

ENCO_Output0 (compare output)

4 

X01

ENCO_Input1 (probe function)

4 

Y01

ENCO_Output1 (compare output)

5 

X02

ENCO_Input2 standard DI

5 

Y02

ENCO_Output2 standard DO

6 

X03

ENCO_Input3 standard DI

6 

Y03

ENCO_Output3 standard DO

7 

COM0

Input common terminal COM0

7 

NC

Spare Terminal

Encoder1

C

D

Terminal Marking

Terminal Assignment

Description

Terminal Marking

Terminal Assignment

Description

0 

A1

ENC1_A

0 

E1V

24 V encoder power supply

1 

B1

ENC1_B

1 

E1G

0 V encoder power supply

2 

Z1

ENC1_Z

2 

COM3

ENC1 encoder common terminal

3 

X10

ENC1_Input0 (Probe function)

3 

Y10

ENC1_Output0 (Compare output)

4 

X11

ENC1_Input1 (Probe function)

4 

Y11

ENC1_Output1 (Compare output)

5 

X12

ENC1_Input2 standard DI

5 

Y12

ENC1_Output2 standard DO

6 

X13

ENC1_Input3 standard DI

6 

Y13

ENC1_Output3 standard DO

7 

COM2

Input common terminal COM2

7 

NC

Spare Terminal

8 

24 V

Field-side power supply 24 V

8 

24 V

Field-side power supply 24 V

9 

OV

Field-side power supply OV

9 

OV

Field-side power supply OV

 

2. Basic counting function

Open the coupler device view in TIA Portal and check the I/O start address of the PL20 module. After verifying the address of each module variable against the address table, complete the wiring correctly and enable Counter enable to start counting.

How to Configure and Use the XB6S-PL20 Slice Encoder Counter module in TIA Portal

 

 

In this example, a Pulse Generator is used to send pulse signals at a frequency of 1000 Hz for verification.

How to Configure and Use the XB6S-PL20 Slice Encoder Counter module in TIA Portal

 

How to Configure and Use the XB6S-PL20 Slice Encoder Counter module in TIA Portal

 

3. Probe latch function

Each PL20 channel is equipped with 2 probe input channels and supports single latch and continuous latch modes. When the probe input channel detects a valid signal, the current count value is stored in the latch register of the corresponding channel, and the probe latch flag toggles (the trigger edge of the probe input can be configured as a rising edge or a falling edge).

 

This example uses single latch with rising edge trigger: turn on the enable switch of latch channel 0. After the probe signal is applied, a latch is triggered once, and the current count snapshot can be read from the corresponding latch value address.

How to Configure and Use the XB6S-PL20 Slice Encoder Counter module in TIA Portal

 

Note: After a single latch is triggered once, it must be re-enabled before it can latch again; in continuous latch mode, the latch value is updated on every valid signal.

 

4. Compare output function

PL20 Each channel is equipped with 2 compare output channels. When the count value and comparison direction simultaneously meet the set conditions, the compare channel outputs a pulse signal with an adjustable time (configurable range: 1–65535 ms).

 

This example uses single increment comparison (i.e., triggered when the count value increases from small to large): Enable compare output channel 0, set the comparison direction to 1 (increment), set the comparison value to 10000, and set the output pulse time to 1000 ms. When the count value increases from 0 to 10000, output channel 0 outputs a 1000 ms low level, and the channel indicator is steady on; after the pulse ends, it returns to high level and the indicator is off.

How to Configure and Use the XB6S-PL20 Slice Encoder Counter module in TIA Portal

 

How to Configure and Use the XB6S-PL20 Slice Encoder Counter module in TIA Portal

Note: Setting the comparison direction to 1 is increment comparison (triggered when the count value increases from small to large), and setting it to 0 is decrement comparison (triggered when the count value decreases from large to small). Select the appropriate direction according to the actual application scenario.