> For the complete documentation index, see [llms.txt](https://docs.tricloudnexus.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tricloudnexus.io/edge/nexus-modules/data-connector-modules/modbusmodule/direct-commands/write.md).

# Write

The Modbus module supports writes. In order to do a single write operation, a separate direct method is available.

The tag id that is refered to needs to point to a modbus tag, that has write access enabled. It is not necessary to specify the slave id, since it is given implicit in the tag configuration.

**Method Name:**\
Write

**Payload:**

```
{
  "measurement": {
       "id": "tagId",
       "startTimestamp": "<timestamp>",
       "type": "Analog",
       "value": "<value>"
   },
   "verifyWrite": false
}
```

If verifyWrite is set, then the value write will be confirmed by a following read, to ensure that the write has been executed successfully.
