Support Forums
PWR12V CONTROL

Hi,
I write such program,but 12V can not output at time,what wrong with my program?

BEGIN"config"
' Generated by dEX Configuration Builder Version 1.50.167 (Firmware Version 9.16.5728 )
' Target device: DT80-3
password=""

RS1S
RA"TDP" ("b:",ALARMS:OV:100KB:W60,DATA:OV:60MB)5M
LOGONA

' User defined
2ST(5);
IF(2ST==3){PWR12V=1 5DSO=1};

VBAT("BATINNER~",=1003CV,LM)
VEXT("BATEXTER~",=1004CV,LM)
1V("TC1~Dec",=1005CV,LM,NA,GL30mV,25)
2
V("TC2~Dec",=1006CV,LM,NA,GL30mV,25)
3*V("TC3~Dec",=1007CV,LM,NA,GL30mV,25)

' User defined
PWR12V=0;

END

Hi, I write such program,but 12V can not output at time,what wrong with my program? BEGIN"config" ' Generated by dEX Configuration Builder Version 1.50.167 (Firmware Version 9.16.5728 ) ' Target device: DT80-3 password="" RS1S RA"TDP" ("b:",ALARMS:OV:100KB:W60,DATA:OV:60MB)5M LOGONA ' User defined 2ST(5); IF(2ST==3){PWR12V=1 5DSO=1}; VBAT("BATINNER~",=1003CV,LM) VEXT("BATEXTER~",=1004CV,LM) 1*V("TC1~Dec",=1005CV,LM,NA,GL30mV,25) 2*V("TC2~Dec",=1006CV,LM,NA,GL30mV,25) 3*V("TC3~Dec",=1007CV,LM,NA,GL30mV,25) ' User defined PWR12V=0; END

Hi Song,

While your schedule has 5 minutes interval, you set 2ST(5) as part of your program.
2ST(5) will give you minute reading with a wrap value of 5:
minute 0 - 2ST=0
minute 1 - 2ST=1
minute 2 - 2ST=2
minute 3 - 2ST=3
minute 4 - 2ST=4
minute 5 - 2ST=0

With every 5 minutes cycle 2ST will give you always 0 so PWR12V=1 and 5DSO=1 will never run.

Best regards,
Rudy Gunawan

Hi Song, While your schedule has 5 minutes interval, you set 2ST(5) as part of your program. 2ST(5) will give you minute reading with a wrap value of 5: minute 0 - 2ST=0 minute 1 - 2ST=1 minute 2 - 2ST=2 minute 3 - 2ST=3 minute 4 - 2ST=4 minute 5 - 2ST=0 With every 5 minutes cycle 2ST will give you always 0 so PWR12V=1 and 5DSO=1 will never run. Best regards, Rudy Gunawan

Tks, then how to set 2ST control power on 2 minutes before logging,or how to control power on 2 minutes before logging?

Tks, then how to set 2ST control power on 2 minutes before logging,or how to control power on 2 minutes before logging?

Hi Song,

First you will need to restore 2ST to have 60 value as a wrap value
If you want to have 2 minutes power ON before the actual reading takes place, you will need an additional schedule.

BEGIN"config"
' Generated by dEX Configuration Builder Version 1.50.167 (Firmware Version 9.16.5728 )
' Target device: DT80-3
password=""

RS1S

RA"Timer" ("b:",ALARMS:OV:100KB:W60,DATA:OV:1MB)1M
2ST(=1CV,W)
2CV(W)=1CV%5
IF(2CV==3){PWR12V=1 5DSO=1}

RB"TDP" ("b:",ALARMS:OV:100KB:W60,DATA:OV:60MB)5M
VBAT("BATINNER~",=1003CV,LM)
VEXT("BATEXTER~",=1004CV,LM)
1V("TC1~Dec",=1005CV,LM,NA,GL30mV,25)
2
V("TC2~Dec",=1006CV,LM,NA,GL30mV,25)
3*V("TC3~Dec",=1007CV,LM,NA,GL30mV,25)

' User defined
PWR12V=0;

END

As you can see, I move the content of previous schedule A to schedule B and set schedule A to 1 minute reading.
It will check 2ST and find the reminder of division by 5 using modulo (%)
Every time the value reach 3, PWR12V=1 and 5DSO=1.

Best regards,
Rudy Gunawan

Hi Song, First you will need to restore 2ST to have 60 value as a wrap value If you want to have 2 minutes power ON before the actual reading takes place, you will need an additional schedule. BEGIN"config" ' Generated by dEX Configuration Builder Version 1.50.167 (Firmware Version 9.16.5728 ) ' Target device: DT80-3 password="" RS1S RA"Timer" ("b:",ALARMS:OV:100KB:W60,DATA:OV:1MB)1M 2ST(=1CV,W) 2CV(W)=1CV%5 IF(2CV==3){PWR12V=1 5DSO=1} RB"TDP" ("b:",ALARMS:OV:100KB:W60,DATA:OV:60MB)5M VBAT("BATINNER~",=1003CV,LM) VEXT("BATEXTER~",=1004CV,LM) 1*V("TC1~Dec",=1005CV,LM,NA,GL30mV,25) 2*V("TC2~Dec",=1006CV,LM,NA,GL30mV,25) 3*V("TC3~Dec",=1007CV,LM,NA,GL30mV,25) ' User defined PWR12V=0; END As you can see, I move the content of previous schedule A to schedule B and set schedule A to 1 minute reading. It will check 2ST and find the reminder of division by 5 using modulo (%) Every time the value reach 3, PWR12V=1 and 5DSO=1. Best regards, Rudy Gunawan
24
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