Programming support
3.3 Activating a dialog from the NC program
Expanding the user interface
3-16
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
3.3.9
Example 7: Asynchronous acknowledgment mode with softkeys
Description
Softkeys can be preprogrammed in the COM file for display in asynchronous mode, linked
with the acknowledgment variable and evaluated in the parts program.
Selecting
N10 QUIT_1 = "START"
N20
MMC("CYCLES,PICTURE_ON,T_SK.COM,PICTURE3,GUD4.DEF,"QUIT_1,K1","A")
N30 LABEL0:
N40 STOPRE
N50 IF MATCH (QUIT_1,"SK1") >= 0 GOTOF LABEL1
N60 IF MATCH (QUIT_1,"SK2") >= 0 GOTOF LABEL2
N70 GOTOB LABEL0
N80 LABEL2:
N90 MMC("CYCLES,PICTURE_ON,T_SK.COM,PICTURE1,GUD4.DEF,"N1","N")
N100 G4F10
N110 LABEL1:
N120 MMC("CYCLES,PICTURE_OFF","N")
N130 M30
Parameters:
Dialog file (*.COM)
//C3(Screen3)
(S///USER VAR QUIT_1/W/QUIT_1//)
Text variable
[TEXT VARIABLES]
K1 = ..Example8: MMC command with asynchronous
acknowledgment mode
N1 = ..Example8: Picture2
Softkey
[SCREEN3]
SK1 = END
SK2 = Screen2
Program structure
The acknowledgment variable is defined as a string.
Length of the string: >= 20
;(Values < 20 are evaluated internally only, SK0 ... SK15 are
entered at position 17...20 when a softkey is actuated).
The string is assigned a value in the parts program and any old softkey information is
deleted.
Before the parts program can branch as a function of the acknowledgment variable, the
block search must be halted by the STOPRE command.
Summary of Contents for SINUMERIK
Page 6: ...Preface Base software and HMI Advanced 6 Commissioning Manual 03 2009 6FC5397 0DP10 3BA0 ...
Page 96: ......
Page 562: ...Index Expanding the user interface Index 4 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 ...
Page 566: ...Table of contents Online Help HE1 4 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 ...
Page 598: ...Online Help HE1 Commissioning Manual 11 2006 6FC5397 0DP10 0BA0 36 ...