I am using a H2ECOM with the SDK. I am talking to a system with a D2-250-1 CPU. I read a 28 word block of vmemory and write a 18 word block of vmemory in a continuous update cycle from a PC.
I do the read with HEICCMRequest a single read, followed by a single write:
[simplified code with error handling and other details removed]
for ( ; ; )
{
s = HEICCMRequest (&device, FALSE, 0x31, rstart + 1, 2 * nr, (BYTE *) rblock);
s = HEICCMRequest (&device, TRUE, 0x31, wstart + 1, 2 * nw, (BYTE *) wblock);
[there is also code to check the return value s on each call, not included here]
SleepEx for 100 MS
}
[I also tried sleeping 50Ms between the 2 HEICCMRequest calls]
My reads & writes don't fail, but my update rate is slow. It takes 1 - 3 seconds for the
PLC to see the data changes. I would like to see the data in 100 to 500 miliseconds.
I am not using the card for any other purpose at the same time (I.E. there is no I/O to it in my ladder).
Is there a better way to get a faster update cycle ?
What kind of throughput can I expect from the H2ECOM ?
whold a H2ECOM100 give me more throughput ?
Is there some luckey number of words the card transfers per PLC scan ?
Which is better, K-Sequence or DirectNet ?
I also want to know about throughput when using a 06 PLC with a H0-ECOM.
[some of my smaller systems use this configuration]
Keith