CP 523
Using the ”SEND” and ”RECEIVE” Function Blocks
STL FB 201
Explanations
0069 :
006A :TAK
ZANF greater than 255?
006B :L KB 255
006C :>F
006D :JC =FE04
”E R R O R”
006E :
006F :TAK
ZANF >Z-DB length?
0070 :L FW 232
0071 :<=F
0072 :JC =PAOK
”N O”
0073 FE04 :
0074 :L KH 0048
Output ”FB parameter
0076 :T =STAT
error”
0077 :
0078 :BEU
PROGRAM ”END”
0079 PAOK :
007A :***
NETWORK 4 007B
007B :L KH 00A0
Write KOOR ID ”RECEIVE”
007D :DO FW 242
to CP 523
007E :T PY 0
word 0
007F :L FW 242
0080 :I 1
0081 :T FW 242
0082 :L KH 0080
0084 :DO FW 242
0085 :T PY 0
0086 :
0087 :L FW 242
Set pointer back to
0088 :D 1
module base address
0089 :T FW 242
008A :***
NETWORK 5 008B
008B :DO FW 242
Read byte 0,
008C :L PY 0
isolate error bit
008D :SLW 4
and buffer
008E :T FY 254
008F :L FW 242
Increment pointer to byte 1
0090 :I 1
0091 :T FW 242
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
EWA 4NEB 811 6044-02a
8-31