Tag Export

<< 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

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:

modbus_img53

The dialog tools are:

mbul   The Tags section – a table of device tags. The following tag parameters are displayed in the table (see The Dialog of Tag Parameters ):

mbul   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:

modbus_img54

mbul   Region Region

mbul   Address Address

mbul   DataType Data type in device

mbul   Access Access type

mbul   ByteOrder Byte order

mbul   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.

mbul   Select all – highlight all tags displayed in the Tags section

mbul   Move – move tags highlighted in the Tags section to the File CSV section:

modbus_img55

mbul   Undo – undo the last tag movement

mbul   Redo – redo tag movement undone last

mbul   Cancel – close the dialog (tags are not exported)

mbul   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 ).