private static ResponseMessage writeMulti(this IMitsubishiPlc plc, string cmdText)
        {
            ResponseMessage resp   = new ResponseMessage();
            StringBuilder   result = new StringBuilder();

            bool hasDots = cmdText.Contains("..");

            string[] s = cmdText.Split(new string[] { ",", "..", "=" }, StringSplitOptions.None);

            int m;
            int n = int.Parse(s[1]);

            PlcDeviceType type;

            McProtocolApp.GetDeviceCode(s[0], out type, out m);

            byte[] data;

            if (hasDots)
            {
                data = new byte[n - m + 1];
            }
            else
            {
                data = new byte[n];
            }

            var v = byte.Parse(s[2]);

            for (int i = 0; i < data.Length; ++i)
            {
                data[i] = v;
            }
            var iData = new int[16];

            int rtCode = McProtocolApp.IsBitDevice(type) ? plc.SetBitDevice(s[0], 1, data) :
                         plc.WriteDeviceBlock(s[0], data.Length, iData);

            result.AppendLine(cmdText.ToUpper());
            if (0 < rtCode)
            {
                result.AppendLine("ERROR:0x" + rtCode.ToString("X4"));
            }


            return(resp);
        }