123456789101112131415161718192021222324252627282930313233343536 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace StageController
- {
- /// <summary>
- /// 5.1 电脑发送设置X, Y, Z电机参数指令
- /// </summary>
- 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();
- }
- }
- }
|