Siemens SIMATIC S5 Manual page 117

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

Advertisement

Data Transfer with PLC-to-PLC Connections
FB5 for PLC 1
Segment 1
NAME
:
S 1=>2
DES
:
ANST
0009
:
000A
:
000B
:
000C
: A
000D
: AN
000E
: =
000F
:
0010
: A
0011
: =
0012
:
0013
: A
0014
: AN
0015
: RB
0016
: R
0017
:
0018
: A
0019
: AN
001A
: R
001B
:
001C
: JC
001D
NAME : L2-SEND
001E
A-NR : KY 0,2
001F
QTYP : KS DB
0020
DBNR : KY 0,21
0021
QANF : KF + 0
0022
QLAE : KF + 3
0023
: A
0024
: =
0025
:
0026
: A
0027
: =
0028
: BE
6-8
0000
I/B/D/B/T/Z: I BI/BY/W/D: BI
F 10.2
F 20.0
F 20.1
F 10.2
F 20.0
F 20.1
F 20.7
=ANST
F 20.5
=ANST
F 20.5
F 20.0
FB 252
F 255.0
F 20.7
F 10.1
F 20.5
Explanation
Transmitting from station 1 to station 2
Edge evaluation
"Job completed without error" via
STBS = flag byte FY10
STBS bit "Job completed without error"
Edge auxiliary flag.
Edge flag "Job completed"
If "Job completed without error",
set edge auxiliary flag.
If "Job completed" and
no parameter assignment error is present,
reset send initiation bit,
reset send disabling bit.
If Send initiation bit is set and
send disabling bit is not set,
reset edge auxiliary flag.
Call-up of FB L2-SEND
Send to station 2
Send data are stored in a data block,
DB number is 21,
starting with data word DW0.
Three words are to be sent (DW0 to DW2).
Note parameter assignment error message.
If STBS bit "Job in progress" is set,
set send disabling bit.
S5-95U, SINEC L2
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