XLINK 500/100 Operations & Maintenance Manual page # 179
Flash disk
The system can also provide data for the file "flash disk.txt". The data returned mimics the
response of a file system to a directory command. It returns a list of the files it supports via the
Modbus GF command along with their size and date.
setup.txt,5447,03/16/2017 17:32:41
curdata.txt,107,03/16/2017 17:32:41
sensors.txt,102,03/16/2017 17:32:41
status.txt,512,03/16/2017 17:32:41
Due to a limitation, the size of setup.txt is always 512 bytes.
The date of the files will always be set to
the station’s
current time.
18.5.3.
Send File
The Send File subcode is used to send a file to the station. The station will only accept one file:
"setup.txt". The procedure is used to change the station setup. The file needs to contain setup
data. The setup data should be the same as in the setup file saved by LinkComm.
SF,filename,bytepos,numbytes,data
The filename must be setup.txt.
bytepos is the position of the first byte in the data stream. It is zero based. The first packet with
the data should have 0 as the bytepos.
numbytes is the number of data bytes in the payload. For Modbus over RS-485, this number
must not be greater than 48.
data should contain actual setup data. Example:
STATION NAME = HAPPY CREEK
M1 MEAS INTERVAL = 00:00:30
The format of the reply is as follows:
SFR,status,bytepos,numbytes
The value of status can be any of the following values:
Value Description
0
Ok.
1
File not found.
3
Write Failed.
4
Gap at end of file
7
Command format error