how to pass data to SQL from Beckhoff PLC

S

Thread Starter

sid

Hello,

In my current project I have to connect real time data from Beckhoff PLC to tables in SQL sever database. I am not able to do that based on Beckhoff database blocks that they provide or through their tech support. Can anybody please help and guide me on how I can attach real time data from Beckhoff PLC to SQL server database.
 
Depending on how you define real time, an SQL database is not capable of real time storage.

Several times I have stored data from TwinCAT in an SQL Server by writing a .NET application that retrieves data from TwinCAT and stores it in the database. I would use the NT_StartProcess function block in TwinCAT to launch the application. This technique works in batch applications where process data is stored in an array in TwinCAT, then retrieved by the application at the end of the batch.
 
Top