Professional Documents
Culture Documents
PLC-PLC Communication PDF
PLC-PLC Communication PDF
_
Control Desk Solutions Pvt. Ltd. [Training Unit]
PLC-PLC
Communication
Document Ref: CDSPLTRG_S700E003_100
Version History
Preface
This document is developed for Basic of Step-7 user or learner. Before reading this document
user or learner must have basic knowledge of SIMENS PLC & its architecture. User of this
document should have sufficient knowledge about SIEMES PLC programing and should be
familiar with STEP7 programing software.
The document is prepared in reference to the Siemens standard manuals & literatures and
practical experience. Snap shots used in this manual are taken from real time software Step7 V5.5
+ SP2.
Pictures & screen shots used in this document is from an example project which may vary from
user actual program.
Table of Contents
1. Introduction .......................................................................................................................................... 4
2. Direct data exchange ............................................................................................................................ 4
3. PLC-PLC Communication ....................................................................................................................... 6
3.1 Create connection diagram ......................................................................................................................6
3.2 Create program ...................................................................................................................................... 10
4. Example (LD#3 BOF1-GCP1) ................................................................................................................ 15
1. Introduction
Here in this chapter we shall discuss the various communications with PLC and other systems.
Step1: Insert the desired hardware in the h/w configuration. For detail please follow basic of
step 7.
3. PLC-PLC Communication
In the following section we will describe detail steps to establish PLC-PLC communication.
Step1: Create NETPRO connection. Go to configured network from tool bar of step7 home
window.
Step2: Select the CPU for which connection to be established. Connection table will open.
Select the first empty row in the connection table.
Step3: Double click on the empty row new connection property window will open. Select the
connection type. For H-System “S7 connection fault-tolerant” for stand-alone CPU “S7
connection”.
Step4: Select the desired CPU from the Connection Partner list and press OK.
Step5: Connection properties window will open. Check the detail connection properties and
press OK.
Step6:
For PLC-PLC communication there are several standard blocks available. Following are the
blocks that can be used for communication over Ethernet.
SFB9/FB9 URCV Max. Length SFB 8/9: 440 bytes split into 4x100 bytes.
REQ: Set a periodic trigger BIT to execute send. Send function works only in rising edge of
REQ signal.
R_ID: A hexadecimal value to be entered here. This value should be the same value of the
partner R_ID of BRCV block.
EN_R: Set the signal to 1. Receive function works only when EN_R = 1.
R_ID: A hexadecimal value to be entered here. This value should be the same value of the
partner R_ID of BRCV block.
In LD3 CFC block is used for data exchange through DB. Here is example we are showing GCP
PLC data is shared in BOF PLC through DB. Open chart DXG_GCP_BOF.
Here is two block are used for data sending and data receiving here DB806 is used for data
send and DB 805 is used for data receive.
REQ: Control parameter request, activates the data exchange at a rising edge. It is a
memory bit is used for request data for exchange here is M1.5 is refreshing data after 1sec.
ID: It is the data receiver PLC address (it is fault tolerance address from NET PRO). Here
local and partner ID is given. Block parameter is for local address number (GCP PLC) and
W#16#3 (BOF PLC)
ID: It is the data receiver PLC address (it is fault tolerance address from NET PRO).