3 cr1000 com port (control port) communications, Cr1000 com port (control port) communications – Campbell Scientific CC5MPX and CC5MPXWD Digital Network Cameras User Manual

Page 100

Advertising
background image

Section 16. CR1000 Interface Guide

16-2

• DDD – Is the destination drive on the CR1000

o USR for the user drive

o CRD for the compact flash memory card

• NAME – Is any name string that will be used to name the files

• EXT – The file extension of the incoming file must match. In the case of

the camera this must always be either “JPG” or “AVI”.

• NNNN – The number of files kept in the ring memory. This number

should be low enough so that the memory required for the files is less than
what is available in the corresponding drive. However, for the internal
USR drive this would normally be between 3 and 10 images and for CRD
drive (memory card) this can be larger. When communications are used to
retrieve images, it is suggested to limit the number of files in the ring
memory to 200 in order to avoid long communication delays.

An example of Files Manager setting is as follows:
(55,USR:SkySouth.JPG,3)

o Camera PakBus address is 55

o The files will be stored in the USR: director with a name

SkySouth####.JPG where #### is an incrementing number. Entering
a zero for this parameter will disable the automatic numbering and
produce a fixed file name.

o The three most recent files will be kept. A new incoming file will

cause the oldest to be deleted.

16.3 CR1000 COM Port (Control Port)

Communications

On the CR1000 the control ports can be configured to function as RS-232
communication ports. Any of these four COM ports can be configured as
PakBus ports and used to communicate with the camera.

The COM ports can be activated as PakBus ports using the Device
Configuration utility or by using the SerialOpen instruction in the CR1000
program.

The following SerialOpen instruction configures COM port 2.

• BAUD rate - 115200

• PakBus Port – 4

• Transmit delay - 0,

• Buffer size - 1000.

SerialOpen (Com2,115200,4,0,1000)

Advertising