July 2013 6.13 Integrated oscilloscope 1001
Oscilloscope via
NC program
As of software 340 49x-06, is possible to operate the integrated oscilloscope
from the NC program. This makes it possible, for example, to automate certain
machine analyses. When the oscilloscope is operated from the program, it
behaves in the same way as during manual operation. No additional locking
takes place: For example, active recording can be stopped with the STOP soft
key, restarted, or the settings can be changed. Remote access to the internal
oscilloscope during recording can also disturb the recording process. FUNCTION
SCOPE START reserves the internal oscilloscope for the respective function. The
oscilloscope is released automatically with FUNCTION SCOPE STOP, or at the end
of the program (PGM END) and selection of a new NC program. To call the
new functions, enter the code number 555343, press the FUNCTION SCOPE
soft key and then the PROGRAM FUNCTIONS soft key:
FUNCTION SCOPE START JOB "INI file" RESULT "RES file"
FUNCTION SCOPE START JOB QS1 RESULT QS2
This syntax starts the oscilloscope. The file specified in JOB initializes the
oscilloscope (channels, measurands to be recorded, trigger conditions,
sample time, ...). A *.DTA file is used for the initialization. This INI file can
be created automatically. To do this, set the desired configuration in the
internal oscilloscope and save the settings in a *.DTA file. Use the SAVE
CONFIG. soft key in the oscilloscope to save the configuration. The file then
only contains the current oscilloscope settings without the measured data.
The path to which the oscilloscope is to save the measured data is indicated
in Result. Both parameters are mandatory. However, you can specify them
independently of each other as explicit text or as a QS reference.
The INI file and the RES file must be entered with absolute paths. Both files
must have the extension *.DTA for oscilloscope recordings. If an INI file
already contains oscilloscope data, this data will be ignored during
evaluation.
This function reserves the internal oscilloscope, and therefore the
oscilloscope cannot be started with the OSCI soft key.
FUNCTION SCOPE STOP Q1
FUNCTION SCOPE STOP
This syntax switches the oscilloscope off again. If the execution of an NC
program is to vary depending on whether a trigger condition has been met,
a Q parameter can be transferred with the shutdown function. The
oscilloscope management describes the value of the transferred parameter
in order to give a feedback on the recording process. If the NC program is
structured appropriately, and especially if a default value other than 1 is
assigned to the parameter, this makes it possible for the user to derive
whether a trigger condition has been met and to select appropriate branches
that, for example, restart the oscilloscope or write the oscillograms to the
RES file. The following parameter values can occur:
0 = Recording had already been stopped before the SCOPE STOP function was
triggered. The trigger condition had not been met since SCOPE START.
1 = Recording was stopped by the SCOPE STOP function. The trigger
condition had not been met since SCOPE START.
2 = Recording had already been stopped before the SCOPE STOP function was
triggered. The trigger condition had been met since SCOPE START.
3 = Recording was stopped by the SCOPE STOP function. The trigger
condition had been met since SCOPE START.