How to implement Modbus Ethernet communicat​ion in Lookout, if we want to simulate the PC as PLC ?

Problem Description :
Dear Sir,
We are doing a project where we are using Lookout with
Front end Modicon PLC. The communication is by
Ethernet, using Modbus.
Since the installation is at a distant place, we wanted
to use another PC (running Lookout) to simulate the
PLC. For this, we tried to communicate
a: the server Lookout PC running Modbus Ethernet mode of
Modbus object as Master
b: with another PC (for simulating the PLC) running
Modbus Slave
We did not get any communication. (we have given the
details of what we have done, at the end of this email)
We also tried connecting the above 2 PC's as
a: the server Lookout PC running Modbus Serial mode of
Modbus object as Master
b: with another PC (for simulating the PLC) running
Modbus Slave object
Again we did not get any communication.
If instead of PC (b) we connect the Modbus simulator to
PC (a), there is no problem in communicating
Please let us know how to go about establishing the
communication between 2 PC's using Modbus serial,
and Modbus Ethernet. A detailed step by step procedure
would help us a lot.
Thanking you
Warm Regards
Raja Mahbubani
Procedure of our trial with ethernet.
This is what we have done in detail.
On PC A:
We created an object (Pot) and connected it to
the modbus data member of the modbus object say 40001. In the
properties of the modbus object we selected modbus ethernet mode
of communication and in the IP address field we wrote the IP
address of the machine B to which we are trying to communicate
i.e. 152.63.50.2.
On PC B: we tried the following two methods
Trial 1 : We created a modbus slave object and
inserted an expression for the same data memeber to which the
object was connected hoping to get the value of the pot of machine
A on machine B.
Trial 2 : We created a modbus object on machine B and we wrote
the IP address of machine A and inserted an expression for the
same datamemeber to which the object was connected hoping to get
the value of the pot of machine A on machine B.
NI Software : Lookout
Version : 4.0.1 or 4.5
OS : Windows 98
NI Hardware : N/A
Drivers : N/A
Other Hardware/Instruments : N/A
CPU : Pentium
RAM : 64
Vendor : S-Tech
Customer Information :
Raja Mahbubani
Theta Controls
IN
[email protected]
Ph: (+91) 20 4222556/7

The ModbusSlave which comes with Lookout currently supports only Serial communication. So, you cannot use Ethernet between your two PCs. At least not with Modbus Master-Slave setup (if you must speak Ethernet between the two PCs, IPASCII object lets you do that, but then you'll need to implement your own protocol).
Since all you want to do is simulate a Modbus PLC on a PC, you can use the Serial mode of communication for now. And later on just modify the Object in your Server Lookout to use the Ethernet mode.
For setting up a Serial Modbus Slave, use a null-modem cable between the two PCs (lines 2 and 3 are swapped). On your PC 'B,' create the Modbus Slave object with the right COM port for that PC. And on your PC 'A' create the regular Modbus Object as if you w
ere connecting to the Modbus Simulator box. The only difference here is the cable. The simulator box uses a straight-through cable whereas the Slave needs a null-modem cable.
Hope this helps.
Rgds,
Khalid

Similar Messages

  • I need help with Modbus Ethernet communicat​ion

    I try to communicate with a Modbus RTU controller with a MOXA Ethernet to RS232 converter. I use DSC module to create a modbus Ethernet driver, and create a list of shared
    variables that are bound to individual addresses in the modbus register.
    I have tried for a long time to make this communication stable, but I lose communication after a couple of hours..
    I read hex values from the controller registers, and they normally is from 100 to 140 depends.. But after a while some of my
    registers drop to zero, and others up to 65408 for instance..  and some digital values hang..
    When I restart my vi, it works again for some hours..
    Maybe it is a communication problem true Ethernet, because I have tested shared variables in other ways, and it works fine..
    I want to know if there is any specific rules how to put up a good way to communicate with my modbus driver true Ethernet.. I have enclosed one of the examples that I tried, and I have also tried to read values directly into while loops, but I lose communication after a while
    Anybody…  please I need help. I would be happy to see a good and stabile way to put up a communication example.. 
    I also tried some of the modbus examples, but I didn't manage it to work.. I use one master controller and one slave, and I use ID 32 for
    the master and ID 01 for the slave..
    Thanks..
    Very best regards from..
    Benji..
    Attachments:
    test37.vi ‏83 KB

    Hi.. and thank's for your answer..
    Yes, I have downloaded and tried the modbus lib before, and it works, but I have to rebuild it to make it work good for my system..
    Maybe that is the way to go..  But I also thought that when I have DSC installed, it would be easier to use that one..
    In the mean time I've did some test's and, I see that the problem maybe is in my modbus gateway..
    Anyhow.. thank's for your answer...
    Regards from Benji..

  • How i implement sending a mail on local system also i want to see these mail as a receiver

    Plz any one tell me ,
    how can i implement sending a mail on local system also i
    want to see these mail as a receiver.
    any suggestion appreciated.
    Regards
    Prashant

    Do some research on setting up an SMTP Mail Server. You need
    one running somewhere on your box or on your network. Your box
    would be 127.0.0.1 your network would be 10.x.x.xxx as given to you
    by your network gurus. You may run into firewall issues also. Port
    is typically 25. The SMTP server (the one that comes with IIS does)
    often has settings to prohibit relays from external sources (CF
    would be considered external). When I first got into this, I didn't
    understand the concepts and tried to get my own IIS supplied SMTP
    server up and running. It never worked (even efter permitting
    relays), most likely due to the Corporate Network and security
    properties and Firewalls etc. When I finally figured all this out ,
    I was able to ask the Network Guru's, "Do we have an SMTP server I
    can access?". Turns out they had something built into or bolted
    onto MS Outlook Exchange Server, they gave me the IP, and presto,
    everything worked as advertised.

  • Ethernet communicat​ion to NU-EP1 laser sensor controller

    We are starting development of a new ATE. I already have a Keyence NU-EP1 controller (http://www.keyence.com/products/sensor/network-com​munication/nu/models/nu-ep1/index.jsp) for 2 laser sensors. It communicates to the PC via Ethernet. I am wondering if I would be able to communicate to this device via a LabVIEW program using VISA functions, since this device does not come with a LabVIEW driver. Or would I have to get the Ethernet/IP Driver, or is this driver included in my LabVIEW full development package? Thank you for the information.

    Sorry to take so long to reply, but I noticed when I tried the Ethernet/IP examples (I am trying the ethernet/IP trial for the driver first) it appeared data was successfully being sent to the device. The sensor controller (NU-EP1) has 4 LED lights as indicators for what is going on with the unit. One of the LED's indicated that data was being seen at the devices end, but then there was an LED to show an error that the EDS file for the ethernet/IP communication to PC was not on the PC. 
    Is there a way to import an EDS file for the controller device, to the PC through LabVIEW (maybe in MAX?) so that the PC can recognize the device? I was playing around with EtherCAT and noticed you can upload an XML in a project for that type of communication. Is there something similiar for an EDS file for ethernet/IP in this instance?
    Thanks!
    Kelsi

  • I am new to the ethernet communicat​ion using labview. I do not have any hardware. I have two laptop i need to send and recieve the data via these 2 laptop using labview. Kindly help me on this.

    i am new to the ethernet communication using labview. I do not have any hardware. I have two laptop i need to send and recieve the data via these 2 laptop using labview. Kindly help me on this.
    Solved!
    Go to Solution.

    Hi thanks for the help.
    Actually i am trying to send 10 sine signals from server pc to client pc. So i will bundle 10 signals in server pc and send it and in client pc i am unbundling it and need to save in TDMS format.
    Till unbundling i was able to do. TDMS format it is saving only last value. I need to save all the values. Kindly help me on same. I am attaching both the VI.
    Attachments:
    Client.vi ‏62 KB
    Server.vi ‏252 KB

  • How do I establish serial communicat​ion using LabView to two stepper motors using a motor controller​?

    I currently use an off the shelf motor controller to run my two stepper motors. It already has integrated a firmware software that sends commands to operate each motor. I would like to create an interface where I can send these commands using LabView. If someone can point me in the right direction I would appreciate it.

    Look at the examples for the serial VISA vi.  Something like Basic serial write and read.vi is a good starting point.
    Have you searched for a LabVIEW driver  at the NI LV driver network?   Asked the vendor?
    If you write your own driver with the serial VISA vis remember to open and configure the port only once at the beginning and close it at the end of your program. 
    Message Edited by Henrik Volkers on 07-13-2009 04:21 PM
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • How can I uninstall my itunes 11.0.4? I want to use the previous version....

    I installed the newest version of Itunes, but i found myself don't like it as much as the previous version...
    so how can I get rid of it and install the previous one? pleaz help ;-(

    Search the forums or check out the "More Like This" section over there ======>

  • HT201272 How do I permanently delete a purchased app - I do NOT want to HIDE the app.  I want it GONE!

    I have an app that does NOT run properly on my iPad2.  My husbnd has the SAME app and his works just fine.  I want the app GONE, I don't want to just "hide" it.  I'd like to redownload the app.  I believe I just got a bad download of the file.  After "hiding" the app and reinstalling it, I still have the same problem... no sound.
    The App I'd like to DELETE/PERMANENTLY remove is the VUDU app.

    You cannot

  • How to implement this need help

    I created a datacontrol for a named query which (using Ejb entity beans) which accepted a employee id and click on find show me the respected employee details in a table.
    case 1: In one single page
    when i added the form consisting of a single text box , button and the table to show the result of the find method in one single page it worked out perfectly,,,
    case 2 : using 2 different pages
    But then i tried adding only the form in one page named page1 and and the table to show the result in another page i.e page2 , Also in the command action of find button of page1 i asked it to redirect to page 2 and show result . But it never showed me any results..
    Question :
    1) How to implement case2 i.e to have a form on one page and the resultant table to be show on another page i.e When users sees first page he adds the employee id in text box and clicks find .The user then needs to be redirected to page2 and the result of search should be shown in table...
    Can anyone guide me over this... ???

    Hi,
    you use a method on the EJB that takes a argument (e.g. the employee ID). You then put the method result set on page 2 (the method argument shall be pointed to a request or session attribute using EL : #{sessionScope.EmployeeId}
    On the search page - when the user hits the search button - you set the attribute "EmployeeId" in the session before navigating to the next page
    Frank

  • How to implement wafer mapping using LabVIEW?

    Hello LabVIEW Masters!
    I am having an incoming project which includes controlling and gathering information from a PROBER. One of the difficulties I am having now is how to implement a WAFER MAP using LabVIEW. According to my customer requirements, the wafer element ranges from 6k to 23k. I guess doing all the element (one die = one led ctl/indicator) will be a hell of a task, especially on how to effectively manipulate each elements. Does anyone have better idea on how to this?
    Please, I badly need your help.. 
    Thanks and Regards,
    Dennis DG
    Solved!
    Go to Solution.

    Hi Dennis,
    Is it okay if you send to me the working VI also?
    No, it's not ok. I made that program for my customer...
    As I am not too familiar in using intensity graph.
    That's no reason to hand over programs for free...
    My customer also request me that if the cursor hover on the wafer map, he wants the x,y corrdinates to be displayed.
    I also have such a feature. Did you notice the little yellow cursor near the center of the wafer? One could easily change that to use a MouseMove event instead...
    He also wants to select some elements in the wafer map and come up with the coordinate values to do some testing.
    That's related to the cursor thing...
    Some points:
    - You have a customer that pays you. Why should I offer work for free?
    - You can send me contact dates of your customer, I will make him an offer...
    - When you take an job to provide software you should be able to code the software...
    - The VI(s) are now some years old. I didn't code so well back those days and don't want to hand out those VIs as they are right now.
    - I included some "license management" deep inside that program, I would have to remove this and spend time on testing afterwards...
    - The VIs are based on the PROBER output format used by the customer. All the file handling has to be changed for/by you...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to implement a connection pooling in servlet

    hi all,
    how to implement a connection pooling in servlet.i want to know how to implement it in tomcat in a struts based environment.
    any input to the topic is appreciated.
    Thanks
    Sudha

    Take a look at JNDI
    http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html

  • How to implement a help feature in iView Tray

    How to implement a help feature in an iView Tray?

    Hi Gregor,
    Could the answer be connected to the class com.sapportals.portal.prt.component.SystemModes ?
    I can't really see how this class is called, but it gives the error message you are talking about
    The method doHelp for SP2 Patch3 is provided below
    public void doHelp(IPortalComponentRequest aRequest, IPortalComponentResponse aResponse)
            IPortalComponentContext context = aRequest.getComponentContext(IPOMConstants.DEFAULT_MODE);
            IPortalComponentProfile profile = context.getProfile();
            String helpName = profile.getProperty("com.sap.portal.iview.HelpName");
            if(helpName == null)
                helpName = profile.getProperty("HelpName");
            String helpURL = profile.getProperty("com.sap.portal.iview.HelpURL");
            String isolationMode = profile.getProperty("com.sap.portal.reserved.iview.IsolationMode");
            if(context != null)
                if(helpName != null)
                    String componentName = context.getComponentName();
                    Locale locale = aRequest.getLocale();
                    String language = locale.getLanguage();
                    String helpPath = "help/" + language + "/" + helpName;
                    IResource resource = aRequest.getResource(componentName, "page", helpPath);
                    if(resource.isAvailable())
                        aResponse.addResource(resource);
                    else
                        aResponse.write("<b>Sorry, no help available.</b>");
                } else
                if(helpURL != null && helpURL.length() > 0)
                    if(helpURL.startsWith("http://"))
                        if(isolationMode != null && isolationMode.equals("URL"))
                            HtmlIFrame frame = new HtmlIFrame();
                            frame.setStyle("width:100%; height: 100%;");
                            frame.setSrc(helpURL);
                            aResponse.write(frame.toString());
                    } else
                        String componentName = null;
                        if(helpURL.charAt(0) != '/')
                            componentName = context.getComponentName();
                        } else
                            int componentNameIndexEnd = helpURL.indexOf('/', 1);
                            componentName = helpURL.substring(1, componentNameIndexEnd);
                            helpURL = helpURL.substring(componentNameIndexEnd);
                        IResource resource = aRequest.getResource(componentName, "page", helpURL);
                        if(resource.isAvailable())
                            aResponse.addResource(resource);
                        else
                            aResponse.write("<b>Sorry, no help available.</b>");
                } else
                    aResponse.write("<b>Sorry, no help available.</b>");
    The doOnNodeReady method is also rather interesting. Perhaps another way to solve it?
    protected void doOnNodeReady(IPortalComponentRequest request, IEvent event)
            NodeMode nodeMode = request.getNode().getNodeMode();
            if(nodeMode == NodeMode.HELP_MODE)
                IPortalComponentContext context = request.getComponentContext(IPOMConstants.DEFAULT_MODE);
                IPortalComponentProfile profile = context.getProfile();
                String helpName = profile.getProperty("com.sap.portal.iview.HelpName");
                if(helpName == null)
                    helpName = profile.getProperty("HelpName");
                String helpURL = profile.getProperty("com.sap.portal.iview.HelpURL");
                String isolationMode = profile.getProperty("com.sap.portal.reserved.iview.IsolationMode");
                if(context != null && helpName == null && helpURL != null && helpURL.length() > 0 && (isolationMode != null && !isolationMode.equals("URL") || isolationMode == null) && helpURL.startsWith("http://"))
                    request.redirect(helpURL);

  • How to implement webdynpro application into portal.

    HI all
    I have developed a Web Dynpro application (for eg: SAP online registration test for tech ED 2007). how to implement it into portal..
    I mean i want it as a role to displayed in my portal.
    what tempalte i have to use while creating iview..
    where i hav  to uplaod this folder (my webDynpro appication) (like a document at bact end or ???)
    please give me step by step solution for this..
    Thank&regards
    Gayathri

    Hi,
    Assuming you have deployed your webdynpro, you simply need to create webdynpro iView in portal.
    Check this simple help documentation on how to create the iView
    http://help.sap.com/saphelp_nw04s/helpdata/en/13/b4dc4281de2878e10000000a155106/content.htm
    Once you have created the iView, create a role. Set the entry point of the role to yes.
    http://help.sap.com/saphelp_nw04s/helpdata/en/f6/29cf3d4f902d10e10000000a114084/content.htm
    Right click on the iView and assign the iView to the role.
    Best Regards,
    Prasanna Krishnamurthy

  • How to implement Personal Information for non supported countries

    Hi,
       Can anyone give me some tips on how to implement Personal Information ESS services for countries which are not supported by the standard business package. We need to implement for the following countries as well as a part of global implementation.
    Cyprus
    Czech Republic
    Egypt
    Ireland
    Luxembourg
    Monaco
    Russia
    Ukraine
    Regards,
    Subhadip

    Hi Subhadip,
    You need to the following customization settings in SPRO.
    Personnel Management->ESS->Service Specific settings->OWn Data->Reuse Country Specific Application
    Just follow the IMG documentation and it should be done.  Basically we do,
    1.  Identify the Infotype and the country for which we want to re-use existing application (e.g Egypt).
    2.  Select the country from which you want to copy the screens (e.g. Australia, India)
    3. Specify the "Use Case and Active Subtypes" for that country.  Follow the documentation for this node.
    4. Maintain country specific entries for services (in this case will add entries for the new countries added).
    Hope this helps.
    Regards,
    Jigar

  • Iterator interface, how to implement?

    Hi,
    I'm working on an assignment, but I can't really understand one thing. In the following few lines I'll try to describe the situation.
    I have a class which has a TreeMap of Objects. These Objects have there own variables etc... and are comparable.
    Now I need to implement an interface which makes it possible to iterate over the objects in the TreeMap.
    And I need to add some functions like:
    getCurrent() (where does the pointer stands at this moment)
    getNbElements() (how many elements are there after the current position of the pointer)
    advance() (put the pointer one position further, like next() but without the return)
    reset() (put the pointer back at the first element)
    I have no idea how to implement this, do I need to create a seperate class which is the iterator ?
    I hope someone can clear some things up, I don't need a solution, just a way of thinking.
    Thanks in advance.

    Shyamisuga wrote:
    S. U can do all tat by implementing method for each of ur function., instead my suggestion would be to use Arraylist in this case, as they hav all these functions implemented, u just gotto cal them, makes life lot simpler.. :)Awesome advice. He can implement them by implementing them. I thank the gods you're not a pathologist
    "Lassa fever? Ah, that's easy to cure. Simply cure it, and it'll be cured"

Maybe you are looking for