천호석
2022-06-17 4de9ea98e13449174aa2cd09c8351fc0e978f44a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System.Windows.Forms;
 
namespace SHARP_CLAS_UI
{
    public partial class uc_Motor_Controler : UserControl
    {
        #region Property
        public MotorAxis motor_axis { get; private set; }
 
        public float position { get; private set; }
 
        public float speed { get; private set; }
 
        public bool serveron { get; private set; }
 
        public bool inposition { get; private set; }
 
        public bool home { get; private set; }
 
        public bool alarm { get; private set; }
 
        public bool positivelimit { get; private set; }
 
        public bool negativelimit { get; private set; }
        #endregion
        public uc_Motor_Controler()
        {
            InitializeComponent();
        }
 
        public void Set_MotorAxis(MotorAxis motor_axis)
        {
            this.motor_axis = motor_axis;
            lb_Motor_Axis.Text = $"{(uint)motor_axis}";
            lb_Motor_Name.Text = motor_axis.ToString();
        }
    }
}