private void Update(TagUInt64 Tag) { int index = (Tag.Address.Index - this.Address.Index) * sizeof(UInt16); UInt64 value = BitConverter.ToUInt64(Buffer, index); Tag.ValueSetter(value); }
public void Write(TagUInt64 Tag, UInt64 Value) { if (Tag.Address.Table == Table.HoldingRegisters) { WriteHoldingRegisters(Tag.Address.Index, BitConverter.GetBytes(Value)); } }
public void Add(TagUInt64 Tag, UInt16 Index) { Tag.PLC = this; Tag.Address = new Address { Table = Table.HoldingRegisters, Index = Index }; Add(Tag); }