Support Forums
Running schedule using an alarm

Good Afternoon Roger,

The scenario is this: I would like to sleep for ten seconds and then wake up to gather data for 5 secs and then continue looping as above.

What is a suitable program should I use? I have tried this:

'JOB=SM 
'COMPILED=2007/03/26 11:55:11 
'TYPE=dt80 
DT=\d 
BEGIN"SM" 
CATTN 
'Spans and polynomial declarations 
'Thermistor declarations 
'Switches declarations 
'Parameter declarations 
'Global declarations 
RS1S 
'schedule definition 
P15=1 
P17=5 
P3=2 
'schedule definition RA("B:",ALARMS:OV:100KB,DATA:OV:1MB)10S LOGONA GA 
DO{GB} HB 
'schedule definition RB("B:",ALARMS:OV:100KB,DATA:OV:1MB)1S LOGONB GB 
1HSC(R,=1CV) 
1CV("wind speed") 
1CV=0 
END 
'end of program file

Thanks in advance for a quick reply.

Best Regards,
Jamil

Good Afternoon Roger, The scenario is this: I would like to sleep for ten seconds and then wake up to gather data for 5 secs and then continue looping as above. What is a suitable program should I use? I have tried this: ```` 'JOB=SM 'COMPILED=2007/03/26 11:55:11 'TYPE=dt80 DT=\d BEGIN"SM" CATTN 'Spans and polynomial declarations 'Thermistor declarations 'Switches declarations 'Parameter declarations 'Global declarations RS1S 'schedule definition P15=1 P17=5 P3=2 'schedule definition RA("B:",ALARMS:OV:100KB,DATA:OV:1MB)10S LOGONA GA DO{GB} HB 'schedule definition RB("B:",ALARMS:OV:100KB,DATA:OV:1MB)1S LOGONB GB 1HSC(R,=1CV) 1CV("wind speed") 1CV=0 END 'end of program file ```` Thanks in advance for a quick reply. Best Regards, Jamil

Good afternoon Jamil,

Very close. First set the speed of schedule A to 15 Seconds. Then in schedule B have an alarm that sends the command HB after the b schedule has run for 5 seconds. You could do this with 1ST.

This is a system timer that counts seconds.

ALARM1(1ST>5)"Stop schedule B"{[HB}]}

Cheers,
Roger

Good afternoon Jamil, Very close. First set the speed of schedule A to 15 Seconds. Then in schedule B have an alarm that sends the command HB after the b schedule has run for 5 seconds. You could do this with 1ST. This is a system timer that counts seconds. ```` ALARM1(1ST>5)"Stop schedule B"{[HB}]} ```` Cheers, Roger

Good Morning Roger

I already test with your command, but I got only first 5 second the alarm do the job. What I need is, the alarm can do the job for every 15 second? Can you explain to me sir?

Thank you

Regards
Jamil

Good Morning Roger I already test with your command, but I got only first 5 second the alarm do the job. What I need is, the alarm can do the job for every 15 second? Can you explain to me sir? Thank you Regards Jamil

Good morning Jamil,

This code runs for 5 seconds every 15 seconds:

BEGIN
RA15S
1HSC(R,"Wind speed") 'Read the wind speed
ALARM1(1ST<0.5){[RA1S]} 'Set schedule to 1 second
ALARM2(1ST>5){[RA15S]} 'After 5 seconds set back to 15 seconds.
END

Cheers,
Roger

Good morning Jamil, This code runs for 5 seconds every 15 seconds: ```` BEGIN RA15S 1HSC(R,&quot;Wind speed&quot;) &#039;Read the wind speed ALARM1(1ST&lt;0.5){[RA1S]} &#039;Set schedule to 1 second ALARM2(1ST&gt;5){[RA15S]} &#039;After 5 seconds set back to 15 seconds. END ```` Cheers, Roger

Hello Roger,

Thnx for the command.. it works! I've got a new problem.. I've connected a wavecom gsm modem to the DT80 using the serial port.

It is in sleep mode, when i dial in it doesn't wakes up. I've even edited in the connection properties in Delogger under site details and I've checked the "Wake Up Required". it still doesn't wake up.

Thnx again for your time.
Really appreciate it

Hello Roger, Thnx for the command.. it works! I&#039;ve got a new problem.. I&#039;ve connected a wavecom gsm modem to the DT80 using the serial port. It is in sleep mode, when i dial in it doesn&#039;t wakes up. I&#039;ve even edited in the connection properties in Delogger under site details and I&#039;ve checked the &quot;Wake Up Required&quot;. it still doesn&#039;t wake up. Thnx again for your time. Really appreciate it

Good morning Jamil,

The DT80 should wake up when it receives incoming RS232 communications. You will need to go though your modem configuration wiring etc.

Cheers,
Roger

Good morning Jamil, The DT80 should wake up when it receives incoming RS232 communications. You will need to go though your modem configuration wiring etc. Cheers, Roger

Good afternoon Roger,

I have already checked RS232 wiring, no problem with the wiring, but the issue is still there.

Regards
Jamil

Good afternoon Roger, I have already checked RS232 wiring, no problem with the wiring, but the issue is still there. Regards Jamil

Good afternoon Jamil,

Could you please check the configuration of both the modem and the dataTaker. There is modem FAQ with the latest configuration information in them.

Cheers,
Roger

Good afternoon Jamil, Could you please check the configuration of both the modem and the dataTaker. There is modem FAQ with the latest configuration information in them. Cheers, Roger
31
7
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