Siemens SIMATIC S7-200 System Manual page 98

Programmable controller
Hide thumbs Also See for SIMATIC S7-200:
Table of Contents

Advertisement

S7-200 Programmable Controller System Manual
Example: Network Read and Network Write Instructions
84
Network 1
//On the first scan, enable the
//PPI master mode
//and clear all receive and transmit buffers.
LD
SM0.1
MOVB
2, SMB30
FILL
+0, VW200, 68
Network 2
//When the NETR Done bit (V200.7)
//is set and 100 cases have been
//packed:
//1.
Load the station address of
//
case packer #1.
//2.
Load a pointer to the data in
//
the remote station.
//3.
Load the length of data to be
//
transmitted.
//4.
Load the data to transmit.
//5.
Reset the number of cases packed
//
by case packer #1
LD
V200.7
AW=
VW208, +100
MOVB
2, VB301
MOVD
&VB101, VD302
MOVB
2, VB306
MOVW
+0, VW307
NETW
VB300, 0
Network 3
//When the NETR Done bit is set,
//save the control data from
//case packer #1.
LD
V200.7
MOVB
VB207, VB400

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents