Siemens SIMATIC S5 CP 523 Manual page 202

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
003F
:AN
=RKPL
0040
:JC
=NORK
0041
:L
FW 242
0042
:I
0043
:T
FW 242
0044
:
0045
:DO
FW 242
0046
:L
PY
0047
:T
=KBS
0048
:T
FY 238
0049
:
004A
:L
FW 242
004B
:D
004C
:T
FW 242
004D NORK :
004E
:L
FW 242
004F
:D
0050
:T
FW 242
0051
:
0052
:A
F
0053
:JC
=NEIN
0054
:
0055
:L
KH 0002
0057
:JU
=STAT
0058 NEIN :
0059
:L
KH 0000
005B STAT :
005C
:T
=STAT
005D
:
005E
:L
FY 238
005F
:L
KH 007F
0061
:AW
0062
:L
KB 0
0063
:!=F
0064
:JC
=KBOK
0065
:L
KH 0088
0067
:T
=STAT
0068
:
0069 KBOK :
006A
:AN
F 255.0
006B
:ON
F 254.0
006C
:BEC
006D
:
006E
:***
8-12
1
0
1
1
254.0
Explanation
no computer link
Set pointer to base
address + 2 (byte 2 = CBS
for computer link)
Read CBS (when computer link)
output and
buffer
Set pointer back to module
base address + 1
Set pointer back to
module base address
Does CP523 report "send in progress"?
"NO"
Load STAT bit "Send in progress "
jump to STAT
STAT bit "Send mailbox empty"
Output STAT flag
Error code in CBS
(when computer link)?
CBS ok
Output error code for
"CBS error / computer link"
RLO = "0" on jump?
or Send mailbox occupied?
"End" of program
CP 523
EWA 4NEB 811 6044-02a

Advertisement

Table of Contents
loading

Table of Contents