Exemplo n.º 1
0
        public DeviceBlock(DeviceAlgorithm device, BlockSettings blockSettings, Protocol protocol)
        {
            AlarmFound = false;
            ErrorFound = false;

            Device = device;
            //DeviceManager = Device.DeviceManager;

            //DeviceManager = Device.Manager;
            BlockSettings = blockSettings;
            retryCount = BlockSettings.TimeoutRetries;
            Protocol = protocol;
            ProtocolType = Protocol.Type;
            Conversation = Protocol.GetConversation(BlockSettings.Conversation);
            Name = BlockSettings.Name;
            Type = BlockSettings.Type;
            OnDbWriteOnly = BlockSettings.OnDbWriteOnly;
            LoadRegisters();
            int? temp = BlockSettings.Base;
            Base = temp.HasValue ? temp.Value : -1;
        }
Exemplo n.º 2
0
 public DeviceBlock_RequestResponse(DeviceAlgorithm device, BlockSettings blockSettings, Protocol protocol)
     : base(device, blockSettings, protocol)
 {
 }
Exemplo n.º 3
0
 public DeviceBlock_NonModbus(DeviceAlgorithm device, BlockSettings blockSettings, Protocol protocol)
     : base(device, blockSettings, protocol)
 {
 }
Exemplo n.º 4
0
 public DeviceBlock_Phoenixtec(DeviceAlgorithm device, BlockSettings blockSettings, Protocol protocol)
     : base(device, blockSettings, protocol)
 {
 }
Exemplo n.º 5
0
 public DeviceBlock_Modbus(DeviceAlgorithm device, BlockSettings blockSettings, Protocol protocol)
     : base(device, blockSettings, protocol)
 {
     CommandId = BlockSettings.CommandId;
     IsKLNEModbus = protocol.ProtocolSettings.Name == "KLNEModbus";
 }