Overview: Why AS-Interface Mixes Vendor Devices Natively
AS-Interface (AS-i) is a single-master, two-wire, bit-serial fieldbus standardized in IEC 62026-2. Unlike PROFIBUS or PROFINET, AS-i does not use a GSD or GSDML file to describe a slave. Every AS-i slave carries its own identity directly on the device: a 4-nibble profile (IO, ID, ID1, ID2) plus a 5-bit address (standard) or 6-bit address (A/B extended). This means a third-party device from Festo, Aventics (formerly Bosch Rexroth), IFM, Balluff, Pepperl+Fuchs, Sick, or Turck is electrically and logically compatible with any AS-i master — including the Siemens CM 1243-2 — without firmware adaptation or vendor-specific catalog entries. The TIA Portal approach is to drop a "Universal Slave" into the device configuration, key in the profile codes from the device datasheet, and let the master expose the bits to the S7-1200 process image.
This reference walks through the CM 1243-2 (article number 6GK7243-2AX30-0XE0, firmware V2.x and later), covers both standard and A/B addressing, and shows the exact steps for a 4DI/4DO third-party valve terminal such as the Bosch Rexroth / Aventics CA44 (material number R412004452) and the Festo CPV14-VI / CPV-ASI-4E3A-Z.
Prerequisites
- SIMATIC S7-1200 CPU, firmware V4.2 or later (required for full CM 1243-2 V2.x support). S7-1200 V4.0/4.1 supports CM 1243-2 V1.0 with reduced slave count.
- CM 1243-2 AS-i master module (6GK7243-2AX30-0XE0). Slot mounted to the left of the CPU.
- AS-i power supply, 24 V DC / min 2.6 A per segment (e.g. Siemens 3RX9501-0BA00 or Phoenix Contact QUINT-PS-100).
- Yellow AS-i profile cable (EPDM, 2 x 1.5 mm²).
- AS-i addressing unit (Siemens 3RK1904-2AB02 handheld or IFM AC1224) to set the slave address on third-party devices that do not support auto-address.
- TIA Portal V15.1 or later (V16+ recommended for CM 1243-2 V2.1). The Hardware Support Package (HSP) for the CM 1243-2 must be installed.
- Manufacturer datasheet for every third-party slave — the IO, ID, ID1, ID2 profile codes MUST come from the device manual, not from a TIA Portal wizard.
CM 1243-2 Master Module Specifications
| Parameter | Value |
|---|---|
| Article number | 6GK7243-2AX30-0XE0 |
| AS-i specification | V3.0 (supports standard + A/B slaves) |
| Max standard slaves | 31 (addresses 1–31) |
| Max A/B slaves | 62 (addresses 1A–31A, 1B–31B) |
| Max I/O per network | 248 DI / 248 DO (A/B mode) or 124 DI / 124 DO (standard mode) |
| Cycle time | 5 ms (≤31 std slaves) / 10 ms (≤62 A/B slaves) |
| Power from AS-i cable | ≤ 8 W total slave consumption budget enforced by master |
| Configuration interface | TIA Portal device configuration + web server (port 80, default 192.168.0.100) |
| Connection to S7-1200 | Backplane bus (left-bus connector included) |
| Operating temperature | 0 °C to +60 °C (horizontal mounting) |
The CM 1243-2 occupies 16 bytes of input process image and 16 bytes of output process image in the S7-1200 by default, and exposes per-slave bit areas in extended configuration. Inputs from each slave are bit-mapped starting at IB 0 / QB 0 offset within the master; the offset is calculated as (slave_index × 4 bits) when working in standard profile mode, or (slave_index × 4 bits) per A/B sub-address in extended mode.
AS-i Slave Addressing: Standard (1–31) vs. A/B Extended (1A–31A, 1B–31B)
AS-i has two addressing schemes on the same physical wire:
| Mode | Address Range | Bits per Slave | Max Slaves / Segment | Typical Use |
|---|---|---|---|---|
| Standard (single address) | 1 … 31 | 4 DI + 4 DO | 31 | Full I/O modules, valve terminals with > 2 DO |
| A/B extended | 1A … 31A and 1B … 31B | 4 DI + 3 DO per sub-address | 62 | Simple sensors (1 DI), 2-output valve manifolds, low-cost I/O blocks |
Mixing rule: The CM 1243-2 fully supports mixed standard and A/B slaves on the same network. A standard slave at address 7 and an A/B slave at 1A/1B coexist without configuration changes to the master. The "automatic A/B addressing" checkbox in TIA Portal (under CM 1243-2 properties > AS-i network > Operating mode) must be enabled if the segment is to include any A/B slaves; otherwise the master rejects A/B slaves during configuration and logs fault 0xC (configuration error) per slave.
The AS-i Slave Profile: IO, ID, ID1, ID2 in Hex
Every AS-i slave exposes four 4-bit codes that fully describe its I/O capability to the master. These are burned into the slave at the factory and read out by the master during configuration:
| Code | Name | Length | Meaning |
|---|---|---|---|
| IO | I/O configuration code | 4 bits (1 hex) | Defines how many inputs and outputs the slave has, and which bit positions are used. Each bit pattern is standardized in the AS-i spec. |
| ID | Identification code | 4 bits (1 hex) | Vendor-assigned function class. ID = F (hex) is the default for "free ID code," permitting any slave to be accepted. Some vendors lock ID codes to enforce pairing. |
| ID1 | Extended ID 1 | 4 bits (1 hex) | Vendor-specific function channel 1. |
| ID2 | Extended ID 2 | 4 bits (1 hex) | Vendor-specific function channel 2. |
The IO code is the only one that the master uses for I/O mapping. ID/ID1/ID2 are used for slave acceptance: by default the CM 1243-2 accepts any slave whose ID = F (free). For slaves with a locked ID, the master must be told the expected ID code in the device configuration, otherwise it flags a configuration error.
For a 4DI/4DO module, the most common IO codes are:
-
IO = 7(binary 0111): 4 DI + 4 DO — used by Festo CPV-ASI-4E3A-Z default profile and most general-purpose 4DI/4DO blocks. -
IO = 0(binary 0000): 4 DI + 0 DO (input-only module). -
IO = 8(binary 1000): 4 DI + 4 DO, alternate encoding (used by some Aventics / Rexroth CA-series valve islands).
Step-by-Step: Adding a Third-Party AS-i Slave in TIA Portal
- Add the CM 1243-2 master. In the TIA Portal project tree, open Devices & networks, drag the CM 1243-2 (6GK7243-2AX30-0XE0) from the Hardware Catalog onto the S7-1200 left-bus slot. Assign it to the PLC via "Not connected > PLC_1" and select CM 1243-2 as the IO device.
- Set the AS-i operating mode. Select the CM 1243-2 in the device view, open Properties > AS-i network > Operating mode. Enable AS-i specification V3.0 and check Automatic A/B addressing permitted if any A/B slaves will be on the segment.
- Add the universal slave placeholder. In the network view, drag a new device from: Hardware Catalog > Field devices > AS-Interface > Universal slave > AS-i Standard Slave Universal (use the A/B variant if the third-party device is an A/B slave). Drop it onto the CM 1243-2 AS-i subnet.
-
Assign the AS-i address. Select the new universal slave, go to Properties > AS-i address. Enter the actual slave address as configured physically on the device (via the addressing unit, e.g. 7, or 1A/1B for A/B). The address MUST match what is on the physical device — a mismatch causes configuration error
0xC. - Enter the IO/ID/ID2/ID1 profile codes. Open Properties > Profile. Four fields appear: IO, ID, ID2, ID1. Enter the hex values from the manufacturer datasheet. Example for Festo CPV-ASI-4E3A-Z default configuration: IO = 7, ID = A, ID2 = E, ID1 = 7.
-
Map I/O to the S7-1200 process image. The CM 1243-2 automatically assigns input byte / output byte offsets based on the slave's position in the AS-i cycle. In the slave's Properties > I/O addresses, the start addresses are populated by TIA Portal (e.g. slave 7 → I0.0 to I0.3, Q0.0 to Q0.3 in standard mode). Reference these bits directly in the user program with
%I0.0or symbolic tags. - Download and verify. Compile the project, download the hardware configuration to the S7-1200, and switch the CM 1243-2 to Configuration mode via the master properties or the AS-i SET button. The master scans the network, detects the new slave, and switches to Protected operation once all configured slaves are present.
Mapping a 4DI/4DO Third-Party Slave (Worked Example: Rexroth / Aventics CA44)
The Bosch Rexroth (now Aventics) CA44 valve island (material R412004452) is a 4DI / 4DO AS-i slave. Unlike PROFIBUS or PROFINET, no GSD is required — the CA44 has the profile codes programmed in the factory. The required procedure:
- Set the slave address on the CA44 to an unused value (1–31 for standard) using an AS-i addressing unit, e.g. address 8.
- Power the CA44 on the AS-i yellow cable. Verify the green AS-i LED on the slave is steady (not flashing).
- Connect TIA Portal online to the S7-1200, open Online & Diagnostics > CM 1243-2 > AS-i diagnostics > Slave list. The CA44 will appear with detected profile codes. Typical values for the CA44 are IO = 7, ID = 0, ID1 = 1, ID2 = 1 (verify in the official Aventics datasheet — part number R412004452 datasheet 100-1504-001 or successor).
- Add the universal slave placeholder in offline configuration as described in the previous section, entering the codes recorded from the live scan.
- Download the hardware configuration. The four inputs from the CA44 land on I-byte offsets defined by the slave position (e.g. slave 8 → I0.0 to I0.3). The four outputs (used for valve coil pilots) land on Q-byte offsets (e.g. Q0.0 to Q0.3).
Symbolic tag names in the S7-1200 user program (example for address 8):
// Inputs from CA44 (4DI)
"CA44_Input_0" AT %I0.0 : BOOL;
"CA44_Input_1" AT %I0.1 : BOOL;
"CA44_Input_2" AT %I0.2 : BOOL;
"CA44_Input_3" AT %I0.3 : BOOL;
// Outputs to CA44 (4DO - valve coils)
"CA44_Valve_1" AT %Q0.0 : BOOL;
"CA44_Valve_2" AT %Q0.1 : BOOL;
"CA44_Valve_3" AT %Q0.2 : BOOL;
"CA44_Valve_4" AT %Q0.3 : BOOL;
Worked Example: Festo CPV-ASI-4E3A-Z (A/B Slave)
The Festo CPV14-VI valve terminal with AS-i connection module CPV-ASI-4E3A-Z is a pure A/B slave. Default profile per the Festo CPV manual (page 12):
| Code | Value (hex) | Binary |
|---|---|---|
| IO | 7 | 0111 — 4 inputs, 4 outputs |
| ID | A | 1010 — Festo locked ID |
| ID1 | 7 | 0111 — Festo sub-channel |
| ID2 | E | 1110 — Festo sub-channel |
Because the ID is locked to A (not the default F), the CM 1243-2 must be configured with the expected ID code, otherwise the master flags the slave as "ID code not equal" and the slave is not accepted into the configuration. The CPV terminal also occupies two AS-i addresses (e.g. 1A and 1B) to expose 8 outputs for 4 valves. Configure both A and B sub-addresses in TIA Portal with the same IO/ID profile values.
Commissioning and Online Diagnostics
After download, the CM 1243-2 goes through the following states (visible on the front-panel LEDs and in TIA Portal):
| State | Indication | Action |
|---|---|---|
| Power-on / initialization | All LEDs on, then CER/AUX off | None — wait 2 s |
| Configuration mode (yellow) | CM LED = yellow, slave LEDs blinking on missing slaves | Add slaves, set addresses, run "Detect slaves" or accept configuration |
| Protected operation (green) | CM LED = green, all configured slaves steady green | Normal operation — process I/O active |
| State | Indication | Action |
| Slave missing | Affected slave LED red, others green; CM LED green | Check 24 V on slave, AS-i cable, addressing |
| Configuration error | CM LED flashing red/green, slave LED red | Compare configured profile to actual profile (read with handheld) |
Useful diagnostic paths in TIA Portal Online & Diagnostics for the CM 1243-2:
- Diagnostics > AS-i diagnostics > Slave list — live profile read of every detected slave
-
Diagnostics > AS-i diagnostics > Configuration errors — lists slaves with code
0xCerrors - Diagnostics > AS-i diagnostics > Periphery errors — flags slaves with I/O faults
- Web server (port 80, default 192.168.0.100) — full AS-i state including cycle time, error counters, slave list, force/observe
Troubleshooting Matrix
| Symptom | Probable Root Cause | Remediation |
|---|---|---|
| CM 1243-2 reports slave missing on address N | No 24 V at slave, address switch set differently, slave defective | Verify yellow cable voltage (≥ 26 V DC at slave), confirm physical address with handheld |
| Configuration error 0xC on third-party slave | Profile codes in TIA do not match the slave's actual profile | Read actual profile with handheld or via online diagnostics, correct IO/ID/ID1/ID2 in universal slave properties |
| Inputs read back 0 even though LED on slave is lit | Wrong I/O address offset in user program, or slave is A/B but configured as standard | Verify slot address in TIA Portal device view, check Properties > I/O addresses of the slave |
| Master refuses to go to protected operation | A/B slave detected but "Automatic A/B addressing" not enabled | Enable A/B mode in CM 1243-2 properties > Operating mode |
| Slave is detected but outputs do not switch | Wrong IO code — e.g. IO=0 (input only) configured for a DO slave | Check datasheet IO code; for a 4DI/4DO the code is typically 7 (or 8) |
| Slave present, profile correct, but ID code error | Third-party slave has locked ID ≠ F | Set expected ID code in universal slave properties to match datasheet |
| Master cycles indefinitely in config mode | Duplicate address on the bus (two slaves at same address) | Re-address one of the slaves with handheld, retry |
| Intermittent communication drops | Total slave power consumption > 8 W, or AS-i power supply undersized | Audit per-slave power draw, increase AS-i supply to 4 A or 8 A |
Cross-Vendor Compatibility Notes
The CM 1243-2 (and its successor CM 1243-2 V2.1, article 6GK7243-2AX30-0XE1) interoperates with the following common third-party AS-i slaves without vendor catalog entries:
| Vendor | Typical Slave | Profile (IO / ID / ID1 / ID2) | Addressing |
|---|---|---|---|
| Festo | CPV-ASI-4E3A-Z valve terminal | 7 / A / 7 / E (default) | A/B (2 sub-addresses) |
| Aventics (Rexroth) | CA44 valve island (R412004452) | 7 / 0 / 1 / 1 (verify in datasheet) | Standard |
| IFM | AC2410 / AC2411 I/O block | 7 / F / F / F (free ID) | Standard |
| Pepperl+Fuchs | VAA-4E4A-G1-ZA I/O module | 7 / F / F / F | Standard |
| Balluff | BNI EIP-508-105-Z015 | 7 / F / F / F | Standard |
| Turck | TBEN-S1-8DIP-8DOP I/O block | 7 / F / F / F | Standard |
Migration Note: CM 1243-2 V1.0 vs V2.x
Older systems may have the CM 1243-2 V1.0 (6GK7243-2AX01-0XE0). The V1.0 supports AS-i Specification V2.1, which means:
- Standard slaves only (1–31). A/B slaves are NOT supported in V1.0 firmware.
- Cycle time fixed at 5 ms.
- No automatic A/B addressing.
If a third-party A/B slave must be used, replace the master with the V2.x variant (6GK7243-2AX30-0XE0) and update the TIA Portal HSP. The configuration in the project tree is identical — only the article number changes.
Standards Reference
AS-i wiring, profile codes, and master/slave behavior are defined in IEC 62026-2 and the AS-International Association "AS-i Specification V3.0". The CM 1243-2 implements V3.0 with backward compatibility to V2.1 slaves. For deeper background on the bus protocol (telegram structure, slave acceptance procedure, Manchester encoding on the yellow cable), refer to the SIMATIC NET AS-Interface — Introduction and Basics PDF, the Siemens AS-Interface product page, and the SIRIUS Act AS-Interface flyer.
How do I find the IO/ID profile codes for an unknown third-party AS-i slave?
Read them live from the CM 1243-2: connect TIA Portal online, go to Online & Diagnostics > CM 1243-2 > AS-i diagnostics > Slave list. The master reports the actual IO, ID, ID1, ID2 codes that the slave transmits during the configuration phase. Cross-check with the manufacturer datasheet before entering them into the universal slave placeholder.
Can I mix standard slaves (addresses 1–31) and A/B slaves (1A–31A, 1B–31B) on the same CM 1243-2 network?
Yes. In CM 1243-2 V2.x firmware with AS-i V3.0 mode, mixed addressing is fully supported. Enable Automatic A/B addressing permitted in the master properties (Operating mode) and assign each A/B slave both sub-addresses (A and B) in TIA Portal. Standard and A/B slaves can share the same network segment on the same yellow profile cable.
Does the CM 1243-2 need a GSD or GSDML file for a third-party AS-i slave?
No. AS-i does not use GSD or GSDML. Every AS-i slave carries its own profile and address directly on the device. The TIA Portal mechanism is the "AS-i Standard Slave Universal" placeholder under Hardware Catalog > Field devices > AS-Interface > Universal slave. The only data entered manually is the AS-i address and the four profile nibbles (IO, ID, ID1, ID2) from the device manual.
Why does my third-party slave show "configuration error" even though the address is correct?
The IO/ID/ID1/ID2 codes in TIA Portal do not match the codes the slave is broadcasting. Typical causes: wrong IO code (e.g. 0 used for a 4DI/4DO instead of 7), or ID code is locked by the vendor and was not entered in the universal slave properties. Read the live codes with the AS-i diagnostics view and update the offline configuration.
What is the maximum number of third-party slaves I can connect to one CM 1243-2?
31 standard slaves, or 62 A/B slaves, or any mixed combination up to 62 total logical slave addresses. Total I/O per network is 248 DI / 248 DO in A/B mode. The AS-i cycle time is 5 ms with up to 31 standard slaves and increases to 10 ms when A/B slaves are present. Aggregate slave power consumption must remain under 8 W (the master's budget for the yellow cable).