This article discusses how to build real-time communication between two S7-1500 PLCs using the I-Device feature on PROFINET in TIA Portal. In PUT/GET or TCP communication, the programmer must call instructions, set connection parameters, and handle the transmission status. With I-Device, one CPU is configured as an IO device for another CPU, and data exchange runs automatically through the PROFINET IO cycle. The data appears as ordinary input and output addresses, so using it is the same as reading a sensor or writing to an actuator.
The system consists of two CPUs in one project. PLC_1 acts as the IO controller and PLC_2 acts as the I-Device. PLC_1 sends a start command and a speed setpoint to PLC_2, then PLC_2 sends back the running status and speed feedback. All data exchange is created with two transfer areas in the hardware configuration. The program is created only in PLC_2 to imitate the behavior of a drive, while PLC_1 does not need any communication program. Testing is done with PLCSIM Advanced V5.0 on two virtual S7-1500 CPUs.
Prerequisites
- The reader already knows how to add devices and set the CPU IP address in TIA Portal.
- The reader already understands PROFINET basics, namely IO controller, IO device, and PROFINET device name.
- The reader already knows how to run a virtual CPU with PLCSIM Advanced and create a Watch table.
I-Device Communication
I-Device (Intelligent Device) is a function that makes a CPU appear as an IO device to the IO controller above it, while still running its own program. On the controller side, the I-Device looks like an ordinary IO module with input and output areas. On the I-Device side, those areas are mapped to the input and output addresses of the CPU itself. This mapping is set through the transfer area, namely a table that determines the address in the controller, the address in the I-Device, and the data length.
In every PROFINET IO cycle, the contents of the controller output addresses are copied to the I-Device input addresses, and the contents of the I-Device output addresses are copied to the controller input addresses. Because it uses the same mechanism as distributed IO, this communication runs in real time at a consistent cycle and does not depend on the length of the program scan cycle. The configuration is done in the Device configuration, not in the program, so there are no communication instructions to maintain.
Compared to PUT/GET, I-Device is simpler and more deterministic, but more rigid. Both CPUs must be on the same PROFINET subnet, the transfer area configuration must be downloaded to both CPUs, and the data length is determined at configuration time, not while the program is running. If the I-Device is in another project, its configuration can be exported as a GSD file and imported into the controller project.
S7-1500 PLC I-Device Tutorial
Step 1: Adding Two CPUs and the Network
- Create a new project, then add two S7-1500 CPUs named PLC_1 and PLC_2. Select a firmware version that is also supported by PLCSIM Advanced V5.0.
- Open Network view, then drag a line from the PROFINET port of PLC_1 to the PROFINET port of PLC_2 so that both are on the subnet PN/IE_1.
- Set the IP address of PLC_1 to 192.168.0.1 and PLC_2 to 192.168.0.2. In the project properties, check Support simulation during block compilation.

Step 2: Enabling IO Device Mode on PLC_2
- Click PLC_2, then open Properties > General > PROFINET interface [X1] > Operating mode.
- Check IO device.
- Under Assigned IO controller, select the PROFINET interface of PLC_1.
- In Network view, PLC_2 will be connected to PLC_1 through an IO system line, which indicates that PLC_2 is now an I-Device of PLC_1.
Step 3: Creating Transfer Areas
- On the Operating mode page of PLC_2, open the Transfer areas table and click <Add new> twice to create two transfer areas.
- Transfer area_1 (PLC_1 to PLC_2): On the IO controller side select address Q with a start of 100, on the I-Device side, select address I with a start of 100, and a length of 4 byte.
- Transfer area_2 (PLC_2 to PLC_1): on the IO controller side select address I with a start of 100, on the I-Device side, select address Q with a start of 100, and a length of 4 byte.

How do transfer areas work?
Transfer area_1 means output bytes Q100 to Q103 in PLC_1 are sent automatically to input bytes I100 to I103 in PLC_2. Transfer area_2 works the other way around: output bytes Q100 to Q103 in PLC_2 are sent to input bytes I100 to I103 in PLC_1.
In both directions, the sender only needs to write to the output address, and the receiver only needs to read the input address. The copying is done by the PROFINET system every IO cycle, not by the program.
Step 4: Creating Tags and the Program
- On PLC_1, create the following PLC tags. No program is created for this communication.
- Cmd_Start (Bool) at %Q100.0 and Speed_SP (Int) at %QW102.
- Run_Status (Bool) at %I100.0 and Speed_FB (Int) at %IW102.
- On PLC_2, create PLC tags with the reverse addresses: Cmd_Start (Bool) at %I100.0, Speed_SP (Int) at %IW102, Run_Status (Bool) at %Q100.0, and Speed_FB (Int) at %QW102.
- In OB1 of PLC_2 (SCL), write the following program to imitate the behavior of a drive.
// The controller (PLC_1) sends Cmd_Start and Speed_SP through the transfer area
// Report the running state back to the controller
"Run_Status" := "Cmd_Start";
// Simulate a drive that follows the speed setpoint while running
IF "Cmd_Start" THEN
"Speed_FB" := "Speed_SP";
ELSE
"Speed_FB" := 0;
END_IF;
How does the PLC_2 program work?
This program only uses ordinary tags, without communication instructions. Cmd_Start and Speed_SP are read from input addresses I100.0 and IW102, whose values are filled by the PROFINET system from the output of PLC_1. The first line copies Cmd_Start to Run_Status so PLC_1 knows the command has been received.
The IF block imitates the drive: when Cmd_Start is TRUE, Speed_FB follows Speed_SP, and when FALSE, Speed_FB is returned to 0. Run_Status and Speed_FB are written to output addresses Q100.0 and QW102, which are automatically sent to the input of PLC_1. As a result, PLC_1 sees the status and speed from PLC_2 without a single communication instruction.

Step 5: Compile and Download to the Virtual CPU
- Open PLCSIM Advanced, select PLCSIM Virtual Eth. Adapter, then create two S7-1500 instances: PLC_1 with IP 192.168.0.1 and PLC_2 with IP 192.168.0.2. Run both and make sure they have the status RUN.
- Compile PLC_1 and PLC_2, then download the hardware and software to each virtual CPU.
- If PLC_2 is not yet recognized by PLC_1, set the PROFINET device name on PLC_2 through Online & diagnostics > Functions > Assign PROFINET device name, then download PLC_1 again.
- Click Go online in Network view. The IO system line and the PLC_2 indicator must be green, without an error mark.

PLCSIM Advanced Result
Step 1: Preparing the Watch Table
- On PLC_1, create a Watch table containing Cmd_Start, Speed_SP, Run_Status, and Speed_FB, then click Monitor all.
- On PLC_2, create a Watch table containing Cmd_Start, Speed_SP, Run_Status, and Speed_FB, then click Monitor all.
Step 2: Sending a Command from PLC_1 to PLC_2
- In the PLC_1 Watch table, fill Speed_SP with 1500 and change Cmd_Start to TRUE via Modify now.
- In the PLC_2 Watch table, Cmd_Start changes to TRUE, and Speed_SP becomes 1500 without any communication instructions in the program.
