public bool GetSignalValue() { ABB.Robotics.Controllers.IOSystemDomain.Signal signal = this.AssignedtoDevice.ConnectedtoIndustrialNetwork.FieldBus.Controller.IOSystem.GetSignal(this.Name); if (signal != null) { this.SignalValue = signal.Value; this.InputAsPhysical = signal.InputAsPhysical; this.Simulated = signal.State.Simulated; return(true); } return(false); }
/// <summary> /// The Access Level must be set to all /// </summary> /// <returns></returns> public bool SetSignalValue() { ABB.Robotics.Controllers.IOSystemDomain.Signal signal = this.AssignedtoDevice.ConnectedtoIndustrialNetwork.FieldBus.Controller.IOSystem.GetSignal(this.Name); if (signal != null) { if (this.AccessLevel.RemoteClientinAutoMode && this.AccessLevel.RemoteClientinManualMode) { signal.Value = (float)this.SignalValue; return(true); } } return(false); }