CODESYS - the IEC 61131-3 automation software
https://forum.codesys.com/

byte count with NBS UDP receive
https://forum.codesys.com/viewtopic.php?f=21&t=6918
Page 1 of 1

Author:  suibaf [ Wed May 11, 2016 4:14 pm ]
Post subject:  byte count with NBS UDP receive

Hi,
UDP communication with raspberry pi2 work fine, but I need to count byte in input. There is szCount variable, but it remain to zero.
Can I do something?
BR

Author:  Edwin Schwellinger [ Thu May 12, 2016 7:22 am ]
Post subject:  Re: byte count with NBS UDP receive

Hi,
could you give this a try and
and you need to wait till xReady = TRUE, after that data's are valid and szCount should be <> 0.


BR
Edwin

Author:  suibaf [ Fri May 13, 2016 10:29 am ]
Post subject:  Re: byte count with NBS UDP receive

Hi,
as you advice me I tried but the result is the same. No change.
BR

Author:  suibaf [ Tue May 17, 2016 9:13 am ]
Post subject:  Re: byte count with NBS UDP receive

Please,
can you say me something?
BR

Author:  suibaf [ Tue Sep 13, 2016 3:21 pm ]
Post subject:  Re: byte count with NBS UDP receive

Edwin, the time pass but the problem remain? Can you tell me somethink abut this problem?

Author:  Edwin Schwellinger [ Tue Sep 13, 2016 10:42 pm ]
Post subject:  Re: byte count with NBS UDP receive

Hi,
Could you attach your project to check?
BR
Edwin

Author:  suibaf [ Wed Sep 14, 2016 8:05 am ]
Post subject:  Re: byte count with NBS UDP receive

Sure.
https://dl.dropboxusercontent.com/u/152 ... ectarchive
Please, let me know.
BE

Author:  Edwin Schwellinger [ Fri Sep 16, 2016 6:58 am ]
Post subject:  Re: byte count with NBS UDP receive

Hi,

if you Change FB_UDP_RECEIVE.xDone to FB_UDP_RECEIVE.xReady in Network 4 it should work

BR
Edwin

Author:  suibaf [ Thu Sep 22, 2016 11:40 am ]
Post subject:  Re: byte count with NBS UDP receive

It work Edwin.
Thank you!

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/