Jump to content

Moving Remote PLCs in the list of Remove Operator


Paul Augood

Recommended Posts

  • MVP 2023

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

Link to comment
Share on other sites

  • MVP 2023

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

 

 

Link to comment
Share on other sites

  • MVP 2023

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

Link to comment
Share on other sites

  • 11 months later...

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>
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...