分支自 SuZhouGuanHong/TaiYuanTaiZhong

dengjunjie
2024-05-12 efe99fc88261862068a7e8f1be53d0b48ac17a53
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
55
56
57
58
59
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace WIDESEA_Comm.PLCDBItem
{
    /// <summary>
    /// 辊道信息
    /// </summary>
    public class StackerReadDBItem
    {
        public event Action<string, StackerReadDBItem> OnReadStackerSignal;
 
        /// <summary>
        /// 辊道编号
        /// </summary>
        public string StackerNo { get; set; }
 
        /// <summary>
        /// 车轮SN号
        /// </summary>
        public string R_wheel_SN { get; set; }
 
        /// <summary>
        /// 车轮类型
        /// </summary>
        public Int16 R_wheel_type { get; set; }
 
        /// <summary>
        /// 车轮零件状态
        /// </summary>
        public byte R_part_status { get; set; }
 
        /// <summary>
        /// 车轮零件工艺
        /// </summary>
        public byte R_part_process { get; set; }
 
        /// <summary>
        /// 辊道machine_nr
        /// </summary>
        public bool R_machine_nr { get; set; }
 
        /// <summary>
        /// 读取辊道direction
        /// </summary>
        public byte R_direction { get; set; }
 
        public void ReadSignal(string signalType, StackerReadDBItem dBItem)
        {
            Task.Run(() =>
            {
                OnReadStackerSignal?.Invoke(signalType, dBItem);
            });
        }
    }
}