Data Transmission Using a Standard Connection
Programmable Controller 1
Proceed as follows:
Assign parameters in DB1 of programmable controller 1 as described in section 4.2.
Program the individual blocks as described in the following section.
Transfer blocks DB1, OB1, DB6, and DB7 to programmable controller 1.
Cyclical Program for Station 1 (Programmable Controller 1)
The following was set in DB1:
•
Send mailbox is in DB6 starting with data word DW0.
•
Receive mailbox is in DB7 starting with data word DW0.
•
Send coordination byte is in flag byte FY62.
•
Receive coordination byte is in flag byte FY63.
OB1 for PLC 1
NETZWERK 1
0000
:
0001
: JU
0002
NAME : L2-STAND
0003
ANST : F 50.0
0004
ZIEL : KF 2
0005
LAEN : KF 4
0006
: BE
FB1 for PLC 1
Netzwerk 1
NAME
:
L2-STAND
BEZ
:
ANST
BEZ
:
ZIEL
BEZ
:
LAEN
0008
: U
0009
: JC
000A
: A
000B
:
000C
:
000D
:
000E
:
000F
:
0010
:
0011
: UN
0012
: S
0013
:
4-10
0000
Transmit to station 2.
FB 1
Transmit trigger bit, has to be set by user program, (is reset
after the transmit job is completed)
Station 2
Frame length of transmit data: 4 bytes
0000
E/A/D/B/T/Z: E
BI/BY/W/D: BI
E/A/D/B/T/Z: D
KM/KH/KY/KS/KF/KT/KC/KG: KF
E/A/D/B/T/Z: D
KM/KH/KY/KS/KF/KT/KC/KG: KF
F 63.7
= M001
DB 7
F 63.7
F 63.7
Explanation
Explanation
L2 standard connection
If receive mailbox enabled to receive,
jump to 'SEND' program section.
Open receive mailbox data block
============================================
Program section for evaluation of received data
============================================
CBR bit "Enable receive"
Enable RM to receive
S5-95U, SINEC L2
EWA 4NEB 812 6112-02