SIEMENS AG PRODAVE S7
Toolbox for Data Link PGs/PCs to SIMATIC S7
65
Example:
A remote station is called. If the connection to the TS adaptor has been
established this is followed by the connection of a controller connected to the
TS adaptor:
C-Adapter
#include <w95_s7.h>
#pragma pack(1)
#pragma pack()
char * ModemName = "Standardmodem";
char * Standort = "Standardstandort";
char * TelNo = "+49 00911 8957101";
char * UserName = "ADMIN";
char * Password = "admin";
int error;
:
:
error = ts_dial(ModemName,Standort,TelNo,
UserName,Password,NULL,0,0,NULL);
if (error == 0)
{
error = load_tool(...);
:
:
:
error = unload_tool();
error = ts_hang_up_dial();
}
:
: