Esempio n. 1
0
        private void Update(TagUInt32 Tag)
        {
            int    index = (Tag.Address.Index - this.Address.Index) * sizeof(UInt16);
            UInt32 value = BitConverter.ToUInt32(Buffer, index);

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