Sending Data - Siemens SIMATIC S5-90U System Manual

Table of Contents

Advertisement

S5-90U/S5-95U
Example: The S5-95U is to be connected to the SINEC L1 local area network as a slave with slave
number 2.
Table 14-2. Entering Parameters for SINEC L1
DB1
.
.
.
24:
KS ='N
; SL1: SLN 2
36:
KS ='DB2
DW0
EF DB2
48:
KS ='
KBE MB2
60:
KS ='
PGN 1
.
.
.
The following section describes in detail how sending and receiving of data have to executed.
14.4

Sending Data

The prerequisites for sending data are as follows:
The parameters are set in DB1 for the location of the Send Mailbox and the location of the
Coordination Byte Send (KBS) (see Section 14.3).
The data to be sent, additional information (length of the send data "net data"), and destination
slave number have been transferred to the Send Mailbox.
Send Mailbox
Figure 14-5 shows which information has to be stored in what part of the Send Mailbox.
Example:
Send Mailbox in the flag area
(beginning with flag byte 0)
Flag byte 0
Length of the "net data"
(0 to 64 bytes)
Flag byte 1
Numb. of the dest. slave
Flag byte 2
1st data byte
Flag byte 65
64th data byte
*
Number of the receiver;
EWA 4NEB 812 6115-02b
SF '
The PLC has slave number 2; Send Mailbox in DB2
DW10 '
beginning with data word DW0; Receive Mailbox in
KBS MB0'
DB2 beginning with data word DW10; Coordination
;
SDP: N'
Byte Receive is flag byte FY2; Coordination Byte
Send is flag byte FY0; the programmer bus number
is 1
DW 0
*
DW 1
DW 32
0=Master
1 to 30=Slave
31=Broadcast
Figure 14-5. Structure of the Send Mailbox
Communication via SINEC L1 LAN
Explanation
Example:
Send Mailbox in a data block
(beginning with DW 0)
DL
Length of the "net
data" (1 to 64 bytes)
1st data byte
63th data byte
DR
Number of the
destination stave
*
2nd data byte
64th data byte
14-5

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s5-95u

Table of Contents