I already watched the YouTube series and tried to find the answers to my questions in the forum however I could not find anything. I am trying to write something to a modbus register on the press of a button or a similar hi object. Is that possible? What’s the easiest way to do this?
Yes, it is possible.
For an inspiration, go to documentation of MQTT protocol and download Mosquito_test.zip in “An example of communication - text payload” section (and unzip and import into your application). There is a scheme (S.MqttTest) which has buttons that cause specified texts to be written to output text I/O tags.
Even simpler way (without the button code) would be to directly connect output I/O tag to the “Entry field” displayed.
Btw, you can connect one object (e.g. input I/O tag) e.g. to “Text” displayed in a D2000 Picture (scheme) - in “View” tab, and a different object (e.g. output I/O tag) in a “Control” tab.
So, value of M.SomeInputTag will be displayed in a picture (e.g. measured value from the process), but a dialog setting the control value M.DifferentOutputTag will be opened when you click the displayed value.