Ag_Info; Toolbox For Data Link Pgs/Pcs To Simatic S7 - Siemens SIMATIC S7 Operating Instructions Manual

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

ag_info

The function ag_info reads the issue level of the PLC software and the PG
interface as well as the MLFB number of the PLC and stores them in a storage
area
of
the
The issue levels must be interpreted as integer values, the MLFB numbers as
ASCII values:
buffer[0] - buffer[1]:
buffer[2] - buffer[3]:
buffer[4] - buffer[24]:
If there were no errors, the function supplies 0 as the return value, otherwise an
error message which can be evaluated in accordance with the error table (see
error_message).
See also ag_zustand
C-Adapter
int
ag_info (void * buffer);
Example:
The issue levels of the PLC software, the PG interface as well as the PLC type
are read.
C-Adapter
#include <w95_s7.h>
int
error;
adr_table_type plc_adr_table[2] = { {2,0,2,0},{0,0,2,0} };
#pragma pack(1)
struct {
unsigned short plcas
unsigned short pgas;
char
mlfb[21];
} info;
#pragma pack()
:
error = load_tool(1,"S7ONLINE",plc_adr_table);
:
error = ag_info(&info);
:
error = unload_tool();
:

Toolbox for Data Link PGs/PCs to SIMATIC S7

PG/PC
as
an
Integer value
issue level PLC
Integer value
issue level PGIF
MLFB of connected PLC
24
ASCII
string
zero-terminated.
PRODAVE S7
(mini)

Advertisement

Table of Contents
loading

Table of Contents