Re: [foxboro] Leading Zero in Station.Minute
- From: "Jim Mowrey" <jmowrey@xxxxxxxxxxxxx>
- To: <foxboro@xxxxxxxxxxxxx>
- Date: Wed, 25 Feb 2004 22:20:34 -0500
Bring the minutes into a CALCA block and use IDIV command to divide by 10
first. Say that the minutes value is connected to RI01 on the block.
Set up M01 to be 10.
IN RI01
IN M01
IDIV M02
OUT RO01
IN M02
OUT RO02
In this case, M02 stores the modulus value (single digit minutes), and this
is written to RO02. The output of the IDIV is the tens of minutes, which is
written to RO01. If RO01 is displayed as the tens of minutes digit, (no
decimal places on the display), then it is zero when the number of minutes
(value of RI01) is < 10. Note that this same idea can be used to display
tens of hours, hours, tens of minutes, minutes, tens of seconds, and seconds
if you bring in the seconds to a real input of a CALCA block.
Jim Mowrey
Maxis Automation
678-231-8284
-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] On
Behalf Of Scott, Gordon (Sudbury)
Sent: Wednesday, February 25, 2004 9:54 AM
To: 'foxboro@xxxxxxxxxxxxx'
Subject: [foxboro] Leading Zero in Station.Minute
Hi all new to the list and relatively new to foxboro. Hope I'm not asking
something that's been covered but I searched the archives and didn't see
anything.
We use Foxdraw 8 for our displays and pull the value from Station.hour and
Station.Minute and move it into other blocks. However for display purposes
is there a good way to get a leading zero in station.minute when the minute
is a single digit.
Gordon Scott
Inco Ltd
Clarabelle Mill
_______________________________________________________________________
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
_______________________________________________________________________
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
- References:
- [foxboro] Leading Zero in Station.Minute
- From: Scott, Gordon (Sudbury)
Other related posts:
- » Re: [foxboro] Leading Zero in Station.Minute
- » Re: [foxboro] Leading Zero in Station.Minute
- » Re: [foxboro] Leading Zero in Station.Minute
- [foxboro] Leading Zero in Station.Minute
- From: Scott, Gordon (Sudbury)