Siemens SIMATIC S5 CP 523 Manual page 208

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
0156
:L
FW 242
0157
:><F
0158
:JC
=VORB
0159
:
015A
:A
F 237.0
015B
:JC
=END
015C
:
015D
:L
FW 244
015E
:ADD KF +1
0160
:T
FW 244
0161
:
0162
:JU
=BLOC
0163
:
0164 VORB :
0165
:L
FW 250
0166
:D
0167
:T
FW 250
0168
:
0169
:L
FW 246
016A
:D
016B
:T
FW 246
016C
:JU
=WORT
016E
:
016F
:
0170
:
0171
:
0172
:
0173
:
0174 TELE :
0175
:
0176
:L
FW 240
0177
:SLW
2
0178
:L
=QLAE
0179
:-F
017A
:T
FW 248
017B
:
017C
:L
KH 0004
017E
:L
FW 248
017F
:-F
0180
:T
FW 248
0181
:
0182 NBLO :
0183
:L
FW 240
0184
:D
8-18
2
1
1
Explanation
transferred?
"Preparations" for next message block
Did this message block contain the end-
of-text character?->"END"
Increment QANF register by 1
and store
"NEXT MESSAGE BLOCK"
Decrement current CP 523
address by 2
and store
Decrement data word index
register by 1
and store
"NEXT WORD"
****************************
SEND WITH FIXED FRAME
*
LENGTH
*
****************************
Compute frame remainder register:
Number of message blocks * 4
(number in words)
Buffer number of words
Subtract message frame length from
number of message frames (in words)
and store
----------------------------
Decrement number of message blocks by 1
CP 523
*
*
EWA 4NEB 811 6044-02a

Advertisement

Table of Contents
loading

Table of Contents