S5-90U/S5-95U
Communication via SINEC L1 LAN
14.2
Basic Principle of Data Interchange
Data interchange requires the following mailboxes and bytes to be defined once:
•
A Send Mailbox (SF), containing the data to be sent (max. 64 bytes).
•
A Coordination Byte Send (KBS), which is used for coordination between the control program
and SINEC L1.
•
A Receive Mailbox (EF), containing the received data (max. 64 bytes).
•
A Coordination Byte Receive (KBE), which is used for coordination between the control program
and SINEC L1.
The coordination bytes are located in the flag area and the send and receive mailboxes are usually
stored in a data block. Figure 14-3 shows the interchange of data between two slaves. Seen from
the slave, the exchange of data between the master and the slave functions in the same way. Data
exchange seen from the master is described in detail in the "SINEC L1" manual.
Figure 14-3. Principle of Data Interchange
Source PLC
Receive_Erl
Error
Coordination Byte
Receive (KBE)
(in the flag area)
a a a a a
a a a a a
a a a a a
a a a a a
a a a a a
Destination PLC
Slave, e.g. S5-95U
LAN
Coordination Byte
Send (KBS)
(in the flag area)
Send_Erl
Error
a a a a a
a a a a a
a a a a a
a a a a a
a a a a a
Receive Mailbox (in the
flag or data area)
Number of net data
L1 source address
Byte 0
Byte 1
Byte 2
.
.
.
.
Byte 65
1 to 64 bytes
net data
Send Mailbox (in the
flag or data area)
Number of net data
L1 destination address
Byte 0
Byte 1
Byte 2
.
.
.
.
Byte 65
1 to 64 bytes
net data
Slave, e.g. S5-95U
Explanation of Figure 14-3:
To send a message, fill in the Send Mailbox. This enables you to specify how much data is to be
sent (number of net data), to address the receiver (L1 destination address) and to store the
message (net data). You then enable sending in the Coordination Byte Send (by setting bit
"Send_Erl).
The S5-95U then sends the message via the local area network to the addressed receiver. After the
sending process, the bit "Send_Erl" is reset by the operating system.
When the message has arrived at the receiver, the bit "Empf_Erl" (receiving enabled) in the
Coordination Byte Receive is reset. The data received is available for evaluation in the Receive
Mailbox.
In order to restore the readiness to receive, you set the bit "Empf_Erl" in the Coordination Byte
Receive after having read the data from the Receive Mailbox.
EWA 4NEB 812 6115-02b
14-3
Содержание SIMATIC S5-90U
Страница 3: ...SIMATIC S5 S5 90U S5 95U Programmable Controller System Manual EWA 4NEB 812 6115 02b Edition 03 ...
Страница 6: ...EWA 4NEB 812 6115 02b ...
Страница 16: ...EWA 4NEB 812 6115 02b ...
Страница 23: ......
Страница 32: ...EWA 4NEB 812 6115 02b ...
Страница 46: ...EWA 4NEB 812 6115 02b ...
Страница 50: ......
Страница 51: ......
Страница 52: ......
Страница 53: ......
Страница 54: ......
Страница 55: ......
Страница 57: ......
Страница 58: ......
Страница 59: ......
Страница 64: ......
Страница 65: ......
Страница 66: ......
Страница 67: ......
Страница 89: ......
Страница 102: ...EWA 4NEB 812 6115 02b ...
Страница 118: ...EWA 4NEB 812 6115 02b ...
Страница 242: ...EWA 4NEB 812 6115 02b ...
Страница 288: ...EWA 4NEB 812 6115 02b ...
Страница 300: ...EWA 4NEB 812 6115 02b ...
Страница 362: ...EWA 4NEB 812 6115 02b ...
Страница 536: ...EWA 4NEB 812 6115 02b ...
Страница 538: ...EWA 4NEB 812 6115 02b ...
Страница 540: ...EWA 4NEB 812 6115 02b ...
Страница 562: ...EWA 4NEB 812 6115 02b ...
Страница 564: ...EWA 4NEB 812 6115 02b ...
Страница 590: ...EWA 4NEB 812 6115 02b ...
Страница 596: ...EWA 4NEB 812 6115 02b ...
Страница 598: ...EWA 4NEB 812 6115 02b ...
Страница 604: ...EWA 4NEB 812 6115 02b ...
Страница 606: ...EWA 4NEB 812 6115 02b ...
Страница 608: ...EWA 4NEB 812 6115 02b ...
Страница 610: ...EWA 4NEB 812 6115 02b ...
Страница 620: ...EWA 4NEB 812 6115 02b ...