I am using VB.NET for communicating with a Siemens plc. In most cases use of the client function DBRead succeeds, but sometimes it returns a huge value (e.g. the last time I received 3145728 as return value). Meanwhile I have extended my vb.net code by the function Client.ErrorText(Return_value) in order to to get a clearer message, but I have not run it yet.
I have to mention that I call DBRead immediately after calling DBWrite related to the same DB and DW, so the same adress. Is it possible that I have to wait a little bit before I re-read the DB after I have a written to it?
I am using VS 2017, .NET Framework 4.6.1 and the snap7.net.dll version v4.0.30319.
Many thanks in advance for possible tips and advices!
Regards,
Marco
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello developers,
I am using VB.NET for communicating with a Siemens plc. In most cases use of the client function DBRead succeeds, but sometimes it returns a huge value (e.g. the last time I received 3145728 as return value). Meanwhile I have extended my vb.net code by the function Client.ErrorText(Return_value) in order to to get a clearer message, but I have not run it yet.
I have to mention that I call DBRead immediately after calling DBWrite related to the same DB and DW, so the same adress. Is it possible that I have to wait a little bit before I re-read the DB after I have a written to it?
I am using VS 2017, .NET Framework 4.6.1 and the snap7.net.dll version v4.0.30319.
Many thanks in advance for possible tips and advices!
Regards,
Marco