documentation plcqtlib
Vincenzo D'Agostino (vindagos@gmail.it) 2013.
Plcqtlib is free software, you can redistribute it and / or modify
under the terms of the GNU General Public License as published by
Free Software Foundation, either version 2 or higher.
Plcqtlib was developed taking as a reference the library
Libnodave http://libnodave.sourceforge.net/ version 0.8.5
Plcqtlib is NO WARRANTY, not even a guarantee for the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Plcqtlib is a library that facilitates the connection with the Siemens plc by exploiting the network ethernet.
Funzione the library: (read the documentation included with the software).
Plcqtlib provides an easy way to access data stored in the PLC Siemens S7-200 family, S71200, S7300, S7400 and Logo 0BA7.
The library has been developed with the
QT version 4.8.x and 5 http://qt-project.org/ using parts of known Libnodave http://libnodave.sourceforge.net/ version 0.8.5
The library has been successfully tested with the following plc: S7300 - S7400 Logo 0BA7.La library has not been tested on S7200 and S71200, however, by setting the exact parameters in the function int setPlc (mpi int, int rack, int slot, QString plctype) there should be no problems in its operation .
The library has not been tested on S7200 and S71200, however, by setting the exact parameters in the function int setPlc (QString plctype,int mpi, rack int, int slot) (see documentation) there should be no problem in its functioning.
The data exchange can be performed through the following memory areas.
S7300-400-1200 : Area db , area M , area In , area Out.
S7200 : Area V , area M , area In , area Out.
Logo 0BA7 : area V , area M , area In , area Out.
License: Plcqtlib is free software licensed under the GPL and LGPL.
Platform of use:
Plcqtlib is currently available for Win32 and Linux. It comes with Windows and linux pre-compiled libraries.
Download : http://sourceforge.net/projects/plcqtlib/
How to use :
Plcqtlib *conplc;
conplc = new Plcqtlib();
conplc->setTcp("121.13.1.112",102);
conplc->setPlc("s7300"2,0,2);
datoint = conplc->getDbInt(4,0);
datoreal = conplc->getDbReal(4,6);
QBitArray bit;
bit = conplc->getBitArray("DB",4,16,16);