Beispiel #1
0
        private void Update(TagUInt64 Tag)
        {
            int    index = (Tag.Address.Index - this.Address.Index) * sizeof(UInt16);
            UInt64 value = BitConverter.ToUInt64(Buffer, index);

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