Siemens SINUMERIK Commissioning Manual page 421

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

Advertisement

2.7.1
Activate Program (AP)
Description
The AP (Activate Program) function transfers a file from the passive HMI file system to the
active NC file system. The file is loaded into the NC and enabled and then deleted in the HMI
file system. With HMI Embedded sl, this function has the same effect as Set enable.
Programming
Syntax:
Description:
Parameters:
Example
//M(TestGC/"Code generation:")
DEF VAR1 = (R//1)
DEF VAR2 = (R//2)
DEF D_NAME
LOAD
VAR1 = 123
VAR2 = -6
END_LOAD
OUTPUT(CODE1)
"Cycle123(" VAR1 "," VAR2 ")"
"M30"
END_OUTPUT
PRESS(VS1)
D_NAME = "\MPF.DIR\MESSEN.MPF"
GC("CODE1",D_NAME)
END_PRESS
PRESS(HS8)
D_NAME = "\MPF.DIR\MESSEN.MPF"
AP(D_NAME)
END_PRESS
Expanding the user interface
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
File
AP("
")
Transfers a file from the passive HMI file system to the active NC file
system
File
Complete path name of HMI file to be transferred
;
;
Write code from the OUTPUT method to file
\MPF.DIR\MESSEN.MPF
Load file into NC
Programming
2.7 Functions
2-71

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents