using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace StageController { /// /// 5.1 电脑发送设置X, Y, Z电机参数指令 /// public class CommandParameter : CommandBase { public char AxisSelect { get { return _command[0]; } set { _command[0] = value; } } public char LockOrFree { set { _command[3] = value; } } char[] _command = "x+-SN000000Y100".ToCharArray(); public override string Make() { return "@" + new string(_command) + "!"; } public override bool Parse(string response) { return response == _command.ToString(); } } }