no rearm at math hold function
Michael Weissbach
Posted on 13.05.2011 12:34
My problem is that the rearmment of the hold function doesn't work.
The programming is as follows:
Fehler R-Behälter 1: if(abs('R-DG1'-'R-Druck DG1(GSR)')>0.2,1,0)
Error R1: hold('Fehler R-Behälter 1','Fehler R-Behälter 1',keypressed(32))
alternative tested:
Error R1: hold('Fehler R-Behälter 1','Fehler R-Behälter 1','EV A1'=1)
R-DG1 = analog input
R-Druck DG1(GSR) = analog input
EV A1 = digital input
The signal 'Error R1' ist visualized by an indicator lamp.
In case of Fehler R-Behälter 1 = 1 the indicator lamp swithes over to red
In case of Fehler R-Behälter 1 returns to 0 the indicator lamp stays red
In case of pressing the 'space key' the indicator lamp stays red
alternatively In case of 'EV A1'=1 the indicator lamp stays red
so i can't rearm the indicator.
Dejan Cencelj
Posted on 16.05.2011 09:18
Dear Sir
Can you send us your setup file to support@dewesoft.com
Please also tell us which version are you using.
Best R
Michael Weissbach
Posted on 18.05.2011 09:17
Dear Sir,
thank you for your reply. My problem is solved. The function I wanted to use is a SR-flipflop. I use now the EDGE-function. I asked a supporter from DEWETRON Germany for help an he told me that the HOLD function stores a value in a register when "cond" is true and when "rearm cond" is true the rearm is active but the value of the register is not deleted. So after the first storage the value of the register ist always the same because I wated to hold a digital signal.
Login
to reply to this topic. If you don't have account yet, you
can
signup for free account
.