January 2012 7.3 PLC Soft Keys 1309
Entries in the *.xrs file Meaning
<?xml version=“1.0“ encoding=“ISO-8859-1“
standalone = "yes"?>
Basic structure of the XRS file (XML
format); start entry of the file
<imagelist id=“1“ > Beginning of the list with the soft-key
graphics
<image id="0" transparentColor="#c6c6c6"
file="%OEM%\SK\Softkey1.bmx" variant=“01“/>
Definition of a soft-key graphic:
Unique ID, color properties and path of the
soft-key graphic file.
</imagelist> End of the list with the soft-key graphics
<!-- PLC root menuPLC Softkey Menu --> Comment
menu id="1"
ImageListId="1"
attributes="PLC | ROOT | VERTICAL | MANUAL | AUTO |
MULTI_LINE"
Defines a soft-key menu with soft-key
graphics from the list with the ID "1". The
following attributes are possible and can
be combined using "|":
PLC: PLC soft-key row
VERTICAL: Vertical menu
HORIZONTAL: Horizontal menu
ROOT: Highest menu level
MANUAL: Menu for Manual operating mode
AUTO: Menu for Program Run operating
mode
EDIT: Menu for Programming operating
mode
MULTI_LINE: Menu with further levels
ACTION_ON_PRESS: Action is run when the
soft key is pressed, not when it is released
item id="100"
ImageId="0"
ItemType="TYPE_NODE"
SubMenuId="2"
Soft-key definition. The ID of the soft-key
graphic file and the type of the soft key
must be specified. The following types of
soft keys are supported:
TYPE_NODE: Soft key jumps to a submenu.
The name of the submenu must be
entered under SubMenuID=.
TYPE_RETURN: Soft key returns from a
submenu.
TYPE_DUMMY: Empty soft key
TYPE_CONTINUOUS: Function soft key
TYPE_CHECKABLE: A coupled marker is set
the first time it is pressed, and is reset the
next time.
TYPE_RADIO: From any group of these soft-
key types, no more than one soft key can
be pressed.
</menu> End of the soft-key menu
</resource> End of the soft-key resource file