Jump to content

Flex727

MVP 2023
  • Posts

    3,325
  • Joined

  • Last visited

  • Days Won

    241

Posts posted by Flex727

  1. @Ausman is correct - you need a hub, not a switch (I misread @Joe Tauser's post), which I don't have. However, I did some other experiments.  I increment a DW on every scan and divided the R/W Mix Acknowledgements count by the scan count. The result seemed to vary a bit from startup, ranging from 82% to 97%, but mostly hung around 95-96% and was remarkably stable there. The PLCs connect through a switch, along with my desktop PC. The rest of my network is wifi through a router and so the PLC network is independent of other devices. The scan time of the Master PLC (V1210) is 7ms and the Slave PLC (V700) is 3ms. Since these are nice prime numbers, I expected to see a lot of aliasing to cause dropped packets, but that doesn't seem to be the case.

    With very consistent >95% communications success rate on every scan, I'd say the Unitronics PLC is indeed completing the entire MODBUS R/W Mix function in a single scan. I could see no effect even when online with the PLC using Ethernet (on a different Port & Socket, of course).

    Many of my projects that involve MODBUS TCP communications are on an isolated network. When that is the case I plan to always execute the comm FB on every scan rather than try to run a timer to slow it down. It makes the Slave PLC as responsive (to button presses, etc) as being at the Master. I wish I had realized that you could communicate on every scan years ago.

  2. I just completed a project and noticed something odd. The project is as follows:

    Chemical blender controlled by a V1210 PLC. This machine blends 4 different chemicals to the customer's specification into 4 different tanks (each with a different mix of the 4 chemicals). The chemical flow is controlled by 4 Entegris flow controller/flow meters (analog I/O).

    A remote panel (V700) is located 50ft. (of Ethernet cable) away. This remote panel can control the operation identical to the main panel. Blending and tank filling can be started or stopped at either location.

    Communication between the two PLCs is by MODBUS TCP with the V1210 as the Master and the V700 as the Slave.

    Since all blending operation and control occurs at the main (V1210) panel, but operation of the system will generally occur at the remote (V700) panel, I wanted the best user experience I could obtain at the remote panel. If you've ever had remote control via MODBUS, you've noticed that there can be a bit of a lag to get a button response on the HMI screen (i.e. you usually have to hold the button down for a short time to get it picked up by the MODBUS polling). I usually run polling by either a timer or use SB 15 (100ms transition). The shortest timer possible is 10ms, which improved things considerably, but I checked the scan time on the V1210 and saw it was between 6 & 7 ms, which might improve things further. I was using the Unitronics R/W MIX FB to transfer data and hung that directly on the left rail (with SB 150 and the "function in progress" bit, but no timer). This caused the data transfer on every scan and dramatically improved the user interface at the remote panel. It was nearly as responsive as the main panel. Checking the TXD / RXD counters, there were no dropped packets at all - very good result, and I'm quite happy.

    However, I did notice a minor oddity. Also on every scan, I am performing the necessary integration of the flow rate to total volume and display it on the screen. My normal method of integration in this type of circumstance is to time slice the rate using SB15, perform the necessary math to convert mL/min to mL/100ms, then sum to obtain total mL. On the main panel where all the calculations are performed you can see the flow rate is constant and the total volume increments up very smoothly. However, on the remote panel where that number is transferred over on every PLC scan (of the V1210), the total volume does not increase smoothly. It has a halting appearance, not smooth at all, that totally mystified me for awhile.

    I think I now know why (though I could be wrong). Anyone want to take a stab at solving this mystery?

  3. If you have VisiLogic installed, you can attempt to upload the project from the PLC. The chances are slim that you will be successful, as the programmer must take an extra step to allow that - the default is to not allow upload.

    Without the original .vlp file you may not be able to proceed further without some documentation. If you have some understanding of how the machine works and how it is wired, someone may be able to re-create the program for you.

    Hopefully I've overlooked something and someone will be able to chime in and offer some additional help.

  4. It would be helpful if you addressed the troubleshooting comments when you respond. No one can help you if we don't know your situation.

    @DanT was kind enough to type all this out. Please let us know that you've gone through each of these on the other laptop that you're now having a problem with.

    On 12/5/2019 at 10:19 AM, DanT said:

    Is the Ethernet Cable Plugged into the Ethernet Port ?  and are the LED's Flashing  for connectivity?

     The Expansion port uses  a  RJ45 Connector also, and is often confused with the Ethernet port.

     Check the PLC   using INFO Mode   ( Password 1111)      

                  Ethernet

                 Upper lines show Ethernet IP and current status

                Middle allows you to view and set parameters - IP, Sockets

               Press Monitor to see if any   data is reaching the PLC ( selectable by the port )

     

    Are the PLC and PC on the same network?     Check the address of the PC.

    Can you  PING   the PLC IP Address   from the PC  and get a reply?

     

  5. Are you using the same computer for both VisiLogic and Remote Operator? If so, they would be using the exact same pathway and if one works, the other should too, but they both can't connect to the same port at the same time.

    If not, then make sure the Remote Operator computer (or phone) is on the same subnet as the PLC. What I find is that my router hands out addresses to wired and wireless (wi-fi) with different subnets.

×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.