Support Forums
Please check this program

Hi,

I have to reprogram a DT80 with ver7 SW remotely, I won't be there so are going to send up the new program on a USB stick in a oninsert.dxc file in the root.

What I need to happen is that the new job replace the existing and become the default job on reset/ power cycle.

Many Thanks,

Will this work:

BEGIN"ADIT-v2" 
'Declare Scaling Spans for Sensors 
' Span[span number] = Physical Minimum, Physical Maximum, 0(%) or 4(mA), 100(%) or 20(mA) 
S1=0,14,0,100"pH" 
S2=14.5,1014.5,0,100"NTU"
S3=0,10000,0,100"uS" 
S4=0,50,0,100"degC" 
S5=0,5,200,2550"m" 
'Every 15 Minutes 
' Counters: 
' 1HSC(R,"Label") = Log Channels 1'S HIGH SPEED COUNTER(HSC) THEN RESET IT(R). 
' Result transferred to 1CV and multiplier applied in 2CV as Logged value 
' Loop Current per Channel([channel]#); 
' Measure Current with(L) OR without(I) Internal Shunt Resister 
' Power the Sensor(E) (provide 12V through the channel'S * OUTPUT) 
' Convert Current Percentage to physical value using Span(S[span number]) 
' Wait MD[ms] after Powering the Sensor before actually reading Current Percentage. 
' VEXT is to show if power supply is working. 

RA15M 
1HSC(R,=1CV,W,NL) 
2CV("Rainfall mm")=1CV*0.2 
3CV("Rain 24h mm")=3CV+2CV 
1#L(E,S1,"pH",MD5000) 
2#L(E,S2,"Turbidity",MD10000) 
3#L(E,S3,"Conductivity",MD5000) 
4#L(E,S4,"Temp",MD5000) 
5V(E,S5,FF3,"Level",MD5000) 
VEXT 

RB24H 
3CV("Rain 24h mm") 
3CV(W)=0 
FUNCTION3="Log Now!!"{XA} 
'Enable Logging 
LOGON 
'End Job Description 
END
Hi, I have to reprogram a DT80 with ver7 SW remotely, I won't be there so are going to send up the new program on a USB stick in a oninsert.dxc file in the root. What I need to happen is that the new job replace the existing and become the default job on reset/ power cycle. Many Thanks, Will this work: ```` BEGIN"ADIT-v2" 'Declare Scaling Spans for Sensors ' Span[span number] = Physical Minimum, Physical Maximum, 0(%) or 4(mA), 100(%) or 20(mA) S1=0,14,0,100"pH" S2=14.5,1014.5,0,100"NTU" S3=0,10000,0,100"uS" S4=0,50,0,100"degC" S5=0,5,200,2550"m" 'Every 15 Minutes ' Counters: ' 1HSC(R,"Label") = Log Channels 1'S HIGH SPEED COUNTER(HSC) THEN RESET IT(R). ' Result transferred to 1CV and multiplier applied in 2CV as Logged value ' Loop Current per Channel([channel]#); ' Measure Current with(L) OR without(I) Internal Shunt Resister ' Power the Sensor(E) (provide 12V through the channel'S * OUTPUT) ' Convert Current Percentage to physical value using Span(S[span number]) ' Wait MD[ms] after Powering the Sensor before actually reading Current Percentage. ' VEXT is to show if power supply is working. RA15M 1HSC(R,=1CV,W,NL) 2CV("Rainfall mm")=1CV*0.2 3CV("Rain 24h mm")=3CV+2CV 1#L(E,S1,"pH",MD5000) 2#L(E,S2,"Turbidity",MD10000) 3#L(E,S3,"Conductivity",MD5000) 4#L(E,S4,"Temp",MD5000) 5V(E,S5,FF3,"Level",MD5000) VEXT RB24H 3CV("Rain 24h mm") 3CV(W)=0 FUNCTION3="Log Now!!"{XA} 'Enable Logging LOGON 'End Job Description END ````

Good morning Imclaren,

The first thing I would do is upgrade the firmware. The current firmware for DT80 is V8.08 and there have been a number of changes to the way we specify which job to load if the logger is reset as well as other improvements.

But as you have versions 7 firmware then:

  1. The new program will not load until the old job is deleted and you can't delete a job until the data has been deleted.So the first thing you need to do is recover any data, use what ever process you want to get your data off the logger.
    Easiest would be to use a different memory stick and use the function keys to transfer the data before you update the job.

  2. Delete all jobs and data from the logger
    Before the Begin add the line DelAllJobs. After the End add the line RunJobOnReset"ADIT-v2". Please note you must hit enter at the end of the line.

  3. Save this file to the USB memory device with the name OnInsert.DXC in the root folder.

Your program will look like:

DelAllJobs

BEGIN"ADIT-v2"
' Declare Scaling Spans for Sensors
' Span[span number] = Physical Minimum, Physical Maximum, 0(%) or 4(mA), 100(%) or 20(mA)
S1=0,14,0,100"pH"
S2=14.5,1014.5,0,100"NTU"
S3=0,10000,0,100"uS"
S4=0,50,0,100"degC"
S5=0,5,200,2550"m"

' Every 15 Minutes
' Counters:
' 1HSC(R,"Label") = Log Channels 1'S HIGH SPEED COUNTER(HSC) THEN RESET IT(R).
' Result transferred to 1CV and multiplier applied in 2CV as Logged value
' Loop Current per Channel([channel]#);
' Measure Current with(L) OR without(I) Internal Shunt Resister
' Power the Sensor(E) (provide 12V through the channel'S * OUTPUT)
' Convert Current Percentage to physical value using Span(S[span number])
' Wait MD[ms] after Powering the Sensor before actually reading Current Percentage.
' VEXT is to show if power supply is working.

RA15M
1HSC(R,=1CV,W,NL)
2CV("Rainfall mm")=1CV*0.2
3CV("Rain 24h mm")=3CV+2CV
1#L(E,S1,"pH",MD5000)
2#L(E,S2,"Turbidity",MD10000)
3#L(E,S3,"Conductivity",MD5000)
4#L(E,S4,"Temp",MD5000)
5V(E,S5,FF3,"Level",MD5000)
VEXT

RB24H
3CV("Rain 24h mm")
3CV(W)=0

FUNCTION3="Log Now!!"{XA}
'Enable Logging
LOGON

'End Job Description
END

RunJobOnReset"ADIT-v2"

Cheers,
Roger

Good morning Imclaren, The first thing I would do is upgrade the firmware. The current firmware for DT80 is V8.08 and there have been a number of changes to the way we specify which job to load if the logger is reset as well as other improvements. But as you have versions 7 firmware then: 1. The new program will not load until the old job is deleted and you can't delete a job until the data has been deleted.So the first thing you need to do is recover any data, use what ever process you want to get your data off the logger. Easiest would be to use a different memory stick and use the function keys to transfer the data before you update the job. 2. Delete all jobs and data from the logger Before the Begin add the line **DelAllJobs**. After the End add the line **RunJobOnReset"ADIT-v2"**. Please note you must hit enter at the end of the line. 3. Save this file to the USB memory device with the name OnInsert.DXC in the root folder. Your program will look like: ```` DelAllJobs BEGIN"ADIT-v2" ' Declare Scaling Spans for Sensors ' Span[span number] = Physical Minimum, Physical Maximum, 0(%) or 4(mA), 100(%) or 20(mA) S1=0,14,0,100"pH" S2=14.5,1014.5,0,100"NTU" S3=0,10000,0,100"uS" S4=0,50,0,100"degC" S5=0,5,200,2550"m" ' Every 15 Minutes ' Counters: ' 1HSC(R,"Label") = Log Channels 1'S HIGH SPEED COUNTER(HSC) THEN RESET IT(R). ' Result transferred to 1CV and multiplier applied in 2CV as Logged value ' Loop Current per Channel([channel]#); ' Measure Current with(L) OR without(I) Internal Shunt Resister ' Power the Sensor(E) (provide 12V through the channel'S * OUTPUT) ' Convert Current Percentage to physical value using Span(S[span number]) ' Wait MD[ms] after Powering the Sensor before actually reading Current Percentage. ' VEXT is to show if power supply is working. RA15M 1HSC(R,=1CV,W,NL) 2CV("Rainfall mm")=1CV*0.2 3CV("Rain 24h mm")=3CV+2CV 1#L(E,S1,"pH",MD5000) 2#L(E,S2,"Turbidity",MD10000) 3#L(E,S3,"Conductivity",MD5000) 4#L(E,S4,"Temp",MD5000) 5V(E,S5,FF3,"Level",MD5000) VEXT RB24H 3CV("Rain 24h mm") 3CV(W)=0 FUNCTION3="Log Now!!"{XA} 'Enable Logging LOGON 'End Job Description END RunJobOnReset"ADIT-v2" ```` Cheers, Roger

Thanks Roger,

I want to leave upgrading until I can be on site to do myself. I will make the suggested changes.

Best regards
Lee

Thanks Roger, I want to leave upgrading until I can be on site to do myself. I will make the suggested changes. Best regards Lee
52
2
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