Update, I changed the port number of the scale to 32049, because I cannot give in a higher port number in the TCP config protocol. Then I start using the TCP config protocol and this works convenient to build the string to sent.
Attached the test program. Anyway It seems that we miss one scan cycle. If you see the picture attached you see that the number of TX is not the same as the number of RX. In this case if I do one manual scan (M91) they become equal, I 'm able to read data again and then they are equal. I thought it needed a delay between the sent and scan function, there for a changed to a negative edge to start the scan function. Anybody an idea?
Is it a problem to do a scan every cycle (keep scanning)?
V1210 com test2.vlp
I'd first be breaking your nets up a bit, and then getting rid of timer usage. For me there is too much going on in each rung. I didn't delve deeply, but it's possible that you're actually asking for 2 scans, that might occasionally be missed due to miniscule time differences.
In addition to my previous email. I tried the Protocol TCP/IP. I cannot add the portnumber 50001, cannot go higher than 32767 (16bits).
regards,
Gerard