write
Perform a write operation to the connected Modbus server
Syntax
Description
write(m,
additionally specifies target
,address
,values
,serverId
)serverId
, which is the address of the
server to send the write command to. serverId
can be used for
coils or holding registers.
write(m,'holdingregs',
additionally specifies address
,values
,'precision
')precision
, which is the data format of the
register being written. precision
can be used only for holding
registers.
write(m,'holdingregs',
additionally specifies address
,values
,serverId
,'precision
')serverId
and data format
precision
. You can both arguments together when the write
target is holding registers.