Support Forums
Two relays control

Could anyone please assist me on how i can program the data logger DT80 to be able to switch on two relays at 30 seconds interval and then repeat the measurements after every ten minutes.

bm

Could anyone please assist me on how i can program the data logger DT80 to be able to switch on two relays at 30 seconds interval and then repeat the measurements after every ten minutes. bm

Good morning bm,

Think of DT80 as a timer. If you have a schedule running every 30 seconds then you can simply turn the relays on then off. Then count 20 cycles and repeat the process.

In programming logic there are a number of ways to build the code. One approach is:

Begin
1CV=0
RA30S
1CV=1CV+1 'Count the number of 30 second
If(1CV==1){1DSO=0; 2DS)=0} 'First time turn on the relay
If(1CV>1){1DSO=1; 2DSO=0} 'If not first time turn off the relay
If(1CV>21){1CV=0) 'If 10 minutes reset the counter.
End

Cheers,
Roger

Good morning bm, Think of DT80 as a timer. If you have a schedule running every 30 seconds then you can simply turn the relays on then off. Then count 20 cycles and repeat the process. In programming logic there are a number of ways to build the code. One approach is: ```` Begin 1CV=0 RA30S 1CV=1CV+1 'Count the number of 30 second If(1CV==1){1DSO=0; 2DS)=0} 'First time turn on the relay If(1CV>1){1DSO=1; 2DSO=0} 'If not first time turn off the relay If(1CV>21){1CV=0) 'If 10 minutes reset the counter. End ```` Cheers, Roger

Dear Roger,

Thanks for your response. I have a schedule running every minute. My worry is how can I infuse the instruction on the data logger on the schedule so that the measurements i intend to measure will be synchronized with the data logger.

If I am to write a program, do I have to do this on the separate schedule? I am still a junior when it comes to the data logger.

Thanks,
BM

Dear Roger, Thanks for your response. I have a schedule running every minute. My worry is how can I infuse the instruction on the data logger on the schedule so that the measurements i intend to measure will be synchronized with the data logger. If I am to write a program, do I have to do this on the separate schedule? I am still a junior when it comes to the data logger. Thanks, BM

Good morning BM,

I would put it in a separate schedule. I assume you are starting a process with your relays so a point to remember the schedules run in alphabetical order, so schedule A always runs before schedule B etc....

Cheers,
Roger

Good morning BM, I would put it in a separate schedule. I assume you are starting a process with your relays so a point to remember the schedules run in alphabetical order, so schedule A always runs before schedule B etc.... Cheers, Roger
51
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