Siemens SIMATIC S5 Manual page 121

Interface of the programmable controller
Hide thumbs Also See for SIMATIC S5:
Table of Contents

Advertisement

Data Transfer with PLC-to-PLC Connections
FB105 for PLC 2
SEGMENT 1
NAME
:
S 2<=1
DES
:
EMPF
000A
: ON
000B
: ON
000C
: BEC
000D
:
000E
: JU
000F
NAME : L2-REC
0010
A-NR : KY 0,1
0011
ZTYP : KS DB
0012
DBNR : KY 0,22
0013
ZANF : KF +1
0014
ZLAE : KF -1
0015
: AN
0016
: AN
0017
: RB
0018
:
0019
: BE
DB21 for PLC 2
0:
KY = 000,000;
1:
KY = 000,000;
2:
KY = 000,000;
3:
KH = 0000;
DB22 for PLC 2
0:
KH = 0000;
1:
KY = 000,000;
2:
KY = 000,000;
3:
KY = 000,000;
.
.
.
Switch both programmable controllers from STOP to RUN.
Check the data transmission. This is done best with a programmer: Connect each programm-
able controller to a programmer and display the data blocks, the status bytes, and the parameter
assignment error byte.
Refer also to section 3.3 "Starting up a System".
Appendix E gives you information on cycle delay times in the programmable controllers due to data
transmission.
6-12
I/Q/D/B/T/Z: I BI/BY/W/D: BI
=EMPF
F 22.0
FB 253
F 255.0
F 22.3
=EMPF
Explanation
Station 2 receives from station 1
If receiving is not enabled or
if STBR bit "Receive viable" is not set,
end here.
Call-up of L2-RECEIVE
Receiving from station 1
Received data are stored in a data block,
DB number is 22,
starting with data word DW1.
"Wildcard length"
If there is no parameter assignment error message
and STBR bit "Job completed with error" is not
set, reset enable bit 'Receive'.
Explanation
Send area to PLC 1
Send area to PLC 1
Send area to PLC 1
Explanation
Receive area from PLC 1 Bytes 1+2
Receive area from PLC 1 Bytes 3+4
Receive area from PLC 1 Bytes 5+6
S5-95U, SINEC L2
Bytes 1 +2
Bytes 3 +4
Bytes 5 +6
EWA 4NEB 812 6112-02

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinec l2S5-95u

Table of Contents