Siemens SINUMERIK 840D sl Operating Manual page 302

Integrate create myconfig - diff, expert, topo
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Create MyConfig - Expert
4.6 Script language
The environment system variables of the runtime system can be used.
By testing the return value for "Null", it can be determined whether or not the function could
find the file, the section or the identifier.
Example 1
Query the "FirewallOpenPorts" identifier in the "LinuxBase" section in the
"basesys.ini" file.
Content of "basesys.ini"
[LinuxBase]
FirewallOpenPorts="TCP/5900 TCP/102 TCP/22"
Function call in Expert
Up.FOP = QueryIni("/user/system/etc/basesys.ini","LinuxBase/
FirewallOpenPorts")
MSG("The FirewallOpenPorts are :$
(Up.FOP)")
Function return value
Up.FOP contains the function return value: e.g. "TCP/5900 TCP/102 TCP/22".
Example 2
The softkeys are checked for their existence and access level in "logdrive.ini".
Up.file = "/user/sinumerik/hmi/cfg/logdrive.ini"
If !FileExist(RTS,Up.file)
Warning("No "logdrive.ini" file exists!")
Else
up.i=1
While up.i<25
If QueryIni(Up.file,"DEVICE_$(up.i)/AccessLevel") == Null
Log("The $(up.i) softkey is not used.")
Else
up.AL=QueryIni(Up.file,"DEVICE_$(up.i)/AccessLevel")
If up.AL != "7"
Else
EndIf
EndIf
up.i+=1
302
Warning("The $(up.i) softkey has the AccessLevel $(up.AL)")
Log("The access level of softkey $(up.i) is $(up.AL).")
SINUMERIK Integrate Create MyConfig - Diff, Expert, Topo
Operating Manual, 12/2017, A5E36537479B-AE

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828d

Table of Contents