Legacy Hardware and Apps
CV Alarms

Hi,

I have just compiled the program example below which is switching on and off equipment through relays with digital output channels based on certain conditions being met.

At present I cannot test this program and therefore just wanted to check the syntax and general program is OK.

'schedule definition 
RA1M LOGONA GA 
1TK("INSIDE",=1CV) 
1*TK("OUTSIDE",=2CV) 
2TK("PLATE",=3CV) 
ALARM1(1CV<16.)AND ALARM2(2CV>16.)1DSO{[=1]} ALARM3(1CV<16.)AND ALARM4(2CV<16.)2DSO{[=1]} ALARM5(1CV>19.)1DSO{[=0]} 
ALARM6(1CV>19.)2DSO{[=0]} 
ALARM7(1CV>21.)AND ALARM8(3CV>18.)3DSO{[=1]} 4CV=1CV-3CV 
ALARM9(4CV<>0.,0.)3DSO{[=0]} 
ALARM10(1CV>21.)AND ALARM11(3CV>18.)4DSO 
END 
'end of program file

Stephen

Hi, I have just compiled the program example below which is switching on and off equipment through relays with digital output channels based on certain conditions being met. At present I cannot test this program and therefore just wanted to check the syntax and general program is OK. ```` &#039;schedule definition RA1M LOGONA GA 1TK(&quot;INSIDE&quot;,=1CV) 1*TK(&quot;OUTSIDE&quot;,=2CV) 2TK(&quot;PLATE&quot;,=3CV) ALARM1(1CV&lt;16.)AND ALARM2(2CV&gt;16.)1DSO{[=1]} ALARM3(1CV&lt;16.)AND ALARM4(2CV&lt;16.)2DSO{[=1]} ALARM5(1CV&gt;19.)1DSO{[=0]} ALARM6(1CV&gt;19.)2DSO{[=0]} ALARM7(1CV&gt;21.)AND ALARM8(3CV&gt;18.)3DSO{[=1]} 4CV=1CV-3CV ALARM9(4CV&lt;&gt;0.,0.)3DSO{[=0]} ALARM10(1CV&gt;21.)AND ALARM11(3CV&gt;18.)4DSO END &#039;end of program file ```` Stephen

Good afternoon Stephen,

The syntax is not quite correct.

RA1M LOGONA GA
1TK("INSIDE",=1CV)
1*TK("OUTSIDE",=2CV)
2TK("PLATE",=3CV)
ALARM1(1CV<16.)AND
ALARM2(2CV>16.){[1DSO=1]}
ALARM3(1CV<16.)AND
ALARM4(2CV<16.){[2DSO=1]}
ALARM5(1CV>19.){[1DSO=0]}
ALARM6(1CV>19.){[2DSO=0]}
ALARM7(1CV>21.)AND
ALARM8(3CV>18.){[3DSO=1]}
4CV=1CV-3CV
ALARM9(4CV<>0.,0.){[3DSO=0]}
ALARM10(1CV>21.)AND
ALARM11(3CV>18.)4DSO

Cheers,
Roger

Good afternoon Stephen, The syntax is not quite correct. ```` RA1M LOGONA GA 1TK(&quot;INSIDE&quot;,=1CV) 1*TK(&quot;OUTSIDE&quot;,=2CV) 2TK(&quot;PLATE&quot;,=3CV) ALARM1(1CV&lt;16.)AND ALARM2(2CV&gt;16.){[1DSO=1]} ALARM3(1CV&lt;16.)AND ALARM4(2CV&lt;16.){[2DSO=1]} ALARM5(1CV&gt;19.){[1DSO=0]} ALARM6(1CV&gt;19.){[2DSO=0]} ALARM7(1CV&gt;21.)AND ALARM8(3CV&gt;18.){[3DSO=1]} 4CV=1CV-3CV ALARM9(4CV&lt;&gt;0.,0.){[3DSO=0]} ALARM10(1CV&gt;21.)AND ALARM11(3CV&gt;18.)4DSO ```` Cheers, Roger

Hi Roger,

I have ran in to a problem with alarms. As you pointed out that the syntax was incorrect on the sample code but this code was produced with Delogger pro and I simply entered in the action command =1 so I don't understand why the syntax is wrong and how do I correct and prevent this in Delogger Pro.

Hi Roger, I have ran in to a problem with alarms. As you pointed out that the syntax was incorrect on the sample code but this code was produced with Delogger pro and I simply entered in the action command =1 so I don&#039;t understand why the syntax is wrong and how do I correct and prevent this in Delogger Pro.

Good morning Stephen,

I don't understand how DeLogger4 could have generated this code. Any thing in the square braces are dataTaker commands and typed in by the user.

How did you generate this code? That is I need to know exactly what you clicked on so I can try and replicate the problem because I have been unable to get the same results.

Cheers,
Roger

Good morning Stephen, I don&#039;t understand how DeLogger4 could have generated this code. Any thing in the square braces are dataTaker commands and typed in by the user. How did you generate this code? That is I need to know exactly what you clicked on so I can try and replicate the problem because I have been unable to get the same results. Cheers, Roger

Hi Roger,

I have checked what causes the the square braces and found that it places them in the program when I put =1 in the action command in the alarm window as

'schedule definition
RA1S LOGONA GA
1TK("temperature1",=1CV)
1*TK("temperature2",=2CV)
ALARM1(1CV("alarm on")<16.)1DSO"on"
END
'end of program file

No braces no =1 in action window

'schedule definition
RA1S LOGONA GA
1TK("temperature1",=1CV)
1*TK("temperature2",=2CV)
ALARM1(1CV("alarm on")<16.)1DSO"on"{[=1]}
END
'end of program file

braces =1 in action window

I take it this is incorrect and I should not be placing =1 in action command. I was placing =1 to switch on and in some alarms =0 to switch off.
How should I perform this? And if I correct the syntax to the format

ALARM1(1CV("alarm on")<16.){[1DSO"on"=1]}

will this correct it?

Also is the presence of a set of brackets within a set of brackets as in the

(1CV("alarm on")<16.)

allowed?

Thank you
Stephen

Hi Roger, I have checked what causes the the square braces and found that it places them in the program when I put =1 in the action command in the alarm window as ```` &#039;schedule definition RA1S LOGONA GA 1TK(&quot;temperature1&quot;,=1CV) 1*TK(&quot;temperature2&quot;,=2CV) ALARM1(1CV(&quot;alarm on&quot;)&lt;16.)1DSO&quot;on&quot; END &#039;end of program file ```` No braces no =1 in action window ```` &#039;schedule definition RA1S LOGONA GA 1TK(&quot;temperature1&quot;,=1CV) 1*TK(&quot;temperature2&quot;,=2CV) ALARM1(1CV(&quot;alarm on&quot;)&lt;16.)1DSO&quot;on&quot;{[=1]} END &#039;end of program file ```` braces =1 in action window I take it this is incorrect and I should not be placing =1 in action command. I was placing =1 to switch on and in some alarms =0 to switch off. How should I perform this? And if I correct the syntax to the format ```` ALARM1(1CV(&quot;alarm on&quot;)&lt;16.){[1DSO&quot;on&quot;=1]} ```` will this correct it? Also is the presence of a set of brackets within a set of brackets as in the ```` (1CV(&quot;alarm on&quot;)&lt;16.) ```` allowed? Thank you Stephen

Good morning Stephen,

DeLogger4 will insert the {[]} combination if you type anything in the action command box. What you put in there must be a valid dataTaker command.

The command to latch on a digital output 1 will be 1DSO=1. (The Channel name "On" is not needed an the channel will not be displayed as it is an alarm)

Cheers,
Roger

Good morning Stephen, DeLogger4 will insert the {[]} combination if you type anything in the action command box. What you put in there must be a valid dataTaker command. The command to latch on a digital output 1 will be 1DSO=1. (The Channel name &quot;On&quot; is not needed an the channel will not be displayed as it is an alarm) Cheers, Roger
27
5
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