8/20/2019 12:28 PM | |
Posts: 8 Rating:
|
Hello guys, I'm using the AG_RECV_TCP_xVAR function - which I got from an earlier topic - to receive a variable size message from a printer. I did some testing with this function and everything seemed to work fine. When I send data to the printer I get a response and I can read the data. So far so good. Now I'm at the point to implement the software in the live system and a problem is showing up. When I request data from the printer (13 bytes) it takes about a second to receive all the bytes. I cracked open the AG_RECV_TCP_xVAR function to see whats going on and I think the function is not working well in my situation. Although I set the parameter "MAX_LOOP" to 10 it will only read one byte per scan instead of 10 bytes. Since the cycle time is about 80ms it takes 80ms*13bytes=1040ms to receive a complete message. Thats way too slow since I need to send/receive every 200ms. Is my PLC too fast or is the communication between the CPU en CP too slow? What could be the problem? System Information: Kind regards, Bas |
Last edited by: Jen_Moderator at: 08/21/2019 08:09:24Optimized link. |
|
Follow us on