Datetime - Siemens SINUMERIK 840D sl Operating Manual

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

Advertisement

4.6.10.12

DateTime

DateTime("<dt>")
The DateTime() function permits the determination and use of the current date and the
current time.
The format in which the date and time is to be provided is communicated to the function via
the argument ("<dt>"). For examples of this, see the following.
For a call of the function without an argument, i.e. with a blank string "" for ("<dt>"), the date
and time are formatted as per ISO 8601 "yyyy-MM-ddThh:mm:ss".
Also observe uppercase/lowercase within the argument ("<dt>").
Example
To generate a unique name for the logbook, you can proceed as follows, for example:
Up.dt = DateTime("yyyy-MM-dd.hh-mm-ss")
Up.$Dialog.PackageEnd.LogName = "$(Up.$Pack.DeployName)_$(Up.dt)"
The file extension "htm" or "exe" is automatically generated by the package, depending on the
configured password protection.
Note
You can also assign other files (archive...) with specifically generated names in this fashion.
Examples of units of time
Up.year = DateTime("yyyy") ; the year as four digit number
Up.month = DateTime("MM") ; the month as number with a leading zero
(01-12)
Up.day = DateTime("dd") ; the day as number with a leading zero (01
to 31)
Up.hour = DateTime("hh") ; the hour with a leading zero (00 to 23)
Up.minute = DateTime("mm") ; the minute with a leading zero (00 to
59)
Up.second = DateTime("ss") ; the second with a leading zero (00 to
59)
Up.milliseconds = DateTime("zzz") ; the milliseconds with leading
zeroes (000 to 999)
Up.dt = DateTime("yyyy-MM-dd hh:mm:ss.zzz") ; previous examples in
combination
SINUMERIK Integrate Create MyConfig - Diff, Expert, Topo
Operating Manual, 11/2016, A5E36537479B-AD
Create MyConfig - Expert
4.6 Script language
271

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828d

Table of Contents