×
Siemens Industry Online Support
Siemens AG
Entry type: FAQ Entry ID: 90234248, Entry date: 05/14/2014
(0)
Rate

SINUMERIK 810D/840D: Stopping or canceling a running NC program using one program command

  • Entry
  • Associated product(s)

Question
From the NC program, how can the program be stopped or canceled using the NC command?

Answer
You can stop the NC program from an NC block using the NC command SETAL. As a consequence, you can specifically respond to an event, and stop the NC program using NC-STOP. You can set an alarm to respond to fault states using the NC command SETAL. Depending on the effect and deletion criterion, there are various ways of using the SETAL command. An example for using the SETAL command is provided in the subsequent table.

Collision monitoring for two X axes

Task Programming example
Set alarm, when distance (actual value of axis X1 - actual value of axis X2) fall below the critical value 4.567 D=67 WHENEVER $AA_IM[X1] - $AA_IM[X2] < 4.567 DO SETAL(61000)

The SETAL command can be used to set cycle alarms from synchronized actions. Additional options of responding to faults are listed in the Function Manual "SINUMERIK 840D sl/840Di sl/840D/840Di/810D synchronized actions":

Action Chapter
Stop the axis Disabling a programmed axis motion
Set output Setting (writing) and reading of real-time variables
Further actions Actions in synchronized actions

Effects of SETAL cycle alarms

Number rang Designation Effect Delete
60000 - 60999 Cycle alarms (Siemens) Display, interlock NC start RESET
61000 - 61999 Cycle alarms (Siemens) Display, interlock NC start, motion stops after pre-decoded blocks are executed RESET
62000 - 62999 Cycle alarms (Siemens) Display Cancel
63000 - 64999 Reserved  -  -
65000 - 65999 Cycle alarms (user) Display, interlock NC start RESET
66000 - 66999 Cycle alarms (user) Display, interlock NC start, motion stops after pre-decoded blocks are executed RESET
67000 - 67999 Cycle alarms (user) Display Cancel
68000 - 69000 Reserved  -  -
70000 - 79999 Compile-cycle alarms  -  -


Security information
In order to protect technical infrastructures, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art IT security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about cyber security, please visit
http://www.siemens.com/industrialsecurity.