contact@webdyn.com | webdyn.com
V1.0 subject to changes | Webdyn © by Flexitron Group
7.7 Writing Modbus Variables via a Command File
Some tasks, known as “commands”, may be remotely requested from the WebdynModBus. These
commands are transmitted to the gateway in the form of les downloaded from the FTP server (prexID_
CMD.csv). This le can contain several types of commands, including the command to write Modbus
variables. It is deleted from the server by the gateway after downloading. After the commands are
executed, an acknowledgement le is sent to the server (prexID_ACK_YYMMDD_hhmmss.csv).
Command le: prexID_CMD.csv.
The parameters of the commands depend on the type of command sent, as indicated below:
index;MODBUS;indexDevice;indexVariable;value
Where:
index 1 to N: Unique identier providing command identication
indexDevice Index of the Modbus device to be congured.
This index corresponds to the index used in the le daq.ini to declare the
device (0 to N).
indexVariable Index of the Modbus variable to be congured.
This index corresponds to the index identifying the variable that is found in
the denition le of the device to be congured.
value Value of the parameter, in decimal or ASCII.
Acknowledgement le: prexID_ACK_YYMMDD_hhmmss.csv.
The acknowledgement le mirrors the command le, with timestamps added, and the acknowledgement:
Date-time;index;MODBUS;indexDevice;indexVariable;value;ack
Where ack=OK or ERROR.