Siemens SIMATIC S5 Series Manual page 30

Second serial interface of the programmable controller
Hide thumbs Also See for SIMATIC S5 Series:
Table of Contents

Advertisement

Point-To-Point Link
FB100 AWL (continued)
:L
KF +72
:L
FW 252
:!=F
:JC
=M002
:L
FW 252
:ADD KF +1
:T
FW 252
:L
FW 254
:ADD KF +1
:T
FW 254
:JC
=M003
:
M002 :AN
F
:S
F
:
M001 :
:AN
F
:BEC
:
:O
F
:O
F
:JC
=M004
:
:AN
F
:S
F
:L
KY 64.1
:T
DW
:
:
:
:AN
F
:S
F
:R
F
M004 :
:AN
F
:AN
F
:=
F
:U
F
:S
F
:
:A
F
:AN
F
:R
F
:R
F
:
:A
F
:A
F
:R
F
:BE
2-10
61.7
61.7
1.0
1.1
62.7
1.1
1.1
80
62.7
62.7
1.2
62.7
1.2
1.3
1.3
1.2
1.3
62.0
1.0
1.1
1.3
62.0
1.1
S5-95U, Second Serial Interface
Description
Scan to determine whether all 32 DW have
already been copied
then jump to receive mailbox enable
otherwise, data word numbers are
incremented by 1
and next data word is copied
Enable receive mailbox again for
new frame
Send data
==============================================
if no request to send,
end
if transmitting disabled or
if send request active then
jump to pulse edge evaluation "Send ready"
Disable transmission since the send mailbox
must not be changed during transmission
Enter frame length (here = 64 bytes) and
destination number (here = 1 for slave 1) in
1st DW of the send mailbox
Net data must be entered in DW 81 to DW 112
at this point.
Enable transmitting in the KBS and
reset edge auxiliary flag
Pulse edge evaluation "Transmission terminated"
if KBS bit 7 changes from 1 to 0 and
edge auxiliary flag is not set,
Edge "Transmission terminated"
in case of negative edge,
set auxiliary flag again
If transmission terminated and
no errors have occurred during transmission,
reset send initiation bit,
reenable transmission
If transmission terminated and
errors have occurred during transmission,
enable transmission for repeat
EWA 4NEB 812 6095-02

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s5-95u

Table of Contents