Controlling Data Transmission In The Control Program - Siemens SIMATIC S5 Manual

Interface of the programmable controller
Hide thumbs Also See for SIMATIC S5:
Table of Contents

Advertisement

S5-95U, SINEC L2
Example: Four S5-95Us are to communicate using cyclic I/O. Programmable controller 1 is the ZP
master, programmable controllers 40, 41 and 42 (all of them passive) are the ZP slaves.
Some of the default parameters (represented shaded in Table 7-2) in DB1 need to be
modified.
DB1 Parameters for PLC 1 (ZP Master)
156:
KS
='
168:
KS
=' BDR 1500
180:
KS
='5120
192:
KS
='0 SDT 2
204:
KS
='ZPDB DB100 ZPMS MB100
216:
KS
='ZPLI MB101 ZPM 40 61
228:
KS
='DW1 DW10 DW101 DW110
240:
KS
='ZPM 41 61
252:
KS
='DW11 DW20 DW111 DW120
264:
KS
='ZPM 42 61
276:
KS
='DW21 DW30 DW121 DW130
.
.
.
DB1 Parameters for PLC 40 (ZP Slave)
156:
KS
='
168:
KS
=' BDR 1500
180:
KS
=' ST 1000
192:
KS
='ZPDB DB100 ZPSS MB100
204:
KS
='ZPSA DW1 DW10
216:
KS
='ZPSE DW11
.
.
.
Change parameters in the DB1s of PLC 41 and PLC 42 as you did for PLC 40.
7.3

Controlling Data Transmission in the Control Program

Each ZP master and each ZP slave is provided with a status byte to control cyclic I/O. The status
byte indicates the ZP status and any errors that may have occurred.
The ZP master also creates a ZP slave life list that can be fetched by FB L2-RECEIVE (with job
number A-NR 202). An additional status byte is necessary for this. See section 5.4 for information
on the structure of the status byte for FB L2-RECEIVE.
You can scan the status bytes (STB) in the control program and program reactions to possible
errors. You have already set the parameters for the location of the status bytes in data block DB1
( section 7.2).
EWA 4NEB 812 6112-02
Table 7-2. Assigning Parameters for Cyclic I/O
SL2: TLN 1
STA AKT';
HSA 1
TRT ';
SET 60
SDT 1 15';
980 ST 1000
';
';
';
';
';
';
';
';
SL2: TLN 40
STA PAS';
SDT 1 150
';
';
';
';
DW20
';
Data Transmission Using Cyclic I/O
Explanation
L2 basic parameters (see section 1.4 for
explanation);
ZP DB for the ZP master is DB100;
STB for the ZP master is FY100;
STB for the ZP slave life list is FY101;
For station 40: L2 SAP 61,
ZPA= DW 1 to DW 10,
ZPE= DW 101 to DW 110;
For station 41: L2 SAP 61,
ZPA=DW 11 to DW 20,
ZPE= DW 111 to DW 120;
For station 42: L2 SAP 61, ZPA=
DW 21 to DW 30, ZPE=DW 121 to DW 130
L2 basic parameters (see section 1.4 for
explanation);
ZP DB for the ZP slave is DB100;
STB for the ZP slave is MB100;
ZPA=DW 1 to DW 10;
ZPE=DW 11 to DW 20
7-7

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinec l2S5-95u

Table of Contents