Siemens SIMATIC S5 CP 523 Manual page 223

Serial i/o module
Hide thumbs Also See for SIMATIC S5 CP 523:
Table of Contents

Advertisement

CP 523
STL FB 201
00C0
:
00C1
:L
FW 242
00C2
:I
00C3
:T
FW 242
00C4
:
00C5
:DO
FW 242
00C6
:L
PY
00C7
:D
00C8
:SLW
00C9
:
00CA
:T
FW 238
00CB
:
00CC
:L
FW 242
00CD
:ADD KF -4
00CF
:T
FW 242
00D0
:
00D1
:DO
FW 242
00D2
:L
PW
00D3
:SRW
00D4
:T
FW 240
00D5
:
00D6
:L
FW 238
00D7
:-F
00D8
:T
FW
00D9
:
00DA
:
00DB
:
00DC
:
00DD
:L
FW 238
00DE
:SRW
00DF
:I
00E0
:T
FW 238
00E1
:
00E2
:
00E3
:L
KB 0
00E4
:T
FW 230
00E5
:
00E6
:LW
=ZANF
00E7
:T
FW 236
00E8
:
00E9
:L
FW 242
00EA
:D
00EB
:T
FW 242
00EC
:T
FW 234
00ED
:
EWA 4NEB 811 6044-02a
6
0
1
2
0
1
244
2
1
2
Using the "SEND" and "RECEIVE" Function Blocks
Explanations
Set pointer to base
address +6 (byte 6)
Read no. of message blocks in
Receive message frame from the CP,
decrement by 1,
convert to number of words
(one message block comprises 4 words)
and store
Set pointer to base
address +2 (byte 2)
Read length of Receive
message frame in the bytes from the CP,
convert to number of words
and store
Subtract the number of message blocks
in words from this
and store
The result of the subtraction
is the number of words
in the last message block
Correct the number
of message blocks
Reset the ZLAE register
Load ZANF
and store
Set module address register
to CP 523 base address
and load into
module address
index register
8-33

Advertisement

Table of Contents
loading

Table of Contents