beautypg.com

3 entering the reference offset for edlog program – Campbell Scientific CS410 Shaft Encoder User Manual

Page 9

background image

CS410 Shaft Encoder


8: Z=X+Y (P33)
1: 1

X Loc [ count_up ]

2: 6

Y Loc [ stage_ft ]

3: 6

Z Loc [ stage_ft ]


9: Z=X-Y (P35)
1: 6

X Loc [ stage_ft ]

2: 2

Y Loc [ count_dwn ]

3: 6

Z Loc [ stage_ft ]


;Set offset once when program compiles

10: If Flag/Port (P91)
1: 21

Do if Flag 1 is Low

2: 30

Then

Do


11: Z=X+F (P34)
1: 6

X Loc [ stage_ft ]

2: 0

F

;Enter offset here

3: 6

Z Loc [ stage_ft ]


12: Do (P86)
1: 11

Set Flag 1 High


13: End (P95)

*Table 2 Program
02: 0.0000

Execution Interval (seconds)


*Table 3 Subroutines

End Program

After downloading the program, test the direction of the float movement by
raising the float up above the water level and note the stage value. If it
decreases, the direction is incorrect. This can be corrected in two ways: 1)
reverse the float and counter weight on the pulley, or 2) reverse the green and
white wires going into the pulse ports of the datalogger.

5.3 Entering the Reference Offset for Edlog Program

The offset, which sets the stage value equal to some reference point, should be
entered after the system has been installed and the float is resting on the water
surface. For a stream stage application the offset is the difference between the
staff gage reading and the datalogger reading from the encoder. For example;
if the staff gage reads 12.25 feet, and the datalogger reads 0.75 feet, the offset
would be 11.50 feet (12.25 - 0.75 = 11.50).

For the example program above the offset would then be added to the program
and re-downloaded, or the offset could be added using the keyboard display by
entering the value in the 11

th

step of the program. Another option would be to

use the *4 link in your program for the offset to avoid having to enter the
program tables (see your datalogger manual or Edlog for details).

5