Assigning Parameters In Db1 Of The S5-95U For Data Exchange With Plc-To-Plc Connections - Siemens SIMATIC S5 Manual

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

Advertisement

Data Transfer with PLC-to-PLC Connections
6.2
Assigning Parameters in DB1 of the S5-95U for Data Exchange with
PLC-to-PLC Connections
There are no default settings in DB1 for the PLC-to-PLC connections. You assign the parameters in
data block DB1 for the following items:
The station to which the data is to be sent and from which the data is to be received
The location of the status byte for the function blocks FB L2-SEND and FB L2-RECEIVE for
each connection desired
All status bytes must be in the flag byte area. The status of transmit or receive jobs is displayed in
the status byte, as well as possible errors. The structure and the evaluation of status bytes are
discussed in detail in section 5.4. For function block FB L2-RECEIVE, the flag byte following the
status byte is always reserved for the length byte. The length byte tells how many bytes of data
were received. You have only reading rights to the length bytes.
Figure 6-3 shows how the DBs, STBs, and L2 FBs work together for data transmission in a
programmable controller.
DB1
SL2:
...
STBS 2 MB 10
STBR 2 MB 11
...
Figure 6-3. Diagram: Data Transmission Using PLC-to-PLC Connections
Table 6-1 is a configuration aid for assigning job numbers in DB1.
Create such a table in your planning phase.
How to read the table: Job number A-NR = station address TLN of the communication partner.
Example:
PLC 1 transmits with A-NR 2 to PLC 2;
PLC 1 receives with A-NR 2 from PLC 2 etc.
Transmit
Receive
PLC 1
receives from...
PLC 2
receives from...
ANR 1
PLC 3
receives from...
ANR 1
PLC 4
receives from...
ANR 1
6-4
Status byte 'Send'
flag byte 10
Status byte 'Receive'
flag byte 11
Length byte flag byte 12
Table 6-1. Configuring Job Number n in DB1
PLC 1
transmits to...
transmits to...
ANR 2
ANR 2
ANR 3
ANR 2
ANR 4
ANR 2
L2-SEND
.
A-NR
: KY 0,2
.
DBNR : KY 0,21
QANF : KF 0
.
L2-RECEIVE
.
A-NR
: KY 0,2
.
DBNR : KY 0,22
ZANF
: KF 1
.
PLC 2
PLC 3
transmits to...
ANR 1
ANR 3
ANR 3
ANR 3
ANR 4
ANR 3
S5-95U, SINEC L2
DB21
DW 0
.
. .
DB22
DW 1
.
. .
PLC 4
transmits to...
ANR 1
ANR 1
ANR 4
ANR 2
ANR 2
ANR 4
ANR 3
ANR 4
ANR 4
EWA 4NEB 812 6112-02

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinec l2S5-95u

Table of Contents