Knowledge Base Nr: 00059 s7_linux.cpp - http://www.swe-kaiser.de
Downloads:
Linux: siemens s5/s7 anbindung
mit rk512_server/rktcp_server von www.emig-software.de
und siemens cp oder seriell-MPI-adapter
#ifndef _h_s7lib_h
#define _h_s7lib_h
extern "C"
{
int s7lib_init();
int s7lib_exit();
int s7lib_write(unsigned short nCPUNr, unsigned short nDBNr, int nDWNr, unsigned short nValue);
int s7lib_read(unsigned short nCPUNr, unsigned short nDBNr, int nDWNr, unsigned short* pValue);
const char* s7lib_getErrorText(int nErr);
}
#endif /*_h_s7lib_h*/