Legacy Hardware and Apps
Digital state time log

Hi,

Can i program the DT800 to log the time in secs and continue to add the time the DS in on =1. I was thinking along the lines of sending the DS to a CV and an alarm on the CV but how to count the time.

Any suggestions?
Stephen

Hi, Can i program the DT800 to log the time in secs and continue to add the time the DS in on =1. I was thinking along the lines of sending the DS to a CV and an alarm on the CV but how to count the time. Any suggestions? Stephen

Good morning Stephen,

You should b able to. The internal channel 1ST is the second timer, so something like the following should work.

1DS(=1CV) 'Check digital state.
1ST(65000,=2CV,R) 'Get the time in seconds.
3CV("Total time~Sec")=3CV+(1CV*2CV) 'Sum the time.

Cheers,
Roger

Good morning Stephen, You should b able to. The internal channel 1ST is the second timer, so something like the following should work. ```` 1DS(=1CV) 'Check digital state. 1ST(65000,=2CV,R) 'Get the time in seconds. 3CV("Total time~Sec")=3CV+(1CV*2CV) 'Sum the time. ```` Cheers, Roger

Hi Roger,

I have loaded the following onto the DT800

RA1S LOGONA GA
7DSO
7DS(=100CV)
1ST(65000,=120CV,R)
130CV=130CV+(100CV*120CV)
12-V(#)
ALARM136(12-V(#)>1000.){[7DSO=1]}
ALARM56(12-V(#)<1000.){[7DSO=0]}
END

But the on time 130CV is not correct it is reading 2562 when i have reset the logger and 120CV starts @ 2637 upon DS change to 1 for 1 sec it reads 5699 and after 2 sec 8580.

Hi Roger, I have loaded the following onto the DT800 ```` RA1S LOGONA GA 7DSO 7DS(=100CV) 1ST(65000,=120CV,R) 130CV=130CV+(100CV*120CV) 12-V(#) ALARM136(12-V(#)&gt;1000.){[7DSO=1]} ALARM56(12-V(#)&lt;1000.){[7DSO=0]} END ```` But the on time 130CV is not correct it is reading 2562 when i have reset the logger and 120CV starts @ 2637 upon DS change to 1 for 1 sec it reads 5699 and after 2 sec 8580.

Good morning Stephen,

So what you want to do is measure the amount of time analog input 12-V is over 1000 mV and you are sampling once per second. We can use a different approach:

RA1S LOGONA GA

12-V(#,=100CV)
ALARM136(100CV>1000)7DSO
7DS(=120CV)
130CV=130CV+120CV
END

Cheers,
Roger

Good morning Stephen, So what you want to do is measure the amount of time analog input 12-V is over 1000 mV and you are sampling once per second. We can use a different approach: ```` RA1S LOGONA GA 12-V(#,=100CV) ALARM136(100CV&gt;1000)7DSO 7DS(=120CV) 130CV=130CV+120CV END ```` Cheers, Roger
20
3
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft