PLCS.net - Interactive Q & A

PLCS.net - Interactive Q & A (http://www.plctalk.net/qanda/index.php)
-   LIVE PLC Questions And Answers (http://www.plctalk.net/qanda/forumdisplay.php?f=2)
-   -   RSLogix5000 Copy Tag Values from one program to another (http://www.plctalk.net/qanda/showthread.php?t=115334)

DamianInRochester April 25th, 2018 11:11 PM

RSLogix5000 Copy Tag Values from one program to another
 
I have two separate programs open in two instances of RSLogix5000.

Each program has a user defined tag that is a large array of a user defined data type.

I need to copy the values of just this array from one program to another. I tried dragging and dropping but it did not work. I tried copy and paste but that did not work either. Any ideas on how to copy these values from one program to another?

OkiePC April 25th, 2018 11:17 PM

There is a utility call "Tag Upload/Download Tool" but I think it requires a licensed version of RSLinx to act as OPC server. I have never used it but I think it does include the functionality you require. There was a thread on this subject recently in which some members offered other methods...I'll see if I can locate that thread.

OkiePC April 25th, 2018 11:20 PM

Recent thread:
http://www.plctalk.net/qanda/showthr...ghlight=python

Old one with a different method:
http://www.plctalk.net/qanda/showthread.php?t=67865

dmroeder April 26th, 2018 01:49 AM

It sounds like these programs are offline, assuming that is the case, go to the Edit Tags window on both programs. Delete the tag from program 1, copy/paste the tag from program 2 into program 1. The values will come with it.

If my assumption is incorrect, let us know...

DamianInRochester April 26th, 2018 05:59 AM

Thanks Guys.

dmroeder your assumption is correct.

After Okie's post I figured out that I could paste it in the target tags if i went all the way down to the last row. When I pasted it in it created a copy of the same tag but with all the values. Then I was just able to just a quick program to copy the values from the copied tag into the original tag. Practically the same thing you were suggesting only I didn't have to delete the original.

danny.michael April 27th, 2018 08:42 AM

You can add a dummy rung in the program you want to copy from, and use one tag from the array on the rung. Doesn't matter what, just one bit will do. Then export the rung. In the program you want to copy to, just import the rung. If the tag already exists, you will need to select "overwrite" from the import dialog. Once the rung is imported, you can delete it. The tag values from the other program will then be in the target program.

I use this method to create tags in a running program. Create the tags in Excel, import into an offline program, use the new tags in a dummy rung (also created in Excel), then export. The exported rung can then be imported into a running program, thus getting around the inability to import tags from a CSV file while the processor is running.

daba April 27th, 2018 06:07 PM

Quote:

Originally Posted by dmroeder (Post 776579)
..... Delete the tag from program 1, copy/paste the tag from program 2 into program 1. The values will come with it....

later posts say this works, and is new to me...

handy to know, for the future, thanks dmroeder


All times are GMT -5. The time now is 11:47 PM.

.