Production History

Am just trying to get Production History graphs working.

Work fine for current run, but they sometimes disappear for historical data

Eg some look like ok like hist1.png

Then others are completely blank

eg hist2.png

The options on the binding function look like hist3.png

I have checked that runid being passed and is valid (for some reason the schedule table sometimes shows an actualfinishdatetime being a minute after actualstartdatetime, but run table times are fine. Changing the end time in schedule makes no difference. Valid counter run data is present.

Simply stopping a run can make data not show.

It has me perplexed.

OEE module: 1.6.4-rc3 (b2551)

Ignition: 7.6.4-rc3 (b2013110714)

DB is postgres:
PostgreSQL 9.1.9 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3), 64-bit

Regards

Tarek

Have worked out what is going on (bug) and have a workaround.

The dataset returned by the binding function is sometimes returning the last row blank. (Could this be due to minute rounding?)

As a workaround I have scripted a check for a blank last row on Data property change which I delete if present, and lo and behold all the data shows up :slight_smile:

Regards

Tarek

You will also see another anomaly in the supplied chart.

Note the red standard units did not plot properly. it should have gone horizontal when target qty is reached.

I noted that this happens whilst the chart is running …every so often it switches between correct and incorrect rendering for no disernible reason…it as if the production model algorithm does not always get it right.

Tarek