S5-90U/S5-95U
Communication via SINEC L1 LAN
14.6
Program Example
In this section, the structure of a control program for an S5-95U as a slave to the SINEC L1 LAN is
explained in detail.
Example:
An S5-95U is to be used as a slave in the SINEC L1 local area network. The S5-95U has a slave
number 4 and is to communicate with slave number 2. For this purpose, specificy slave number 4 in
DB1 and destination address 2 in FB100. The S5-95U is to receive data from the communication
partner and send data to the communication partner.
Proceed as follows:
Establish the ready state at the communication partner (parameterized as slave 2).
Switch the S5-95U on and carry out ”PLC overall reset” (PLC mode: STOP).
Parameterize the SINEC L1 parameter block in DB 1 of the S5-95U as described below.
Program the individual blocks as described below.
Transfer DB 1 and the control program to the S5-95U.
Switch the mode and selector of the PLC to RUN.
For the program structure of the program example please refer to the following diagram.
Figure 14-9. Program Structure SINEC L1 Slave
OB1
FB100 is
called
cyclically
FB100
Receive data
and
Send Data
DB100
from DW 80
Send mailbox
DB100
ab DW 40
Receive
Mailbox
DB1
EWA 4NEB 812 6115-02b
14-9
Содержание 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 ...