tkamrath
Member
I am reading data from a Siemens 315 2PN/DP using libnodave. I am using the built in ethernet port. When I read a small block of data (less than a packet) from the PLC something is happening so that I get the same data for 3 or four reads in a row. Then it gets an update. So I have 4 or 5 sucessive reads that are the same when they should be different. This happens over and over again so my data has a stair step in it. I am reading this block of data every 50 msec. When I do this with a Siemens 1200 I don't see this problem. Anyone have any ideas as to what could be causing this? I have narrowed it down to either libnodave or the PLC. Either the PLC is not updating the data to me at a rate faster than 50 msec or something is happening in the libnodave layers that is causing the buffer to not be updated so I get the same data on each read. Any ideas would be a big help. thanks.