Share Your Feedback – Help Us Improve Search on Community! Please take a few minutes to participate in our Search Feedback Survey. Your insights will help us deliver the results you need faster and more accurately. Click here to take the survey
Access vast amounts of technical know-how and pro tips from our community of Geo SCADA experts.
Search in
Link copied. Please paste this link to share this article on your social media post.
Originally published on Geo SCADA Knowledge Base by Anonymous user | June 10, 2021 03:05 AM
[Table("MyScanner", "MyScanner")]public class MyScanner : Scanner{ [Label("Meter Number", 1, 1)] [ConfigField("Meter Number", "The meter number on the device", 1, 2, OPC_METER_NUMBER)] public Byte MeterNumber; [DataField("Last Daily Record", "The index of the last daily record that was retrieved from the meter", PemexModule.OPC_METER_DATA_LAST_DAILY_RECORD)] public UInt16 LastDailyRecord = 0;}
UInt16 Val1 = DBScanner.LastDailyRecord;Byte Val2 = DBScanner.MeterNumber;
Object reply = null;App.SendReceiveObject(DBScanner.Id, ACTION_GET_HISTORIC_RECORDS, null, ref reply);UInt16 Val1 = (UInt16) reply;
public override void OnReceive(uint Type, object Data, ref object Reply){ switch (Type) { case ACTION_GET_HISTORIC_RECORDS: Reply = LastHourlyRecord; break; default: base.OnReceive(Type, Data, Reply); break; }}
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.