UniMAT: Ethernet Communication between S7-200 and S7-300
2026-04-06 03:50:06··#1
I. Function: [S7 Connection] S7-200 acts as the client (master station), S7-300 acts as the server.II. Hardware Configuration:1. CP243-12.CPU224 3. CPU3144. CP343-1III. Setup Steps:Step 1: Open the S7-200 programming software MicroWIN, and select the Ethernet Wizard in the toolbar. Step2: Read the CP243-1 [Ethernet Module]. Note: The PC and S7-200 must be properly connected for the module to be read.Step 3: Select the Ethernet moduleStep 4: Enter the IP address of [CP243-1], 192.168.0.50.Note that the IP address must be on the same network segment as the S7-300.Step 5: Configure the number of connections [maximum 8 connections]. Ethernet modules require address space, so it's recommended to place them in the last slot.Connection count: Configure according to the actual number of connections.Step 6 1. Select Client Connection [S7-200 as Client]2. [03.02] ---- 03: One-way communication 02: S7-300 CPU module slot number[10:00] ---- 1: Fixed 0: Connection number 00: Location of S7-200 CPU module3. Enter the IP address of CP343-1 [Set in the S7-300 hardware configuration]4. Click "Data Transfer" to enter the configuration window.Note: Remember the connection number, as it will be used during programming.Step 7: 1. Select to read data from the server.2. Select the size of the data to read [maximum 212 bytes].3. Data mapping. [Read the data from the S7-300's "DB10.DBB0" to the local "VB0" 10 bytes].4. After configuration, click [New Transfer].Note: Remember the transfer number; it will be used in the programming.Step 8: 1. Select to write data to the server.2. Select the size of the data to write [maximum 212 bytes].3. Data mapping: [Write the 10 bytes starting with "VB10" on the local machine to the 10 bytes starting with "DB10.DBB10" on the S7-300].4. Click "Confirm" after configuration.Note: Remember the transfer number; it will be used in your programming.Step 9: Select the protection [the V-zone address used by the communication subroutine in the S7-200, which cannot be the same as the V-zone address used when writing the program].Step 10: After configuration, click [Next].Step 11: Complete Ethernet communication configuration. Click "Finish".Step 12: Write the Ethernet communication program in S7-200.Chan_ID Connection number [The address is automatically generated after Ethernet configuration and can be viewed in the symbol table]Data Transfer number [The address is automatically generated after Ethernet configuration and can be viewed in the symbol table]START Sending and receiving cannot occur simultaneously [Self-oscillation comparison to stagger control]Abort cancelsS7-200 as a client: No program needs to be written on the S7-300 side. Just ensure the hardware configuration is correct, the Ethernet module's IP settings are consistent with those configured in the S7-200 Ethernet wizard, and a DB block corresponding to the S7-200 data transmission size needs to be created. Connect the router to CP343-1/CP243-1 using a network cable. [Downloading of 200 and 300 programs omitted]The following describes the configuration of a PC and S7-300 wirelessly connected via router [192.168.0.1 is the router's IP].Diagnose the connection between CP343-1 and router (connection between CP243-1 and router omitted).Configure the S7-300's PG/PC interface.Create a variable table to monitor DB block data and test the wireless connection status. [Connection Successful]IV. Test Program:1. Test S7-200 reading data from S7-300 [S7-200 reads 10 bytes of data from S7-300 starting at DB10.DBB0 and adds them to 10 bytes starting at VB0 locally]. Open the S7-200's status table and the variable table created on the S7-300 to monitor the status. (Forwarding code: Yiwei Values: Integrity, Responsibility, Cooperation, Innovation)Add S7-200's "VB0-VB9" to the status table. Add S7-300's "DB10.DBB0-DB10.DBB9" to the variable table [Initial "0"].Write the corresponding numbers to "DB10.DBB0—DB10.DBB9" in the S7-300, and then monitor the corresponding data in the S7-200 status table.2. Test S7-200 writing data to S7-300. [S7-200 writes 10 bytes of data starting at VB10 to 10 bytes starting at DB10.DBB10 in S7-300.]Add S7-200 VB10-VB19 to the status table. Add S7-300 DB10.DBB10-DB10.DBB19 to the variable table [initially "0"].Write the corresponding numbers to s7-200 “VB10-VB19”, and then monitor its status in the corresponding DB block of s7-300.Welcome to follow Yiwei's WeChat subscription account to learn industrial control technology anytime, anywhere!