Work preparation
3.23 Additional functions
Supplementary conditions
● The definition files *.com of the dialogs must be saved in the "proj" folder.
● The Easy XML definition files *.xml of the dialogs must be saved in the "appl" folder.
If the definition files are saved in a different directory, the path must be specified indirectly,
starting from the "appl" directory.
● User-defined dialogs from different channels cannot be simultaneously displayed.
● The MMC functionality is not supported in the simulation.
Examples
Example 1
Display of a dialog and response to the user operation in an NC program.
Program code
; The acknowledgement variable QUIT has already been created as a global user varia-
ble (GUD)
; Of the type STRING when the dialog was configured:
; DEF NCK STRING[20] QUIT
QUIT = "XXX"
G4 F5
MMC("CYCLES,PIC-
TURE_ON,test.com,test1","A")
INPUT:
GOTOB INPUT
WORK:
MSG("Continue with processing -> NC
start")
MMC("CYCLES,PICTURE_OFF","N")
M0
GOTOF END
CHECK:
MSG("Approach position -> NC start")
MMC("CYCLES,PICTURE_OFF","N")
M0
GOTOF END
994
STOPRE
IF MATCH (QUIT,"RUN") >= 0 GOTOF WORK
IF MATCH (QUIT,"CHK") >= 0 GOTOF CHECK
Comment
; Initialize acknowledgment variable
; Display dialog
;
- Operating area: CYCLES
;
- Picture status: PICTURE_ON (display)
;
- Dialog screen file: test.com
;
- Dialog screen: test1
; Wait for user input
;
Preprocessing stop
;
Softkey "RUN"
;
Softkey "CHK"
; => Wait
; Softkey "RUN" pressed
; Output message
; Close dialog
; Wait for NC start
; => Program end
; Softkey "CHK" pressed
; Output message
; Close dialog
; Wait for NC start
; => Program end
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
NC programming