July 2013 8.1 Display and operation 1237
FN17 and FN18
functions for Global
Program Settings
You can use the FN 17 SYSWRITE functions to reset global program settings
to standard values (ID 330), set them inactive (ID 331) or set values (ID 332).
The FN 18 SYSREAD functions are used to check global program settings for
activity (ID 330 and ID 331) and read the values (ID 332).
ID 330 NR 0 Resets everything to default values and checks for active global program
settings.
Examples:
FN 18: SYSREAD Q1 = ID 330 NR0 IDX0
Returns 1 if a global program setting is active; otherwise 0
FN 17: SYSWRITE ID 330 NR0 IDX0 = 0
Resets everything to default values (like SET STANDARD VALUES soft key)
The following must be observed when using the global PGM settings:
Basically, all settings in the Global PGM Settings remain active when
executing cycles and NC programs. However, when executing macros or
PLC positioning movements, all Global PGM Settings are automatically
deactivated.
If you disable one or more axes via Global PGM Settings, then this
disabling is only canceled within a macro or during the PLC positioning.
However, if you transfer axis position values to the PLC (e.g. with FN19)
within a cycle or NC program and then perform a PLC positioning, then
this positioning really is performed with all axes. However, if the axis
position values transferred from a cycle or an NC program are not
approached, due to the Global PGM Settings, then this can lead to a crash
during the subsequent PLC positioning.
M118 cannot be deselected in cycles if handwheel superimpositioning
has been activated in the Global PGM Settings. However, handwheel
superimpositioning is automatically deactivated in the Global PGM
Settings when executing a macro.
If you read the position values of an axis via the PLC, then when you
interrogate the nominal values, the nominal value programmed in an NC
program is returned, and not the actual value of the axis. If further actions
derive from the nominal value, then this can lead to problems, since
these value do not necessarily reflect the actual position values of the
axes. If you interrogate the actual value of an axis, then the actual position
is returned.