hit counter script

Siemens SIMATIC S5 CP 521 Manual page 159

Printer/ascll communications module
Hide thumbs Also See for SIMATIC S5 CP 521:
Table of Contents

Advertisement

ASCII Mode
Example: Sending a variable-length message (only for CPU 103)
You have plugged into the CP 521 in slot 7 (initial address 120) and you want to
transfer a message of undefined length to a peripheral device. The data for the
message is taken from DB 20. When the CP has accepted the send job, flag 0.0 is
to be set. Both end-of-text characters must be in one data word.
STL FB 2
NAME :SENDEN
:C
DB
20
:
:A
F
100.1
:R
F
80.0
:
:
:A
F
80.7
:JC
=M001
:
:A
F
80.0
:JC
=M002
:L
KH A001
:T
QW
120
:L
KH 0000
:T
QW
122
:L
KH 0D0D
:T
QW
124
:S
F
80.0
:
:
:L
KH 0000
:T
FW
22
:L
KH B001
:T
FW
24
:L
KF +0
:T
FW
30
:L
KF +1
:T
FW
32
:L
KF +2
:T
FW
34
:
:BEU
7-36
Explanation
Send with variable length
Source data block
Flag 100.1 (e.g. edge flag) initiates data
transfer
All data has been transferred to the CP
Wait for CP acknowledgement
Transfer "Send" coordination
information to the CP
Message length
End-of-text character
Auxiliary register preset
Reset block acknowledgement
Transfer of the first data block
Set pointer in source DB to its initial value
GWA 4NEB 812 6030-02b
CP 521

Advertisement

Table of Contents
loading

Table of Contents