News:

  • October 16, 2026, 01:48:04 PM

Login with username, password and session length

Author Topic: TCP IP help  (Read 9002 times)

Antonio12345

  • Newbie
  • *
  • Posts: 3
TCP IP help
« on: July 21, 2021, 09:16:22 PM »
Hello,
I have an application where im using packetsender to send packets of data to Industrial PC, i have to send 2 messages within 1 sec apart
Is it posiible to use a do-more plc do do this? i have to send them to a specific ip address and port with tcp method.
see packet sender example below.



 

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6177
  • Yes Pinky, Do-more will control the world!
Re: TCP IP help
« Reply #1 on: July 22, 2021, 10:01:01 AM »
Hello,
I have an application where im using packetsender to send packets of data to Industrial PC, i have to send 2 messages within 1 sec apart
Is it posiible to use a do-more plc do do this? i have to send them to a specific ip address and port with tcp method.
see packet sender example below.

Yes, easily.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Antonio12345

  • Newbie
  • *
  • Posts: 3
Re: TCP IP help
« Reply #2 on: July 23, 2021, 08:24:36 AM »
Hello BobO,

Should I use the streamout or pocketout instruction, attached is a copy of the small program,
Should I open a TCP connection every time I send something out?  and do i need to close the connection?
Thanks in advance.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6177
  • Yes Pinky, Do-more will control the world!
Re: TCP IP help
« Reply #3 on: July 23, 2021, 12:51:59 PM »
PACKETOUT is UDP, STREAMOUT is TCP.

You can keep the connection open and send more. When you are done sending, close the connection.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Antonio12345

  • Newbie
  • *
  • Posts: 3
Re: TCP IP help
« Reply #4 on: July 23, 2021, 09:36:57 PM »
Hi BobO,

Thanks for the help, I got it working now!!!!