Sign in to follow this  
ethushara

Ethernet Communication With An External Hmi

Recommended Posts

Hi Admin, I have an Ethernet network with 3 HMIs (touch screens) in my hydro power project. the data in those HMIs can be shared within themselves via this Ethernet network via an Ethernet switch. Now I need to connect my PC to their switch to get those data for monitoring as well as controlling via ethernet. Daqfactory pro is already installed in the PC. Is this possible? then please let me know the procedure. Thanks, thushara.

Share this post


Link to post
Share on other sites

Maybe. I'd need to know a lot more about the screens, such as what protocol they are running. Best would be the exact model #'s. Ethernet is just the transport layer, much like a telephone line. Your question is a little like asking me if I could understand a conversation between two people that happen to be using satellite phones somewhere in the world. Sure, I might be able to connect into the satellite link, but that doesn't mean I'm going to understand the language (protocol) they are talking.

Share this post


Link to post
Share on other sites

thanks for prompt reply.

I can understand the situation. For the moment I cannot make the link even. it comes socket error 10060/61. The protocol is Modbus TCP. The HMI is made in china. Brand name WECON. product model - LEVI 908T with Ethenet and CANbus cards. weblink http://www.we-con.co...274&infoid=1310

Below is the link for the docs published by WECON to for Ethernet connection among HMIs.

Please download the the application of Modbus TCP in human machine interface

http://www.we-con.co...id=478&Pageno=2

For any further details please feel free to ask

thanks

thushara.

Share this post


Link to post
Share on other sites

This page: http://msdn.microsoft.com/en-us/library/windows/desktop/ms740668(v=vs.85).aspx lists all the socket error codes. My guess is either you have the panel set as the Modbus master (DAQFactory should be the Master, the panel should be the slave), you have the wrong port (it should be 502), or you have another device connected to the panel and the panel only supports one connection at a time.

Share this post


Link to post
Share on other sites

Hi,

now no errors comes. I connected the HMI directly to the PC not via a switch.I have set a static IP in the PC. first I hoped to get result on this and then can go for a network. then I can ping the HMI from PC and now no errors displayed. But I set the master as the HMI. so it should be changed according to you. and I need to know the other settings in the device configuration in the DAQFactory.

I made a TCP client and set the Ethernet configuration. Put HMI IP under IP address and port as 502. but nothing in the monitoring area. and I just tried to send some integer. then says port busy.

So please let me know how to set the device configuration correctly and comment on what I did. And if any other things to do.

thanks,

thushara.

Share this post


Link to post
Share on other sites

HMI should be the slave, not the master. If its the master than DAQFactory can't connect to it. Instead the HMI would have to connect to DAQFactory and that won't work as well. That's why you are getting the port busy: DAQFactory can't establish a socket because the HMI doesn't have a socket to connect to because it thinks it is the master. Make the HMI the slave.

Share this post


Link to post
Share on other sites

Thanks for your replies. I changed the HMI as tcp slave. But no good news. So could you please let me know the settings in Device configuration. then I can try again. because I made several tries here with new Ethernet sever and new Ethernet (TCP) client under Ethernet/serial device configuration.

thanks again

thushara.

Share this post


Link to post
Share on other sites

First, restart DAQFactory with a fresh document so you are starting clean. Then you want a new Ethernet client, IP = IP of device, Port = 502, Timeout = 1000. Select the ModbusTCP for the protocol. Save, then create a channel with this new device. I don't know what the register will need to be specified. The docs you pointed to are for the HMI as the master. Most likely D# will be 1.

Share this post


Link to post
Share on other sites

Hi,

thanks a lot for your support. now the communication is ok. now I can monitor the HMI masters data in the HMI network via Ethernet cable as well as via wifi signals.

thanks again,

thushara

Share this post


Link to post
Share on other sites

I'm not quite sure what you are asking. DAQFactory doesn't care whether you are connected over Ethernet cable or WiFi. All it needs is an IP address it can reach. The rest is a question for your IT people.

Share this post


Link to post
Share on other sites

Hello, goodnight i have proyect for measuring level and temperatura for thanks.

 

I use endress and hausser wireless sensors and fieldgate, with modbusTCP protocol.

 

I need read signals in daqfactory in two diffrents compures in two places, the computers is conect in network by etherneth and olnly one read values and other no

 

You know what happen?

Share this post


Link to post
Share on other sites

Its probable that the devices only support one connection at a time.  Try turning off DAQFactory on both computers, then starting the second computer first.  See if whichever DAQFactory you start first is the only one that gets data.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this