System Variables; Color Coding; Special Xml Syntax - Siemens SINUMERIK 808D ADVANCED Commissioning Manual

Hide thumbs Also See for SINUMERIK 808D ADVANCED:
Table of Contents

Advertisement

14.7.3

System variables

The system variables can be used in the EasyXLanguage scripts for the data exchange between a script parser and a
program flow.
The table below provides the automatically created system variables that can be used in the relevant tags.
System variable
$actionresult
$focus_name
$focus_item_data
$return
$message_par1
$message_par2
$keycode
$actionresult
$xmlAttribute
$xmlValue
$xmlCharacters
$xmlCharactersStart
$xmlCharactersLength
$mouse_event.type
$mouse_event.x
$mouse_event.y
$mouse_event.id
$mouse_event.buttons
$mouse_event.button
14.7.4

Color coding

The color attribute uses the color coding scheme for the HTML language.
In terms of syntax, color specifications consist of the "#" (hash) character and six digits from the hexadecimal system, with
each color represented by two digits.
R – Red
G – Green
B – Blue
#RRGGBB
Example:
color = "#ff0011"
14.7.5

Special XML syntax

Characters with special meanings in XML syntax have to be rewritten if they are to be displayed correctly by a general XML
editor.
The following characters are affected:
Character
<
>
&
"
'
Commissioning Manual
01/2017
Description
Notifies a script parser of whether the event can be execut-
ed
Contains the name of the control that has the input focus
Contains the numeric value of item_data, which was as-
signed to the control
Transfers the return values of a subfunction
Contains the parameters for calling the SEND_MESSAGE
function
Contains the key codes with executable scripts
Contains the attribute list of the obtained variables
Contains the value list of the obtained variables
Contains the data stream
Contains the start index
Contains the number of characters saved in a data stream
Contains the structures for handing over mouse event
paramters
Notation in XML
&lt;
&gt;
&amp;
&quot;
&apos;
Tags where valid
KEY_EVENT
FOCUS_IN
INDEX_CHANGED
EDIT_CHANGED
FUNCTION_BODY
MESSAGE
KEY_EVENT
XML_PARSER - startEl-
ementHandler
XML_PARSER - character-
sHandler
MOUSE_EVENT
323

Advertisement

Table of Contents
loading

Table of Contents