QT with PLC Hardware and Automation



  • Hey Guys,

    Do you know if there are any libs to communicate with rockwell and siemens PLC's (programmable logic controllers)? If not QT specific lib it can be C++ too.

    Thanks.



  • Are you looking for a component that can simply access variables in the PLC with get/sets or something more advanced where you could link variables to UI-widgets and have them updated on th UI online as in most control room apps?

    I believe the latter would require having support for update events etc. and therefore requires the support of the PLC manufacturer as the updates would be initiated by the PLC. I have done this with Beckhoff but I'm not sure how easy (or expensive) it is with Siemens or A&B.

    Accessing Siemens DBs can be done easily over a socket connection. For A&B you need an OPC-connection. At least that's how it was done in my previous job.

    This sounds like a good idea for an open source project!!!



  • At first yes, I'm looking for component to access variables, today my friends use VB (with the lib for siemens / rockwell) so he just create's an object, create the variables at the ini file and them he can read the values to the IHM. I will be working with him and I want to go for QT, VB is slow and to make a nice interface takes too much time and effort, looking forward for some good looking IHM and I don't like C#.

    Siemens over a socket connection? Do you have any sample codes or documentation?
    Is there a working OPC-connector for QT / Rockwell already implemented?

    Thanks for the help!



  • you can use QTcpServer and QTcpSocket classes to recieve and write data from and to the plc.i have tried this with siemens s7-1200 and it works perfectly. use TCON ,TRCV and TSEND functions in tia portal to interface with qt.



  • you can use QTcpServer and QTcpSocket classes to recieve and write data from and to the plc.i have tried this with siemens s7-1200 and it works perfectly. use TCON ,TRCV and TSEND functions in tia portal to interface with qt.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.