Siemens SIMATIC S5 CP 523 Manual page 226

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 201
0150 JUM1 :
0151
:L
FW 242
0152
:ADD KF +6
0154
:L
FW 234
0155
:!=F
0156
:JC
=LWOR
0157
:
0158
:ADD KF +2
015A
:T
FW 234
015B
:
015C
:JU
=NWOR
015D
:
015E LWOR :L
FW 242
015F
:T
FW 234
0160
:
0161
:L
FW 238
0162
:L
KB 0
0163
:><F
0164
:JC
=NBLO
0165
:
0166 END
:
0167
:
0168
:L
FW 230
0169
:T
=ZLAE
016A
:
016B
:L
FY 254
016C
:T
=STAT
016D
:
016E
:***
Segment 7
0170
016F
:BE
8-36
Explanations
Last word of the message block
read?
"Y E S"
Increment BADR index register by 2
and store
"N E X T W O R D"
Set module index register
to module base address
Last message block?
"N O" -> next message block
Output count register
Output status
CP 523
EWA 4NEB 811 6044-02a

Advertisement

Table of Contents
loading

Table of Contents