- HMI Model: CMT 3162X (V2)
- EasyBuilder Pro Version: 6.10.01.510
I want to bulk transfer all recipe records into a array or if possible multi-dimensional array in codesys. How do I do that?
I can see how to transfer individual lines, but I want to transfer all the records together. I am trying to use the recipe function to create a “schedule” (Step 1-5 represent individual steps with individual setpoints for each step) where all the steps/setpoints are entered on the HMI and then sent to the PLC.
Hi @leadfoote ,
Within the Recipe Database, the Transfer tab, when enabled, lets you perform a bulk transfer to the PLC or a local bulk transfer to a contiguous address range.
Then, using system registers, you can write and update records as needed while they are being transferred.
Please let me know if you have any questions
Thank you for your help!
When bulk transfer is selected, what command initiates the bulk transfer? When I use the “transfer selected record” it only does the selected record.
Hi @leadfoote ,
Yes, the bulk transfer applies only to the selected row. To execute this for all rows, use a macro to retrieve data from your recipe database and write it to your PLC. Below is a post on how to use a macro to search a recipe database; you can then loop through and write each row to your PLC.
Please let me know whether this solution works for you and if you have any questions.
Thank you!