Siemens SINUMERIK Commissioning Manual page 480

Sinumerik 840di sl/840d sl/840dbase software and hmi advanced
Hide thumbs Also See for SINUMERIK:
Table of Contents

Advertisement

Programming support
3.3 Activating a dialog from the NC program
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)
Text variable
Softkey
Program structure
The acknowledgment variable is defined as a string.
Length of the string: >= 20
;(Values < 20 are evaluated internally only,
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.
3-16
//C3(Screen3)
(S///USER VAR QUIT_1/W/QUIT_1//)
[TEXT VARIABLES]
K1 = ..Example8: MMC command with asynchronous
acknowledgment mode
N1 = ..Example8: Picture2
[SCREEN3]
SK1 = END
SK2 = Screen2
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
SK0 ... SK15 are
Expanding the user interface

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents