/// <summary> /// 构建FxSerialDeamon类实例 /// </summary> /// <param name="controllerType">目前仅支持ctPLC_Fx</param> /// <param name="controllerId"></param> /// <param name="controllerName">控制器名称----程序内部一般不需要</param> /// <param name="controllerAddress">表示为:串口号、IP地址</param> /// <param name="controllerAddressPort">控制器地址的端口号(表示为:TCP/UDP的Port、485的设备ID)</param> /// <param name="controllerChannelCount">通道数,例如128,256 ... ...</param> public FxSerialDeamon(ControllerTypeConst controllerType, int controllerId, string controllerName, string controllerAddress, short controllerAddressPort, short controllerChannelCount) : base(controllerType, controllerId, controllerName, controllerAddress, controllerAddressPort, controllerChannelCount) { Debug.Assert(controllerType == ControllerTypeConst.ctPLC_Fx, "请确认!这里仅仅支持 ControllerTypeConst.ctPLC_Fx ."); _SerialPort = null; _RingBuffer = new FxRingBuffer(); }