S7-200 with SMART200 PLC Ethernet Communication

This example takes S7-200 (CPU224XP) and SMART200 as an example to introduce how to exchange data between them.

The DB9 male port (X1) of BCNet is connected to the PPI port of S7-200, and the Ethernet port of SMART200 comes with BCNet is connected to the BCNet-S7200Plus through a switch. BCNet configures the exchange command through BCDevice tool to realize real-time and efficient data exchange of S7-200 and SMART200.

Configure BCNet module data exchange commands

1, open BCDevice, click [Search Device], search for BCNet-S7200Plus, and then click [Modify Device Parameters].

2, Create a new client

[1]Click Data Exchange, right click to create a new client 0.
[2]The IP address of the remote server is the IP address of the SMART200, set here to; the communication port number of the remote server, the default is 102; the connection timeout time is 10S by default.
[3]Local/remote TSAP
Local TSAP Remote TSAP
Any 01 00/01
Any 02 00/01
Any 03 00/01
[4]Click Confirm to create the client.

3, Configure data exchange commands in the client

[1]Click New command (VW100~VW108 of SMART200 reads VW100~VW108 of S7-200).
[2]Select [Local→Remote], transmit 5 words; transmit timeout setting layer 2S.
[3] Local site (S7-200) set the station address of the PLC of the bus where BCNet is located, select DB block for data area, DB number 1 (for S7200, area V corresponds to DB1), byte offset 100, bit offset ignored.
[4] The PLC address of the remote station (SMART200) does not need to be set, the data area selects DB block, DB number is 1, (for SMART200, V area corresponds to DB1) byte offset is 100, bit offset is ignored.
[5] Click the [Check] button to check the rules, and click the [Confirm] button to generate the command.

4, Client monitoring

Click the client monitoring button, [Error Message] is no error, and [Correct] has data jumping, which means the communication is successful.

Verify the data exchange

1, Open the status table of STEP7-Micro/WIN and change the data of VW100~VW108 to 1, 2, 3, 4, 5 respectively;

2, open the status table of STEP7-Micro/WIN SMART200 to monitor the data of VW100~VW108.

Both data are exactly the same

Leave a Comment