Re: [foxboro] Calca Block Logic Help

  • From: "Doucet, Terrence" <tdoucet@xxxxxxxxxxxxxxxxxx>
  • To: <foxboro@xxxxxxxxxxxxx>
  • Date: Wed, 24 Oct 2007 14:25:29 -0400

Dale,

It is good that you received a workable solution.  If it seems =
confusing, and your solution can go outside the CP barrier, you might =
consider building a script to turn on your bit (omsetimp); sleep 60 =
seconds and then turn off your bit.

Then execute it in your unix cron function by editing your crontab

0 0 1 * *  /path/path/your_script >/dev/null 2>&1

which will execute the first day of every month at 00:00 hours.

Terry

-----Message d'origine-----
De=A0: foxboro-bounce@xxxxxxxxxxxxx =
[mailto:foxboro-bounce@xxxxxxxxxxxxx] De la part de Gillis, Dale
Envoy=E9=A0: 24 octobre 2007 14:08
=C0=A0: foxboro@xxxxxxxxxxxxx
Objet=A0: Re: [foxboro] Calca Block Logic Help

Thanks William.
This seems to be definitely the fix I was looking for.  Thanks to all
who replied.



-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx]
On Behalf Of William C Ricker
Sent: Wednesday, October 24, 2007 2:50 PM
To: foxboro@xxxxxxxxxxxxx
Subject: Re: [foxboro] Calca Block Logic Help

Does this do it ?


RI01 =3D3D CPLBUG_STA:STATION.DAY
RI01 =3D3D CPLBUG_STA:STATION.HOUR
RI01 =3D3D CPLBUG_STA:STATION.MINUTE

BO01 is the 1 minute pulse output
BO02 is the toggle output to the switch


STEP10 IN  RI01  ; DAY
STEP11 ADD RI02  ; DAY + HOUR
STEP12 ADD RI03  ; DAY + HOUR + MINUTE
STEP13 DEC       ; SUBTRACT 1
STEP14 BIT 22    ; BR IF <> 0 ; NOT OUR MINUTE

STEP15 IN  BO01  ; PULSE OUTPUT
STEP16 BIT 23    ; BR IF ALREADY SET
STEP17 SET BO01  ; ELSE, SET IT
STEP18 IN  BO02  ; LAST SWITCH TOGGLE
STEP19 NOT       ; TOGGLE SWITCH
STEP20 OUT BO02  ; SEND IT TO SWITCH
STEP21 GTO 23    ; AND EXIT

STEP22 CLR BO01  ; CLEAR PULSE WHEN NOT OUR MINUTE
STEP23 EXIT      ; ALL DONE, BYE

Regards,
William C Ricker
FeedForward, Inc.


-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx]
On
Behalf Of Gillis, Dale
Sent: Wednesday, October 24, 2007 1:25 PM
To: foxboro@xxxxxxxxxxxxx
Subject: [foxboro] Calca Block Logic Help

Hi list,


I need some help with some calc block logic.....I think I'm having a
brain fart as I cannot get this.

What I want to do is use a calc block to set a bit (BO01) to 1 for one
minute at midnight on the first day of every month.  I've set RI01 =
=3D3D3D
Station.day, RI02 to Station.hour and RI03 to Station.Minute.  Then I
want to use this bit to toggle a SWCH block and hold it toggle for 1
month until the next 1st day at midnight comes and toggle the other way.
Here is what I have so far but I cannot get it to remember the toggle
bit so as to keep the SWCH Block Toggled

(1)In RI01
(2)SUB M01  (which is 1.0)
(3)MIN=3D3D20
(4)In RI02
(5)In RI03
(6)Add 3
(7)BIZ 9 (Set the Bit)
(8)GTO 11 (Clr the Bit)
(9)SET BO01
(10)EXIT
(11)CLR BO01

Then I was using a Flip Flop to remember this BO01 but I don't know how
to reset it when the next month comes around so that it will change the
toggle on the SWCH Block.  Any help would be much appreciated!


Dale Gillis

=3D3D20
=3D20
=3D20
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
=3D20
foxboro mailing list:             //www.freelists.org/list/foxboro
to subscribe:         =3D
mailto:foxboro-request@xxxxxxxxxxxxx?subject=3D3Djoin
to unsubscribe:      =3D
mailto:foxboro-request@xxxxxxxxxxxxx?subject=3D3Dleave
=3D20


=3D20
=3D20
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
=3D20
foxboro mailing list:             //www.freelists.org/list/foxboro
to subscribe:         =3D
mailto:foxboro-request@xxxxxxxxxxxxx?subject=3D3Djoin
to unsubscribe:      =3D
mailto:foxboro-request@xxxxxxxxxxxxx?subject=3D3Dleave
=3D20
=20
=20
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
=20
foxboro mailing list:             //www.freelists.org/list/foxboro
to subscribe:         =
mailto:foxboro-request@xxxxxxxxxxxxx?subject=3Djoin
to unsubscribe:      =
mailto:foxboro-request@xxxxxxxxxxxxx?subject=3Dleave
=20
 
 
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://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
 

Other related posts: