Transfer of an integer from HA --> NodeRed --> Modbus --> CMI (TA)

Hi, I am a bit new to NodeRed. I want so send an Integer regularly on change from HomeAssistant to my C.M.I from Technische Alternative. My HomeAssistant is running on a dedicated Virtualbox VM. The Virtualbox runs in Windows 10.
I try NodeRed currently as the Add-On in HomeAssistant.

In the end, I only need to let integer numbers between 0 and 400 be retrieved by the CMI from a Modbus Server Node and stored as an 16-bit unsigned in the CMI Registers.

So far, I managed to get the integer value into NodeRed, and convert it a bit. Then it is linked to a Write Node. And without a link connected, there is the Modbus Server Node, that as far as I understand, is listening (0.0.0.0)

Since I now worked on it for 2 evening without success, I like to ask if there are any known issues regarding the NodeRed Addon in HomeAssistant, when the HomeAssistant is on a VM.

I ask in this direction, because I can see by the state messages of the Write Node, that it goes into "connected" state directly after deploy. And when the first value is processed, it goes into "active" state. But it never shows something like "write" or "write successful". I think currently, the value is not getting into the Modbus Server Node.

If somebody is willing to help, I can put pictures or scripts in here, to show which settings I use at the write node and at the Modbus Server Node

Best regards,
ICE

Hi, I so far managed to get the integer to CM.I. That worked with Modbus Server and Write Node. Yesterday I added a Single coil (just a switch on / off information). I was only able to get it running by changing to the flex server. But now my old integer topic doesn’t work anymore.

So my basic question is, would the below shown picture be the best basic concept to get it done?

It would be same unitid, different address. The upper function would provide an Integer to be transferred via FC16. The lower function would provide a true / false information via fc5 single coil. But both streams use the same flex server.

If this concept works in your eyes, I can fight through but currently it is too confusing.

Obviously, the CM.I. from TA has problems with the simple Modbus Server.

Any comments appreciated

Br, ICE