Data Transmission Using a Standard Connection
Programmable Controller 2
Proceed as follows:
Assign parameters in the DB1 of programmable controller 2 as described in section 4.2.
Program the individual blocks as described in the following section.
Transfer blocks DB1, OB1, DB8, and DB9 to programmable controller 2.
Cyclical Program for Station 2 (Programmable Controller 2)
The following was set in DB1:
•
Send mailbox is in DB8 starting with data word DW0.
•
Receive mailbox is in DB9 starting with data word DW0.
•
Send coordination byte is in flag byte FY60.
•
Receive coordination byte is in flag byte FY61.
OB1 for PLC 2
SEGMENT 1
0000
:
0001
: JU
0002
NAME : L2-STAND
0003
ANST : F 50.0
0004
ZIEL : KF 1
0005
LAEN : KF 4
0006
: BE
FB1 for PLC 2
SEGMENT 1
NAME
:
L2-STAND
DES
:
ANST
DES
:
ZIEL
DES
:
LAEN
0008
: A
0009
: JC
000A
: A
000B
:
000C
:
000D
:
000E
:
000F
:
0010
:
0011
: AN
0012
: S
0013
:
4-12
0000
Transmit to station 1.
FB 1
Transmit trigger bit, has to be set by user program, (is reset
after the transmit job is completed)
Station 1
Frame length of transmit data: 4 bytes
0000
I/Q/D/B/T/Z: E
BI/BY/W/D: BI
I/Q/D/B/T/Z: D
KM/KH/KY/KS/KF/KT/KC/KG: KF
I/Q/D/B/T/Z: D
KM/KH/KY/KS/KF/KT/KC/KG: KF
F 61.7
= M001
DB 9
F 61.7
F 61.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