Reference Manual
Chapter
4
IVC-2D
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
51
Image
Ping-Pong Grab
Ping-pong grab is an important tool in applications where new images must be acquired
fast and often. The first time Ping-pong grab is executed in your step program, an image is
grabbed and placed in the image bank indicated by the parameter
Destination bank A
.
The result value is then set to the same value as that parameter to indicate that the image
in this bank is available to work with. Then an acquisition of a new image, which is placed in
the image bank indicated by the
Destination bank B
parameter, is initiated in parallel with
execution of steps following Ping-pong grab. After the first time a Ping-pong grab is exe-
cuted in the program, the function is as follows.
Ping-pong grab waits for previously acquired images to be placed in an image bank if that
process is not yet completed. The result value states which bank that is and a new image
acquisition is initiated in parallel with steps following the Ping-pong grab step. The new
image should be placed in a different image bank indicated by one of the
Destination bank
parameters. If n is a positive integer, the new image is placed in
Destination bank A
the
(2n)th time Ping-pong grab is executed and in
Destination bank B
the (2n+1)th time.
Note that the same Ping-pong step can be executed several times by using loops or jump
steps. The idea of this tool is that the execution time of the Ping-pong grab step is much
shorter than a regular image acquisition except the first time the tool is executed in a
program and in the case where intermediate steps have shorter execution time than the
time of an image acquisition. Also note that the execution time of Ping-pong grab in run
mode is longer than what is indicated in step mode for the latter case.
Input Parameters
01 = Destination bank A
Indicates the image bank in which an image is placed the
(2n)th time the tool is executed in the program.
02 = Destination bank B
Indicates the image bank in which an image is placed the
(2n+1)th time the tool is executed in the program.
Returned Values
01 = Result bank
Indicates which bank contains an image ready to work on.