Call Of Procedures And Functions From A Script Library - Siemens SINUMERIK 840D sl Operating Manual

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
A comment with the keyword "Arg1:" to "Arg9:" describes the transferred argument in more
detail. These specifications are taken into account in the later display in the context menu.
In this way, the project engineer can ensure during the function creation that another user
knows what the function performs and which arguments have to be used.
However, a supplementary condition for the use of the functionality is that there are no empty
lines between the comments and the function definition.
Example of a function definition
A function definition without the optional specifications results in the following standard display
in the context menu.
func MyFunction($, $) {
Example of a function definition with optional specifications
If you add the optional specifications to the definition, the display is extended by the information
shown in the following.
;Description: Example of a function definition
;Arg1:<string>
;Arg2:<doVar>
func MyFunction($, $) {
4.6.18.3

Call of procedures and functions from a script library

If you have defined a procedure or function through a script library, you can insert it directly in
the Script Editor or with the aid of the Editor context menu.
As with the standard functions, all procedures and functions from the script libraries are listed
at the "Insert script" menu item. All the procedures and functions defined through UpLib files
are listed below the "Script libraries" menu item. The name of the UpLib file represents a
separate submenu which lists all definitions from this script library.
344
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