Hi everybody,
I have a DCS integrator tag. This tag accumulates the energy generated by a solar plant. I need to create a tag that calculates the energy generated each hour. For that purpose I've defined a Totalizer tag with this configuration:
Totalizer Point Attributes for: in_tot Descriptor: IN Totalizer archiving = 1 calcmode = EVENTWEIGHTED compdev = 2 compmax = 28800 compmin = 0 compressing = 0 compvalue = conversion = 1 datasecurity = piadmin: A(r,w) | piadmins: A(r,w) descriptor = IN Totalizer engunits = MWh eventexpr = excdev = 0 excmax = 0 excmin = 0 filterexpr = 'OP_MODE_filtered' = 0 and 'test_mode' = 0 function = TOTAL movingcount = 1 offset = +0H offset2 = +0M options = INFROMTOTALIZER UNDERISZERO ONEATEND pctgood = 85 period = +1H /c period2 = +2M ptsecurity = piadmin: A(r,w) | piadmins: A(r,w) ratesamplemode = NATURAL reportmode = PERIODEND scan = 1 shutdown = 0 sourcetag = in span = 999,9 step = 1 tag = in_tot totalclosemode = CLOCK typicalvalue = 0 zero = 0 zerobias = 0
It seems to work fine. It processes correctly the source tag resets. But I noticed that it has missed some outputs and I don't know why. I have studied the source tags values at the hours of the missed outputs, and I saw that in these cases the next samples after the hour were "Bad Input". Here an example (09:00 sample missed):
Source Tag Values:
<TimedValue Time="2013-10-30T07:45:41.8969984Z">859.599975585938</TimedValue> <TimedValue Time="2013-10-30T07:46:43.2230016Z">859.799987792969</TimedValue> <TimedValue Time="2013-10-30T07:47:44.3780096Z">860</TimedValue> <TimedValue Time="2013-10-30T07:48:50.7740032Z">860.099975585938</TimedValue> <TimedValue Time="2013-10-30T07:49:26.7960064Z">860.200012207031</TimedValue> <TimedValue Time="2013-10-30T07:49:42.147008Z">860.299987792969</TimedValue> <TimedValue Time="2013-10-30T07:50:43.5360128Z">860.400024414063</TimedValue> <TimedValue Time="2013-10-30T07:51:49.8390016Z">860.599975585938</TimedValue> <TimedValue Time="2013-10-30T07:52:51.1650048Z">860.799987792969</TimedValue> <TimedValue Time="2013-10-30T07:53:47.3590144Z">860.900024414063</TimedValue> <TimedValue Time="2013-10-30T07:54:48.9200128Z">861.099975585938</TimedValue> <TimedValue Time="2013-10-30T07:55:19.5440128Z">861.200012207031</TimedValue> <TimedValue Time="2013-10-30T07:56:46.4550016Z">861.400024414063</TimedValue> <TimedValue Time="2013-10-30T07:57:42.5709952Z">861.599975585938</TimedValue> <TimedValue Time="2013-10-30T07:58:43.8660096Z">861.700012207031</TimedValue> <TimedValue Time="2013-10-30T07:59:50.3410048Z">861.900024414063</TimedValue> <TimedValue Time="2013-10-30T08:00:41.8230144Z">862</TimedValue> <TimedValue Time="2013-10-30T08:01:17.3930112Z">862.099975585938</TimedValue> <TimedValue Time="2013-10-30T08:01:47.8760064Z">862.200012207031</TimedValue> <TimedValue Time="2013-10-30T08:02:49.2649984Z">862.400024414063</TimedValue> <TimedValue Time="2013-10-30T08:03:45.5060096Z">862.5</TimedValue> <TimedValue Time="2013-10-30T08:04:47.2220032Z">862.700012207031</TimedValue> <TimedValue Time="2013-10-30T08:05:43.3220096Z">862.799987792969</TimedValue> <TimedValue Time="2013-10-30T08:06:44.5240064Z">863</TimedValue> <TimedValue Time="2013-10-30T08:07:15.1170048Z">863.099975585938</TimedValue> <TimedValue Time="2013-10-30T08:07:50.8420096Z">863.200012207031</TimedValue> <TimedValue Time="2013-10-30T08:08:42.2150144Z">863.299987792969</TimedValue> <TimedValue Time="2013-10-30T08:09:48.6899968Z">863.5</TimedValue> <TimedValue Time="2013-10-30T08:10:50.0630016Z">863.700012207031</TimedValue> <TimedValue Time="2013-10-30T08:11:41.5140096Z">863.799987792969</TimedValue> <TimedValue Time="2013-10-30T08:12:48.16Z">864</TimedValue> <TimedValue Time="2013-10-30T08:13:49.3930112Z">864.099975585938</TimedValue> <TimedValue Time="2013-10-30T08:14:45.5559936Z">864.299987792969</TimedValue> <TimedValue Time="2013-10-30T08:15:47.1780096Z">864.5</TimedValue> <TimedValue Time="2013-10-30T08:16:43.3720064Z">864.599975585938</TimedValue> <TimedValue Time="2013-10-30T08:17:49.6440064Z">864.799987792969</TimedValue> <TimedValue Time="2013-10-30T08:18:50.7830016Z">864.900024414063</TimedValue> <TimedValue Time="2013-10-30T08:19:01.0640128Z">865</TimedValue> <TimedValue Time="2013-10-30T08:19:47.2109952Z">865.099975585938</TimedValue> <TimedValue Time="2013-10-30T08:20:43.3270144Z">865.299987792969</TimedValue> <TimedValue Time="2013-10-30T08:21:49.8480128Z">865.400024414063</TimedValue> <TimedValue Time="2013-10-30T08:22:46.3689984Z">865.599975585938</TimedValue> <TimedValue Time="2013-10-30T08:23:42.454016Z">865.700012207031</TimedValue> <TimedValue Time="2013-10-30T08:24:48.9130112Z">865.900024414063</TimedValue> <TimedValue Time="2013-10-30T08:25:50.286016Z">866.099975585938</TimedValue> <TimedValue Time="2013-10-30T08:26:46.5730176Z">866.200012207031</TimedValue> <TimedValue Time="2013-10-30T08:27:47.9460096Z">866.400024414063</TimedValue> <TimedValue Time="2013-10-30T08:28:49.0080128Z">866.5</TimedValue> <TimedValue Time="2013-10-30T08:29:50.5680128Z">866.700012207031</TimedValue> <TimedValue Time="2013-10-30T08:30:41.8630016Z">866.900024414063</TimedValue> <TimedValue Time="2013-10-30T08:31:48.1500032Z">867</TimedValue> <TimedValue Time="2013-10-30T08:32:49.3210112Z">867.200012207031</TimedValue> <TimedValue Time="2013-10-30T08:33:50.6310144Z">867.299987792969</TimedValue> <TimedValue Time="2013-10-30T08:34:47.0279936Z">867.5</TimedValue> <TimedValue Time="2013-10-30T08:35:48.2610048Z">867.599975585938</TimedValue> <TimedValue Time="2013-10-30T08:36:44.3920128Z">867.700012207031</TimedValue> <TimedValue Time="2013-10-30T08:37:40.555008Z">867.799987792969</TimedValue> <TimedValue Time="2013-10-30T08:38:47.3260032Z">868</TimedValue> <TimedValue Time="2013-10-30T08:39:43.5040128Z">868.099975585938</TimedValue> <TimedValue Time="2013-10-30T08:40:49.6509952Z">868.200012207031</TimedValue> <TimedValue Time="2013-10-30T08:41:50.883008Z">868.299987792969</TimedValue> <TimedValue Time="2013-10-30T08:42:47.2640128Z">868.400024414063</TimedValue> <TimedValue Time="2013-10-30T08:43:48.6690048Z">868.5</TimedValue> <TimedValue Time="2013-10-30T08:44:44.7219968Z">868.599975585938</TimedValue> <TimedValue Time="2013-10-30T08:45:46.5160064Z">868.700012207031</TimedValue> <TimedValue Time="2013-10-30T08:46:42.7720064Z">868.799987792969</TimedValue> <TimedValue Time="2013-10-30T08:47:44.1140096Z">868.900024414063</TimedValue> <TimedValue Time="2013-10-30T08:49:46.7520128Z">869</TimedValue> <TimedValue Time="2013-10-30T08:50:47.9690112Z">869.099975585938</TimedValue> <TimedValue Time="2013-10-30T08:52:44.912Z">869.200012207031</TimedValue> <TimedValue Time="2013-10-30T08:53:46.5190144Z">869.299987792969</TimedValue> <TimedValue Time="2013-10-30T08:55:43.7890048Z">869.400024414063</TimedValue> <TimedValue Time="2013-10-30T08:56:50.2329984Z">869.5</TimedValue> <TimedValue Time="2013-10-30T08:58:48.0180096Z">869.599975585938</TimedValue> <TimedValue Time="2013-10-30T08:59:49.2820096Z">869.700012207031</TimedValue> <TimedValue Time="2013-10-30T09:00:09.6410112Z" Status="Bad Input"/> <TimedValue Time="2013-10-30T09:00:14.7420032Z">869.700012207031</TimedValue> <TimedValue Time="2013-10-30T09:01:47.4100096Z">869.799987792969</TimedValue> <TimedValue Time="2013-10-30T09:03:50.2499968Z">869.900024414063</TimedValue> <TimedValue Time="2013-10-30T09:04:46.8500096Z">870</TimedValue> <TimedValue Time="2013-10-30T09:06:49.003008Z">870.099975585938</TimedValue> <TimedValue Time="2013-10-30T09:07:50.3140096Z">870.200012207031</TimedValue> <TimedValue Time="2013-10-30T09:09:48.1610112Z">870.299987792969</TimedValue> <TimedValue Time="2013-10-30T09:10:49.5660032Z">870.400024414063</TimedValue> <TimedValue Time="2013-10-30T09:12:47.398016Z">870.5</TimedValue> <TimedValue Time="2013-10-30T09:13:48.771008Z">870.599975585938</TimedValue> <TimedValue Time="2013-10-30T09:15:46.8680064Z">870.700012207031</TimedValue> <TimedValue Time="2013-10-30T09:17:49.6300032Z">870.799987792969</TimedValue> <TimedValue Time="2013-10-30T09:18:51.0499968Z">870.900024414063</TimedValue> <TimedValue Time="2013-10-30T09:20:48.4300032Z">871</TimedValue> <TimedValue Time="2013-10-30T09:21:49.5219968Z">871.099975585938</TimedValue> <TimedValue Time="2013-10-30T09:23:47.339008Z">871.200012207031</TimedValue> <TimedValue Time="2013-10-30T09:24:48.5090048Z">871.299987792969</TimedValue> <TimedValue Time="2013-10-30T09:26:46.2320128Z">871.400024414063</TimedValue> <TimedValue Time="2013-10-30T09:28:48.8220032Z">871.5</TimedValue> <TimedValue Time="2013-10-30T09:29:49.883008Z">871.599975585938</TimedValue> <TimedValue Time="2013-10-30T09:31:47.6220032Z">871.700012207031</TimedValue> <TimedValue Time="2013-10-30T09:33:55.4070144Z">871.799987792969</TimedValue> <TimedValue Time="2013-10-30T09:35:47.779008Z">871.900024414063</TimedValue> <TimedValue Time="2013-10-30T09:37:50.2760064Z">872</TimedValue> <TimedValue Time="2013-10-30T09:39:47.8579968Z">872.099975585938</TimedValue> <TimedValue Time="2013-10-30T09:40:49.091008Z">872.200012207031</TimedValue> <TimedValue Time="2013-10-30T09:42:46.6419968Z">872.299987792969</TimedValue> <TimedValue Time="2013-10-30T09:44:49.1860096Z">872.400024414063</TimedValue> <TimedValue Time="2013-10-30T09:46:47.1110016Z">872.5</TimedValue> <TimedValue Time="2013-10-30T09:48:39.3740032Z">872.599975585938</TimedValue> <TimedValue Time="2013-10-30T09:49:55.8490112Z">872.700012207031</TimedValue> <TimedValue Time="2013-10-30T09:51:48.4390144Z">872.799987792969</TimedValue> <TimedValue Time="2013-10-30T09:53:46.0989952Z">872.900024414063</TimedValue> <TimedValue Time="2013-10-30T09:55:53.8070016Z">873</TimedValue> <TimedValue Time="2013-10-30T09:57:51.6860032Z">873.099975585938</TimedValue> <TimedValue Time="2013-10-30T09:59:49.019008Z">873.200012207031</TimedValue> <TimedValue Time="2013-10-30T10:01:46.6950016Z">873.299987792969</TimedValue> <TimedValue Time="2013-10-30T10:03:54.464Z">873.400024414063</TimedValue> <TimedValue Time="2013-10-30T10:05:52.3740032Z">873.5</TimedValue> <TimedValue Time="2013-10-30T10:07:49.7849984Z">873.599975585938</TimedValue> <TimedValue Time="2013-10-30T10:08:50.9869952Z">873.700012207031</TimedValue> <TimedValue Time="2013-10-30T10:10:49.1930112Z">873.799987792969</TimedValue> <TimedValue Time="2013-10-30T10:12:52.2200064Z">873.900024414063</TimedValue> <TimedValue Time="2013-10-30T10:14:49.8500096Z">874</TimedValue>
Totalizer Values:
<TimedValue Time="2013-10-30T08:00:00Z">9.60003662109375</TimedValue> <TimedValue Time="2013-10-30T09:00:09.6410112Z" Status="Bad Input"/> <TimedValue Time="2013-10-30T10:00:00Z">3.5</TimedValue>
Can anybody help me with this problem?
Thanks,
J.Burgers