Configuring CPU 1513-1 PN with IM 155-6 PN in TIA Portal

David Krause14 min read
SiemensTIA PortalTutorial / How-to
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

Configuring CPU 1513-1 PN with IM 155-6 PN Stations in TIA Portal

This reference walks through the engineering workflow for a SIMATIC S7-1500 CPU 1513-1 PN (6ES7513-1AM03-0AB0) controlling three distributed ET 200SP stations, each built on an IM 155-6 PN interface module. The same procedure applies to a PLCSIM or S7-PLCSIM Advanced instance, to a real S7-1500 rack, and to any third-party PROFINET device whose GSD file is installed. The article focuses on the device configuration in TIA Portal, the automatic I/O address layout, and the program-side options for accessing the channels.

1. System Architecture Overview

The CPU 1513-1 PN is the PROFINET IO Controller; each IM 155-6 PN is a PROFINET IO Device. The CPU exposes two PROFINET ports (X1 P1, X1 P2) on its integrated switch, so the three ET 200SP stations can be wired line, star, or ring without external switches. The reference topology places the CPU at the head, station 1 on X1 P1, and stations 2 and 3 daisy-chained from station 1's port 2 and 3 respectively.

CPU 1513-1 PN 6ES7513-1AM03-0AB0 IO Controller X1 P1 ET 200SP #1 IM 155-6 PN HF DI16 / DQ16 / AI4 / AQ4 ET 200SP #2 IM 155-6 PN ST DI16 / DQ16 ET 200SP #3 IM 155-6 PN HF AI8 / AQ4

2. Prerequisites

  • Engineering software: TIA Portal V17 (or later) with STEP 7 Professional. The same procedure works in V18 and V19; the only difference is the catalog revision and any new firmware selectable for the IM. PLCSIM or S7-PLCSIM Advanced V17+ is required if you intend to simulate.
  • CPU firmware: CPU 1513-1 PN ships with firmware V2.9 on the 6ES7513-1AM03-0AB0 order number. The current firmware revision is selectable from the catalog; downgrade to V2.6 is permitted by older TIA Portal versions.
  • IM 155-6 PN variants: Standard 6ES7155-6AU01-0BN0, High Feature 6ES7155-6BA00-0CN0, and the High Feature with ST 6ES7155-6BA00-0CN0. The HF variant adds isochronous mode, shared device, and module-internal shared input/output on the backplane bus.
  • BaseUnits: BU15-P16+A0+2B (push-in) or BU15-P16+A10+2D (screw) for the ET 200SP stations. The type of BaseUnit determines which channels carry AUX voltage.
  • PROFINET cabling: Cat 5e or higher, max 100 m between devices, industrial-grade RJ45 with at least IP20 rating for cabinet mounting.
  • User rights: Administrator on the engineering PC to install HSPs and GSD files; PLC password if one has been set on the controller.
Note: The IM 155-6 PN ST and HF have different firmware load mechanisms. ST accepts only Siemens-signed firmware from the TIA Portal; HF accepts the same plus later revisions. Do not attempt to push a V3.5 firmware to a V2.x station via the catalog without confirming the package state.

3. Part Number Reference Table

Component Order Number Role
CPU 1513-1 PN 6ES7513-1AM03-0AB0 PROFINET IO Controller, 1 PROFINET interface with 2-port switch
IM 155-6 PN ST 6ES7155-6AU01-0BN0 Standard interface module, up to 12 I/O modules
IM 155-6 PN HF 6ES7155-6BA00-0CN0 High Feature interface module, isochronous, shared device
DI 16x24VDC HF 6ES7131-6BF00-0DA0 16-channel digital input, 24 V DC, 0.5 ms filter
DQ 16x24VDC/0.5A HF 6ES7132-6BH00-0DA0 16-channel digital output, 0.5 A
AI 4xU/I/RTD/TC ST 6ES7134-6GD00-0BA1 4-channel analog input, ±10 V, 0-20 mA, RTD, TC
AQ 4xU/I ST 6ES7135-6HD00-0BA1 4-channel analog output, ±10 V, 0-20 mA

4. Creating the Project and Adding the CPU

  1. Open TIA Portal and choose Create new project. Enter a project name and the project path. Set the author and any comment fields.
  2. In the project tree, click Add new device → SIMATIC S7-1500 → CPU → CPU 1513-1 PN → 6ES7513-1AM03-0AB0. Select the firmware version that matches the physical module or, when simulating, the highest revision supported by the active TIA Portal.
  3. Open the device view. The CPU appears with its two PROFINET ports, the display, and the working memory LEDs.
  4. Open the device configuration of the CPU. On the PROFINET interface [X1] properties, assign the IP address (default 192.168.0.1), the subnet mask (255.255.255.0), and the router address (if used). Tick PROFINET IO Controller; the system automatically attaches a PROFINET subnet named PN/IE_1.
Note: The PROFINET device name is empty by default. A name is only mandatory after a download to the controller, because the controller issues a DCP Identify request to discover devices on the subnet. The name and IP are downloaded together.

5. Adding the IM 155-6 PN Stations

The three ET 200SP stations are added one by one to the PROFINET subnet of the CPU:

  1. Switch to the Network view. The CPU appears at the centre with the PN/IE_1 subnet attached.
  2. Open the Hardware catalog task card on the right. Navigate to Distributed I/O → ET 200SP → Interface modules → PROFINET.
  3. Drag the IM 155-6 PN HF (6ES7155-6BA00-0CN0) onto the PN/IE_1 subnet. A connection line is drawn automatically between the CPU port and the IM port 1.
  4. Repeat for the second and third stations. To daisy-chain a station off another station, drop the new IM on top of the existing IM and select a free port (port 2 or 3) on the source station when prompted.
  5. Right-click each IM and assign a unique PROFINET device name (e.g., et200sp-1, et200sp-2, et200sp-3) and a unique IP address (e.g., 192.168.0.11, 192.168.0.12, 192.168.0.13).
  6. Open the device view of the first IM. Drag the I/O modules from the catalog into the slots in the order DI, DQ, AI, AQ. The slots are auto-numbered from 1. The CPU does not constrain the order; place modules in the physical order wired into the BaseUnits.

Repeat step 6 for each station. TIA Portal automatically generates I/O addresses for every channel. To inspect the addresses, open Devices & networks → [CPU] → Device view → Properties → I/O addresses, or expand the PLC tags → Default tag table. The default starting address of station 1 is 0 (inputs) and 0 (outputs), with each station appended in the order of declaration.

6. I/O Address Mapping and Channel Layout

Addresses follow the standard SIMATIC pattern: input modules occupy the %I address space, output modules the %Q address space, and analog modules are word-aligned. The following table is an example layout generated by the configuration in section 5.

Station Slot Module Start Address End Address Length
et200sp-1 1 DI 16x24VDC HF %I 0.0 %I 1.7 2 bytes
et200sp-1 2 DQ 16x24VDC/0.5A HF %Q 0.0 %Q 1.7 2 bytes
et200sp-1 3 AI 4xU/I/RTD/TC ST %IW 4 %IW 11 8 bytes (4 words)
et200sp-1 4 AQ 4xU/I ST %QW 4 %QW 11 8 bytes (4 words)
et200sp-2 1 DI 16x24VDC HF %I 2.0 %I 3.7 2 bytes
et200sp-2 2 DQ 16x24VDC/0.5A HF %Q 2.0 %Q 3.7 2 bytes
et200sp-3 1 AI 8xU/I HF %IW 12 %IW 27 16 bytes
et200sp-3 2 AQ 4xU/I ST %QW 12 %QW 19 8 bytes
Note: Addresses are user-renamable. Open the module's Properties → I/O addresses and tick User-defined to override the auto-assignment. Renumbering the CPU-side address does not change the slot or module order; the controller maps by slot index.

7. Accessing I/O from the PLC Program

For the IM 155-6 PN, the controller reads the process image of the inputs (PII) and writes the process image of the outputs (PIQ) once per OB1 cycle. No special function block is required to read or write the channels. The I/O can be accessed either by absolute address or, preferably, by symbolic tag.

7.1 Direct absolute access

In an SCL block:

// Read digital input 0.0 from station 1 and set digital output 0.0
IF "%I0.0" THEN
    "%Q0.0" := TRUE;
ELSE
    "%Q0.0" := FALSE;
END_IF;

// Read analog input channel 0 (word at %IW4) and write to analog output
"%QW4" := "%IW4";

The same logic in LADDER (KOP):

Network 1:
  |--[ %I0.0 ]--------------------( %Q0.0 )--|
Network 2:
  |--[ MOVE ]                            |--|
  |   EN  := TRUE                        |
  |   IN  := %IW4                        |
  |   OUT := %QW4                        |

7.2 Symbolic access (recommended)

Open the default tag table of the CPU and add tags that point to the I/O addresses. For example:

Name Data type Address Comment
i_StartButton Bool %I 0.0 Start push-button station 1
o_RunContactor Bool %Q 0.0 Run contactor station 1
i_PressureAI1 Int %IW 4 Pressure transducer station 1
o_ValveAO1 Int %QW 4 Valve setpoint station 1
i_StartButton_2 Bool %I 2.0 Start push-button station 2
o_Heater_2 Bool %Q 2.0 Heater contactor station 2

Once the tags exist, the program can use the names directly:

IF "i_StartButton" THEN
    "o_RunContactor" := TRUE;
END_IF;

// analog scaling (0-27648 corresponds to 0-10 V on the AI module)
"o_ValveAO1" := REAL_TO_INT("i_PressureAI1" * 27648.0 / 27648.0);

7.3 Program blocks that are typically used with PROFINET IO

Block Source Purpose
RDREC (SFB52) STEP 7 system Read acyclic record from an IO device (e.g., diagnostics data record 0x8000)
WRREC (SFB53) STEP 7 system Write acyclic record to an IO device (e.g., parameter record 0xBF00)
GETIO (SFC14) STEP 7 system Read consistent I/O data longer than 4 bytes from a DP/PN slave
SETIO (SFC15) STEP 7 system Write consistent I/O data longer than 4 bytes to a DP/PN slave
DeviceStates (FB1265) PROFINET diagnostics library Returns a bit mask of faulty IO devices on a PROFINET interface
ModuleStates (FB1266) PROFINET diagnostics library Returns a bit mask of faulty modules inside an IO device

For an S7-1500 with PROFINET, consistent I/O read/write is normally not required because the process image handles consistency for word- and double-word-aligned analog channels. The SFC14/SFC15 path is only needed when accessing a submodule directly by its hardware identifier (HW ID) and the data length exceeds 4 bytes.

8. PROFINET Device Names and IP Assignment

The PROFINET IO Controller and the three IM 155-6 PN stations must each have a unique device name on the subnet. The controller issues a DCP Identify broadcast and the stations respond. The device name is stored in the IM and survives power-off. There are three ways to assign it:

  1. From the topology editor in TIA Portal. Right-click the IM and select Assign PROFINET device name. This pushes the name to the IM via DCP. Requires the engineering PC to be on the same subnet.
  2. From the PRONETA tool. PRONETA scans the subnet, lets you see and edit the names, and verifies that each IM carries the configured name.
  3. From the SIMATIC Automation Tool. Useful for large commissioning campaigns; reads a CSV list of (name, IP) pairs and pushes them to many devices.
Note: The IP address itself is not stored in the IM by DCP; it is part of the PROFINET startup record that the controller pushes during AR establishment. The IM keeps the IP for the next startup unless you reset to factory settings. If you change the IP, always perform a power cycle to confirm retention.

9. Diagnostic and Commissioning Workflow

The recommended commissioning sequence is:

  1. Power the CPU and the three IMs in any order. The CPU starts up with the configured project (after download) and tries to establish AR (Application Relationship) with each station.
  2. Open Online → Online & diagnostics, select the CPU, and click Accessible nodes. Verify that et200sp-1, et200sp-2, and et200sp-3 appear with their configured IP addresses.
  3. Click on each IM and look at Diagnostic buffer. The most recent entries should be Station OK. Any AR negotiation failed or Device name mismatch points to a DCP issue.
  4. Use Online → Monitor & force on the I/O tags. Toggle a digital input on the field side and watch the corresponding %I bit go high in the table.
  5. Force a digital output on station 1 and confirm the contactor pulls in. Remove the force before leaving commissioning.

10. LED Behaviour and Error Codes

Each IM 155-6 PN has four LEDs on the front: PWR, RN (RUN), ER (ERROR), and MT (MAINT). The CPU 1513-1 PN has RUN/STOP, ERROR, MAINT, and the link/speed LEDs on each port.

LED Colour State Meaning
PWR (IM) Off No supply Check the system power (24 V on BaseUnit)
PWR (IM) Green On Power OK
RN (IM) Off Not running No configuration or no AR with controller
RN (IM) Green Flashing AR established, no I/O data exchange (startup phase)
RN (IM) Green On AR established, cyclic I/O data running
ER (IM) Red Flashing Parameter assignment error (record 0xBF00 invalid)
ER (IM) Red On Station failure (no link or duplicate name)
MT (IM) Yellow On Maintenance required (e.g., channel diagnostics)
RUN/STOP (CPU) Green On CPU in RUN, programs executing
RUN/STOP (CPU) Yellow On CPU in STOP
ERROR (CPU) Red Flashing Error, diagnostic buffer populated

11. Simulation with PLCSIM and S7-PLCSIM Advanced

For virtual commissioning, the IM 155-6 PN is not directly simulated by PLCSIM; PLCSIM emulates the CPU only. To exercise the I/O from a PC, you have two options:

  1. Use ET 200SP with a real IM connected to the PLCSIM instance via PROFINET. PLCSIM Advanced supports the simulation of PROFINET IO devices attached to a simulated CPU. The I/O is then read and written against the real device, which keeps the analog/digital modules in the loop.
  2. Use the PLCSIM internal I/O tables. For digital channels, the watch table in TIA Portal can Force values into the simulated PII. For analog, you can use a separate instance of S7-PLCSIM Advanced with a virtual analog module registered in the GSD catalog.
Note: PLCSIM does not support isochronous mode on the simulated CPU. If the IM 155-6 PN HF is configured for isochronous operation, the simulation runs in non-isochronous mode but the AR still establishes.

12. Verification Checklist

Before releasing the project, confirm the following items:

  • All three IMs are reachable via Accessible nodes with their configured names and IPs.
  • The diagnostic buffer of each IM shows Station OK as the latest entry.
  • One input on station 1 toggles i_StartButton in the PLC tag table; one output on station 1 follows o_RunContactor when forced.
  • One analog input on station 1 produces a value in the configured 0-27648 range at 0-10 V applied; one analog output drives the expected 0-10 V when the PLC writes a corresponding value.
  • The watchdog times on the IM 155-6 PN are at the default (1 ms for IRT, 3 ms for RT). The PROFINET update time is 1 ms for isochronous and 1-512 ms for non-isochronous, set under PROFINET interface → Real-time settings.
  • Port statistics for the CPU and the IMs show zero CRC errors after 1 hour of operation with cyclic traffic.

13. Frequently Asked Questions

Do I need a special function block to read digital inputs from an IM 155-6 PN station?

No. The I/O of the IM 155-6 PN is mapped into the process image of the CPU automatically once the PROFINET AR is established. The program can use either absolute access such as %I0.0 or symbolic tags that point to those addresses. Only consistent data longer than 4 bytes requires SFC14 (GETIO) and SFC15 (SETIO), which is rarely the case for digital or standard analog modules.

What is the difference between the IM 155-6 PN ST and the IM 155-6 PN HF?

The ST variant supports the standard PROFINET features: RT and IRT communication, up to 12 I/O modules, and basic device replacement. The HF variant adds isochronous mode, shared device (where one IM is shared between two controllers), module-internal shared input/output, MSI/MSO, and the higher firmware revisions used for advanced diagnostics. The article's example uses HF (6ES7155-6BA00-0CN0) on station 1 and station 3, and ST on station 2.

How is the PROFINET device name assigned and stored?

The name is set in the TIA Portal project under Device view → PROFINET interface → PROFINET for each IM, then pushed to the device via DCP using Assign PROFINET device name. The IM stores the name in non-volatile memory and uses it on every subsequent startup to respond to the controller's Identify request. PRONETA or the SIMATIC Automation Tool can perform the same operation for large sites.

Why does my IM show ER (red) after a configuration download?

The most common reasons are a slot mismatch (an inserted module does not match the configured type), a duplicate device name on the subnet, or a parameter record (0xBF00) that the IM cannot apply. Open Online & diagnostics → Diagnostic buffer on the IM; the most recent entry will identify the slot and the failing record. Correct the slot or the parameter, recompile, and download the configuration again.

Can I use a third-party PROFINET IO device on the same subnet as the three IM 155-6 PN stations?

Yes. Install the GSD file of the third-party device via Options → Manage general station description files (GSD), then drag the device from the catalog onto the PN/IE_1 subnet. The CPU 1513-1 PN supports up to 256 IO devices per PROFINET interface subject to the configured update time and the number of submodules. The third-party device appears in the I/O address layout just like the IM 155-6 PN.

What is the recommended update time for a non-isochronous PROFINET network with three ET 200SP stations?

For a network carrying only digital and standard analog signals, an update time of 1 ms gives a 1 kHz refresh on the process image. For mixed networks with several analog modules, 2 ms to 4 ms is a common compromise. Reduce the update time only if the controller can keep up; the PROFINET stack of the CPU 1513-1 PN sustains 1 ms with up to 16 stations, but the application cycle time of OB1 must be set accordingly.

Back to blog