Using the ”SEND” and ”RECEIVE” Function Blocks
CP 523
STL FB 201
Explanations
0092 :DO FW 242
Read byte 1 (acknowledgement or
0093 :L PY 0
CBR when computer link)
0094 :T =KBE
and output
0095 :T FY 246
or buffer
0096 :
0097 :L FW 242
Set pointer back to
0098 :D 1
module base address
0099 :T FW 242
009A :
009B :L KB 0
Acknowledgement with error?
009C :L FY 254
009D :!=F
009E :JC =NEIN
”N O E R R O R”
009F :
00A0 :S F 254.3
Set error bit for STAT
00A1 :L FY 254
00A2 :T =STAT
Output STATbit
00A3 :
00A4 :L KH 0090
Does the CP report
00A6 :L FY 254
delay time exceeded?
00A7 :AW
00A8 :!=F
00A9 :JC =NEIN
”Y E S” -> message is output
00AA :
in the status byte
00AB :
but the function block
00AC :
is not interrupted
00AD :
00AE :BEU
Program ”END”
00AF NEIN :
00B0 :L FY 246
Error flagged in CBR?
00B1 :L KH 007F
(error flag is isolated)
00B3 :AW
00B4 :L KB 0
00B5 :!=F
00B6 :JC =KBOK
Coordination byte OK
00B7 :L KH 0088
Output error ”CBR error/computer link
00B9 :T =STAT
00BA :BEU
Program ”END”
00BB KBOK :
00BC :***
NETWORK 6 00BD
00BD :L KB 0
Reset auxiliary register 2
00BE :T FB 246
00BF :
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
8-32
EWA 4NEB 811 6044-02a