- HMI Model: cMT3072XH
- EasyBuilder Pro Version: 6.09.02.338 Build 2024.07.17
- Serial Number or supplier:
I want to write a number stored in an LW address into the system register “selection” that is available for the recipe database functionality…
The Data Transfer action of a Combo Button object seemed like the logical choice. However, the “selection” register does not populate as a destination choice when adding a Data Transfer action for the combo button…
IF I add a numeric object, I can select the recipe “selection” register as the read/write target and I can read and write it as you would expect…
I can even use the combo button Set Word action to write a constant value to the recipe “selection” system register…
Why would the recipe system register be excluded from the Data Transfer action of the combo button?
Thanks.
Hi @rwlewis,
The Data Transfer object is not intended for use with the recipe “Selection” register. However, you could accomplish this using the “GetData” and “SetData” functions within a macro as shown below. Also, if you’re attempting to search for items within a recipe database, check out the methods demonstrated in this forum post.
Thanks Cody.
Any thought as to why the “selection” system register would be included elsewhere in the combo button functionality (Set word) but not in the data transfer? Seems it should be treated like any other register that a value can be written to…Why force me to use a workaround (macro) for something that seems straightforward…
It is possible that the developers prevent writing to this register or other recipe control registers to prevent potential overlap when using data transfers with multiple words:
However, the developer may have other reasons such as internal limitations that prevent this within certain objects.