Siemens SIMATIC S5 CP 523 Manual page 204

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
009F
:L
KB 128
00A0
:>F
00A1
:JC
=FE03
00A2
:
00A3
:
00A4
:LW
=QANF
00A5
:LW
=QLAE
00A6
:+F
00A7
:L
FW 254
00A8
:>F
00A9
:JC
=FE03
00AA
:TAK
00AB
:L
KF +255
00AD
:<=F
00AE
:JC
=PAOK
00AF FE03 :
00B0
:L
KH 0038
00B2
:T
=STAT
00B3
:
00B4
:BEU
00B5 PAOK :
00B6
:***
Segment 4
00B7
00B7
:
00B8
:***
Segment 5
00B9
00B9
:
00BA
:L
FW 242
00BB
:I
00BC
:T
FW 242
00BD
:
00BE
:L
=QLAE
00BF
:SLW
00C0
:DO
FW 242
00C1
:T
PW
00C2
:
00C3
:L
FW 242
00C4
:I
00C5
:T
FW 242
00C6
:
00C7
:LW
=ENDZ
00C8
:DO
FW 242
00C9
:T
PW
8-14
2
1
0
2
0
Explanation
" E R R O R "
Check to make sure that
QANF+QLAE not > Q-DB length
Load calculated Q-DB length
" E R R O R "
QANF+QLAE<=255?
Then OK
Output "FB PARAMETER
ERROR"
Program "END"
Increment pointer to
base address +2 (byte 2)
Write length (bytes) of the
frame to be transferred
to bytes 2 and 3
of the CP 523
Set pointer to base
address + 4 (byte 4)
and store
Write end-of-text characters 1 and 2
to bytes 4 and 5
of the CP 523
CP 523
EWA 4NEB 811 6044-02a

Advertisement

Table of Contents
loading

Table of Contents