Jump to content

Recommended Posts

Posted

We have many Vison PLCs that we frequently check. These are in an erratic order in the list, is there a way to change the order they are in to speed up access?  Only commands I ama able to find are Add PLC and Remove PLC when I look at customize - a move up or move down command would be useful.

Thaks

Paul

  • MVP 2023
Posted

Paul, I only use Remote Access and you can set up as many instances as you like.  I don't know if you can do multiples for Remote Operator, but I would think so.  I have quite a few in one folder that are linked to particular connections.  Open the instance, click the glasses and you're straight in.  See here:

https://forum.unitronics.com/topic/4015-multiple-connection-live-checking-tip/?do=findComment&comment=14861

Hopefully this will all help in Removing  Operators!!!  🙂

cheers, Aus

  • MVP 2023
Posted

Paul, nothing heard, but I looked into Remote Op to see about this as I was curious.  Installed it ok and had a look around, and the solution is not too hard at all.

What you want can be fairly easily achieved with a little bit of fiddling with files. This all works on my PC.

1),  Drill down to ProgFiles(x86)/Common Files/Unitronics/Favorites.  You will find Favorites.xml in that folder.

2).  You need to change security permissions on the Favorites folder so that you have full control, otherwise you can't manipulate the file(s).

3).  Once you've given yourself permissions,  initially do a copy of Favorites.xml as a backup.  Open the original with notepad, you don't need something more complex like Notepad++.

4).  In notepad you'll find all your connections in blocks under <ConnectionsList>.  Each connection starts with <PlcComConfig> and ends with </PlcComConfig>.  Here is my test example which was simply changing some things in a real connection:

<PlcComConfig>
      <Channel xsi:type="Ethernet">
        <Retry>3</Retry>
        <TimeOut>2000</TimeOut>
        <RemotePort>1234</RemotePort>
        <RemoteIP>123.456.78.90</RemoteIP>
        <Protocol>TCP</Protocol>
        <ConnectTimeOut>5000</ConnectTimeOut>
      </Channel>
      <UnitID>0</UnitID>
      <PlcName>JoeRules</PlcName>
      <RequirePlcName>true</RequirePlcName>
      <ForceJazz>false</ForceJazz>
    </PlcComConfig>

Cut and paste the entire piece of text to wherever you want it to appear in your favorites in Remote Op, ensuring the basic layout for each of the pastes is correct with no extra spacing etc.  Once finished then save.  I'd actually do progressive saves on this to check it is all working ok as you go along the path to fully getting what you want.

When you next open Favorites within Remote Op, the list will reflect your changes.  Here's a screenshot of my copy/paste/adjust result, which was the "3rd" one in the file.

RemOFav.jpg.492376bef110a9d3279aa63cefece660.jpg

All in all, not too hard to do and should help.

cheers, Aus

 

 

  • MVP 2023
Posted

And a PS I forgot.  You can run multiple instances, but they all reference the same .xml file, which clangs having just a particular group of connections arranged as above in separate instances.  However, you could have a number of .xmls with various "groups", and it wouldn't be too hard to go into the Favorites folder each time and change the .xml name to be correct.  All depends on how much you need to do.

cheers, Aus

  • 11 months later...
Posted

Ausman (and anyone else interested in this issue), your suggestion worked but made some notes here.

Following your suggestion I first made a copy of the  UR2 file and used a text editor (I used Notepad++ too) to cut and paste the associated blocks in order of the name. Cut whole block from <RemotePLC> to </RemotePLC> and insert after </RemotePLC> where you want it. Once you've edited what you want to change save and then open with RO to test - if ok you can let this become your default file. I also made additional UR2 files for different groups of PLCs for deferent clients/ different applications. 

AGAIN WORK OFF OF A COPY OF THE FILE - ITS EASY TO SLIP UP AND MAKE A MISTAKE

 

This is an example of the block you want to cut, and if you are at the beginning or end of the don't mistake <RemotePLCs> or </RemotePLCs> (with the littel 's').

<RemotePLC>
      <Name>XXXXXXXX</Name>
      <PlcName>XXXXXXX</PlcName>
      <ViewMode>DisplayOnly</ViewMode>
      <InterpolationMode>NearestNeighbor</InterpolationMode>
      <AutoRefreshInterval>0</AutoRefreshInterval>
      <BackColor>White</BackColor>
      <UseCacheFile>true</UseCacheFile>
      <Channel xsi:type="Ethernet">
        <Retry>5</Retry>
        <TimeOut>10000</TimeOut>
        <RemotePort>20256</RemotePort>
        <RemoteIP>XXXXXXX</RemoteIP>
        <Protocol>TCP</Protocol>
        <ConnectTimeOut>5000</ConnectTimeOut>
      </Channel>
      <ID>XXXXXXXXXXXXXX</ID>
      <NetworkID>0</NetworkID>
      <IsOpened>true</IsOpened>
      <WindowTop>8</WindowTop>
      <WindowLeft>951</WindowLeft>
      <WindowSize>
        <Width>462</Width>
        <Height>441</Height>
      </WindowSize>
      <ForceJazz>false</ForceJazz>
      <IsDefaultConnection>false</IsDefaultConnection>
    </RemotePLC>
 

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
×
×
  • Create New...

Important Information

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