# Reject management

The reject management function is used for automatic repair or termination of failed steps. At each synchronization point the status of the tightening is evaluated. If the status is OK the next part of the tightening program starts. If the status is NOK an action is taken to repair, terminate or end the tightening program.

The repair path from each sync point is defined in the repair area in the tightening program.
The termination path from each sync point is defined in the termination area in the tightening program.

Status at a synchronization point

When all tools have reached a synchronization point the status of each tool and the total status is evaluated.

| OK | NOK | Not repairable | Fatal
--- | --- | --- | --- | ---
Status of a tool | Everything is OK so far. | The step(s) before the synchronization point has an error detected by a monitor. For these errors a repair is possible to do. | The step(s) before the synchronization point has an error detected by a restriction. | The step(s) before the synchronization point has a fatal error. Reasons for this can be: - Hardware errors in tool or drive - Max time in program restriction Time was exceeded - Max torque in program restriction Torque was exceeded.
Status for a repair group | All the tools in the repair group reached the synchronization point with status OK. | At least one of the tools in the repair group reached the synchronization point with status NOK (and none had the status Not repairable or Fatal). | At least one of the tools in the repair group reached the synchronization point with status Not repairable (and none had the status Fatal). | At least one of the tools in the repair group reached the synchronization point with status Fatal.
Total status | All the tools reached the synchronization point with status OK. The execution of the program continues with the next step in the tightening. | At least one of the tools reached the synchronization point with status NOK (and none had the status Not repairable or Fatal). | At least one of the tools reached the synchronization point with status Not repairable (and none had the status Fatal). | At least one of the tools reached the synchronization point with status Fatal.

Calculate action if total status at a synchronization point is NOK

If total status at a synchronization point is NOK the applicable action is calculated. The action is decided depending on the set triggers. The first trigger that is fulfilled decides the action to take:

1. Maximum number of failing steps exceeded:
   If the total number of failing steps in the whole tightening exceeds the number Max number of failing steps the Action of exceeded is used. If the same step fail more than once it still only counts as one failing step.

2. Maximum number of repairs exceeded:
   If the total number of repairs started from the current synchronization point exceeds the number Repairs in the Number of repairs trigger the Repair action is used.

3. Maximum number of failing groups:
   If the number of failing groups (groups that have status NOK) exceed the number NOK groups in the Number of NOK channels trigger the NOK group action is used.

4. Maximum number of failing tools:
   If the number of failing tools (tools that have status NOK ) exceed the number NOK channels in the Number of NOK groups trigger the NOK channel action is used.

5. Default failing action:
   If none of the conditions above is fulfilled the setting in Default failing action is used.

Action running a repair

A tool that runs a repair will run the steps in its repair path and jump back to a previous synchronization point. The repair is ongoing until the program returns to the synchronization point that started the repair. When the repair are done the status of the tools, repair groups and the total status will be evaluated again. If the total status is now OK all tools will continue with the next step, otherwise a new repair or termination is started.

The tools not running a repair will stay at the current synchronization point and wait for the repair to finish.

Action on status | Total status NOK
--- | ---
Repair NOK | All the tools with status NOK will run a repair. The tools not running a repair will stay at the current synchronization point and wait for the repair to finish.
Repair NOK groups | All tools that belong to a repair group with status NOK will run a repair. All the tools in the repair group will run a repair, regardless of their individual status. The tools not running a repair will stay at the current synchronization point and wait for the repair to finish.
Repair All | All the tools, regardless of their status, will run a repair.

Action running a termination

A tool that run a termination will run the steps in its termination path. After that the tightening is completed with status NOK.

Action on status | Total status NOK | Total status Not repairable
--- | --- | ---
Terminate NOK | All the tools with status NOK will run a termination. | All the tools with status NOK or Not repairable will run a termination.
Terminate NOK Groups | All tools that belong to a repair group with status NOK will run a termination. All the tools in the repair group will run a termination, regardless of their individual status. | All tools that belong to a repair group with status NOK or Not repairable will run a termination. All the tools in the repair group will run a termination, regardless of their individual status.
Terminate All | All the tools, regardless of their status, will run a termination.

The tools with status OK will continue according the setting Other :
- Continue, The other tools will wait on the current synchronization point until the termination is finished. After this they will continue with the remaining parts of the tightening program.
- End all, The other tools will end the tightening.

Action end a tightening program

A tool that end the tightening program will go directly to the end without running any other steps. After that the tightening is completed with status NOK.

Action on status | Total status NOK | Total status Not repairable
--- | --- | ---
End NOK | All the tools with status NOK will end the tightening without running the termination path. | All the tools with status NOK or Not repairable will end the tightening without running the termination path.
End NOK Groups | All tools that belong to a repair group with status NOK will end the tightening without running the termination path. All the tools in the repair group will end the tightening, regardless of their individual status. | All tools that belong to a repair group with status NOK or Not repairable will end the tightening without running the termination path. All the tools in the repair group will end the tightening, regardless of their individual status.
End All | All the tools, regardless of their status, will end the tightening without running the termination path.

The tools with status OK will continue according the setting Other :
- Continue: The other tools will continue with the remaining parts of the tightening program.
- Terminate all: The other tools will run a termination.

Action on total status Fatal

If the total status is Fatal a repair is not allowed. The tools with status Fatal cannot run anymore, so they will just end the tightening. The other tools will terminate, regardless of their individual status.

- If one of the bolts is NOK but has no repair action configured in the tightening program, the mode will end all. NOK will state the main NOK cause for that bolt.

- If one of the bolts is NOK and has a repair path, the system tries to repair until the maximum time limit is reached on the NOK bolt. The other bolts, which are OK, will wait. If the bolt gets OK after n number of repairs, the program continues as in the first bullet above with all the bolts. If the bolt still does not get OK, the whole sync mode will end as in bullet two.