public ProfinetDevice(Instance instanceProfinetDevice, IndustrialNetwork connectedtoIndustrialNetwork) : base(instanceProfinetDevice, null, connectedtoIndustrialNetwork) { this.ProfinetStationName = (string)instanceProfinetDevice.GetAttribute("StationName"); //this.EnergySaving = (bool)instanceProfinetDevice.GetAttribute("EnergySaving"); this.FastDeviceStartup = (string)instanceProfinetDevice.GetAttribute("FastDeviceStartup"); this.Simulated = (bool)instanceProfinetDevice.GetAttribute("Simulated"); this.TrustLevel = (string)instanceProfinetDevice.GetAttribute("TrustLevel"); this.HostDevice = (string)instanceProfinetDevice.GetAttribute("HostDevice"); this.SlotIndex = (int)instanceProfinetDevice.GetAttribute("SlotIndex"); this.StateWhenSystemStartup = (string)instanceProfinetDevice.GetAttribute("StateWhenStartup"); this.RecoveryTime = (int)instanceProfinetDevice.GetAttribute("RecoveryTime"); if (this.Simulated) { this.ConnectionOutputSize = (int)instanceProfinetDevice.GetAttribute("OutputSize"); this.ConnectionInputSize = (int)instanceProfinetDevice.GetAttribute("InputSize"); } else { this.ConnectionOutputSize = (int)instanceProfinetDevice.GetAttribute("OutputSize"); this.ConnectionInputSize = (int)instanceProfinetDevice.GetAttribute("InputSize"); } if (this.FastDeviceStartup == "Activated" || this.FastDeviceStartup == "Support") { this.Port1 = (string)instanceProfinetDevice.GetAttribute("FastDeviceStartup_Port1"); this.Port2 = (string)instanceProfinetDevice.GetAttribute("FastDeviceStartup_Port2"); this.Port3 = (string)instanceProfinetDevice.GetAttribute("FastDeviceStartup_Port3"); this.Port4 = (string)instanceProfinetDevice.GetAttribute("FastDeviceStartup_Port4"); } }
public Device(string name, string IdentificationLabel, string VendorName, string ProductName, IndustrialNetwork connectedtoIndustrialNetwork) { this.Name = name; this.IdentificationLabel = IdentificationLabel; this.VendorName = VendorName; this.ProductName = ProductName; this.connectedtoIndustrialNetwork = connectedtoIndustrialNetwork; }
public DeviceNetDevice(Instance instanceDeviceNetDevice, IndustrialNetwork connectedtoIndustrialNetwork) : base(instanceDeviceNetDevice, null, connectedtoIndustrialNetwork) { this.Address = (int)instanceDeviceNetDevice.GetAttribute("Address"); this.VendorID = (int)instanceDeviceNetDevice.GetAttribute("VendorID"); this.ProductCode = (int)instanceDeviceNetDevice.GetAttribute("ProductCode"); this.DeviceType = (int)instanceDeviceNetDevice.GetAttribute("DeviceType"); this.ProductionInhibitTime = (int)instanceDeviceNetDevice.GetAttribute("ProductionInhibitTime"); this.ConnectionType = (string)instanceDeviceNetDevice.GetAttribute("ConnectionType"); this.PollRate = (int)instanceDeviceNetDevice.GetAttribute("PollRate"); this.ConnectionOutputSize = (int)instanceDeviceNetDevice.GetAttribute("OutputSize"); this.ConnectionInputSize = (int)instanceDeviceNetDevice.GetAttribute("InputSize"); this.QuickConnect = (bool)instanceDeviceNetDevice.GetAttribute("QuickConnect"); this.Simulated = (bool)instanceDeviceNetDevice.GetAttribute("Simulated"); this.TrustLevel = (string)instanceDeviceNetDevice.GetAttribute("TrustLevel"); this.StateWhenSystemStartup = (string)instanceDeviceNetDevice.GetAttribute("StateWhenStartup"); this.RecoveryTime = (int)instanceDeviceNetDevice.GetAttribute("RecoveryTime"); }
public EtherNetIPDevice(Instance instanceEtherNetIPDevice, IndustrialNetwork connectedtoIndustrialNetwork) : base(instanceEtherNetIPDevice, null, connectedtoIndustrialNetwork) { this.Address = (string)instanceEtherNetIPDevice.GetAttribute("Address"); this.VendorID = (int)instanceEtherNetIPDevice.GetAttribute("VendorID"); this.ProductCode = (int)instanceEtherNetIPDevice.GetAttribute("ProductCode"); this.DeviceType = (int)instanceEtherNetIPDevice.GetAttribute("DeviceType"); this.OutputAssembly = (int)instanceEtherNetIPDevice.GetAttribute("OutputAssembly"); this.InputAssembly = (int)instanceEtherNetIPDevice.GetAttribute("InputAssembly"); this.ConfigurationAssembly = (int)instanceEtherNetIPDevice.GetAttribute("ConfigurationAssembly"); this.InputConnectionType = (string)instanceEtherNetIPDevice.GetAttribute("InputConnectionType"); this.ConnectionPriority = (string)instanceEtherNetIPDevice.GetAttribute("ConnectionPriority"); this.ConnectionOutputSize = (int)instanceEtherNetIPDevice.GetAttribute("OutputSize"); this.ConnectionInputSize = (int)instanceEtherNetIPDevice.GetAttribute("InputSize"); this.ConfigurationSize = (int)instanceEtherNetIPDevice.GetAttribute("ConfigurationSize"); this.ConfigurationData00 = (string)instanceEtherNetIPDevice.GetAttribute("ConfigurationData00"); this.OutputRPI = int.Parse(instanceEtherNetIPDevice.GetAttribute("O2T_RPI").ToString()); this.InputRPI = int.Parse(instanceEtherNetIPDevice.GetAttribute("T2O_RPI").ToString()); }
public Device(Instance instanceDevice, string name, IndustrialNetwork connectedtoIndustrialNetwork) { if (instanceDevice != null) { this.Name = (string)instanceDevice.GetAttribute("Name"); this.IdentificationLabel = (string)instanceDevice.GetAttribute("Label"); this.VendorName = (string)instanceDevice.GetAttribute("VendorName"); this.ProductName = (string)instanceDevice.GetAttribute("ProductName"); this.Simulated = (bool)instanceDevice.GetAttribute("Simulated"); } else { this.Name = name; this.IdentificationLabel = ""; this.VendorName = ""; this.ProductName = ""; } this.connectedtoIndustrialNetwork = connectedtoIndustrialNetwork; }
public ProfinetInternalDevice(Instance instanceProfinetDevice, IndustrialNetwork connectedtoIndustrialNetwork) : base(instanceProfinetDevice, null, connectedtoIndustrialNetwork) { this.ConnectionOutputSize = (int)instanceProfinetDevice.GetAttribute("OutputSize"); this.ConnectionInputSize = (int)instanceProfinetDevice.GetAttribute("InputSize"); }
public LocalDevice(Instance instanceProfinetDevice, IndustrialNetwork connectedtoIndustrialNetwork) : base(instanceProfinetDevice, null, connectedtoIndustrialNetwork) { }
public Virtual1Device(Instance instanceVirtual1Device, IndustrialNetwork connectedtoIndustrialNetwork) : base(instanceVirtual1Device, "Virtual1", connectedtoIndustrialNetwork) { }