Commissioning HMI Advanced (IM4) 08/2005
2 Functions/Parameterization
© Siemens AG, 2005. All rights reserved
IM4/2-146 SINUMERIK 840D sl/840D/840Di/810D Installation and Start-Up HMI (IAM) - 08/2005 Edition
2.7.9 Example 8: Asynchronous Acknowledgment Mode with Softkeys
Softkeys can be preprogrammed in the COM file for display in asynchronous mode,
linked with the acknowledgment variable, and evaluated in the part program.
Part program
N10 QUIT_1 = "START"
N20 MMC("CYCLES, PICTURE_ON,T_SK.COM,SCREEN3,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,SCREEN1,GUD4.DEF,,,
N1","N")
N100 G4F10
N110 LABEL1:
N120 MMC("CYCLES, PICTURE_OFF","N")
N130 M30
Dialog screen file (*.COM)
//C3(Screen3)
(S/// USER VAR QUIT_1/W/QUIT_1//)
[TEXT VARIABLES]
K1 = ..Example8: MMC command with asynchronous acknowledgment mode
N1 = ..Example8: Screen2
Text variable
[SCREEN3]
SK1 = END
SK2 = Screen2