예제 #1
0
        /// <summary>
        ///  LMPscancfg_class constructor
        /// </summary>
        public LMPscancfg_class()
        {
            string        sTemp;
            ASCIIEncoding encoding = new ASCIIEncoding();

            _type      = CommandType.LMPscancfg;
            _data      = new LMPscancfg();
            _data.stx  = 0x02;
            sTemp      = "sRN ";
            _data.type = encoding.GetBytes(sTemp);
            sTemp      = "LMPscancfg ";
            _data.cmd  = encoding.GetBytes(sTemp);
            _data.etx  = 0x03;
        }
예제 #2
0
 /// <summary>
 ///  LMPscancfg_class constructor
 /// </summary>      
 public LMPscancfg_class()
 {
     string sTemp;
     ASCIIEncoding encoding = new ASCIIEncoding();
     _type = CommandType.LMPscancfg;
     _data = new LMPscancfg();
     _data.stx = 0x02;
     sTemp = "sRN ";
     _data.type = encoding.GetBytes(sTemp);
     sTemp = "LMPscancfg ";
     _data.cmd = encoding.GetBytes(sTemp);
     _data.etx = 0x03;
 }