Siemens SIMATIC S5 CP 523 Manual page 210

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 200
01B4
:T
PY
01B5
:L
FW 250
01B6
:D
01B7
:T
FW 250
01B8
:
01B9
:L
FW 250
01BA
:L
FW 242
01BB
:><F
01BC
:JC
=NADR
01BD
:
01BE
:L
FW 240
01BF
:L
KB
01C0
:!=F
01C1
:JC
=END
01C2
:
01C3
:L
FW 244
01C4
:ADD KF + 1
01C6
:T
FW 244
01C7
:
01C8
:JU
=NBLO
01C9 NADR :
01CA
:L
FW 250
01CB
:D
01CC
:T
FW 250
01CD
:
01CE
:L
FW 246
01CF
:D
01D0
:T
FW 246
01D1
:
01D2
:JU
=NWOR
01D3 END
:
01D4
:L
KH 0002
01D6
:T =STAT
01D7
:
01D8
:A
F 237.0
01D9
:R
F 237.0
01DA
:
01DB
:BE
8-20
0
1
0
2
1
Explanations
and forward to CP
Decrement pointer
Last word of message block
forwarded?
"NEXT ADDRESS"
Is message block
to be transferred
the last message block?
"END"
Increment QANF register by 1
and store
"NEXT MESSAGE BLOCK"
Decrement pointer for byte
address by 2
and store
Decrement data word
index register by 1
and store
"NEXT WORD"
Load STAT bit "SEND in progress"
Output STAT bit
Reset auxiliary flag
for end-of-text character
CP 523
EWA 4NEB 811 6044-02a

Advertisement

Table of Contents
loading

Table of Contents