(5-4) 808D Function Manual 1212 en en-US (208-286) PDF
(5-4) 808D Function Manual 1212 en en-US (208-286) PDF
7. Press the "808D data" softkey, and press <INPUT> to access the "HMI data" folder. Then
select the "OEM online help (*.txt; *.png; *.bmp)" folder by using the Up and Down arrow
keys.
8. Press <INPUT> to access the "OEM online help (*.txt; *.png; *.bmp)" folder, and then
enter the "manual" folder, that is, the above-mentioned third-level folder. Press the
"Paste" softkey to paste the copied file(s) under this folder.
9. Press <HELP> and press the right arrow key. Then you can view your own online help,
as shown in following example.
Function Manual
208 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.1 Calling an online help
You can view the help content list by pressing the right arrow key.
10.Directly press <INPUT> or the "Show" softkey to show your online help, or select one
help content and then view it using <INPUT> or the "Show" softkey.
11.If you have created hyperlinks in the online help text, use the "Go to topic" softkey and
then press the "Show" softkey to go to the linked target.
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 209
Special functions
16.1 Calling an online help
12.Press "Exit" to exit the online help or press the "TOC" softkey to return to the online help
main menu.
Second level:
Third level:
2. Copy the four first-level folders to the "OEM manual (oemmanual.pdf)" folder. For how to
find this folder, see the subsequent steps.
3. Insert the USB stick into the USB interface in the front of the PPU.
4. In the "SYSTEM" operating area, press the "Sys. data" softkey.
5. Press the "USB" softkey.
6. Select the OEM manual file(s) using <INPUT>, and then press the "Copy" softkey.
Function Manual
210 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.1 Calling an online help
7. Press the "808D data" softkey, and press <INPUT> to access the "HMI data" folder. Then
select the "OEM manual (oemmanual.pdf)" folder by using the Up and Down arrow keys.
8. Press <INPUT> to access the "OEM manual (oemmanual.pdf)" folder, and then enter the
"manual" folder, that is, the above-mentioned third-level folder. Press the "Paste" softkey
to paste the copied file(s) under this folder.
9. Press <HELP> and then press the "OEM Manual" softkey. Then you can view your own
OEM manual.
10.Press "Exit" to exit the OEM manual.
NOTICE
Poor performance of the system
Do not upload one or more OEM files of too large size; otherwise, the system performance
will be reduced.
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 211
Special functions
16.2 Calling a standard cycle with auxiliary functions
Note
M codes or T codes for calling user cycles must not be in the same program segment.
For the format of a standard cycle, refer to the example shown below:
B1B722/B63)
3$7+ B1B&86B',5
352&722/6$9(',63/2)
,)3B,67(67*272)B(1'
,)3B6($5&+!*272)B(1'
,)3B722/12 3B722/3*272)B12
*'
*=
6326 01B86(5B'$7$B)/2$7>@
06*ಯ5HDG\WRFKDQJHWRRO
2ULJLQDOWRROQXPEHU7ರ3B722/12
0
67235(
**=)*
06*ಯ5HDG\WRFKDQJHWRRO
2ULJLQDOWRROQXPEHU7ರ3B722/3
*272)B(1'
B12
06*ಯ1RDFWLRQ
5HDVRQSURJUDPPLQJWRROQXPEHU VSLQGOHWRROQXPEHUರ
B(1'
0
Function Manual
212 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.2 Calling a standard cycle with auxiliary functions
The format of the standard cycle is the same with that of M codes. The tool number for
programming will be saved into system variable $C_T.
Variables Descriptions
$P_ISTEST Program testing status; boolean variable
$P_SEARCH Program searching status; boolean variable
$P_SEARCHL Program searching status; real numbers: 1-, 2-, 3-
$P_TOOLNO Tool number in the spindle turret
$P_TOOLP Programming tool number
$C_T Programming tool number.
$P_TOOLP is inactive when the program code T calls a tool
changing cycle that is defined with MD10717. The tool number is
then represented with "$C_T".
$TC_DP1[Tool number, 1] Tool type
$TC_DP3[Tool number, 1] Tool's geometrical parameter: tool length 1
$TC_DP6[Tool number, 1] Tool's geometrical parameter: tool radius
$TC_DP12[Tool number, 1] Tool wear: the direction of length 1
$TC_DP15[Tool number, 1] Tool wear: the direction of radius
$TC_DP24[Tool number, 1] Tool's dimension:
0: normal
1: oversize
$TC_DP25[Tool number, 1] Number of the tool turret
_TM[n] Global user data (integral)
_ZSFR[n] Global user data (float)
NOTE:
Since this data has been used in the Siemens standard technology
cycles, ensure that there is no conflict with the technology cycles
when you are using this data.
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 213
Special functions
16.3 Display function
By default, the run time, the cycle time, the setup time and the power on time are displayed.
The cutting time can only be counted after being activated with MD27860:
In the "OFFSET" operating area, press the horizontal softkey "Sett. data" > Vertical softkey
"Time counter" and you can open the "Times / Counter" window:
Function Manual
214 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.3 Display function
Under the "AUTO" mode in the "MACHINE" operating area, the time counter (vertical softkey
"Time counter") can also be displayed counting following time:
● Cycle time
● Time left
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 215
Special functions
16.3 Display function
In the "OFFSET" operating area, the part counter (horizontal softkey "Sett. data" > Vertical
softkey "Time counter") can be displayed counting following information:
Under the "AUTO" mode in the "MACHINE" operating area, the part counter (vertical softkey
"Time counter" > <SELECT> key) can also be displayed counting the following information:
Note
All of the numbers that have been entered must be confirmed using the <INPUT> key.
Function Manual
216 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.4 Prog_Event function
Hardware description
The FAST I/O interface (X21) provides 3 digital inputs and 1 digital output:
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 217
Special functions
16.5 Fast I/O
Relevant parameters
In a part program, you can set or reset the fast output via its corresponding variable. The
system variable is $A_OUT[1].
Function Manual
218 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.6 Creating user cycles
For example:
$B287>@ !VHW'%'%;
0
Naming rule
almc_xxx.txt
Here "xxx" refers to the language denotation, for example, eng.
Examples
83000 "User%nCycles" // 2*9 ⇒ two lines. Each line with nine characters space
83001 "CYCLE10" // 9 ⇒ one line with nine characters space
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 219
Special functions
16.6 Creating user cycles
Examples
6?? !GHILQHDVRIWNH\LGHQWLILHUDWWKHKRUL]RQWDONH\
6??&1&<&/( !GHILQHDVRIWNH\LGHQWLILHUDWWKHILUVWYHUWLFDONH\RI
0 WKHILUVWOHYHOZKHQSUHVVLQJWKHKRUL]RQWDONH\
Function Manual
220 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.6 Creating user cycles
Note
Separators, start and end identifiers must always be entered.
The lines 4, 6 and 15 can be left blank.
If no texts are stored with the $identifier, three question marks appear in the associated
fields on the screen.
Example
&1&<&/(
5>',$@
5>',$)@
5>67$3@
5>(1'3@
5>0,'@
5>8;@
,
>0$&+@%&1
5>957@
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 221
Special functions
16.6 Creating user cycles
Naming rule
CYCLExxx.SPF
Here "xxx" refers to the cycle number. It must not exceed four digits.
Note
The name of a user cycle must not be same with that of a standard Siemens cycle. It is
recommend to use a cycle number with the range of 100 to 800.
Programming example
Create the program with a wordpad or notepad.
As a cycle screen always also transfers values as call parameters to the user cycle, the
transfer interface is defined as follows.
PROC CYCLE100(REAL DIA,REAL DIAF,REAL STAP,REAL ENDP,REAL MID,REAL UX,INT MACH,REAL
VRT) SAVE SBLOF DISPLOF
PROC is a keyword followed by the cycle name with the cycle number. All the transfer
parameters for the screen are contained within brackets with the data type and name
separated by commas.
Function Manual
222 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.6 Creating user cycles
352&&<&/(5($/',$5($/',$)5($/67$35($/(1'35($/0,'5($/
8;,170$&+5($/9576$9(6%/2)',63/2)
'()5($/9$5
,)3B(3>;@',$*272)//
//
,)',$)!',$*272)(1'
67$57
,)0$&+ *272)528*+,1*
,)0$&+ *272)),1,6+,1*
,)0$&+ *272)528*+,1*
'()5($/9$5
528*+,1*
5 ',$',$)8;
5 50,'
5 7581&5
5
9$5 ',$
,)5 *272)528*+,1*
//
6%/21
**; 9$5= 67$3
*= (1'3
*; 0,'
**; 957= 957
**= 67$3
6%/2)
9$5 9$5
0,'
5 5
,)5 5*272%//
,)5!5*272)528*+,1*
528*+,1*
6%/21
**; ',$)8;
*= (1'3
**; 957= 957
**; ',$
= 67$3
,)0$&+ *272)),1,6+,1*
6%/2)
5(7
),1,6+,1*
6%/21
*; ',$)
*= (1'3
*; ',$957
**; 957= 957
*= 67$3
6%/2)
5(7
//
,)3B(3>=@67$3*272)(1'
*272%//
(1'
6(7$/
67235(
0
5(7
(1'
6(7$/
67235(
0
5(7
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 223
Special functions
16.6 Creating user cycles
Naming rule
alc_xxx.txt
Here "xxx" refers to the language denotation, for example, eng.
Examples
65000 "Current tool position is incorrect" // 34 ⇒ one lines with thirty-four characters space
65001 "DIAF is bigger than DIA" // 23 ⇒ one line with twenty-three characters space
Note
If 16 colors are not sufficient for the display, you can also use 24-bit color depth bitmaps.
Function Manual
224 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.6 Creating user cycles
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 225
Special functions
16.6 Creating user cycles
Note
After you press "Paste" to import the cov.com file, sc.com file, alc_xxx.txt file and
almc_xxx.txt file, a system message will appear to prompt you to restart the HMI by pressing
"OK". Then press "OK" to restart the HMI so that the new data will be available.
Function Manual
226 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.6 Creating user cycles
2. Press the vertical softkey "user Cycle888" to open the "CYCLE888" window.
3. Set the parameters according to your own requirements, and then press "OK" to save the
settings. Or, press "Cancel" to quit the cycle.
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 227
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Overview
The "Generate user dialogs" function offers an open structure and enables the user to
develop customer-specific and application-specific HMI interfaces.
The SINUMERIK 808D offers an XML-based script language for generating user dialogs.
This script language makes it possible to display machine-specific menus and dialog forms
in the "CUSTOM" operating area on the HMI.
Use
The defined XML instructions offer the following properties:
1. Display dialogs containing the following elements:
– Softkeys
– Variables
– Texts and help texts
– Graphics and help displays
2. Call dialogs by:
– Pressing the corresponding softkeys
3. Restructure dialogs dynamically:
– Edit and delete softkeys
– Define and design variable fields
– Insert, exchange, and delete display texts (language-dependent or language-neutral)
– Insert, exchange, and delete graphics
4. Initiate operations in response to the following actions:
– Displaying dialogs
– Inputting values (variables)
– Selecting a softkey
– Exiting dialogs
5. Data exchange between dialogs
6. Variables
– Read (NC, PLC and user variables)
– Write (NC, PLC and user variables)
– Combine with mathematical, comparison or logic operators
7. Execute functions:
– Subprograms
Function Manual
228 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
– File functions
– PI services
8. Apply protection levels according to user classes
The valid elements (tags) for the script language are described in Section "XML identifier
(Page 232)".
Note
The following section is not intended as a comprehensive description of XML (Extensible
Markup Language). Please refer to the relevant specialist literature for additional information.
Configuration files
The defining data for new user interfaces are stored in configuration files. These files are
automatically interpreted and the result displayed on the screen. Configuration files
(EasyXLanguage scripts) are included in the "...\examples\easyXL" folder of the Toolbox.
An XML editor or another form of text editor can be used to generate the configuration files.
Note
No distinction is made between upper and lower case letters.
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 229
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Start menu
The start menu is defined by the name "main" in the "xmldial.xml" file. The start menu is
used to initiate your own operating sequences.
Loading your own dialogs or additional softkey bars can be linked with the main menu.
Additional actions can be performed using these softkey bars.
, , , , + , , or
Function Manual
230 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Note
As soon as there is an "xmldial.xml" script file in in the "EasyXLanguage scripts" folder, you
can start this user dialog in the "CUSTOM" operating area.
After the initial copying process, the control system must be reset via "SYSTEM" operating
area> "Start-up" > "NC" > "Standard power-up".
Note
If configured and programmed dialogs need to be used at the same time, the script language
must be used to call the programmed dialogs. The functions required for this purpose are
described in Section "Predefined functions (Page 265)".
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 231
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Overview
A configuration file consists of the following elements:
● Description of the "main" start menu with start softkeys
● Definition of dialogs
● Definition of variables
● Description of the blocks
● Definition of softkey bars
</DialogGui>
Function Manual
232 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Instructions
The following instructions can be used for executing conditional instructions and loop
controls:
● For loop
● While loop
● Do with loop
● Conditional processing
● Switch and case instructions
● Operator controls in a dialog form
● Softkey descriptions
● Define variables
For a detailed description of instructions, see Section "Instruction/identifier description
(Page 233)".
Note
Attribute values that are in quotation marks "<...>" should be replaced by the currently used
expressions.
Example:
<DATA_LIST action="read/write/append" id="<list name>">
is programmed as follows:
<DATA_LIST action="read/write/append" id="my datalist">
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 233
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Variable address
Tag value:
All alphanumeric terms are approved as tag values. If a value is to be written from a local
variable directly, the $ replacement operator preceding the name of the local variable
should be used.
Syntax:
<DATA name="<variable name>"> value </DATA>
Example:
<DATA name = "plc/mb170"> 1 </DATA>
…
<LET name = "tempVar"> 7 </LET>
<!— the contents of the local variables "tempVar" are written to
bit memory byte 170 →
<DATA name = "plc/mb170">$tempVar</DATA>
DATA_LIST The tag enables the listed machine data to be saved or restored.
Up to 20 temporary data lists can be created.
Attributes:
action
read– the values of the listed variables are stored in a temporary memory
append– the values of the listed variables are added to an existing list
write– the backed up values are copied to the relevant machine data
id
Function Manual
234 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Background color of the dialog form (color coding, see Section Color coding
(Page 245))
– Default white
name
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 235
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Function Manual
236 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Indices 0 to 4
Two-dimensional field:
Variable name
type
The variable type can be an integer (INT), double (DOUBLE), float (FLOAT) or string
(STRING). If there is no type instruction specified, the system creates an integer
variable.
<LET name = "VAR1" type = "INT" />
permanent
If the attribute is set to true, then the variable value is saved permanently. This
attribute is only effective for a global variable.
dim
The following number of field elements must be specified. For a two-dimensional field,
the second dimension is specified after the first dimension separated by a comma.
A field element is accessed via the field index, which is specified in square brackets
after the variable name.
name[index] or name[row,column]
– Single-dimensional field: dim="<Number of elements>"
– Two-dimensional field: dim="<Number of lines>,<number of columns>"
Non-initialized field elements are pre-assigned with "0".
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 237
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Texts containing more than one line can be assigned to a string variable if the
formatted text is transferred as a value. If a line is to end with a line feed <LF> , the
characters "\\n" should be added at the end of the line.
Function Manual
238 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Text
caption
Header
retvalue
1 – OK
0 – CANCEL
type
Acknowledgement options:
"BTN_OK"
"BTN_CANCEL"
"BTN_OKCANCEL"
If an alarm number is used for the "text" or "caption" attribute, the message box displays
the text which is saved for the number.
Example:
<MSGBOX text="Test message" caption="Information"
retvalue="result" type="BTN_OK" />
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 239
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Function Manual
240 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Text
Formatting:
The character "%" causes the variable specified as the value to be formatted.
%[Flags] [Width] [.decimal places] type
Flags:
Optional character for defining output formatting:
– Right-justified or left-justified ("-") for left-justified
– Add leading zeros ("0")
– Fill with blanks
Width:
The argument defines the minimum output width for a non-negative number. If the
value to be output has fewer places than the argument defined, the missing spaces
are filled with blanks.
Decimal places:
With floating point numbers, the optional parameter defines the number of decimal
places.
Type:
The type character defines which data formats are transferred for the print instruction.
These characters need to be specified.
– d: Integer value
– f: Floating point number
– s: String
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 241
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Function Manual
242 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 243
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Function Manual
244 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
16.7.6.5 Operators
The operation instruction processes the following operators:
Operator Meaning
= Assignment
== Equal to
<, < Less than
>, > Greater than
<=, <= Less than or equal to
>=, >= Greater than or equal to
| OR operation in bits
|| Logic OR operation
&, & AND operation in bits
&&, && Logic AND operation
+ Addition
- Subtraction
* Multiplication
/ Division
! Not
!= Not equal to
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 245
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Operation instructions are processed from left to right. It may make sense to place terms in
parentheses under certain circumstances in order to define the priority for executing
subterms.
B Byte
W Word
D Double word
Address x:
Valid S7-200 address identifier
Bit addressing:
b – Bit number
Examples:
<data name = "plc/mb170">1</data>
<data name = "i0.1"> 1 </data>
<op> "m19.2" = 1 </op>
Function Manual
246 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 247
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
PHQXQDPH 0$,1!
23(1B)250QDPH PDLQGLDORJXH!
VRIWNH\326,7,21 !
FDSWLRQ!VXEPHQXFDSWLRQ!
QDYLJDWLRQ!VXEPHQXQDYLJDWLRQ!
VRIWNH\!
PDLQPHQX
VRIWNH\326,7,21 !
FDSWLRQ!VXEPHQXFDSWLRQ!
PDLQGLDORJXH
QDYLJDWLRQ!VXEPHQXQDYLJDWLRQ!
VRIWNH\!
VXEPHQX VXEPHQX
PHQX!
PHQXQDPH VXEPHQX!
23(1B)250QDPH GLDORJXHಯ!
PHQX!
Function Manual
248 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Background color of the dialog box (color coding, see Chapter, color coding)
name
<PAINT>
<TEXT xpos = "23" ypos = "34">R - Parameter 1</TEXT>
<TEXT xpos = "23" ypos = "54">R - Parameter 2</TEXT>
<TEXT xpos = "23" ypos = "74">R - Parameter 3</TEXT>
</PAINT>
</FORM>
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 249
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Function Manual
250 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
The identifier simultaneously represents a local variable, and must not be used a
multiple number of times in the form.
xpos
Field type
combobox
If the field type "combobox" is selected, then the expressions to be displayed must
also be assigned to the field.
The combo box saves the index of the currently selected text in the variable
belonging to the control (see the attribute refvar).
– progressbar
A progress bar with a value range of 0 to 100 appears.
The valley value and peak value properties can be used to adapt the value range to
the data to be displayed.
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 251
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Using the tag <ITEM> a list box element can be inserted in the list box.
The ITEM attribute value allows this element to be assigned a unique value.
Parameters width and height specify the width and height of the list box.
After the control has been created, additional list box elements can be inserted using
the functions AddItem, InsertItem or LoadItem.
– graphicbox
The field type generates a 2d broken line graphic control.
Using the tag <ITEM> a graphic element can be inserted into the control.
Parameters width and height specify the width and height of the box.
After the control has been created, additional elements can be inserted using the
functions AddItem or InsertItem. The parameter itemdata is not evaluated for this
control.
– itemlist
The field type generates a static control, which displays the corresponding identifier
instead of numerical values.
A user-specific integer value can be assigned to the attribute. This value is given as part
of the FOCUS_IN message for identifying the focus field.
refvar
Identifier of the reference variable that can be linked to the field (optional).
hotlink = "TRUE" " If the value of the reference variable changes, then the field is
automatically updated (optional).
format
Function Manual
252 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
The attribute defines the processing format of the specified variable. This attribute must
be used when accessing a PLC float variable, as the access is realized by reading a
double word.
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 253
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Function Manual
254 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
I - line marking
Xs - X start position
Ys - Y start position
Xe - X end position
Ye - Y end position
Circle:
Xs - X start position
Ys - Y start position
Xe - X end position
Ye - Y end position
R
Point:
P, x, y
P - point marking
X - X position
Y - Y position
Deleting the graphic:
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 255
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Example itemlist:
<CONTROL name = "itemlist1" xpos = "10" ypos = "10" fieldtype = "
itemlist">
<ITEM value = "10">text1</ITEM>
<ITEM value = "20">text2</ITEM>
<ITEM value = "12">text3</ITEM>
<ITEM value = "1">text4</ITEM>
</CONTROL>
HELP_CONTEXT This tag defines the help topic to be called. It should be programmed in the INIT block.
The name specified in the attribute is supplemented by the prefix XmlUserDlg_ and is
transferred to the help system. The associated structure of the help file should be taken
from the topic - generating an online help.
Sequence when activating the help system:
1. Press the "Info" key.
2. The dialog supplies the expression "my_dlg_help".
3. Parser converts the expression into "XmlUserDlg_my_dlg_help" .
4. Activating the help system.
5. Submitting the search term "XmlUserDlg_my_dlg_help".
Syntax:
<HELP_CONTEXT name="<context name>" />
Example:
...
<INIT>
...
<CAPTION>my dialogue</CAPTION>
<HELP_CONTEXT name="my_dlg_help" />
...
</INIT>
Function Manual
256 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Menu name
Syntax:
<MENU name = "<menu name>">
…
<open_form …>
…
<SOFTKEY …>
</SOFTKEY>
</MENU>
NAVIGATION This tag defines the menu to be called. This tag can only be set within a softkey block.
Syntax:
<NAVIGATION>menu name</NAVIGATION>
Example:
<menu name = "main">
<softkey POSITION="1">
<caption>sec. form</caption>
<navigation>sec_menu</navigation>
</softkey>
</menu>
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 257
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
<form name="main_form">
<init>
</init>
<paint>
</paint>
</form>
PROPERTY This tag can be used to define additional properties for an operator control.
Attributes:
max= "<maximum value>"
min= "<minimum value>"
default = "<pre-assignment>"
factor = "conversion factor"
color_bk= "<background color coding>"
color_fg= "<font color coding>"
font = "<Font number>"
password = "<true>" - entered character is displayed with "*"
multiline = "<true>" - permits multi-line inputs in an edit control
disable = "<true/false>" - locks/permits the input in an edit control
Example:
<CONTROL name = "progress1" xpos = "10" ypos = "10" width = "100"
fieldtype = "progressbar" hotlink = "true" refvar =
"nck/Channel/GeometricAxis/actProgPos[1]">
<PROPERTY min = "0" />
<PROPERTY max = "1000" />
</CONTROL>
<CONTROL name = "edit1" xpos = "10" ypos = "10">
<PROPERTY min = "20" />
<PROPERTY max = "40" />
<PROPERTY default = "25" />
</CONTROL>
Function Manual
258 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
The following additional actions can be defined within the softkey block:
caption
navigation
update_controls
function
Syntax:
<softkey position = "<1>">
…
…
</softkey>
TEXT The tag is used to display a text in the specified position.
If an alarm number is used, the dialog box displays the text which is saved for the number.
Syntax:
<TEXT xpos = "<X position>" ypos = "<Y position>"> Text </TEXT>
Attributes:
xpos
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 259
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Width in pixels
height
Height in pixels
Examples:
<IMG xpos = "20" ypos = "40" name = "f:/appl/test.bmp" />
<IMG xpos = "5" ypos = "23" name = "f:/appl/test.bmp" height =
"355" width = "550"/>
BOX The tag draws a rectangle at the specified position, colored as indicated.
Syntax:
<BOX xpos = "<X position>" ypos = "<Y position>" width = "<X
extension>" height = "<Y extension>" color = "<Color code>" />
Attributes:
xpos
Color coding (for details on color coding, see chapter, Color coding)
Function Manual
260 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 261
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
The attribute lists the transfer parameters that are required. The parameters must be
separated by a comma.
When the function body is called, the values of the parameters specified in the function
call are copied to the transfer parameters listed.
return = "true"
If the attribute is set to true then the local variable $return is created. The function's
return value which is forwarded to the calling function on quitting the function should be
copied to this variable.
Syntax:
Function body without parameter
<FUNCTION_BODY name = "<function name>">
…
…
…
</ FUNCTION_BODY>
Function body with parameter
<FUNCTION_BODY name = "<function_name>" parameter = "<p1, p2, p3>">
…
<LET name = "tmp></LET>
<OP> tmp = p1 </OP>
…
</FUNCTION_BODY>
Function body with return value
<FUNCTION_BODY name = "<function_name>" parameter = "<p1, p2, p3>"
return = "true">
…
<LET name = "tmp></LET>
<OP> tmp = p1 </OP>
…
<OP> $return = tmp </OP>
</FUNCTION_BODY>
Function Manual
262 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Address identifier
Syntax:
<REQUEST name = "<NC-Variable>" />
UPDATE_CONTROLS The tag runs a comparison between the operator controls and the reference variables.
Attribute::
type
= TRUE – data is read from the reference variables and copied to the operator controls.
= FALSE – Data is copied from the operator controls to the reference variables.
Syntax:
<UPDATE_CONTROLS type = "<Direction>"/>
Example:
<SOFTKEY_OK>
< UPDATE_CONTROLS type="false"/>
</SOFTKEY_OK>
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 263
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
<caption>$$$field_name</caption>
Function Manual
264 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 265
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Function Manual
266 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Example:
<let name="str1" type="string">A brown bear hunts a
brown dog.</let>
<let name="str2" type="string"></let
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 267
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Function Manual
268 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Syntax:
<function name="string.delete"> string, start index
, nCount </function>
Example:
<let name="str1" type="string">A brown bear hunts.
</let>
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 269
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Function Manual
270 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 271
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
Function Manual
272 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
<function name="doc.writetofile">_T"\spf\test.mpf",
my_var </function>
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 273
Special functions
16.7 Generating user dialogs using customized EasyXLanguage scripts
<function name="doc.exist"
return="exist">_T"\mpf\test.mpf" </function>
ncfunc.select The function selects the program specified for execution. The
program must be stored in the NC file system.
Parameter:
progname - file name
Syntax:
<function name="ncfunc.select"> progname
</function>
Example:
<function name="ncfunc.select"> _T"\mpf\test.mpf"
</function>
Function Manual
274 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Licensing in SINUMERIK 808D 17
17.1 Licensing in SINUMERIK 808D
Note
You can obtain subsequent licenses from the Web License Manager
(http://www.siemens.com/automation/license).
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 275
Licensing in SINUMERIK 808D
17.2 Web License Manager
Requirements
The following prerequisites must be met in order to assign a license to a piece of hardware
via direct access and HMI user interface:
● The control system is powered up.
● The login data for direct access (e.g. per CoL) is available:
– License number
– Dispatch note number
● Type of the control system
● "CF card serial number" from the CompactFlash Card system
Operating sequences
1. In the "SYSTEM" operating area, press "Serv. displ." > "Version" > "License key" to find
the "CF card serial number".
Function Manual
276 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Licensing in SINUMERIK 808D
17.2 Web License Manager
Note
Ensure that the "CF card serial number" displayed is also really the one you want to make
the assignment for. The assignment of a license to a piece of hardware cannot be
reversed via the Web License Manager.
7. Press the "OK" softkey to confirm the entry for the new license key.
8. Activate the optional functions Manual Machine Plus and Additional Axis.
Note
For detailed information about activating the optional functions, refer to section "Activating
the optional functions (Page 278)".
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 277
Licensing in SINUMERIK 808D
17.3 Activating the optional functions
2. Press "Options". If you have activated the Additional Axis function by entering the licence
key, the value of the Licensed column is 1. Then you can set the Set column to 0 or 1,
which respectively indicates that 0 or 1 additional axis is set.
After you assign one additional axis and set the relevant MD correctly (see the note
below), the additional axis name can be seen in some operating areas. For example, the
"MACHINE" operating area will be shown as follows:
Function Manual
278 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Licensing in SINUMERIK 808D
17.3 Activating the optional functions
Or, press <SELECT> to select the software option Manual Machine Plus.
3. Press "NCK reset (po)". A warm restart is triggered on the control system. After system
restart, the corresponding software function is active in the control system.
Note
If either of the two options is not licensed, the alarm 8081 "1 option(s) that has (have) not
been licensed using a license key was (were) set" appears on the screen. Enter the valid
license; otherwise, you cannot operate the machine normally.
To use the additional axis function after activating it, set the following MDs first:
MD10000[1]: Change "Y" to another symbol except capital letter C, for example, "MC".
MD20070[3]: Change "0" to "2".
MD20080[3]: Set the value to "C".
When necessary, set the following MDs , wherein MD30300 determines whether the
additional axis is used as a rotary or linear axis.
– MD30300
– MD30310
– MD30320
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 279
Licensing in SINUMERIK 808D
17.4 Internet links
Term Description
Software product "Software product" is generally used to describe a product that is installed on a piece of
hardware to process data. Within the license management of SINUMERIK software products,
a corresponding license is required to use each software product.
Hardware In the context of the license management of SINUMERIK software products, "hardware"
refers to the component of a SINUMERIK control system to which licenses are assigned on
the basis of its unique identifier. License information is also saved to the retentive memory on
this component.
SINUMERIK 808D: CompactFlash Card system
License A license gives the user a legal right to use the software product. Evidence of this right is
provided by the following:
CoL (Certificate of License)
License key
CoL The CoL is the proof of the license. The product may only be used by the holder of the
(Certificate of License) license or authorized persons. The CoL includes the following data relevant for the license
management:
Product name
License number
Delivery note number
Hardware serial number
Note:
The hardware serial number is only found on a system software CoL or is only available if a
bundled license was ordered, in other words, the system software included options.
License number The license number is the feature of a license that is used for its unique identification.
CompactFlash Card The CompactFlash Card system represents, as the carrier of all the retentive data of a
system SINUMERIK solution line control system, the identity of this control system. The
CompactFlash Card system includes the following data that is of relevance to license
management:
Hardware serial number
License information including the License Key
Function Manual
280 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Licensing in SINUMERIK 808D
17.5 Important licensing terms
Term Description
Hardware serial number The hardware serial number is a permanent part of the CompactFlash Card system. It is used
to identify a control system uniquely. The hardware serial number can be determined by:
CoL (see: Certificate of License > "Note")
HMI user interface ("SYSTEM" operating area > "Serv. displ." > "Version" > "License
key")
Printing on the CompactFlash Card system
License key The License Key is the "technical representative" of the sum of all the licenses that are
assigned to one particular piece of hardware, which is uniquely marked by its hardware serial
number.
Option One option is a SINUMERIK software product that is not contained in the basic version and
which requires the purchase of a license for its use.
Product A product is marked by the data below within the license management of SINUMERIK
software products:
Product designation
Order number:
License number
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 281
Licensing in SINUMERIK 808D
17.5 Important licensing terms
Function Manual
282 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Index
D
A D functions, 200
Acceleration, 59 Dry run feedrate, 112
Acceleration profiles, 55
Abrupt acceleration changes, 55
Acceleration with jerk limitation, 55 E
activate the optional function, 278 EMERGENCY STOP
Approaching a fixed point Acknowledgment, 145
in JOG, 66 Interface, 144
With G75, 66 Sequence, 144
assign a license, 276 EMERGENCY STOP pushbutton, 143
ASUB Eventcontrolled program sequences
Initializing, 24 Operator panel reset,
Start, 105 Part program start and part program end,
Auxiliary function output Exact stop, 46
Block change, 77 Exact-stop criteria, 47
Block search, 80
Auxiliary functions, 75
Axis monitoring functions F
Actual velocity, 38
Clamping, 36 Feed disable, 194
Position monitoring, 33 Feedrate override, 59
Speed setpoint, 37 Feedrate override switch, 195
Standstill, 35 Feedrate/spindle stop, 194
Axisrelated jerk limitation, Feedrates
Axis-specific feedrate override, 196
Feed disable, 194
B Feed override, 195
Feedrate control, 193
Backlash compensation, 125 Feedrate/spindle stop, 194
Block search, 80, 113 Path feedrate F, 187
Spindle override, 196
Tapping with compensation chuck G63, 191
C Thread cutting G33, 189
CF card, 280 Fixed point positions, 69
Channel, 85 Following block velocity, 53
Channel status, 96
CoL, 280
Commands MEAS, MEAW, 136 G
Compensation table, 129 Grouping auxiliary functions, 78
Configuration file, 229
Continuous travel, 61
Contour violation, 41 H
Cyclic signal exchange, 14
Hand wheel
Traversal in JOG, 63
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 283
Index
Function Manual
284 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Index
Function Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 285
Index
TIMER, 250
UPDATE_CONTROLS, 263
WAITING, 243
WHILE, 244
Function Manual
286 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0