hwh
2024-09-03 2acb2076869b884c69c349e0821ed96c2bc5b9ee
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
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(WcsAlarmInfoOutput 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
    {
        public string StationNum { get; set; }
        public bool BoHaveItem { get; set; }
        public PLCTypeEnum Type { get; set; }
        public int BoxHeight { get; set; }
    }
}