Hi. As you know in modbus protocol there is a master and slave devices. master request data from slaves and slaves answers.
In my example I am using pc as my hmi (siemens tia portal). so pc is like my master device. arduino is my slave device and communication protocol is modbusRtu. I am using ModbusRtu library in my arduino.
I can read all kinds of data created on arduino via pc hmi (master). But I need to read any hmi input data with my slave device (arduino). because in some examples users enter data to hmi panel and devices run according to this input data. as an example this input data (which will user enter to hmi) can be run time of a device, or it can be total number of products that will pass through the conveyor.
in tia portal hmi applications, you can write this input data to plc's %M0.0 ( plc'sinternal memory bits).
I know that in modbus protocol slave's can not read data from master. But i wanted to consult you in case you maybe suggest me any way to solve this problem. thanks.