Pag. 130 di 152
11 The XMBF.EXE utility (Electrex ModBus File)
11.1 Commands for PC handling of the files of the X3M memory.
In order to allow a simple and easy management of the standard MobBus files available
in the memory of the X3M, a specific program was developed for file writing and reading
that supports the "Read general file" and "Write general file" ModBus commands. For
further ease of operation, the program supports also the file conversion to various
formats with no need of specifically developed tools.
The same commands may also be invoked by other programs that require the data with
no need of specific drivers development.
The XMBF.EXE is run from the DOS shell in command line mode by specifying the
operation parameters as below indicated:
XMBF --[operation type] --[communication port] –[address]
--[protocol format] --[file number] --[output format]
[operation type]
--read
→
download
--write
→
upload
--del
→
delete
--create
→
create
--reboot
→
instrument restart from zero
[communication port]
--ip
=<ip address>
→
Instrument IP address.
--ser
=<com port>,<com speed>,<bits N°>, <parity>,<stop bits>
<com port>
→
PC communication port, example COM1
<com speed>
→
transmission speed, example 38400
<bits N°>
→
bit number, example 8
<parity>
→
parity control, example n
<stop bits>
→
stop bit number, example 2
[address]
--addr=
<address>
→
instrument address
[protocol format]
--mascii
→
ModBus ASCII (default RTU if not specified)
[file number]
--fnum
=<file number>
→
identification number (exadecimal format) of
the file in memory, example --fnum=07
[file name]
--fname
=<file name>
→
file or origin directory from PC
[output format]
--txt
→
saves the file to PC in text format
--hex
→
saves the file to PC in HEX format
--html
→
file in HTML format
--xmbf
→
file in binary format
--xls
→
file in comma separated value format compatible with
spreadsheet programs like Excel, etc..
no parameter
→
print to screen in TXT format
[destination]
--dpath
=\<directory tree>
→
path of the destination directory.
--dname
=\<file name>
→
name of the destination file.
Example:.
C:\Programs\X3M\XMBF --read --ser=com1,38400,8,n,2 --addr=27
--fnum=0101 --html