EasyManua.ls Logo

Siemens Simatic S7-400

Siemens Simatic S7-400
206 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
PROFIBUS DP
5.1 CPU 41x-3 PN/DP as DP master / DP slave
S7-400 Automation System, CPU Specifications
5-14 Manual, 10/2006, 6ES7498-8AA04-8BA0
Sample Program
The small sample program below illustrates data transfer between the DP master and DP
slave. This example contains the addresses from the table "Configuration example for the
address areas of the transfer memory".
In the DP slave CPU In the DP master CPU
L 2
M MB 6
L IB 0
M MB 7
Data
preprocessing
in the DP slave
L MW 6
M PQW 310
Transfer data
to the DP
master
L PIB 222
M MB 50
L PIB 223
L B#16#3
+ I
M MB 51
Process received
data in the DP
master
L 10
+ 3
M MB 60
Data
preprocessing in
the DP master
CALL SFC 15
LADDR:= W#16#0
RECORD:= P#M60.0 Byte20
RET_VAL:= MW 22
Send data to the
DP slave
CALL SFC 14
LADDR:=W#16#D
RET_VAL:=MW 20
RECORD:=P#M30.0 Byte20
Receive data
from the DP
master
L MB 30
L MB 7
+ I
M MW 100
Process
received data
Data Transfer in STOP Mode
The DP slave CPU changes to STOP mode: The data in the transfer memory of the CPU is
overwritten with "0". In other words, the DP master reads "0".
The DP master changes to STOP mode: The current data in the transfer memory of the CPU
is retained and can continue to be read by the CPU.
PROFIBUS Address
You must not set 126 as the PROFIBUS address for the CPU 41x as DP slave.

Table of Contents

Other manuals for Siemens Simatic S7-400

Related product manuals