Host Engineering Forum

General Category => ECOMs and ECOM100s => Topic started by: jamesh on November 14, 2014, 12:40:09 AM

Title: H4-ECOM100 Modbus Master Not Communicating
Post by: jamesh on November 14, 2014, 12:40:09 AM
Hi,

I have a DL450 PLC fitted with an ECOM100 card that is set up as a Modbus master.
I am using a Modbus simulator on my computer to act as the slave however I am not getting any requests from the PLC.
When I monitored the communication with wireshark it is picking up TCP packets from the ECOM but is not identifying them as Modbus.

(https://forum.hosteng.com/proxy.php?request=http%3A%2F%2Fi1335.photobucket.com%2Falbums%2Fw672%2Fneophyte6%2F14-11-20141-24-24PM_zpsa10e1034.png&hash=eec110d7952d51d91e2ac6a00d3ba75ec740bfa3)

The peer to peer settings are:
(https://forum.hosteng.com/proxy.php?request=http%3A%2F%2Fi1335.photobucket.com%2Falbums%2Fw672%2Fneophyte6%2F14-11-20141-36-21PM_zps35de8d4a.png&hash=f155d6ec18f5824e913be6b23b892b1e5fcd0155)

PLC Code:
(https://forum.hosteng.com/proxy.php?request=http%3A%2F%2Fi1335.photobucket.com%2Falbums%2Fw672%2Fneophyte6%2F14-11-20141-36-44PM_zpsa4555cf6.png&hash=ba6d82180f11db28dcbfc487d00744196c02ea08)

Any help with this will be appreciated.
Title: Re: H4-ECOM100 Modbus Master Not Communicating
Post by: Controls Guy on November 14, 2014, 01:26:44 AM
I think you have to have another Ibox ahead of the ECWX in ladder to set up the module.  "ECOM100" I think?  There's also a dip switch or something to physically set on the ECOM100 as well IIRC.
Title: Re: H4-ECOM100 Modbus Master Not Communicating
Post by: jamesh on November 14, 2014, 01:40:24 AM
I have an ECOM100 box at the top of the ladder.
Dip switch 7 is apparently only required for advanced comms such as email, I switched it on anyway.
Title: Re: H4-ECOM100 Modbus Master Not Communicating
Post by: Greg on November 19, 2014, 04:33:42 PM
jamesh, according to the picture you posted, the ECOM100 is sending out TCP synchronization telegrams but not getting any reply from your PC?

Thus, the ECOM100 looks like it cannot establish a TCP connection with your PC.
Title: Re: H4-ECOM100 Modbus Master Not Communicating
Post by: jamesh on November 19, 2014, 07:21:56 PM
Thanks Greg,

It turns out it was a problem with my computer. Curiously the Modbus emulator I am using is able to act as a Client to the ECOM but not as a Server on my Windows 7 machine. I managed to get it to act as a Server on the Windows XP virtual machine. Another thing I noticed is when reading multiple coils the requests will only go to word offsets regardless of the setting of the Slave Element i.e. you can only read coil addresses starting at 1, 17, 31 etc.