public AcquireRawValue(int id, int controllerId, int controllerChannelNo, double value) { _Id = id; _ControllerId = controllerId; _ControllerChannelNo = controllerChannelNo; _PLCAddr = null; Value = new ValueStruct(value); }
public AcquireRawValue(int id, IControllerBase controller, string controllerChannelAlias, double value) { _Id = id; _ControllerId = controller.ControllerId; _ControllerChannelNo = 0; if (controller.ControllerType.IsPLCController()) { _PLCAddr = new FxAddress(controllerChannelAlias, controller.ControllerType); } else { _PLCAddr = null; } Value = new ValueStruct(value); }