Create MyConfig - Expert
4.4 Project folder
Example: Entering an NCU-dependent SDB archive into the System configuration dialog
if (up.$Env.NCU=="SIEMENS SINUMERIK 840D sl NCU730.3 PN"||
up.$Env.NCU=="SIEMENS SINUMERIK 840D sl NCU 730.3B PN with PLC 317-3PN/DP")
Up.$Dialog.SystemConfig.SdbFile = "./_sdb/73015151515db.arc"
return()
endif
if up.$Env.NCU=="SIEMENS SINUMERIK 840D sl NCU720.3 PN"
Up.$Dialog.SystemConfig.SdbFile = "7203ohneCUklass.arc"
return()
endif
Example: Entering an NCU-dependent default topology in the SINAMICS topology dialog
if up.$Env.NCU=="SIEMENS SINUMERIK 840D sl NCU730.3 PNxxx"
Up.$Dialog.DriveTopology.UtzFile = "./730CU_NX.utz"
endif
if up.$Env.NCU=="SIEMENS SINUMERIK 840D sl NCU720.3 PNxxx"
Up.$Dialog.DriveTopology.UtzFile = "./sw/720ohneSPsot.utz"
endif
Example: Evaluating the drive source in the SINAMICS topology dialog
if Up.$Dialog.SystemConfig.DrvSource == Up.
$Dialog.SystemConfig.DrvSources.AUTOMATIC
up.drvsource="AGK"
endif
if Up.$Dialog.SystemConfig.DrvSource == Up.
$Dialog.SystemConfig.DrvSources.TARGET
up.drvsource="SOT"
endif
if Up.$Dialog.SystemConfig.DrvSource == Up.
$Dialog.SystemConfig.DrvSources.ORIGIN
up.drvsource="orig"
endif
Example: Verification before the start of execution in the Step tree dialog
Verification before the start of execution of the Step tree dialog page whether step "6" was
activated with the ID "_gp4x".
If Up.$Step[_gpx].Activated==false
warning("In this version, step 6 must be activated.")
150
SINUMERIK Integrate Create MyConfig - Diff, Expert, Topo
Operating Manual, 12/2017, A5E36537479B-AE