chengsc
2025-04-14 d2588d8d1305171e7716055b23a6b5706e9cc04b
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
60
61
62
63
64
65
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace WCS.Application
{
    public interface IPlcHub
    {
        /// <summary>
        /// 下发PLC连接状态
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        Task PublicPlcConn(WcsPlc context);
 
        /// <summary>
        /// 下发工位状态
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        //Task PublicStationStatus(List<WcsDevice> context);
 
        /// <summary>
        /// 下发报警信息
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        Task PublicAlarm(List<WcsAlarmInfo> context);
        /// <summary>
        /// 修改服务状态
        /// </summary>
        /// <param name="context"></param>
        Task UpdateService(PLCServiceModel context);
 
        /// <summary>
        /// 下发控制台位置信息
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        Task PublicPosition(PlcPositionInfo context);
    }
    public class PlcPositionInfo
    {
        /// <summary>
        /// 工位号
        /// </summary>
        public string StationNum { get; set; }
        /// <summary>
        /// 是否有物品
        /// </summary>
        public bool BoHaveItem { get; set; }
        /// <summary>
        /// Plc类型
        /// </summary>
        public PLCTypeEnum Type { get; set; }
 
        /// <summary>
        /// 跺机位置
        /// </summary>
        public int BoxHeight { get; set; }
        public string EndLocat { get; set; }
    }
}