Hi,
I encountered a strange error, I couldn't understand the behavior. I wrote a C# program to connect s7-1200 cpu1211c and read the DBs. Software reads the DBs every 5 seconds. There is no problem here. After a while, I couldn't say how much time, changing from a couple of hours to a couple of days, the software stops reading the DBs, even if I restart the software. It couldn't read the DBs anyway. But when I run the TIA portal and go online (no stop/run o or any other thing, just go online), my program starts to read the DBs.
Could you explain this behavior.
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Never happened to me.
Do you connect/read/disconnect every time ?
Ara you completely sure that you don't have some memory/resource leak ?
Since the CPU handles different connections a time, could you write a tiny (as small as possible) program : connect and read on a timer event to see what happens ?
regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Indeed, the software is communicating with two PLCs, the other is a 1214c PLC and there is no error in that, even if the other stops. I am using it for months. I couldn't describe the problem, it's between CM1241(RS232) -- PLC or PLC-PC ? The data is filled by CM1241 by the way.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I encountered a strange error, I couldn't understand the behavior. I wrote a C# program to connect s7-1200 cpu1211c and read the DBs. Software reads the DBs every 5 seconds. There is no problem here. After a while, I couldn't say how much time, changing from a couple of hours to a couple of days, the software stops reading the DBs, even if I restart the software. It couldn't read the DBs anyway. But when I run the TIA portal and go online (no stop/run o or any other thing, just go online), my program starts to read the DBs.
Could you explain this behavior.
Thanks
Never happened to me.
Do you connect/read/disconnect every time ?
Ara you completely sure that you don't have some memory/resource leak ?
Since the CPU handles different connections a time, could you write a tiny (as small as possible) program : connect and read on a timer event to see what happens ?
regards
Indeed, the software is communicating with two PLCs, the other is a 1214c PLC and there is no error in that, even if the other stops. I am using it for months. I couldn't describe the problem, it's between CM1241(RS232) -- PLC or PLC-PC ? The data is filled by CM1241 by the way.