Begining of Month

37 views
Skip to first unread message

rodkay.controls

unread,
Jul 5, 2010, 9:23:13 PM7/5/10
to ControlDoctors.com DeltaV

Hi folks,

Can anyone tell me a method for determining first day of month for use
in module. I have an integrator module and every day I am storing the
SABSTOTAL into a floating point array; I want the array index to
match the day however for this to work I need to know when month
starts again to reset the array back to 0.

Is there a method of stripping out the DD value from DTE or
LOCAL_TIME_STR ?
Do i perhaps need to use scheduler; if so how do I have this write to
my module?

Reagrds,
Rod

DeltaV 10.3

rodkay.controls

unread,
Jul 8, 2010, 12:23:03 AM7/8/10
to ControlDoctors.com DeltaV

Many thanks to Walter Flores Arevalo who sent me a solution. A module
(consisting primarily of calc function block) that uses time_to_string
to break the time into it's component parts.

I have modified it somewhat to include outputs for beggining of week,
month, year, plus I have paired the month value to a named set to give
me Month str (which solves my other post relating to long date
format). It's quite simple but if anyone wants a copy of what I have
done then send me an email.

Mike Steiger

unread,
Jul 8, 2010, 8:35:23 AM7/8/10
to drde...@googlegroups.com
Hello,

I was trying to look into this last night but with no success. If you could email me a copy of your solution I would like to see it.

Thank you

Mike


--
You received this message because you are subscribed to the Google
Groups "ControlDoctors.com DeltaV" group.
To post to this group, send email to drde...@googlegroups.com
To unsubscribe from this group, send email to
drdeltav+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/drdeltav?hl=en
For more information, visit the main site at
http://www.controldoctors.com

Reply all
Reply to author
Forward
0 new messages