I have a strange problem with writing counters: When tryin to write to the plc using
result = daveWriteBytes(m_dc, daveCounter, 0, start, 2, temp);
I always get an error. If "start" is less than 8 (i. e. C 0 - C 7/Z 0 -Z 7), I get "Write data size error". Otherwise, I get "the desired address is beyond limit for this plc".
All other types of "area" work just fine. I'm also able to read counters from the plc without any problems.
Is there something I forgot or a reason for why I cannot write counters to the plc? Does anybody have the same problem?
I'm using a Simatic 315 CPU connected over TCP/IP. The C++ program is written under MS Visual Studio 2005.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a strange problem with writing counters: When tryin to write to the plc using
result = daveWriteBytes(m_dc, daveCounter, 0, start, 2, temp);
I always get an error. If "start" is less than 8 (i. e. C 0 - C 7/Z 0 -Z 7), I get "Write data size error". Otherwise, I get "the desired address is beyond limit for this plc".
All other types of "area" work just fine. I'm also able to read counters from the plc without any problems.
Is there something I forgot or a reason for why I cannot write counters to the plc? Does anybody have the same problem?
I'm using a Simatic 315 CPU connected over TCP/IP. The C++ program is written under MS Visual Studio 2005.