Siemens SIMATIC S7 Operating Instructions Manual page 32

Prodave s7 v5.5 toolbox for windows 95/98/nt/me/2000 applications for a data link of pgs/pcs to simatic s7 via mpi interface and pc/mpi cable
Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

SIEMENS AG
Example:
DB10 consisting of 100 data words (DW 0 - DW 99) exists in the PLC.
45 data words are to be read starting from DW5.
The read values are stored in the data buffer "buffer" and are available for
processing.
C-Adapter
#include <w95_s7.h>
int
buffer[100];
int
error;
int
dbno,dwno,amount;
:
:
dbno
= 10;
dwno
= 5;
amount = 45;
error = db_read(dbno,dwno,&amount,buffer);
:
error = unload_tool();
:
Toolbox for Data Link PGs/PCs to SIMATIC S7
28
PRODAVE S7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents