<< Click to Display Table of Contents >> Navigation: Modbus Universal MasterOPC Server > MasterOPC Universal Modbus Server > The Design-Time Mode > Operations in the Object Tree > Tag Export |
The Export tags command is available in the device context menu.
The command is used to export a whole device structure to a text file (*.csv).
Upon this command, the following dialog is displayed:
The dialog tools are:
The Tags section – a table of device tags. The following tag parameters are displayed in the table (see The Dialog of Tag Parameters ):
Name – relative tag name for a device (see Hierarchy of Tree Objects ); in that name, symbols {s} are used to designate a subdevice, and symbols {g} are used to designate a tag group. For example, the table above shows tags of the following device:
Region – Region
Address – Address
DataType – Data type in device
Access – Access type
ByteOrder – Byte order
Comment – Comment
The described correspondence between tag properties and CSV-file columns is defined in the built-in map template. Contrary to tag import , tags can be exported only according to the built-in template.
In the table, multiple-tag selection is supported. To select all tags, you can use the Select all button (see below) or the Select all command of the table context menu.
Select all – highlight all tags displayed in the Tags section
Move – move tags highlighted in the Tags section to the File CSV section:
Undo – undo the last tag movement
Redo – redo tag movement undone last
Cancel – close the dialog (tags are not exported)
OK – export the File CSV table into a *.csv file. Upon this command, the standard dialog to set a filename and a path is opened. A semicolon is used as a delimiter of table cells in such a file:
Name;Region;Address;DataType;Access;ByteOrder;Comment
SubDevice1{s}Group1{g}Tag1;HOLDING_REGISTERS;6;int16;ReadOnly;10325476;Device value
Group1{g}Group11{g}Tag1;HOLDING_REGISTERS;4;int16;ReadOnly;10325476;
Group1{g}Tag1;HOLDING_REGISTERS;3;int16;ReadOnly;10325476;
Tag1;HOLDING_REGISTERS;1;int16;ReadWrite;10325476;
An exported file can be imported according to the built-in template (see Tag Import and Example of Default Import ).