EasyManua.ls Logo

Siemens SIMATIC S7 - As200_Ag_Info

Siemens SIMATIC S7
82 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
Loading...
SIEMENS AG PRODAVE S7
Toolbox for Data Link PGs/PCs to SIMATIC S7
41
as200_ag_info
This function reads the issue level of the PLC software and the PC interface as
well as the type of PLC and stores them in a storage area of the PG/PLC as an
ASCII-String zero-terminated.
The issue levels must be interpreted as integer values, the PLC types as ASCII-
values:
buffer[0] - buffer[1]: integer value issue level firmware
buffer[2] - buffer[3]: integer value issue level Asic
buffer[4] - buffer[24]: PLC-type
If there were no errors, the function supplies a 0 as the return value, otherwise
an error message which can be evaluated in accordance with the error table
(see error_message).
Siehe auch as200_ag_zustand
C-Adapter (mini)
int as200_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 = as200_ag_info(&info);
:
error = unload_tool();

Table of Contents

Other manuals for Siemens SIMATIC S7

Related product manuals