Archie
Member
After months of tossing around the idea and looking at ways to do acheive it, this week I put in production a PLC that stores its hostorical data directly to a SQL server. And when I say directly I mean directly, no SCADA, no HMI, no PC. Just the PLC and a back office SQL server. And it was done with a PLC that cost less than $1500 including the IO. The PLC is a Beckhoff CX1000.
The CX1000 is based on windows CE operating, which allows a VB.NET application to be put on the controller and the control program has a function block that can launch the application.
I accomplished the data trander by having the control logic launch the VB app on the controller when the batch is done. The VB app then reads all the data, writes it to the SQL server, sets a bit in the control logic to indicate data is stored, and then the app closes itself.
The VB app is only about 20 lines of code, which took me less than an hour to write.
Has anyone else found other ways to acheive a direct transfer of data from the PLC to a database?
The only other solution I have found so far, is based on the AB Control Logix platform. It is a card dedicated to writing data to a SQL server. The card by itself is a $10,000 item!
The CX1000 is based on windows CE operating, which allows a VB.NET application to be put on the controller and the control program has a function block that can launch the application.
I accomplished the data trander by having the control logic launch the VB app on the controller when the batch is done. The VB app then reads all the data, writes it to the SQL server, sets a bit in the control logic to indicate data is stored, and then the app closes itself.
The VB app is only about 20 lines of code, which took me less than an hour to write.
Has anyone else found other ways to acheive a direct transfer of data from the PLC to a database?
The only other solution I have found so far, is based on the AB Control Logix platform. It is a card dedicated to writing data to a SQL server. The card by itself is a $10,000 item!