EasyManua.ls Logo

Siemens SIMATIC S7 - 3.2 Digital Outputs and Comparator Channel

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
24
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 PG/PC as an ASCII string zero-terminated.
The issue levels must be interpreted as integer values, the MLFB numbers as
ASCII values:
buffer[0] - buffer[1]: Integer value issue level PLC
buffer[2] - buffer[3]: Integer value issue level PGIF
buffer[4] - buffer[24]: MLFB of connected PLC
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 (mini)
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();
:

Table of Contents

Other manuals for Siemens SIMATIC S7

Related product manuals