4/29/2015 10:38 PM | |
Posts: 16 Rating:
|
Hi, am I allowed to ask similar question here? This is using Step7 V5.5 w/ S7300 PLC and CP 343-1 Communications are set up for passive TCP/IP with CP enabled for SEND/RECV My application data has different packet lengths depending on the purpose of the data. For example: - User program processes bytes to find data length (in this case 668), puts this length in the next FC6 call. - FC6 receives 668 bytes. - User program now has full telegram. - User program sets FC6 length back to 44 bytes in anticipation of next telegram - FC6 status = W#16#8081 until next telegram arrives This procedure I've outlined above WORKS the first time, and only that one time.
Just one extra detail. When I mention "set FC6 length", I really mean assign length to a common ANY pointer. I am using the same any pointer to call FC6 with, just changing "count" and "address" fields depending on where received data should go. "header" - address = P#myHeader "packet 1 data" - count = 668 - address = P#myPacket1
---------------------------------------------------------------------------------------------------- |
Last edited by: Min_Moderator at: 4/30/2015 3:36:43 PMNew subject after splitting |
|
4/30/2015 7:46 PM | |
Posts: 16 Rating:
|
I've tried using multiple calls of FC6 and I still have this issue. Any ideas are greatly appreciated, thanks- |
5/27/2015 4:45 PM | |
Posts: 16 Rating:
|
Maybe is important detail that I am always calling AG_RECV. I never jump past the call. The portion of code attached above is always processed, every scan. |
Follow us on