Siemens SIMATIC S5-115U User Manual page 474

Simatic s5 series cpu 941-7ub11 cpu 942-7ub11 cpu 943-7ub11 and cpu 943-7ub21 cpu 944-7ub11 and cpu 944-7ub21
Table of Contents

Advertisement

Communications Capabilities
12.5.1 Data Interchange over the SI 2 Interface
The data to be transferred must be entered in an area of memory designated as the "Send
mailbox". Conversely, the data to be received requires a "Receive mailbox", and an area in
memory must therefore also be designated for this purpose (detailed information is presented in
the next section). The data is stored temporarily in interface SI 2's input or output buffer.
Figure 12-18 illustrates the procedures involved in data interchange.
Peripheral
device
Figure 12-18. Data Interchange over the SI 2 Interface
Initializing a Communications Link
The 3964/3964R line procedure requires certain information which must be made available in
specific system data words.
This includes:
The location of the data to be transferred in CPU RAM (the so-called "Send mailbox")
The location of the receive data in CPU RAM (the so-called "Receive mailbox")
The location of the "Coordination byte, Send" (CBS) and the "Coordination byte, Receive"
(CBR) in CPU RAM. These bytes initiate sending/receiving, and also contain an error code
should a transmission error occur.
The location of the parameter list in CPU RAM (this list contains parameters such as the baud
rate, parity and the like).
The line procedure also requires the following information, which again must be made available
in system data words:
Mode number (data transmission mode, 3964 or 3964R line procedure)
Number of the driver for the 3964/3964R line procedure (referred to from now on as the
communications link).
The Send mailbox, the Receive mailbox, the Send coordination byte (CBS), the Receive coordi-
nation byte (CBR) and the parameter list may be located in either the flag area or in a data block.
You must store the position of the send and receive mailboxes, CBS, CBR, the parameter set and
mode number in the user program in system data words 48 to 55, e.g. with the T RS operation. See
Table 12-14 for the precise assignment. In addition, the computer link must be activated by en-
tering the driver number in SD 46.
12-40
Interface SI 2
Input buffer
(1024 bytes)
Output buffer
(1024 bytes)
S5-115U Manual
CPU RAM
Receive mailbox
Send mailbox
EWA 4NEB 811 6130-02b

Advertisement

Table of Contents
loading

Table of Contents