CP 523
Using the ”SEND” and ”RECEIVE” Function Blocks
Yes
Yes
No
No
No
Yes
Fetch Receive data from CP 523
Segment 6
Buffer number of message blocks given in
acknowledgement and process
3
Further program preparations
Buffer message frame length given in
acknowledgement and process
Calculate the number of words in the last message
block
Access word 0 on CP
Decrement number of message blocks by 1
Fetch a DW from the CP
No
Yes
No
Has the last DW
been received?
Last message
block?
Increment ZLAE by 1
ZANF
>
Z-DB?
Increment ZLAE by 1
END
Output error message
Last message
block?
Access word 0 on CP
Decrement number of
message blocks by 1
Yes
Last DW of the
message block?
Next DW
Last message
block?
END
No
EWA 4NEB 811 6044-02a
8-27