Scada-LTS
Scada-LTS copied to clipboard
Added phase to force Meta Data Source recalculation for Change Context
Description Added phase to force Meta Data Source recalculation for Change Context. After running Meta Data Source with Update Event: Change Context, a recalculation should be forced, even if no change was registered at the context point at that time.
To Reproduce Steps to reproduce the behavior:
- Login as admin;
- Created Virtual Data Source as virtual_ds(enabled, update 1s), and Virtual Data Point as virtual_dp (enabled, settable, numeric, no change, start value:0);
- Created Meta Data Source as meta_ds(enabled), and Meta Data Point as meta_dp (enabled, numeric) with: a) Script context add: 'virtual_ds - virtual_dp' as p1; b) Script: return p1.value; c) Event Update: Change Context;
- Crearte watchlist as wl_1 with 'virtual_ds - virtual_dp', and 'meta_ds - meta_dp';
- Stop 'meta_ds - meta_dp';
- Change 'virtual_ds - virtual_dp'' to 3;
- Start 'meta_ds - meta_dp', is not actual value is 0; -> the value should be 3 -> error
Spec:
- Scada-LTS Version 2.6.14