2 cr10x edlog program example – Campbell Scientific CS410 Shaft Encoder User Manual
Page 8

CS410 Shaft Encoder
5.2 CR10X Edlog Program Example
This program collects and processes data; additional instructions are required
to send the data to final storage. The data must be in final storage to transfer
the data to a storage module or to retrieve the data via a telecommunications
link.
CR10(X) Program for the CS410:
*Table 1 Program
1: 5
Execution Interval (seconds)
1: Pulse (P3)
1: 1
Reps
2: 1
Pulse Channel 1
3: 0
High Frequency, All Counts
4: 1
Loc [ count_up ]
5: 1
Mult
6: 0
Offset
2: Pulse (P3)
1: 1
Reps
2: 2
Pulse Channel 2
3: 0
High Frequency, All Counts
4: 2
Loc [ count_dwn ]
5: 1
Mult
6: 0
Offset
;PROCESSING INSTRUCTIONS
3: Z=F (P30)
1: 100
F
;pulses per revolution
2: 0
Exponent of 10
3: 3
Z Loc. [ _100 ]
4: Z=F (P30)
1: 1
F
;pulley circumference (1 foot)
2: 0
Exponent of 10
3: 4
Z Loc. [ circ ]
5: Z=X/Y (P38)
1: 4
X Loc. [ circ ]
2: 3
Y Loc. [ _100 ]
3: 5
Z Loc. [ ft_count ]
;feet per count
6: Z=X*Y (P36)
1: 1
X Loc [ count_up ]
2: 5
Y Loc [ ft_count ]
3: 1
Z Loc [ count_up ]
7: Z=X*Y (P36)
1: 2
X Loc [ count_dwn ]
2: 5
Y Loc [ ft_count ]
3: 2
Z Loc [ count_dwn ]
4