천호석
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
using System;
 
namespace SHARP_CLAS_UI
{
    public class Position_Info
    {
        #region Property
        public string Position_Name { get; set; }
        public int Position_Num { get; set; }
        public MotorAxis Motor_Axis { get; set; }
        public string Description { get; set; }
        public double Position { get; set; }
        public double Velocity { get; set; }
        #endregion
 
        #region Construct
        public Position_Info()
        {
            this.Position_Name = string.Empty;
            this.Position_Num = 0;
            this.Motor_Axis = 0;
            this.Description = "";
            this.Position = 0;
            this.Velocity = 0;
        }
 
        public Position_Info(string Position_Name, int Position_Num, MotorAxis Motor_Axis, string Description, double Position, double Velocity)
        {
            this.Position_Name = Position_Name;
            this.Position_Num = Position_Num;
            this.Motor_Axis = Motor_Axis;
            this.Description = Description;
            this.Position = Position;
            this.Velocity = Velocity;
        }
        #endregion
 
        #region Function
        public Position_Info Clone()
        {
            Position_Info info = new Position_Info();
 
            info.Position_Name = this.Position_Name;
            info.Position_Num = this.Position_Num;
            info.Motor_Axis = this.Motor_Axis;
            info.Description = this.Description;
            info.Position = this.Position;
            info.Velocity = this.Velocity;
 
            return info;
        }
        #endregion
    }
}