Siemens SIMATIC S5 CP 523 Manual page 225

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

Advertisement

CP 523
STL FB 201
011E
:
011F
:JU
=END
0120
:
0121 KEND :
0122
:L
FW 230
0123
:ADD KF +1
0125
:T
FW 230
0126
:
0127
:L
FW 236
0128
:ADD KF +1
012A
:T
FW 236
012B
:
012C
:L
FW 232
012D
:D
012E
:<=F
012F
:JC
=JUM1
0130
:
0131
:L
KH 0058
0133
:T
FY 254
0134
:
0135
:
0136 ENTL :
0137
:L
FW 238
0138
:L
KB 0
0139
:!=F
013A
:JC
=END
013B
:
013C
:L
KH 0000
013E
:DO
FW 242
013F
:T
PY
0140
:L
FW 242
0141
:I
0142
:T
FW 242
0143
:L
KH 0000
0145
:DO
FW 242
0146
:T
PY
0147
:L
FW 242
0148
:D
0149
:T
FW 242
014A
:
014B
:L
FW 238
014C
:D
014D
:T
FW 238
014E
:
014F
:JU
=ENTL
EWA 4NEB 811 6044-02a
1
0
1
0
1
1
Using the "SEND" and "RECEIVE" Function Blocks
Explanations
Increment ZLAE register by 1
and store
Increment ZANF register by 1
and store
ZANF register >DB length?
"N O"
Buffer "Z-DB too small for total
Receive data" error message
Last message block?
"Y E S"-->END
Access word 0 on CP 523
for transferring a message block
Set pointer to base address
Decrement message block
counter register by 1 and store
Empty Receive mailbox loop
8-35

Advertisement

Table of Contents
loading

Table of Contents