Starting the teaching of collision detection values
Description
The function block KRC_CDStartTeaching is used to start teaching of collision detection values. Maximum measured values are reset and can then be taught via executing expected motions multiple times (see system functionality collision detection). For this, execute the desired motion commands after function block KRC_CDStartTeaching finished and call function block KRC_CDStopTeaching at the end.
Inputs
Parameter | Type | Description |
|---|---|---|
AxisGroupIdx | INT | Index of axis group
|
ExecuteCmd | BOOL | The statement is executed in the case of a rising edge of the signal. |
BufferMode | INT | Mode in which the statement is executed
(>>> BufferMode) |
DatasetIndex | INT | Index of the data set which should be updated with the taught values if desired (decided when teaching is stopped)
|
TeachingOffset | INT | Offset to be applied to all datasets until teaching is finished. This is to be able to teach higher values than the current threshold without being stopped by the active collision detection.
The maximum of the original threshold value plus the teaching offset is also 500. |
Outputs
Parameter | Type | Description |
|---|---|---|
Busy | BOOL | TRUE = statement is currently being transferred or has already been transferred |
Active | BOOL | TRUE = statement is currently being executed |
Done | BOOL | TRUE = statement has been executed |
Aborted | BOOL | TRUE = statement has been aborted |
Error | BOOL | TRUE = error in function block |
ErrorID | DINT | Error number |
OrderID | DINT | OrderID number |