User manual

Toolbox 32 User Manual 1.47d www.cse-semaphore.com/mykingfisher
Page
130
Example - Kingfisher Images
To configure an RTU to capture images:
First ensure that the latest firmware is loaded in the CPU or MC module (as detailed in protocols.pdf
available from www.cse-semaphore.com/mykingfisher). The CPU firmware version can be checked by
viewing the RTU Status and the MC firmware version can be checked by viewing the Hardware
Overview and selecting the MC module.
If a PC-1/CP-1 is being used with an MC-xx, then the image capture driver (IMAGExx.DRV) will need to
be downloaded into the PC-1 or CP-1 using the menu Utilities, Advanced, Download Firmware
Driver. When this is downloaded, "Image" will appear in the "Firmware drivers included" section of the
RTU Status.
Configure enough memory in the RTU for image storage using the menu Configuration, Memory,
Image Buffer. A good quality large image uses 10 KB of memory. It is recommended that enough
memory is allocated to store at least 2 images. When the image buffer is full, the oldest image is over-
written by the newest image. When using an MC module, 256kB of memory is automatically allocated for
image storage in the MC module.
Configure the image capture port using the menu Configuration, Port List. The image capture option
board is treated like a communications port. Set the following options:
Module = CP-x P2 or CP-x P3 or MC-x P2 or MC-x P3
(ie. the location of the image capture option board)
Type = Image Capture
All other parameters are irrelevant and are ignored.
After downloading the RTU configuration, images can now be captured using the Image Manager
program. This program allows the image capture port to be configured, images to be captured and then
uploaded from the RTU.
Alternatively, the RTU can use ladder logic to configure the image capture port and then capture images
(please see the example below).
An example of setting up a single camera on port 3 of a CP-xx module and capturing images when a digital
input is triggered is shown below. Every scan, the image buffer statistics are copied to local registers. As
soon as a new image is added to the memory buffer (ie. when the value of Next Image Number changes) or
after 2 seconds of the camera not ready, the CameraReady flag is set and the RTU is now ready to capture
the next image. Note: care must be taken when capturing new images. If a new image is captured before the
last image has finished, the last image will be corrupted.