Connecting the S5-100U to SINEC L1
13.3.1 Sending Data
The prerequisites for sending data are as follows:
•
The parameters are set in DB1 for the location of the Send Mailbox (see section 13.2.2).
•
The data to be sent, additional information (length of the send data "net data"), and destination
slave number are then transferred to the Send Mailbox.
Figure 13-4 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 1)
Flag byte 1
Length of the "net data"
(0 to 64 bytes)
Flag byte 2
Numb. of the dest. slave*
Flag byte 3
Data ("net data")
maximum of 64 bytes
Flag byte 66
*
Number of the receiver:
Structure of the Coordination Byte Send (KBS)
Figure 13-5 shows the structure of the Coordination Byte Send (KBS).
Bit
7
6
5
Figure 13-5. Structure of the Coordination Byte Send (KBS)
13-8
0 = Master
1 to 30 = Slaves
31 = Broadcast
Figure 13-4. Structure of the Send Mailbox
KBS
4
3
2
1
Example:
Send Mailbox in the data block
(beginning with data word DW1)
DL
DW1
Length of the "net
data"
DW2
1st data byte
DW33
63rd data byte
0
0:
No error
1:
Error during last data transfer
0:
No express transmission
1:
Request a bus interrupt for this
transmission (express transmission)
0:
Program is able to process Send
Mailbox (operating system has no
access)
1:
Send Mailbox is enabled (program has
no access)
S5-100U
DR
Number of the
destination slave*
2nd data byte
64th data byte
EWA 4NEB 812 6120-02