Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
47 views

How To Program Totalizer On CS3000

This program modifies the logic used to calculate the projected total oil for a project to fix an offset in the forecast control system (FCS) GMT settings. It retrieves the current hour and minutes from the FCS, calculates the total hours elapsed in the current day, gets the total oil production so far, and uses this to calculate the projected total oil for the day based on the hours elapsed or a full 24 hours if it is midnight. It then calculates the projected oil yield by dividing the projected total oil by the projected gas processed.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views

How To Program Totalizer On CS3000

This program modifies the logic used to calculate the projected total oil for a project to fix an offset in the forecast control system (FCS) GMT settings. It retrieves the current hour and minutes from the FCS, calculates the total hours elapsed in the current day, gets the total oil production so far, and uses this to calculate the projected total oil for the day based on the hours elapsed or a full 24 hours if it is midnight. It then calculates the projected oil yield by dividing the projected total oil by the projected gas processed.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

program

alias SUM PROJ_TOT_OIL.CPV


alias HOUR PROJ_TOT_OIL.P01
alias MIN PROJ_TOT_OIL.P02
alias hours PROJ_TOT_OIL.P03
alias ProjYield PROJ_TOT_OIL.CPV1

!*********************************************************************
**********************************************************
!Program Modification to fix FCS One Hour Offset
! When FCS GMT offset is fixed disable the logic in this box and
enable the logic out side the box

alias CURR_HOUR PROJ_TOT_OIL.P04


!CURR_HOUR = SYS_TIME1.CURHR

!if (CURR_HOUR < 23) then


! HOUR = SYS_TIME1.CURHR + 1 !get the current hour of day
+1 is added to compensate 1 hour offset due to FCS GMT Settings.
!else if (CURR_HOUR == 23) then
! HOUR = 0
!end if

!*********************************************************************
************************************************************

HOUR = SYS_TIME1.CURHR

MIN = SYS_TIME1.CURMIN !get the current minutes


of running hour of day
hours = (MIN / 60) + HOUR !total hours elapsed of
current day
SUM = FIT8405A_TOT.SUM + FIT8405B_TOT.SUM !get today's total
uptill current time
if (hours==0) then
SUM = (SUM*24) !this is the projected total of the day
else if (hours > 0) then
SUM = (SUM*24)/hours !this is the projected total of the day
end if

if (RV == 0) then
ProjYield = Sum/(RV + 1)
else if (RV > 0) then
ProjYield = Sum/RV
end if

!ProjYield = Sum/RV !Project Oil Yield =


Projected Total Oil/Projected Gas Processed

End
%%XL8405DI
%%XS8405DO
%%XI8405DI

You might also like