Legacy Hardware and Apps
Schedule does not log

Good day Roger,

The DT800 and other DT800's refuses to make a folder <B> in its internal memory and on the flash card. The folders of all other schedules were made though. If I load another program into memory, there is no problem, but I cannot find the problem. Can you help?

Kind regards,
Gerben

Good day Roger, The DT800 and other DT800&#039;s refuses to make a folder &lt;B&gt; in its internal memory and on the flash card. The folders of all other schedules were made though. If I load another program into memory, there is no problem, but I cannot find the problem. Can you help? Kind regards, Gerben

If you say this happens on more that one DT800 unit, I suggest you might need to post the code for review.

If it sensitive and you don't want it out in the open, maybe just email it to the DT support address so Roger or one of the boys (and/or girls?) can review in the depths of the DT laboratory.

If you say this happens on more that one DT800 unit, I suggest you might need to post the code for review. If it sensitive and you don&#039;t want it out in the open, maybe just email it to the DT support address so Roger or one of the boys (and/or girls?) can review in the depths of the DT laboratory.

Good day Supermono,
Here is the schedule <B> code. The total code would be too long to display here. If you need more I will send it to you by email.
Regards, Gerben

'________________________________________________________________
'schedule definition
RB"ERR_Lit":141CV LOGONB GB
'
'Het komt voor dat de pomp uitstaat en dat er toch debiet wordt gemeten.
'Dat mag niet. 
'Deze routine wordt door <C> getriggerd als er ergens debiet is en alle pompen uit zijn.
'Aan het eind van de routine wordt de trigger 141CV=0 gemaakt zodat de routine stopt.
'
IF(1CV<1)AND
IF(41CV>1)"ERR_Lit_Ref"{[131CV=131CV+41CV]}
IF(2CV<1)AND
IF(42CV>1)"ERR_Lit_SltRef"{[132CV=132CV+42CV]}
IF(3CV<1)AND
IF(43CV>1)"ERR_Lit_Buf5"{[133CV=133CV+43CV]}
IF(4CV<1)AND
IF(44CV>1)"ERR_Lit_Slt5"{[134CV=134CV+44CV]}
IF(5CV<1)AND
IF(45CV>1)"ERR_Lit_Buf3"{[135CV=135CV+45CV]}
IF(6CV<1)AND
IF(46CV>1)"ERR_Lit_Slt3"{[136CV=136CV+46CV]}
141CV("Reset ERR_Trig",NL)=0
'________________________________________________________________

Gerben

Good day Supermono, Here is the schedule &lt;B&gt; code. The total code would be too long to display here. If you need more I will send it to you by email. Regards, Gerben ```` &#039;________________________________________________________________ &#039;schedule definition RB&quot;ERR_Lit&quot;:141CV LOGONB GB &#039; &#039;Het komt voor dat de pomp uitstaat en dat er toch debiet wordt gemeten. &#039;Dat mag niet. &#039;Deze routine wordt door &lt;C&gt; getriggerd als er ergens debiet is en alle pompen uit zijn. &#039;Aan het eind van de routine wordt de trigger 141CV=0 gemaakt zodat de routine stopt. &#039; IF(1CV&lt;1)AND IF(41CV&gt;1)&quot;ERR_Lit_Ref&quot;{[131CV=131CV+41CV]} IF(2CV&lt;1)AND IF(42CV&gt;1)&quot;ERR_Lit_SltRef&quot;{[132CV=132CV+42CV]} IF(3CV&lt;1)AND IF(43CV&gt;1)&quot;ERR_Lit_Buf5&quot;{[133CV=133CV+43CV]} IF(4CV&lt;1)AND IF(44CV&gt;1)&quot;ERR_Lit_Slt5&quot;{[134CV=134CV+44CV]} IF(5CV&lt;1)AND IF(45CV&gt;1)&quot;ERR_Lit_Buf3&quot;{[135CV=135CV+45CV]} IF(6CV&lt;1)AND IF(46CV&gt;1)&quot;ERR_Lit_Slt3&quot;{[136CV=136CV+46CV]} 141CV(&quot;Reset ERR_Trig&quot;,NL)=0 &#039;________________________________________________________________ ```` Gerben

Dear Supermono and/or others,

Today my local supplier called me and helped me to tackle the problem. The problem was that IF-statements themselves are not able to log the values of the variables (comparable with ALARM-statements).

He suggested to put extra lines in between the IF-statements with which the variables can be logged. Apparently the <B>-folder will only be created in case of logged data. The folder will also be created if there is logged data present in the code but in the schedule definition is set as non-logging.

It will not be created if there is no logged data present even though the schedule is marked as "logging".

Thanks for your time!

Kind regards, Gerben

Dear Supermono and/or others, Today my local supplier called me and helped me to tackle the problem. The problem was that IF-statements themselves are not able to log the values of the variables (comparable with ALARM-statements). He suggested to put extra lines in between the IF-statements with which the variables can be logged. Apparently the &lt;B&gt;-folder will only be created in case of logged data. The folder will also be created if there is logged data present in the code but in the schedule definition is set as non-logging. It will not be created if there is no logged data present even though the schedule is marked as &quot;logging&quot;. Thanks for your time! Kind regards, Gerben

Yes that is correct.

An 'IF' is like an ALARM in that it has a test against conditions and an output, but is never logged.

So by adding logged channels in between the statements you might have something like this:

IF(1CV<1)AND
IF(41CV>1)"ERR_Lit_Ref"{[131CV=131CV+41CV]}
131CV
IF(2CV<1)AND
IF(42CV>1)"ERR_Lit_SltRef"{[132CV=132CV+42CV]}
132CV
IF(3CV<1)AND
IF(43CV>1)"ERR_Lit_Buf5"{[133CV=133CV+43CV]}
133CV
IF(4CV<1)AND
IF(44CV>1)"ERR_Lit_Slt5"{[134CV=134CV+44CV]}
134CV
IF(5CV<1)AND
IF(45CV>1)"ERR_Lit_Buf3"{[135CV=135CV+45CV]}
135CV
IF(6CV<1)AND
IF(46CV>1)"ERR_Lit_Slt3"{[136CV=136CV+46CV]}
136CV
141CV("Reset ERR_Trig",NL)=0
Yes that is correct. An &#039;IF&#039; is like an ALARM in that it has a test against conditions and an output, but is never logged. So by adding logged channels in between the statements you might have something like this: ```` IF(1CV&lt;1)AND IF(41CV&gt;1)&quot;ERR_Lit_Ref&quot;{[131CV=131CV+41CV]} 131CV IF(2CV&lt;1)AND IF(42CV&gt;1)&quot;ERR_Lit_SltRef&quot;{[132CV=132CV+42CV]} 132CV IF(3CV&lt;1)AND IF(43CV&gt;1)&quot;ERR_Lit_Buf5&quot;{[133CV=133CV+43CV]} 133CV IF(4CV&lt;1)AND IF(44CV&gt;1)&quot;ERR_Lit_Slt5&quot;{[134CV=134CV+44CV]} 134CV IF(5CV&lt;1)AND IF(45CV&gt;1)&quot;ERR_Lit_Buf3&quot;{[135CV=135CV+45CV]} 135CV IF(6CV&lt;1)AND IF(46CV&gt;1)&quot;ERR_Lit_Slt3&quot;{[136CV=136CV+46CV]} 136CV 141CV(&quot;Reset ERR_Trig&quot;,NL)=0 ````
12
4
1
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