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

NBS.TCP_Read Function Block
https://forum.codesys.com/viewtopic.php?f=11&t=9807
Page 1 of 1

Author:  ph0010421 [ Wed Jun 12, 2019 1:50 pm ]
Post subject:  NBS.TCP_Read Function Block

Hello
I'm using the 'Network' library from Utils to create a TCP Client.

Everything is working (open/send/read) except the 'xDone' flag in the TCP_Read FB is never set, and the 'szCount' output is always zero.

I am actually receiving data, though.

Any ideas?

ph

Author:  e.kislov [ Thu Jun 13, 2019 4:40 am ]
Post subject:  Re: NBS.TCP_Read Function Block

I think after receiving data you get TRUE in xReady flag and valid value in szCount for only one PLC cycle (so you can not see this in monitoring, only with breakpoints).

Author:  ph0010421 [ Thu Jun 13, 2019 8:16 am ]
Post subject:  Re: NBS.TCP_Read Function Block

You are right :D
Thanks for the help; have a good day!
ph

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