Siemens SIMATIC S5 CP 523 Manual page 224

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

Advertisement

Using the "SEND" and "RECEIVE" Function Blocks
STL FB 201
00EE
:DO
=Z-DB
00EF
:
00F0 NBLO :JU
OB 31*
00F1
:L
KH 0000
00F3
:DO
FW 242
00F4
:T
PY
00F5
:L
FW 242
00F6
:I
00F7
:T
FW 242
00F8
:L
KH 0000
00FA
:DO
FW 242
00FB
:T
PY
00FC
:
00FD
:L
FW 242
00FE
:D
00FF
:T
FW 242
0100
:
0101
:L
FW 238
0102
:D
0103
:T
FW 238
0104 NWOR :
0105
:DO
FW 234
0106
:L
PW
0107
:
0108
:DO
FW 236
0109
:T
DW
010A
:
010B
:L
FW 238
010C
:L
KB 0
010D
:><F
010E
:JC
=KEND
010F
:
0110
:L
FY 246
0111
:I
0112
:T
FY 246
0113
:
0114
:
0115
:L
FW 244
0116
:<F
0117
:
0118
:JC
=KEND
0119
:
011A
:L
FW 230
011B
:ADD KF +1
011D
:T
FW 230
* In 115 CPUs only (if required)
8-34
0
1
0
1
1
0
0
1
Explanations
Open destination DB
(Retrigger scan time)
Access word 0 on CP 523
for transferring a message block
Set pointer back to
base address
Decrement no. of message blocks
for Receive message frames
and store
Fetch a data word from CP 523
and store
in Z-DB
Last message block?
"N O"
Increment auxiliary register by 1
and store
(shows the number of the word
received in the last message block)
and compare with the number of words
in the last message block to see
if the last word was received
"NO"
Increment ZLAE register by 1
and store
CP 523
EWA 4NEB 811 6044-02a

Advertisement

Table of Contents
loading

Table of Contents