Siemens SIMATIC S5 CP 523 Manual page 185

Serial i/o module
Hide thumbs Also See for SIMATIC S5 CP 523:
Table of Contents

Advertisement

Communications Mode
FB 126
NETWORK 1
0000
NAME :RECEIVE4
DES
:BADR
I/Q/D/B/T/C: D
DES
:ENZE
I/Q/D/B/T/C: D
STL FB 126
:C
DB
M001
:A
F
101.1
:JC
=M001
:LW
=BADR
:T
FW 222
:L
KH A080
:DO
FW 222
:T
PW
:L
KH 0080
:DO
FW 222
:L
PW
:AW
:><F
:JC
=M001
:S
F
101.1
:LW
=BADR
:ADD KF +6
:T
FW 222
:LW
=ENZE
:T
FW 224
:L
KH 0000
:T
FW 232
:L
KH 0003
:T
FW 234
M003
:
:LW
=BADR
:T
FW 220
:L
KH 0000
:DO
FW 220
:T
PW
M004
:L
FW 224
:DO
FW 220
:L
PW
:!=F
:S
F
101.2
7-80
KM/KH/KY/KC/KF/KT/KZ/KG: KF
KM/KH/KY/KC/KF/KT/KZ/KG: KH
Open target data block.
3
Message frame in DB?
If yes, then Block End.
Load and store
module start address.
Load Receive request
and transfer to CP.
0
Message frame
in Receive mailbox?
0
If no,
then Block End.
Set message frame flag.
Load module address,
set byte 6 address
and store.
Load end-of-text character
and store.
Preset data word pointer.
Preset auxiliary data word pointer.
Load module address
and store.
Request next message block
by writing byte 0.
0
Is the next data byte equal to
the end-of-text character?
0
If yes,
set End flag.
LEN=85
Explanation
CP 523
EWA 4NEB 811 6044-02a

Advertisement

Table of Contents
loading

Table of Contents