Version 0.9
User’s Manual
Rev. 3, 9/28/05
Dipl.-Ing. H. Rothmaier
Bauerstr. 28
D-80796 München
www.kks2tag.de
KKS2Tag User's Manual
Content
1.Purpose of KKS2Tag ............................................................................................... 2
2.Using KKS2Tag ....................................................................................................... 3
2.1. The Main Window......................................................................................................3
2.2. Project.......................................................................................................................3
2.2.1. Select a Project...................................................................................................3
2.2.2. New Project ........................................................................................................4
2.2.3. Delete a Project ..................................................................................................4
2.3. Source File ................................................................................................................4
2.4. Template File ............................................................................................................4
2.5. Globals-File (optional) ...............................................................................................4
2.6. Output File.................................................................................................................5
2.7. Start Button ...............................................................................................................5
2.8. Exit Button.................................................................................................................5
3.Menü ........................................................................................................................ 6
3.1. File ............................................................................................................................6
3.2. Options......................................................................................................................6
3.2.1. mode = ...............................................................................................................6
3.2.2. Placeholder Markers... ........................................................................................6
3.2.3. List Separator ... .................................................................................................7
3.2.4. Close on finish ....................................................................................................7
3.2.5. Launch DBLoad.exe ...........................................................................................7
3.2.6. Enable Warnings ................................................................................................7
4.Composition of The Tables ...................................................................................... 8
4.1. Source-Table.............................................................................................................8
4.2. Template Table .........................................................................................................8
4.3. Globals Table ............................................................................................................9
4.3.1. Example 1: Debugging by Alarm Logger Messages............................................9
4.3.2. Example 2: Changing the I/O Server.................................................................10
4.4. Offset-Type Placeholder..........................................................................................11
4.5. Output CSV File ......................................................................................................11
4.6. DBLoad ...................................................................................................................11
5.Installation of KKS2Tag.......................................................................................... 13
5.1. OS Requirements....................................................................................................13
5.2. Settings ...................................................................................................................13
5.3. Installation ...............................................................................................................13
5.4. Removal and Update...............................................................................................13
6.Legal Issues........................................................................................................... 14
6.1. Disclaimer ...............................................................................................................14
6.2. License Agreement .................................................................................................14
6.3. Copyrights ...............................................................................................................14
1. Purpose of KKS2Tag
KKS2Tag is intended to support object-oriented development of the tagname
database of InTouch applications by means of Excel tables.
Usually, the objects of an application, i. e. motors, sensors, are represented by a set
of tagname variables, like status, alarms, commands, or numerical values. These
tagname variables have to be generated repeatedly for each instance of an object.
Between objects, they typically differ only in parts of their names. The name of the
status variable for motor M101 could be M101Status and for motor M102 could be
M102Status.
The concept of KKS2Tag is to generate this set of tagname variables from templates
and to import them into the tagname dictionary by DBLoad.exe. A list of objects
(source table) lists all objects, their particular properties and values like identifier, I/O
address etc. When the CSV file for DBLoad.exe is created, placeholders in the
template tables are expanded by the particular values in the object list to generate
unique variables with proper (initial) values for each object.
This approach makes managing thousands of objects with tens of thousands
tagname variables an easy thing and very straightforward at any development phase
of an application. Even major changes can easily be implemented to always achieve
the best design and to meet the requirements of challenging markets.
2. Using KKS2Tag
2.1. The Main Window
When starting, KKS2Tag shows this main window:
2.2. Project
In KKS2Tag, all settings are associated with a particular project. They are saved
automatically when a different project is selected or when KKS2Tag terminates.
Enter a unique name for the new project and apply OK. Click Cancel or press ESC to
abort the dialog without creating a new project.
confirm deletion of the current project by clicking OK. Click Cancel (locale-specific)
or press ESC to abort the dialog without deleting the project.
Globals tables may reside in the same Excel file as the Source table and/or the
Template tables. In this case, enter the same path as in Source File or Template file,
respectively.
Using a Globals Table is optional. Leave the field blank if no Globals Table is used.
3. Menü
3.1. File
Start: See chapter „Start Button“, above.
Exit: See chapter “Exit Button“, above.
3.2. Options
The :mode= line will be inserted at the beginning of the resulting CSV file according
to the selected option. It defaults to :mode=replace. For more information about
the :mode= line, refer to the InTouch User’s Guide.
Hint: Select test to check that DBLoad processes your templates correctly. Once,
DBLoad runs successfully, select replace.
Select Don’t generate :mode= line, if no :mode= line should be inserted at
the beginning of the CSV file. This might be useful when KKS2Tag is used for other
targets than InTouch.
Prefix and suffix must differ. Make it as short as possible. Test your changes
thoroughly.
Click OK to accept the entries. Click Cancel or press ESC to abort the dialog without
change.
Lines preceded with the # character (lines 3 and 7, above) are comments and are
ignored. Comment lines as well as empty lines may appear at any place in any table.
The first non-comment line is the header line. It must contain the column header
TEMPLATE in the leftmost cell in column 1. The rest of the line declares the identifiers
of the placeholders (NAME, DB, COMMENT, LOG) that can be used by the template
tables.
The non-comment lines following the header line are called object lines. Each object
line declares one object. The first cell in column 1 of the object line defines the
template name for the object (Motor, Sensor). The cells to the right (M101, 100,
Mischer Tank 1 in line 4, above) specify the values that should be used by
KKS2Tag to replace the placeholders (NAME, DB, COMMENT and LOG) in the template
table. If a cell in the line is not used by the template, its content is ignored, as in cell
E4 and E5, above.
Each line defines exactly one object (Motor M101, Sensor LAH210, and so forth),
therefore, the terms "lines" and "objects" are synonyms. All object lines form the
object list.
The example above also demonstrates, that the cells may be formatted by fonts and
colors to improve readability. Formatting doesn’t affect KKS2Tag operation. Even
complex formulas are permitted, only the resulting expression of a cell is used.
Each tagname variable to be generated is composed in one line (line 3 to 6 and line
8, above). Each variable type must be preceded by a type definition line starting with
a colon (:) (line 2 and 7, above). The items in the line must appear in the same order
and the same decoration as output by the DBDump utility. Textual items should be
surrounded by double quotation marks (") in order for DBLoad to work correctly.
The Sensor template table could look like this:
The following table outlines, how the ItemName entries in a Template table should be
formed and how they are expanded by KKS2Tag, if the replacement text (in the
object list) provides 100 for the DB placeholder:
Data type ItemName in Template Table Itemname generated by KKS2Tag
S7 OPCLink
IODisc „!@XDB!!@DB!!@XDAT!6.0“ DB100,X100.6 DDB100.DBX100.6
IOInt „!@WDB!!@DB!!@WDAT!6“ DB100,W6 IDB100.DBW6
IOReal „!@RDB!!@DB!!@RDAT!10!@RSUFF!“ DB100,REAL10 RDB100.DBD10:REAL
• DBLoad will not work, if a field, for instance the Comment field, contains the list
separator character (usually ; or ,) as defined in the Regional Settings of
the operating system. This would cause all subsequent entries in the .CSV file to
be shifted one position to the right.
• By default, DBLoad will use the CSV file who’s name is found in Win.ini, section
[Database Load], key CsvFile.
5. Installation of KKS2Tag
5.1. OS Requirements
KKS2Tag runs under Windows 95, Windows 98, Windows NT4.0 SP 6a, Windows
2000 SP 2 or above, or Windows XP. Windows ME is supposed to work, but not
tested.
5.2. Settings
All settings are memorized in a text file named KKS2Tag.ini, residing in the same
folder as the program file KKS2Tag.exe. KKS2Tag.ini may be copied to other
computers in order to clone the settings. However, all folder names found in
KKS2Tag.ini must match the folder structure of the target machine. If needed,
KKS2Tag.ini can be adapted using the Windows Notepad, for instance, as editor.
KKS2Tag leaves InTouch settings, InTouch files, or application files untouched. The
program makes no attempt to access the Windows registry.
Note: Observe license regulations when running a copy of KKS2Tag on a second
computer.
5.3. Installation
To install KKS2Tag, unpack the distribution archive into any temporary folder, i.e.
\Temp. To start the installation process, run Setup.exe. You will be guided through
the short installation process. Upon successful installation, the files in the temporary
folder are no longer required and may be deleted.
6. Legal Issues
6.1. Disclaimer
KKS2Tag ("the software") is supplied “as is” without warranty of any kind. In no event
shall the author or its suppliers be liable for any special, incidental, indirect, or
consequential damages whatsoever. The user is solely responsible for adequate
protection and backup of the data and equipment used in connection with the
software, and the author will not be liable for any damages that the user may suffer in
connection with using the software.
The author does not warrant that the software will meet user's requirements, that the
software will operate in combinations other than as specified in the documentation,
that the operation of the software will be uninterrupted or error-free or that software
errors will be corrected.
The author reserves the right to make changes to the software at any time without
notice.
Suggestions and bug reports are welcome and should be sent to info@kks2tag.de.
6.3. Copyrights
The names of products, brands or companies mentioned in the software or in this
document may be trademarks of their respective owners, even if not indicated as
such. All trademarks and copyrights are recognized.