Hi Matt,
Thank you for this. The code obviously looks better than what I have
implemented; This was done on a fast track mode, I tested to work at the time;
I wanted to visit this but dragged till I saw this email chain.
I process little better with IF cycle on a panic mode; So, introduced 2sec (LC
scan was 2s) wait between two IFs to make sure that the level really drops to
avoid spurious trip was the aim of that 2sec delay; I should have avoided the
2sec WAIT for alarm FLAG, moving one line upwards when HOLIM is set to true as
you have done below
I will test this to be sure (due to my deficiency) as I see it works and modify
the existing code, this year. Thank you
Regards,
Srini
-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] On ;
Behalf Of Gunter, Matt
Sent: Wednesday, February 06, 2019 8:46 AM
To: foxboro@xxxxxxxxxxxxx
Subject: [EXT] Re: [foxboro] Rate of drop Alarm with respect to time
WARNING: This email originated from outside of the organization. Exercise
caution when viewing attachments, clicking links, or responding to requests.
Srini,
I offer this up without any testing or guarantees... The usual disclaimers
regarding the use of anything below could result in the end of life as we know
it all apply!
In a real text editor, everything lines up with slight indentation for
readability.
I don't care for the use of labels because it lends itself to spaghetti code.
I don't know the purpose of all of the 2s delays so there is only one in the
code below, but I think it would accomplish what you are after.
VARIABLES
NOW :R;
DELTA :R;
PREV :R;
FLAG :B;
SET :B;
USER_LABELS
{INPUT}
LC30 : RI0001; {LC30.MEAS}
{OUTPUT}
FLAG : BO0001; {Status of Logic for Alarms}
HOLIM : RO0001; {HOLIM connect to LC30_HOLIM}
OUT1 : RO0002;
STATEMENTS
PREV := LC30;
HOLIM := 100;
WHILE
NOW := LC30;
DELTA := PREV - NOW;
OUT1 := DELTA;
IF ((DELTA >= 5) AND SET) THEN
HOLIM := 0;
FLAG := TRUE;
ELSEIF (DELTA >= 5) THEN
SET := TRUE;
ELSE
SET := FALSE;
ENDIF;
WAIT 2;
HOLIM := 100;
FLAG := FALSE;
PREV := NOW;
ENDWHILE;
ENDSEQUENCE
------------------------------------------------------------------------------
Notice: This e-mail is intended solely for use of the individual or entity to
which it is addressed and may contain information that is proprietary,
privileged and/or exempt from disclosure under applicable law. If the reader is
not the intended recipient or agent responsible for delivering the message to
the intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. This
communication may also contain data subject to U.S. export laws. If so, data
subject to the International Traffic in Arms Regulation cannot be disseminated,
distributed, transferred, or copied, whether incorporated or in its original
form, to foreign nationals residing in the U.S. or abroad, absent the express
prior approval of the U.S. Department of State. Data subject to the Export
Administration Act may not be disseminated, distributed, transferred or copied
contrary to U. S. Department of Commerce regulations. If you have received thi
s communication in error, please notify the sender by reply e-mail and destroy
the e-mail message and any physical copies made of the communication.
Thank you.
*********************
_________________________________________________________________________
This mailing list is neither sponsored nor endorsed by Schneider Electric
(formerly The Foxboro Company). Use the info you obtain here at your own
risks. See the disclaimer at
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.thecassandraproject.org_disclaimer.html&d=DwIDaQ&c=zgHsTqBQkGAdNuoPRxUzSQ&r=k7AF9dsAUnHrqp5ddRhLBXpnci0j0uVlauIdM6flLFM&m=D0YUae1oiU_E6Q8tC5eV8HzyPocJIxYg4SdIWUJP8GQ&s=TlBj_EwE7G4oVpWCM7qhwWaXM5Q92Y_K_X242quGwZM&e=
foxboro mailing list:
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.freelists.org_list_foxboro&d=DwIDaQ&c=zgHsTqBQkGAdNuoPRxUzSQ&r=k7AF9dsAUnHrqp5ddRhLBXpnci0j0uVlauIdM6flLFM&m=D0YUae1oiU_E6Q8tC5eV8HzyPocJIxYg4SdIWUJP8GQ&s=2WywDf9LH-mcBfTmedKrhEiIhJ-bNp988Q-deLZsBPc&e=
to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
For more information on Nutrien's email policy or to unsubscribe, click here:
https://www.nutrien.com/important-notice
Pour plus de renseignements sur la politique de courrier électronique de
Nutrien ou pour vous désabonner, cliquez ici:
https://www.nutrien.com/avis-important
_________________________________________________________________________
This mailing list is neither sponsored nor endorsed by Schneider Electric
(formerly The Foxboro Company). Use the info you obtain here at your own
risks. See the disclaimer at www.thecassandraproject.org/disclaimer.html
foxboro mailing list: //www.freelists.org/list/foxboro
to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave