EasyManuals Logo

Siemens CPU 312C Hardware And Installation Guide

Siemens CPU 312C
238 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
Page #142 background imageLoading...
Page #142 background image
&RPPLVVLRQLQJ
S7-300 Automation System, Hardware and Installation: CPU 31xC and CPU 31x
9-30 A5E00105492-03
6DPSOHSURJUDP
Below you will see a small sample program for data exchange between DP master
and DP slave. The addresses used in the example are found in the table above.
,QWKH'3VODYH&38 ,QWKH'3PDVWHU&38
L 2
T MB 6
L IB 0
//Data pre-
processing in
the
DP slave
T MB 7
L MW 6
T PQW 310
// Forward data
to the
DP master
L PIB 222
T MB 50
L PIB 223
// processing data
received
in the DP master
.
L B#16#3
+ I
T MB 51
L 10 //Data preparation in
DP master
+ 3
T MB 60
CALL SFC 15 //Send data to
DP slave
LADDR:= W#16#0
RECORD:= P#M60.0 Byte 20
RET_VAL:=MW 22
CALL SFC 14
LADDR:=W#16#D
//receive data
from DP master
RET_VAL:=MW 20
RECORD:=P#M30.0 byte 20
L MB 30
L MB 7
+ I
//Reprocess
received data
T MW 100

Table of Contents

Other manuals for Siemens CPU 312C

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens CPU 312C and is the answer not in the manual?

Siemens CPU 312C Specifications

General IconGeneral
BrandSiemens
ModelCPU 312C
CategoryProcessor
LanguageEnglish

Related product manuals