K1: Mode group, channel, program operation, reset response
9.9 Program operation mode
Basic Functions
560
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
Whether the current NC language scope of enabled options and active functions is also truly programmable can
be checked using the
STRINGIS
program command, see example.
Check sample application for NC language scope on cylinder jacket transformation TRACYL
The cylinder jacket transformation is optional and must be enabled beforehand. In order to check this, the
following initial conditions are assumed:
The cylinder coat transformation option is not enabled and the machine data
$MN_NC_LANGUAGE_CONFIGURATION = 2
; NC language command
TRACYL
is unknown
The following program is started
Example of whether STRINGIS result is programmable or not
The result of
STRINGIS
= number-coded return value (three-digit)
Number coding of the basic information (1st digit from the left):
000 Name is unknown, programming is denied with Alarm 12550
100: Name is known but cannot be programmed, triggers alarm 12533
200: Name/symbol is known, but interpretation is not possible
2xx: Name/symbol is known, the command can be programmed, if xx > 0
Definition for name/symbol:
Name: Any STRING that is checked to see
whether it is a component of the NC language in the existing NCK version or configuration.
Symbol: contains the description or significance of an NC language command that is needed for the NC program
and cycle interpretation.
N1 R1=STRINGIS("TRACYL")
;R1 is 0 (TRACYL is an unknown name)
N2 IF STRINGIS("TRACYL") ==204
N3 TRACYL(1, 2, 3)
;block is not interpreted
N4 ELSE
N5 G00
N6 ENDIF
N7 M30