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
Summary of Contents for SIMATIC S5-90U
Page 6: ...EWA 4NEB 812 6115 02b ...
Page 16: ...EWA 4NEB 812 6115 02b ...
Page 23: ......
Page 32: ...EWA 4NEB 812 6115 02b ...
Page 46: ...EWA 4NEB 812 6115 02b ...
Page 50: ......
Page 51: ......
Page 52: ......
Page 53: ......
Page 54: ......
Page 55: ......
Page 57: ......
Page 58: ......
Page 59: ......
Page 64: ......
Page 65: ......
Page 66: ......
Page 67: ......
Page 89: ......
Page 102: ...EWA 4NEB 812 6115 02b ...
Page 118: ...EWA 4NEB 812 6115 02b ...
Page 242: ...EWA 4NEB 812 6115 02b ...
Page 288: ...EWA 4NEB 812 6115 02b ...
Page 300: ...EWA 4NEB 812 6115 02b ...
Page 362: ...EWA 4NEB 812 6115 02b ...
Page 536: ...EWA 4NEB 812 6115 02b ...
Page 538: ...EWA 4NEB 812 6115 02b ...
Page 540: ...EWA 4NEB 812 6115 02b ...
Page 562: ...EWA 4NEB 812 6115 02b ...
Page 564: ...EWA 4NEB 812 6115 02b ...
Page 590: ...EWA 4NEB 812 6115 02b ...
Page 596: ...EWA 4NEB 812 6115 02b ...
Page 598: ...EWA 4NEB 812 6115 02b ...
Page 604: ...EWA 4NEB 812 6115 02b ...
Page 606: ...EWA 4NEB 812 6115 02b ...
Page 608: ...EWA 4NEB 812 6115 02b ...
Page 610: ...EWA 4NEB 812 6115 02b ...
Page 620: ...EWA 4NEB 812 6115 02b ...