Ask Me About Webinar: Data Center Assets - Modeling, Cooling, and CFD Simulation
Join our 30-minute expert session on July 10, 2025 (9:00 AM & 5:00 PM CET), to explore Digital Twins, cooling simulations, and IT infrastructure modeling. Learn how to boost resiliency and plan power capacity effectively. Register now to secure your spot!
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.