Menu

Tree [f1c767] master /
 History

HTTPS access


File Date Author Commit
 glade 2011-04-30 Luis Galdos Luis Galdos [f1c767] setup.py: Added Glade XML to executable, Import...
 test 2011-04-24 Luis Galdos Luis Galdos [d4ee12] cleanup: Removed unused file, renamed glade file
 .gitignore 2011-04-30 Luis Galdos Luis Galdos [53d46e] setup.py: First working version with Windows theme
 COPYING 2011-04-24 Luis Galdos Luis Galdos [a733c3] license: GPL version 3
 README 2011-04-24 Luis Galdos Luis Galdos [366d4a] README: Need a short howto
 README.cygwin 2011-04-29 Luis Galdos Luis Galdos [851c33] py2exe: Initial setup script (not completed)
 README.windows 2011-04-29 Luis Galdos Luis Galdos [851c33] py2exe: Initial setup script (not completed)
 TODO 2011-04-24 Luis Galdos Luis Galdos [70f991] TODO: Test under Windows with py2exe
 alarms.py 2011-04-17 Luis Galdos Luis Galdos [afe2d7] windows: Creation of tags output working
 config.py 2011-04-23 Luis Galdos Luis Galdos [72be9b] filechooser: Removed delete_event handler
 config.xml 2011-04-20 Luis Galdos Luis Galdos [247409] windows: Added the about dialog
 inputs.py 2011-04-19 Luis Galdos Luis Galdos [87291e] main: Added configuration file operations (open...
 main.py 2011-04-30 Luis Galdos Luis Galdos [f1c767] setup.py: Added Glade XML to executable, Import...
 setup.py 2011-04-30 Luis Galdos Luis Galdos [f1c767] setup.py: Added Glade XML to executable, Import...
 windows.py 2011-04-23 Luis Galdos Luis Galdos [72be9b] filechooser: Removed delete_event handler

Read Me

README
------

Start situation
---------------

You have a Data Block (DB) with BOOL variables that are set
when the PLC application requests to display an event (alarm/warning) 
in the HMI (panel). For this purpose, the events must be created in 
Wincc Flexible, but this is unfortunately a time-consuming task due 
the following limitations:

- For discrete alarms it's not possible to use tags of
  type BOOL as trigger tag. Only tags of type WORD can be
  used

- For selecting a BOOL in a WORD tag, a trigger bit must
  be defined. This bit must be swapped. Here an example:
  In the PLC the bit DB15.DBX0.0 sets an event. In Flexible
  this bit is inside the WORD tag DB15.DBW0 with the trigger 
  bit of position EIGHT, and not ZERO (as expected)

- As only WORD tags can be used for the events, additional
  tags must be created. Every time that new alarms are added, 
  new WORD tags must be created too.

- When the DB structure is changed, the bit position of all the
  events must be reorganized. Sure, this doesn't apply when the
  DB doesn't change but this is just a limitation and inflexible


Solution
--------

Generate a SCL source file from the DB and use this file for creating 
two files (alarms and tags) that can  be imported in WinccFlex.
The file for the alarms will consider the swapping of the bit position
and will use the comment from the SCL file as event text. On the other
side, the required WORD tags will be created too, so that they can be 
imported too.