Re: [foxboro] Logic Question

Brian,
I'm not sure if I have the full jest of your request but here is
something that should work if you can set the CALC block period long
enough to know that your integer count will have changed with every
period.  I haven't tested this (and I usually have at least one typo or
bad assumption in any first pass I do) but the general idea is there.
Have fun.


Tom Badura
Plastics Engineering Company
920-458-2121 x3366
tbadura@xxxxxxxxxx


01 BII 08 ; Branch If Initializing=20
02 IN II01 ; Count Input
03 SUB M01 ; - Last Count
04 BIZ 07 ; IF <> 0 THEN
05 SET BO01 ;  Set Counting Indicator
06 GTO 8 ; ELSE
07 CLR BO01 ;  Clear Counting Indicator
08 IN II01 ; Count Input=20
09 STM M01 ; --> Last Count
10 END ;

For Even less steps I think this would work also.

01 BII 05 ; Branch If Initializing=20
02 IN II01 ; Count Input
03 SUB M01 ; - Last Count
04 OUT BO01 ; Counting Indicator
05 IN II01 ; Count Input=20
06 STM M01 ; --> Last Count
07 EMD ;

-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx]
On Behalf Of BrianLong
Sent: Thursday, June 26, 2008 10:11 AM
To: Foxboro
Subject: [foxboro] Logic Question

No prizes involved, just the admiration of those that watch the list!
Were
looking for a clever way (and fewest steps) to use a CALC block to
convert
an Integer that counts from 0 to 1000 to a Boolean value that is TRUE
when
counting and FALSE when it's not counting.
=20
Thanks in Advance,
Brian Long
Arkansas Kraft=20

=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:             http://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:             http://www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Other related posts: