Efficiently Transferring Tag Array Data Between PLCs

Question:

Hello everyone, I have developed a tag array using a User-Defined Type (UDT) to store various data points and values for tools within a specific work area at my facility. This data will be utilized in 13 separate Programmable Logic Controllers (PLCs) for similar machines, all of which are 1769-L30ER models. I am seeking a way to streamline the process of inputting this data by exporting it from one PLC and importing it into another while retaining the tag values in the array. For instance, Tool_Data.Tool[1].Tool_Name has a value of Press Tool 123, Tool_Data.Tool[1].Cycle_Time has a value of 25, and Tool_Data.Tool[1].Part_Number has a value of A160987. This pattern continues up to Tool_Data.Tool[99].*****. I would appreciate any guidance on how to efficiently export and import this data between PLCs while preserving the values. Thank you in advance and enjoy your weekend!

Top Replies

One way I efficiently use is by organizing tag names and their corresponding values in two separate columns. Once you have selected the desired tag names, simply run the macro to send the values. Don't forget to customize the PLCs topic in RSLinx to match your system. Have fun with it! To utilize this feature, run the Public Sub WriteWords() function in your Excel worksheet. By setting Application.EnableEvents to False, you can establish a DDE channel with the specified PLCTopic in RSLinx. Iterate through the selected tag names and store them in an array for easy access. Send the values to the PLC using the DDEPoke function. Finally, close the channel and re-enable events. Enjoy the convenience of this streamlined process!

There are several methods available to transfer data between PLCs. One way is to create a User-Defined Data Type (UDT) and populate it in one PLC, then copy and paste the tag into the next PLC's offline file before downloading. Another approach is to create the UDT in the first PLC, use a COP instruction to copy the data to itself, export the routine, and import it into the next PLC. However, this method only works once online. Alternatively, export the UDT definition and import it into other projects, using MSG instructions to send the data in chunks between PLCs. For users with RSLinx and ODBC privileges, Excel and VBA macros can be utilized to transfer data from a spreadsheet to each PLC. These are just a few options available for data transfer between PLCs, and there may be other methods to consider.

Utilize the "tag" feature within a ladder logic rung and then export the rung. By importing the rung into another PLC, the tag along with all associated values will be transferred. The tag can simply be included in a rung without any functional purpose, such as within a rung containing COP Tool_Data Tool_Data, or within an unconditionally false rung.

Are you familiar with using the copy and paste function in Studio 5000 v33? I successfully transferred data by selecting the tag in the controller tags' edit view, pressing Ctrl-C, and then pasting it into an empty row in the target file's controller tags. This method is a handy way to quickly move information between files.

The most convenient method to transfer data between PLCs is by following these steps: 1. Export the data type from PLC 1, ensuring it includes values. 2. Import the data type into PLC 2 without values or tags. 3. Navigate to control tags in PLC 1 and right-click to copy the desired data type. 4. Access edit tags in PLC 2 and go to the last line where new data types are created. 5. Paste the copied data type from PLC 1 into the last line of edit tags in PLC 2. This will successfully transfer the tag along with its values.

Hi there! It sounds like you've already done a lot of the groundwork with your array. One method you might consider is using the "Produce and Consume" technique between your PLCs. This would allow you to share data over a network without needing to manually input anything. Essentially, one PLC would constantly update (or 'produce') the data while the others read (or 'consume') it. If your specific model supports it, Ethernet/IP might be your best bet for setting this up. You should also note this process won’t affect the integrity of your tag values. Remember PLCs, just like people, communicate better in a network! Enjoy your weekend too!

Sure thing, happy to help! If your PLC programming environment supports user-defined tags and data structures, you might want to consider creating a library of your UDTs. Once this is done, export this library and then import it into each of the other PLCs. The import should include the tag names, data structures, and even the values if you save them when exporting. This method would greatly streamline the process. However, there's a catch. If the PLCs are running, you may need to put them in 'Program Mode' in order to import the tag library, which could interrupt operation. So, you'll have to plan when to do it to minimize downtime. Hope this helps and have a great weekend too!

Hi there! It sounds like you have a solid handle on your UDT and you've put a lot of effort into organizing your tags. To move your data around, you might want to think about using the PLC's built-in export/import tools, such as Rockwell Automation's RSLogix 5000 ".L5X" file. This file type lets you export and import UDTs, preserving all your tag values between PLCs. Make sure that during the import process, you choose the "preserve values" option. Alternatively, to automate the process further, you might consider a data management software tool that supports your 1769-L30ER model. Enjoy your weekend too!

More Replies β†’

Streamline Your Asset Management
See How Oxmaint Works!!

βœ…   Work Order Management

βœ…   Asset Tracking

βœ…   Preventive Maintenance

βœ…   Inspection Report

We have received your information. We will share Schedule Demo details on your Mail Id.

To add a comment, please sign in or register if you haven't already..   

Frequently Asked Questions (FAQ)

FAQ: 1. How can I efficiently transfer tag array data between PLCs using a User-Defined Type (UDT)?

Answer: - To efficiently transfer tag array data between PLCs using a UDT, you can consider exporting the data from one PLC and importing it into another while ensuring that the tag values in the array are preserved. This can help streamline the process and maintain consistency across multiple PLCs.

FAQ: 2. What is the best way to export and import tag array data between PLCs while retaining the values?

Answer: - The best way to export and import tag array data between PLCs while retaining the values is to identify a method or tool that can handle the transfer process effectively. This may involve utilizing software tools, programming scripts, or communication protocols that support data exchange between the PLCs.

FAQ: 3. Is there a recommended approach for transferring tag array data between multiple 1769-L30ER model PLCs efficiently?

Answer: - When transferring tag array data between multiple 1769-L30ER model PLCs efficiently, it is advisable to explore options such as using structured data formats, implementing standardized communication protocols, or leveraging built-in features of the PLCs to facilitate the data transfer process.

FAQ: 4. How can I ensure that the tag values in the array are preserved during the export and import process between PLCs?

Answer: - To ensure that the tag values in the array are preserved during the export and import process between PLCs, it is essential

Ready to Simplify Maintenance?

Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.

Request Demo  β†’