Siemens SINUMERIK 840D sl Programming Manual page 67

Measuring cycles
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

The contents of the string array are logged when a new CYCLE160 is called. The logging
always begins with array index 0 and continues until an empty string (i.e. string length 0) is
found.
For simple applications, an NCK-global array of string variables is predefined in the PGUD
block:
DEF NCK STRING[200] S_LOGTXT[10]
This means that 10 lines can be immediately logged.
If this is not sufficient, the user can alternatively create a second string array of any length with
the predefined name S_USERTXT[n] in a separate GUD block (e.g. MGUD or UGUD):
DEF NCK STRING[200] S_USERTXT[n]
The logging function checks whether the S_USERTXT array is available. If it is available, the
contents of this array are logged, if not, the contents of S_LOGTXT.
At the program position where CYCLE160 is called, the logging is performed according to the
logging destination set by the CYCLE150 call – exactly the same as the logging of
measurement results.
This function can be used to output a complete user-specific log (without any reference to the
measuring) or to insert additional lines in standard logs.
If additional lines are to be written in standard logs in tabular format, the user must ensure the
column formatting in these strings (insert separators ";").
Procedure
"User log" is selected in the CYCLE150 screen form for the log control.
There is no difference between text format and tabular format – the user determines the
contents. The corresponding selection field is hidden for the user log.
If the path is entered, it is performed with the same dialog as for the standard log.
Measuring cycles
Programming Manual, 12/2017, 6FC5398-4BP40-6BA1
Description
2.14 Miscellaneous functions
67

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents