Siemens SIMATIC S5 Manual page 152

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

Advertisement

Data Transmission by Accessing Layer 2 Services
Meaning of the Parameters of FB223 and FB224:
"ANST":
Input parameter bit
The request job is initiated when this bit is set. Set the bit before invoking FB223.
FB223 resets the bit once L2-SEND and L2- RECEIVE have executed without error.
"LSTA":
Output parameter byte
FB223 tells you the link_status of the confirmation. The link_status indicates the
success or failure of the preceding request. You can evaluate the link_status in flag
byte 9.
"EMPF":
Input parameter bit
This parameter enables receipt of an indication. Set this bit before invoking FB224.
FB224 resets the bit once the indication has been received without error(s).
FB223
Segment 1
0000
Name :SENDER
Des
:ANST
I/Q/D/B/T/Z: I
Des
:LSTA
I/Q/D/B/T/Z: Q
:
:
:
:
:
:A
F
77.2
:AN
F
20.0
:=
F
20.1
:
:A
F
77.2
:=
F
20.0
:
:A
F
20.1
:RB
=ANST
:
:A
=ANST
:AN
F
77.1
:R
F
20.0
:
:
:JC FB 252
Name :L2-SEND
A-NR :
KY 0,48
QTYP :
KS DB
DBNR :
KY 0,33
QANF :
KF +1
QLAE :
KF +8
:
:
8-12
Send FB for the SDA, SDN, SRD,
RUP_SINGLE and RUP-MULTIPLE services
BI/BY/W/D: BI
BI/BY/W/D: BY
The request DB is sent in this FB and the
confirmation of the respective
services fetched
EDGE "Completed without error"
STBS "Job completed without error"
Auxiliary edge flag
Edge "Job completed without error"
Edge "Job completed without error"
Reset send initiation bit
Interrogation of send initiation bit
STBS "Job executing"
Reset auxiliary edge flag
Invoke L2-SEND
Job number for request = 48
Send data are in
DB33
starting at DW 1
Send length: 8 words in this case
Length = 8-byte header + net data
in the case of SRD without net data: 4 words)
(
S5-95U, SINEC L2
Explanation
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