SIEMENS AG PRODAVE S7
Toolbox for Data Link PGs/PCs to SIMATIC S7
58
This program supplies the English error text for an error number. For instance,
if data block 10 did not exist in the PLC, the error message "Block not available"
or "Baustein nicht vorhanden" would be entered in the “message” variable.
C-Adapter
#include <komfort.h>
#include <w95_s7.h>
int buffer[100];
int error;
int amount;
char message[100];
:
:
error = error_message(0,"error.eng");
:
amount = 45;
error = db_read(10,5,&amount,buffer);
if (error != 0)
error = error_message(error,message);
:
error = unload_tool();
:
: