Has anyone worked with WAGO My_SQL.lib. I am facing an error while using this lib..
16#80001006 => 'TCP-ERROR: "SysSockSend()" returns 0. Socket was "gracefully closed"'
In your reply, you told me this
I have attached my PLC code and I want some suggestions from all of you to overcome this error
Sql_Stat.sq1.....This signal is updated in another POU Sql_Stat where SQL Statement is made
Start_Sql signal is coming from PLC_PRG POU. This signal becomes one once PLC is connected to DB
Sql_stat.start_execute ....becomes TRUE if PLC is connected to DB...
SQL_Stat POU is being controlled by task which runs after every 30 sec. I am uploading the data after every 30 sec...
I am facing the same error after an hour or two once PLC is connected to DB. Blink block produces pulse train with on time = 1 sec and off time = 30 sec..
once this error occurs, then even after 30 sec when the new pulse comes, data is not uploaded.
Please provide me some suggestions and way to improve this code.
16#80001006 => 'TCP-ERROR: "SysSockSend()" returns 0. Socket was "gracefully closed"'
In your reply, you told me this
I have attached my PLC code and I want some suggestions from all of you to overcome this error
Sql_Stat.sq1.....This signal is updated in another POU Sql_Stat where SQL Statement is made
Start_Sql signal is coming from PLC_PRG POU. This signal becomes one once PLC is connected to DB
Sql_stat.start_execute ....becomes TRUE if PLC is connected to DB...
SQL_Stat POU is being controlled by task which runs after every 30 sec. I am uploading the data after every 30 sec...
I am facing the same error after an hour or two once PLC is connected to DB. Blink block produces pulse train with on time = 1 sec and off time = 30 sec..
once this error occurs, then even after 30 sec when the new pulse comes, data is not uploaded.
Please provide me some suggestions and way to improve this code.