Reading AS-i Data via IE/AS-i Link PN IO Gateway in PROFINET

David Krause18 min read
Industrial NetworkingSiemensTutorial / 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

System Architecture Overview

The IE/AS-i Link PN IO (catalog number 6GK1411-2AB10, firmware-compatible successor 6GK1411-2AB20) terminates an AS-Interface (AS-i) network segment on the field side and presents it as a PROFINET IO device on the controller side. In the configuration discussed here, the AS-i segment hosts a SIRIUS 3RA6 compact starter 3RA6120-1CB34 fitted with the AS-i connection module 3RA6970-3A. The PROFINET side connects to the integrated PROFINET interface (X150 P1) of a SIMATIC S7-300 CPU 319-3 PN/DP acting as the PROFINET IO controller.

From the controller's perspective, the gateway is a single PROFINET IO device with a GSD-defined slot structure. Each AS-i slave assigned to the gateway occupies one slot, and the I/O bytes of that AS-i slave become the cyclic I/O of the corresponding PROFINET submodule. The CPU maps the slots into its process-image I/O area, and the STEP 7 program reads and writes the data using standard load/transfer instructions or the standard distributed-I/O blocks.

The data path is three layers deep:

  1. AS-i slave on the compact starter. The 3RA6970-3A exchanges cyclic I/O with the gateway acting as AS-i master. Typical process data is 4-bit DI / 4-bit DO for status and control of the starter; the exact profile is selected during commissioning with the AS-i addressing unit.
  2. IE/AS-i Link PN IO. The gateway exposes each AS-i slave as a PROFINET submodule on a slot and additionally offers acyclic manufacturer-specific records for AS-i diagnostics. The gateway is a standard PROFINET IO device; it does not require any proprietary block library to exchange data.
  3. S7-300 CPU 319-3 PN/DP. The PROFINET IO controller reads and writes the submodules cyclically via the I/O area, and reads diagnostic data acyclically with SFB52 "RDREC" / SFB53 "WRREC" (STEP 7 V5.x) or the equivalent RDREC / WRREC instructions in TIA Portal.
PROFINET device model. Slot 0 is reserved for the gateway itself (device access point, DAP). Slot 1 and higher correspond to AS-i slaves in the order you insert them in the device configuration. The maximum number of AS-i slaves per gateway is 31 per AS-i network, and the gateway supports two independent AS-i networks (62 slaves total). The PROFINET controller cannot exceed 62 submodules for this single device.

Hardware Components and Catalog Numbers

Component Catalog Number Function
IE/AS-i Link PN IO 6GK1411-2AB10 AS-i master with PROFINET IO interface, dual AS-i network
AS-i power supply, 30 V DC 3RX9501-0BA00 (2.4 A) or 3RX9502-0BA00 (5 A) AS-i bus supply, isolated 30 V DC, decoupled data signal
SIRIUS 3RA6 compact starter 3RA6120-1CB34 Direct-on-line starter, size S00, 0.25-1.6 A class
AS-i connection module for 3RA6 3RA6970-3A Slaves the starter onto the AS-i bus; carries the address socket
SIMATIC S7-300 CPU 6ES7318-3EL01-0AB0 (CPU 319-3 PN/DP) PROFINET IO controller
AS-i addressing unit 3RK1904-2AB02 (handheld) Sets the AS-i slave address (1-31) on the module
AS-i supply voltage is 30 V DC, not 24 V DC. The AS-i specification requires a regulated 30 V DC nominal bus voltage (range 26.5-31.6 V DC) with integrated data-decoupling inductors. Power the AS-i bus from an AS-i power supply unit (PSU) or a 24 V to 30 V DC/DC converter designed for AS-i. A standard 24 V industrial PSU will not work and may damage the slaves.
Functional grounding. The IE/AS-i Link PN IO ships with a functional-earth (FE) spring on the underside of the housing. Clamp the device to a grounded DIN rail in the cabinet, or wire a separate 4 mm² FE conductor to the spring. Lack of FE is the most common root cause for sporadic PROFINET link-up failures on a metal cabinet with a floating subpanel.

Refer to the IE/AS-i Link PN IO device manual (PDF) for terminal assignments, diagnostic-LED meaning, and the supported AS-i master specifications. The PI (PROFIBUS & PROFINET International) product-finder entry for the gateway family is published at PROFIBUS product finder - IE/PB Link PN IO for the cross-reference, while the AS-i-specific ordering data and GSD file are in the Siemens Industry Online Support entry 22712154.

Prerequisites and Software Tools

Tool Version Notes
SIMATIC STEP 7 V5.5 + SP4 (or later) with HSP for the gateway Used for S7-300/400 controllers; HW Config supports the gateway with the supplied GSD
SIMATIC STEP 7 (TIA Portal) V16 (or later) for the CPU 319-3 PN/DP Use the TIA Portal device view; the S7-300 CPU is supported up to TIA V18
GSD file for 6GK1411-2AB10 Install from the IE/AS-i Link PN IO support entry The gateway does not appear in HW Config without the GSD
AS-i addressing unit 3RK1904-2AB02 or equivalent Required to set the slave address on the 3RA6970-3A
Application example Siemens support entry 24057268 Includes a sample STEP 7 project with the gateway in a PROFINET IO system

Obtain the GSD file and the matching firmware/HSP for the IE/AS-i Link PN IO from the Siemens support entry for catalog number 6GK1411-2AB10. For TIA Portal, the device is included in the device catalog of the SIMATIC PC station profile after the GSD is installed; for STEP 7 V5.x, install the GSD via HW Config, menu "Options > Install GSD File".

Sample project is the fastest path. Siemens publishes a sample STEP 7 project (entry 24057268) that builds a working PROFINET IO system with the IE/AS-i Link PN IO and a downstream S7-300 controller. Use this as a starting point if the gateway does not appear in your hardware catalog after GSD install.

AS-i Network Setup and Slave Addressing

Each AS-i slave has a unique address from 1 to 31 on a single AS-i network. The compact-starter module 3RA6970-3A uses a single address; the address is set with the AS-i addressing unit over the addressing socket on the front of the module, or through the IE/AS-i Link PN IO if the master supports automatic addressing (the 6GK1411-2AB10 supports automatic addressing of single slaves).

Step Action Verification
1 Power the AS-i bus from the AS-i PSU; observe the "AS-i PWR" LED on the gateway is solid green Voltage at slave address socket between 26.5 and 31.6 V DC
2 Mount the 3RA6970-3A on the 3RA6120-1CB34; tighten both front-panel screws Mechanical latching visible on both sides
3 Connect the AS-i cable from the gateway to the 3RA6970-3A through the yellow AS-i profile cable Continuity with addressing unit on both ends of the cable run
4 Read the existing slave address using the addressing unit (menu "Read") Address echoed; default 0 indicates an unconfigured slave
5 Write a unique slave address (1-31) with the addressing unit (menu "Write") Reading back shows the assigned address
6 Power-cycle the AS-i bus and observe the "SLAVE OK" LED on the gateway for the assigned address LED lit solid green for active slaves; flashing indicates a peripheral fault on that slave

Repeat the addressing step for every AS-i slave on the network. Duplicate addresses cause the gateway to flag "AS-i config error" and refuse cyclic exchange with the affected slave; the LED on the slave module will not illuminate and the master's "SLAVE" LED for that address will blink red.

AS-i version 2.1 / 3.0. The 6GK1411-2AB10 is an AS-i v3.0 master and supports both v2.1 (combined transaction A/B slaves up to 62 per network on one cable) and v3.0 (extended addressing for I/O data up to 8-bit per slave). The 3RA6970-3A implements a v2.1 profile; a single address occupies a 4-bit DI / 4-bit DO area on the master.

GSD File Installation

The IE/AS-i Link PN IO is a GSD-based PROFINET IO device, not a Siemens catalog device. The GSDML file (GSDML-V*-Siemens-IEASi_LINK_PN_IO-*.xml) is published on the Siemens Industry Online Support entry for the catalog number. Install it once per engineering station; subsequent project work does not require reinstallation.

  1. Download the GSDML and any accompanying icon files to a local folder.
  2. Start STEP 7 V5.x HW Config or TIA Portal.
  3. For STEP 7 V5.x: menu Options > Install GSD File... > browse to the folder > select the GSDML > click Install.
  4. For TIA Portal: menu Options > Manage general station description files (GSD) > browse to the folder > select the GSDML > Install.
  5. Restart the engineering tool if the device does not appear in the catalog.
HSP for HW Config in STEP 7 V5.x. For S7-300, the gateway can also be installed as a Hardware Support Package (HSP). The HSP places the gateway under PROFINET IO > Gateway > Siemens AG > IE/AS-i Link PN IO. Either the GSD or the HSP is sufficient; do not install both, as this can cause duplicate catalog entries.

STEP 7 V5.x Device Configuration

Open the S7 project containing the CPU 319-3 PN/DP and double-click the PROFINET IO subnet of the CPU to open HW Config. Drag the IE/AS-i Link PN IO from the catalog to the PROFINET line; assign a unique device name (for example ie-asilink-01) and a unique IP address in the same subnet as the CPU's PROFINET interface.

  1. Open HW Config, navigate to the CPU's PROFINET interface (X150 P1).
  2. From the catalog PROFINET IO > Gateway > Siemens AG > IE/AS-i Link PN IO, drag the device onto the PROFINET line. The device appears with a slot 0 (DAP).
  3. Right-click the device > Properties > General > set Device Name = ie-asilink-01 and IP Address = a free address in the controller's subnet.
  4. Open Slot 1 of the gateway; insert the submodule AS-i Slave 1 (corresponding to AS-i slave address 1). Insert one submodule per AS-i slave address used.
  5. For each AS-i slave submodule, right-click and open Properties > Addresses to set the start address of the I area (inputs from slave) and Q area (outputs to slave) within the CPU's process image. A typical AS-i 4-bit DI / 4-bit DO slave maps to 1 byte of I and 1 byte of Q; the gateway may pad the byte to a word. Avoid address collisions with other IO devices in the same project.
  6. Save and compile the hardware configuration. Download the HW Config to the CPU. Use the "Accessible Nodes" function in HW Config to confirm the gateway comes online with the configured device name.
Device name and IP. PROFINET IO relies on the device name for the LLDP-based link-up; the IP is used for acyclic services (e.g. RDREC, Web server). If the gateway was previously commissioned with a different name from another controller, perform "Reset to factory" via the gateway's Web server or through the AS-i master config before assigning the new name. Some older 6GK1411-2AB10 firmware revisions require a power cycle after the name change.

TIA Portal Device Configuration

The TIA Portal places the IE/AS-i Link PN IO under the device catalog at Other field devices > PROFINET IO > Gateway > Siemens AG > IE/AS-i Link PN IO after the GSD is installed. The configuration steps mirror the STEP 7 V5.x flow with these TIA-specific differences:

  • The device view replaces HW Config. The PROFINET line is the connection between the CPU's PROFINET interface port and the gateway's port 1.
  • The "Inspector" window on the gateway carries the Gateway > Network gateway as PROFINET IO proxy option (documented in the TIA Portal communication manual; the same option exists for the IE/PB Link context). Keep this option at its default unless the gateway must proxy non-PROFINET slaves to a different controller, in which case it acts as a PROFINET IO proxy.
  • Submodule insertion: drag AS-i Slave n from the catalog into slot n of the device. Set the I/O addresses in the Inspector's "I/O addresses" tab.

The TIA Portal communication manual describes the proxy option in detail: Connect the DP slave via the IE/PB Link to a PROFINET IO system. The same "Network gateway as PROFINET IO proxy" option is available for the IE/AS-i Link PN IO and must remain at its default for direct PROFINET IO exchange.

Reading AS-i Process Data in the S7 Program

Once the gateway is in cyclic exchange with the CPU, the I/O bytes of the AS-i slaves are updated in the CPU's process image each PROFINET cycle. The STEP 7 program reads and writes the bytes directly without any proprietary block library.

Example: a 3RA6970-3A on AS-i address 1, configured at PROFINET I/O start address 10 (input byte) and 10 (output byte):

// STL (STEP 7 V5.x)
// Read AS-i input byte for slave 1
L     IB    10          // load input byte for AS-i slave 1
T     MB    100         // store in a flag byte for the program

// Bit-level evaluation of typical 3RA6 status signals
A     M100.0            // bit 0 = "starter on" feedback
=     DB20.DBX   0.0
A     M100.1            // bit 1 = "ready to start" feedback
=     DB20.DBX   0.1
A     M100.2            // bit 2 = "group fault"
=     DB20.DBX   0.2

For an OB1 cyclic read, the input byte is already part of the process image; for a time-critical read that must not wait for the OB1 update, use direct peripheral access:

// Direct peripheral read (bypasses process image, always current)
L     PIB   10          // load peripheral input byte
T     MB   100
Process image partition (PIP). For consistent I/O updates on a multi-byte AS-i slave, attach the I/O to a PIP and process the PIP in a synchronous OB (e.g. OB61). Single-byte AS-i slaves do not require this; the byte is consistent by definition.

Writing AS-i Process Data from the S7 Program

To control the compact starter through the AS-i module, the program writes the output bits in the process image. The PROFINET cycle delivers the bits to the gateway, which then updates the corresponding AS-i slave's DO bits. The 3RA6970-3A maps DO0 to the starter on/off control; the remaining DOs are unused or reserved by the slave profile.

// STL (STEP 7 V5.x)
// Set DO0 of AS-i slave 1 to start the motor
SET
S     M      110.0
// Reset DO0 to stop
CLR
=     M      110.0

// Transfer the flag byte to the output image
L     MB    110
T     QB    10
Edge evaluation for control. Some 3RA6 profiles require a toggle (rising edge) on the control bit to switch the starter, not a level. Refer to the user manual of the 3RA6970-3A for the exact DO semantics. As a sanity check, observe the input byte from the slave in the online monitor; if DO0 maps to bit 0 of the input echo, the output is being written correctly.

Acyclic Diagnostic Data Records (RDREC / WRREC)

The IE/AS-i Link PN IO exposes manufacturer-specific acyclic records that contain the AS-i slave list (LDS), the AS-i parameter echo, the configuration data, and the per-slave diagnostic buffer. The PROFINET IO controller reads these records with SFB52 "RDREC" (STEP 7 V5.x) or the RDREC instruction in TIA Portal. The exact record indices and lengths are defined in chapter 7 of the IE/AS-i Link PN IO device manual (PDF); the index values are also discoverable through the gateway's Web server under Diagnostics > Records.

Example STL for reading the AS-i slave list:

// Call SFB52 "RDREC" to read a record from the gateway
CALL  SFB52,  DB52
       REQ    := TRUE
       ID     := W#16#0100  // diagnostic address of the gateway slot 0
       INDEX  := 16#0010    // AS-i slave list, see IE/AS-i Link manual
       MLEN   := 200        // maximum record length
       VALID   := M200.0
       BUSY    := M200.1
       ERROR   := M200.2
       STATUS  := MW202
       LEN     := MW204
       RECORD  := P#DB100.DBX 0.0 BYTE 200

The returned buffer is interpreted using the structure documented in the IE/AS-i Link manual. For a quick health check, the first 4 bytes report the LDS bitmap (bit n = address n+1); a set bit indicates an active slave, a cleared bit indicates a missing slave.

For cyclic supervision of the AS-i segment, schedule the record read in OB1 (or in a slower OB35) and compare the LDS bitmap to the expected bitmap. A difference indicates a slave that has gone offline (cable break, address conflict, peripheral fault) and triggers a controller-side alarm.

Diagnostic address. The ID parameter of SFB52 is the diagnostic address of the PROFINET IO device (slot 0 of the gateway), not the slot of a particular AS-i slave. To read a per-slave record, set the index to the manufacturer-specific index for that slave and consult the IE/AS-i Link manual chapter 7 for the offset.

Verification and Online Diagnostics

Run the following checks after the hardware configuration is downloaded to the CPU and the gateway is in cyclic exchange:

Check Tool Pass Criterion
PROFINET link up on the gateway LED X1 / X2 on the gateway front; HW Config online view Port LED solid green; "Maintenance" LED off
AS-i bus powered LED "AS-i PWR" on the gateway; handheld multimeter on the AS-i cable Solid green; 26.5-31.6 V DC measured
Configured AS-i slaves active Online > AS-i Slaves in the gateway Web server; OB1 online monitor of input bytes All configured slaves listed with status "OK"; input bytes updating
Cyclic data in OB1 STEP 7 online monitor / TIA Portal online watch table PIB/QB toggles when the program writes the outputs and the slave echoes status on the inputs
Diagnostic buffer of the CPU STEP 7 > CPU > Module Information > Diagnostic Buffer No "PROFINET IO fault" entries for the gateway's slot 0

The gateway's Web server (default URL https://<ip>/, port 443) provides a maintenance page with the AS-i slave list, the LDS bitmap, the configuration data, the firmware version, and the PROFINET device name. Use the Web server during commissioning to confirm that the slaves are learned and the configuration matches the project.

Troubleshooting Matrix

Symptom Likely Root Cause Diagnostic Step Fix
Gateway PROFINET LED off 24 V supply missing, FE not bonded, naming conflict Measure 24 V at gateway terminals; check FE spring to grounded DIN rail; check device name in HW Config Restore 24 V; bond FE; reset gateway to factory and reassign device name
"AS-i config error" LED on Slave address conflict or missing slave Open the gateway Web server, view the slave list; compare to configured slaves Reassign the conflicting slave to a free address; reconnect the missing slave
Input byte stays 0 for an active slave Wrong I/O address mapping; PIP not refreshed; AS-i slave profile mismatch Open the I/O address table of the gateway slot; force the output from a watch table and check the input echo Correct the address in the device configuration; move the slave to the correct PIP; reassign the slave profile
RDREC returns STATUS = 0x80B0 / 0x80C0 Record index not supported; record length too short Check the manual for the supported index; increase MLEN to the documented record length Use the documented index; set MLEN to the documented length
RDREC returns STATUS = 0x80A1 Access denied; gateway is in a protected mode or the slot is wrong Check the ID parameter against the diagnostic address of the gateway slot 0 Use the correct diagnostic address; check the protective parameters of the gateway
Starter does not start despite DO0 set DO semantics differ from level to edge; motor protection tripped Observe the input byte for "ready to start" feedback; check the SSR of the compact starter Reset the motor protector; toggle DO0 on a rising edge; verify the wiring at the 3RA6 power terminals
Spurious PROFINET dropouts FE not bonded; EMC interference on the PROFINET cable; duplicate IP in the subnet Check the PROFINET cable shielding; ping the gateway IP from the CPU; verify the FE spring Replace the PROFINET cable with a shielded, grounded variant; change the IP to a free address; bond the FE
STATUS word reference for SFB52. SFB52 returns standardized PROFINET IO STATUS values; 0x80A1 is "access denied", 0x80B0 is "record not available", 0x80B1 is "length error", 0x80C0 is "resource busy", 0x80C1 is "access unsupported". Match the returned STATUS to the action in the manual; do not retry blindly without interpreting the code.

Frequently Asked Questions

What GSD file do I install for the IE/AS-i Link PN IO 6GK1411-2AB10?

Install the GSDML file from the Siemens Industry Online Support entry for catalog number 6GK1411-2AB10 (linked to the IE/AS-i Link PN IO device manual, entry ID 22712154). The GSDML file exposes the device under "PROFINET IO > Gateway > Siemens AG > IE/AS-i Link PN IO". In STEP 7 V5.x, use Options > Install GSD File; in TIA Portal, use Options > Manage general station description files (GSD). Restart the tool if the device does not appear in the catalog after installation.

How are AS-i slave addresses mapped to PROFINET I/O addresses?

Each AS-i slave assigned to the gateway occupies one PROFINET slot starting at slot 1. Slot 0 is the device access point (DAP) of the gateway. The I/O bytes of the AS-i slave are configured in the slot properties; a typical v2.1 4-bit DI / 4-bit DO slave maps to 1 byte of I and 1 byte of Q. The CPU maps the I/O bytes into the process image at the configured start address; the program reads and writes with the standard L PIB / T QB instructions.

How do I read AS-i diagnostic data records from the CPU 319-3 PN/DP?

Call SFB52 "RDREC" (STEP 7 V5.x) or the RDREC instruction (TIA Portal) with the diagnostic address of the gateway slot 0 as the ID parameter and the manufacturer-specific record index from chapter 7 of the IE/AS-i Link manual. Typical record indices include the AS-i slave list (LDS) and the AS-i parameter echo. Cycle the call in OB1 or OB35 and compare the returned bitmap to the expected slave list to detect missing or failed slaves.

Can the IE/AS-i Link PN IO be used with both STEP 7 V5.x and TIA Portal?

Yes. The gateway is a GSD-based PROFINET IO device and works with STEP 7 V5.x (with the matching HSP or GSD), TIA Portal V16 and later for the S7-300 controller, and third-party PROFINET controllers that import the GSDML. The configuration steps and the resulting I/O mapping are identical; only the engineering-tool user interface differs. The CPU 319-3 PN/DP is supported up to TIA Portal V18.

Why does the AS-i "config error" LED stay on even after the slaves are wired?

The LED indicates that the actual AS-i configuration (the LDS) does not match the expected configuration stored in the gateway. The most common causes are duplicate slave addresses on the bus, an unconfigured slave with default address 0, or a slave that requires more power than the AS-i PSU can deliver. Open the gateway Web server, view the slave list, and verify that every slave in the design has a unique address (1-31) and is powered correctly.

Back to blog