Siemens SIMATIC S5 Manual page 116

Interface of the programmable controller
Hide thumbs Also See for SIMATIC S5:
Table of Contents

Advertisement

S5-95U, SINEC L2
Programmable Controller 1
Proceed as follows:
Assign parameters in DB1 of programmable controller 1 as described in section 6.2.
Program the individual blocks as described in the following section.
Transfer blocks DB1, OB1, FB5, FB105, DB21 and DB22 to programmable controller 1.
Cyclical Program for Station 1 (Programmable Controller 1)
Programmable controller 1 is to transmit data to programmable controller 2 and to receive data from
programmable controller 2.
Function block L2-SEND triggers the data transmission in programmable controller 1. L2-SEND is
called up in function block FB5 of programmable controller 2.
Function block L2-RECEIVE triggers the data reception. L2-RECEIVE is called up in function block
FB105. FB5 and FB105 are called up in organization block OB1. The transmit data are stored in data
block DB21. The received data are stored in data block DB22. Status byte 'Send' is flag byte FY10.
Status byte 'Receive' is flag byte FY11.
Significance of the Parameters for FB5 and FB105:
ANST:
Input Parameter Bit ('Send' initiation bit)
A request to transmit is triggered by bit ANST. You set bit ANST. When the job is
completed without error, FB5 resets bit ANST. If initiation of a request to send ends with
an error message in STBS or PAFE, the request to send is repeated automatically.
EMPF:
Input Parameter Bit ('Receive' enable bit)
Receiving is enabled by bit EMPF.
without error, FB105 resets bit EMPF. If receiving ends with an error message in STBR
or PAFE, the receive procedure is repeated automatically.
OB1 for PLC 1
NETZWERK 1
0000
:
0001
: JU
0002 NAME
: S 1=>2
0003 ANST
: F 5.0
0004
:
0005
: JU
0006 NAME
: R 1<=2
0007 EMPF
: F 6.0
0008
:BE
EWA 4NEB 812 6112-02
0000
FB 5
FB 105
Data Transfer with PLC-to-PLC Connections
You set bit EMPF. When the job is completed
Explanation
Send to station 2
'Send' initiation bit
Receive from station 2
'Receive' enable bit
6-7

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinec l2S5-95u

Table of Contents