Siemens Simatic S7-200 System Manual page 324

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

Advertisement

Instruction Set
Network 1
SM0.1
Network 2
V200.7
VW208
==I
100
Network 3
V200.7
Network 4
SM0.1
V200.6
/
/
Figure 10-63
10-136
LAD
MOV_B
EN
2
IN
OUT
SMB30
FILL_N
EN
0
IN
OUT
VW200
68
N
MOV_B
EN
2
IN
OUT
VB301
MOV_D
EN
&VB101
IN
OUT
VD302
MOV_B
EN
2
IN
OUT
VB306
MOV_W
EN
0
IN
OUT
VW307
NETW
EN
VB300
TABLE
0
PORT
MOV_B
EN
VB207
IN
OUT
VB400
V200.5
MOV_B
/
EN
2
IN
OUT
VB201
MOV_D
EN
&VB100
IN
OUT
VD202
MOV_B
EN
3
IN
OUT
VB206
NETR
EN
VB200
TABLE
0
PORT
Example of NETR and NETW Instructions
Network 1
On the first scan,
LD
SM0.1
enable the PPI+
MOVB
2, SMB30
protocol.
FILL
0, VW200, 68
Clear all receive and
transmit buffers.
When the NETR
Done bit is set and
Network 2
100 cases have
LD
V200.7
been packed, load
AW=
VW208, 100
the station address
of case packer #1.
MOVB
2, VB301
MOVD
&VB101, VD302
Load a pointer to the
MOVB
2, VB306
data in the remote
station.
MOVW
0, VW307
NETW
VB300, 0
Load the length of
the data to be
transmitted.
Load the data to be
transmitted.
Reset the number of
cases packed by
case packer #1.
Network 3
LD
V200.7
When the Done bit is
MOVB
VB207, VB400
set, save the control
data from case
packer #1.
Network 4
When the NETR is
LDN
SM0.1
not active and there
AN
V200.6
is no error, load the
AN
V200.5
station address of
case packer #1.
MOVB
2, VB201
Load a pointer to the
MOVD
&VB100, VD202
data in the remote
MOVB
3, VB206
station.
NETR
VB200, 0
Load the length of
the data to be
received.
Read the control and
status data in case
packer #1.
S7-200 Programmable Controller System Manual
C79000-G7076-C230-02
STL

Advertisement

Table of Contents
loading

Table of Contents