Simplified Guide to PROFINET Bidirectional Communication with Siemens S7-200 SMART PLC
Objective:
Enable two S7-200SMART PLCs to exchange data via PROFINET:
-Controller sends VB0~VB9 → IO Device’s VB100~VB109.
-IO Device sends VB10~VB19 → Controller’s VB200~VB209.
Configuration Steps:
1. IO Device Setup:
- Set role to PROFINET IO Device (IP: e.g., 192.168.0.2, name: e.g., Device2).
- Map input area IB1152 (10 bytes) to receive data from the Controller.
- Map output area QB1152 (10 bytes) to send data to the Controller.
- In program: Copy IB1152 to VB100~VB109 and VB10~VB19 to QB1152.
2. Controller Setup:
- Set role to PROFINET Controller (IP: e.g., 192.168.0.1).
- Add the IO Device (Device2) to the network.
- Map output area QB128 (10 bytes) to send data to the IO Device.
- Map input area IB128 (10 bytes) to receive data from the IO Device.
- In program: Write VB0~VB9 to QB128 and read IB128 into VB200~VB209.
Critical Notes:
- Network: Both PLCs must share the same subnet (e.g., 192.168.0.x).
- Matching: Device name and IP on both sides must match.
- Data Flow:
- Controller: Send via QB128, receive via IB128.
- IO Device: Receive via IB1152, send via QB1152.