Connecting the S5-100U to SINEC L1
S5-100U
Figure 13-9.
Programming “Message Processing” in FB2
C
DB3
A
F100.7
JC
=M001
L
DR0
L
KF+0
><F
JC
=M002
L
DL1
T
QB0
L
DR1
T
QB1
L
DL2
T
QB2
M2:
AN
M100.7
S
F100.7
M1:
A
F101.7
JC
=M003
C
DB2
L
KF+3
T
DL0
L
KF+0
T
DR0
L
IB3
T
DL1
L
IB4
T
DR1
L
IB5
T
DL2
AN
F101.7
S
F101.7
M3:
NOP
0
BE
Receive mailbox (DB3)
Check whether access to receive mailbox is permissible.
KBE/Bit 7=0: Access permitted
KBE/Bit 7=1: Access not permitted
Skip receive mailbox evaluation if access not permitted
Check whether the number of the source (master 0) is in
byte 2 of the receive mailbox
Skip receive mailbox evaluation if source No. 0
Transfer receive mailbox
to the PIQ
Set KBE/Bit 7=1, i.e. permit PLC access.
Program access is not permitted again until the
PLC has reset this bit.
Check whether access to the send mailbox is permitted.
KBS/Bit 7=0: Access permitted
KBS/Bit 7=1: Access not permitted
Skip send mailbox evaluation if access not permitted.
Set send mail box (DB2)
Specify length of the data packet in byte 1
of the send mailbox
Load destination number 0 (master) into byte 2 of the
send mailbox
Load input bytes 3, 4 and 5
into the send mailbox
Set KBS/bit 7, i.e. programmable controller has access to the send
mailbox
STL
Explanation
13-12
EWA 4NEB 812 6120-02b
Summary of Contents for SIMATIC S5-100U
Page 6: ...EWA 4NEB 812 6120 02b ...
Page 16: ...EWA 4NEB 812 6120 02b ...
Page 21: ...1 The SIMATIC S5 System Family EWA 4NEB 812 6120 02b ...
Page 22: ...Figures 1 1 Members of the SIMATIC S5 System Family 1 1 EWA 4NEB 812 6120 02b ...
Page 23: ......
Page 27: ......
Page 36: ...EWA 4NEB 812 6120 02b ...
Page 40: ......
Page 41: ......
Page 42: ......
Page 43: ......
Page 48: ......
Page 49: ......
Page 50: ......
Page 102: ...EWA 4NEB 812 6120 02b ...
Page 156: ...EWA 4NEB 812 6120 02b ...
Page 232: ...EWA 4NEB 812 6120 02b ...
Page 268: ...EWA 4NEB 812 6120 02b ...
Page 272: ...EWA 4NEB 812 6120 02b ...
Page 336: ...EWA 4NEB 812 6120 02b ...
Page 352: ...EWA 4NEB 812 6120 02b ...
Page 412: ...EWA 4NEB 812 6120 02b ...
Page 482: ...EWA 4NEB 812 6120 02b ...
Page 484: ...EWA 4NEB 812 6120 02b ...
Page 505: ...B Dimension Drawings EWA 4NEB 812 6120 02b ...
Page 515: ...C Active and Passive Faults in Automation Equipment EWA 4NEB 812 6120 02b ...
Page 516: ...EWA 4NEB 812 6120 02b ...
Page 522: ...EWA 4NEB 812 6120 02b ...
Page 523: ...D Information for Ordering Accessories EWA 4NEB 812 6120 02b ...
Page 524: ...EWA 4NEB 812 6120 02b ...
Page 530: ...EWA 4NEB 812 6120 02b ...
Page 531: ...E Reference Materials EWA 4NEB 812 6120 02b ...
Page 532: ...EWA 4NEB 812 6120 02b ...
Page 534: ...EWA 4NEB 812 6120 02b ...
Page 535: ...F Siemens Addresses Worldwide EWA 4NEB 812 6120 02b ...
Page 536: ...EWA 4NEB 812 6120 02b ...
Page 542: ...EWA 4NEB 812 6120 02b ...
Page 543: ...Index EWA 4NEB 812 6120 02b ...
Page 544: ...EWA 4NEB 812 6120 02b ...
Page 550: ...EWA 4NEB 812 6120 02b ...