Picking up a workpiece from the conveyor
Description
The function block KRC_ConvSkip is used to determine which workpieces are to be picked up, e.g. every second workpiece, every third workpiece, etc. A total of up to 1024 workpieces can be monitored in the background.
If the workpiece has already exceeded the maximum conveyor distance (input MaxDistance) when the function block is called, the output MaxDistanceReached is set.
This function block can only be executed if the AMI has been activated using KRC_ConvOn. |
Inputs
Parameter |
Type |
Description |
---|---|---|
AxisGroupIdx |
INT |
Index of axis group
|
ExecuteCmd |
BOOL |
Starts/buffers the motion in the case of a rising edge of the signal. |
ConveyorNumber |
INT |
Number of the conveyor
|
PieceNumber |
INT |
The number entered specifies which workpieces are to be picked up. Examples:
|
StartDistance |
REAL |
Distance traveled by the workpiece while the robot waits before starting to track the workpiece on the conveyor.
|
MaxDistance |
REAL |
Maximum distance traveled by the workpiece before the robot starts to synchronize itself with the workpiece.
Note: This input is not monitored during synchronized motions of the conveyor. The distance covered by the workpiece is monitored by an interrupt. The corresponding settings are made in WorkVisual. |
BufferMode |
INT |
Mode in which the statement is executed
(>>> BufferMode) |
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 |
MaxDistanceReached |
BOOL |
TRUE = the maximum distance traveled by the workpiece (input MaxDistance) was already exceeded at the time of execution. The statement was not executed. Execution of the program is stopped (WAIT FOR FALSE) and is waiting for the program to be aborted. |
Error |
BOOL |
TRUE = error in function block |
ErrorID |
DINT |
Error number |