Host Engineering Forum

General Category => ECOMs and ECOM100s => Topic started by: tim s on September 22, 2016, 04:41:14 PM

Title: ECOM Communication With Java Application
Post by: tim s on September 22, 2016, 04:41:14 PM
Hello,
I am building a PC based HMI system that utilizes a DL06 PLC and it has the H0-ECOM ethernet card installed. I have the PLC setup and I can send UDP packets to it, but I can't connect to it via TCP through the Java application. I am trying to connect via a socket and was kind of expecting that there is listening TCP port (28784) on the ECOM card but for some reason its not working. I have checked my firewall and allow both tcp and udp 28784.

What else am I missing? I appreciate your responses.
Title: Re: ECOM Communication With Java Application
Post by: BobO on September 22, 2016, 10:20:46 PM
ECOM only speaks UDP. What are you trying to do via TCP?
Title: Re: ECOM Communication With Java Application
Post by: tim s on September 26, 2016, 11:33:16 AM
Thanks Bob. I wasn't sure if the ECOM understood TCP or not. I wanted to use TCP just to make sure packets were sent and received by the ECOM.
Title: Re: ECOM Communication With Java Application
Post by: Greg on September 26, 2016, 04:02:48 PM
FYI, the H0-ECOM100 (not the H0-ECOM) understands Modbus TCP, but not raw TCP.
Title: Re: ECOM Communication With Java Application
Post by: BobO on September 26, 2016, 06:15:01 PM
Thanks Bob. I wasn't sure if the ECOM understood TCP or not. I wanted to use TCP just to make sure packets were sent and received by the ECOM.

I have never been a fan of trusting something buried in a stack that I can't control, so we crafted all of our protocols to expose the timeout and retry mechanism. We do support TCP where required (Modbus/TCP, email, etc), but our programming protocol is strictly UDP.