Read value and write it another tag

Hi,
I’m using a Flexy 205 reading a value from a sensor using Modbus TCP (configured at Topic A).
Then I would like to write that value to an Analog Output on a second device - also using Modbus TCP (configured at Topic B).

Is that possible to do directly in the Flexy?

Thanks.

// Lars Warncke

I believe you should be able to do something like this in the BASIC IDE section of the Flexy. Something like this should work

Onchange “Tag1”, “@write_to_device()”

Function write_to_device()

Tag2@ = Tag1@

Endfn