Exemplo n.º 1
0
 private void IniTogetherInfo()
 {
     JobCarTogetherInfo     = new DwTogetherInfo();
     NonJobCarTogetherInfo  = new DwTogetherInfo();
     MJobCarTogetherInfo    = new DwMTogetherInfo();
     MNonJobCarTogetherInfo = new DwMTogetherInfo();
 }
Exemplo n.º 2
0
        public ushort[] GetDwMTogetherInfo(int index)
        {
            DwMTogetherInfo info = CarsLst[index].JobCar ? MJobCarTogetherInfo : MNonJobCarTogetherInfo;

            if (info == null)
            {
                return new ushort[] { 0, 0 }
            }
            ;
            info.MReady = CarsLst[index].IsReady;
            return(info.GetDwUshortArr);
        }
Exemplo n.º 3
0
        public void GetMTogetherInfo(DwMTogetherInfo info, bool job)
        {
            Vehicle t = job ? MJobCarLst[0] : MNonJobCarLst[0];                                                                              //推焦车
            Vehicle m = job ? MJobCarLst[1] : MNonJobCarLst[1];                                                                              //装煤车

            info.Pinging     = ((TjcTogetherInfo)t.DataRead.TogetherInfo).PingBegin;                                                         //1正在平煤
            info.TReady      = ((Tjc)t).MReady;                                                                                              //2推焦车就位
            info.TMDoorOpen  = ((TjcTogetherInfo)t.DataRead.TogetherInfo).PMDoorOpen;                                                        //3小炉门
            info.LReady      = false;                                                                                                        //4拦焦车就位
            info.PingRequest = false;                                                                                                        //5请求平煤
            info.MReady      = m.IsReady;                                                                                                    //6煤车就位
            info.AllowGet    = false;                                                                                                        //9允许取煤
            info.MLock       = false;                                                                                                        //10装煤联锁,装煤车取自己的点
            info.TDoorClosed = CokeRoom.StokingPlan.Count > 0 ? !CokeRoom.RoomDoorLst[CokeRoom.StokingPlan[0].RoomNum - 1].TDoorOpen : true; //11机侧推焦炉门开
            info.LDoorClosed = CokeRoom.StokingPlan.Count > 0 ? !CokeRoom.RoomDoorLst[CokeRoom.StokingPlan[0].RoomNum - 1].LDoorOpen : true; //12焦侧出焦炉门开
            info.LidOpen     = ((McTogetherInfo)m.DataRead.TogetherInfo).LidOpen;                                                            //13炉盖
            info.ReadyToPing = info.IsPingReady();                                                                                           //7准备平煤
            info.AllowPing   = info.IsAllowPing();                                                                                           //8允许装煤
            info.SleeveReady = ((McTogetherInfo)m.DataRead.TogetherInfo).SleeveReady;
        }