Beispiel #1
0
 private void IniTogetherInfo()
 {
     JobCarTogetherInfo     = new DwTogetherInfo();
     NonJobCarTogetherInfo  = new DwTogetherInfo();
     MJobCarTogetherInfo    = new DwMTogetherInfo();
     MNonJobCarTogetherInfo = new DwMTogetherInfo();
 }
Beispiel #2
0
 public ushort[] GetDwTogetherInfo(int index)
 {//***未考虑到装煤车的联锁信息
     #region 20170919之前上位机下发联锁信息的处理方式
     ////推焦请求
     //DwTogehterInfo.PushRequest = false;
     ////推焦联锁
     //DwTogehterInfo.PushTogether = CarsInfo[index].JobCar ? JobCarTogetherInfo.PushTogether : false;
     ////推到位
     //DwTogehterInfo.TJobCarReady = CarsInfo[index].JobCar ? JobCarTogetherInfo.TJobCarReady : false;
     ////推炉门已摘
     //DwTogehterInfo.TRoomDoorOpen = CarsInfo[index].JobCar ? JobCarTogetherInfo.TRoomDoorOpen : false;
     ////推焦开始
     //DwTogehterInfo.PushBegin = CarsInfo[index].JobCar ? JobCarTogetherInfo.PushBegin : false;
     ////推焦结束
     //DwTogehterInfo.PushEnd = CarsInfo[index].JobCar ? JobCarTogetherInfo.PushEnd : false;
     ////拦到位
     //DwTogehterInfo.LJobCarReady = CarsInfo[index].JobCar ? JobCarTogetherInfo.LJobCarReady : false;
     ////拦炉门已摘
     //DwTogehterInfo.LRoomDoorOpen = CarsInfo[index].JobCar ? JobCarTogetherInfo.LRoomDoorOpen : false;
     ////焦槽锁闭
     //DwTogehterInfo.TroughLocked = CarsInfo[index].JobCar ? JobCarTogetherInfo.TroughLocked : false;
     ////拦人工允推
     //DwTogehterInfo.LAllowPush = CarsInfo[index].JobCar ? JobCarTogetherInfo.LAllowPush : false;
     ////熄到位
     //DwTogehterInfo.XJobCarReady = CarsInfo[index].JobCar ? JobCarTogetherInfo.XJobCarReady : false;
     ////焦罐旋转/车门关闭
     //DwTogehterInfo.CanReady = CarsInfo[index].JobCar ? JobCarTogetherInfo.CanReady : false;
     ////熄人工允推
     //DwTogehterInfo.XAllowPush = CarsInfo[index].JobCar ? JobCarTogetherInfo.XAllowPush : false;
     ////水熄/干熄
     //DwTogehterInfo.Dry = CarsInfo[index].JobCar ? JobCarTogetherInfo.Dry : false;
     ////焦罐号(0/1)
     //DwTogehterInfo.CanNum = CarsInfo[index].JobCar ? JobCarTogetherInfo.CanNum : false;
     ////1#罐有无
     //DwTogehterInfo.FstCan = true;
     ////1#罐有无
     //DwTogehterInfo.SecCan = true;
     ////一级允推
     //DwTogehterInfo.FstAllow = carsInfo[index].JobCar ? JobCarTogetherInfo.FstAllow : false;
     ////二级允推
     //DwTogehterInfo.SecAllow = carsInfo[index].JobCar ? JobCarTogetherInfo.SecAllow : false;
     ////平煤请求
     //DwTogehterInfo.PingRequest = ((McTogetherInfo)(JobCar[3].DataRead.TogetherInfo)).PingRequest;
     ////当前车对中指示
     //DwTogehterInfo.IsReady = CarsInfo[index].IsReady;
     #endregion
     DwTogetherInfo info = new DwTogetherInfo();
     #region 20170919 考虑到装煤车联锁信息的下发 修改的处理方式
     info         = CarsLst[index].JobCar ? JobCarTogetherInfo : NonJobCarTogetherInfo;
     info.IsReady = CarsLst[index].IsReady;
     //增加熄焦车的虚拟炉号20171211
     if ((index == 4 || index == 5) && CarsLst[index].DataRead.PhysicalAddr > 1845000)
     {
         info.FstAllow = false;
         info.SecAllow = false;
     }
     #endregion
     return(info.GetDwUshortArr);
 }
Beispiel #3
0
        public int GetABDwTogetherInfo(int index)
        {
            DwTogetherInfo info = new DwTogetherInfo();

            info         = CarsLst[index].JobCar ? JobCarTogetherInfo : NonJobCarTogetherInfo;
            info.IsReady = CarsLst[index].IsReady;
            //增加熄焦车的虚拟炉号20171211
            if ((index == 4 || index == 5) && CarsLst[index].DataRead.PhysicalAddr > 1845000)
            {
                info.FstAllow = false;
                info.SecAllow = false;
            }
            //info.IsReady = CarsLst[index].IsReady;
            return(info.InfoToInt);
        }
Beispiel #4
0
        /// <summary>
        ///
        /// </summary>
        public void GetCarTogetherInfo(DwTogetherInfo tInfo, bool job)
        {//没有处理平煤请求 应为默认值
            //推焦车
            Vehicle T = job ? TJobCarLst[0] : NonJobCarLst[0];

            tInfo.PushRequest   = ((TjcTogetherInfo)(T.DataRead.TogetherInfo)).PushRequest;  //推焦请求1
            tInfo.PushTogether  = ((TjcTogetherInfo)(T.DataRead.TogetherInfo)).PushTogether; //推焦联锁2
            tInfo.TJobCarReady  = T.IsReady;                                                 //推到位3
            tInfo.TRoomDoorOpen = ((TjcTogetherInfo)(T.DataRead.TogetherInfo)).DoorOpen;     //炉门已摘4
            tInfo.PushBegin     = ((TjcTogetherInfo)(T.DataRead.TogetherInfo)).PushBegin;    //5
            tInfo.PushEnd       = ((TjcTogetherInfo)(T.DataRead.TogetherInfo)).PushEnd;      //6
            //拦焦车:拦到位,拦炉门已摘,焦槽锁闭,人工允推
            Vehicle L = job ? TJobCarLst[1] : NonJobCarLst[1];

            tInfo.LJobCarReady  = L.IsReady;                                                 //7
            tInfo.LRoomDoorOpen = ((LjcTogetherInfo)(L.DataRead.TogetherInfo)).DoorOpen;     //8
            tInfo.TroughLocked  = ((LjcTogetherInfo)(L.DataRead.TogetherInfo)).TroughLocked; //9
            tInfo.LAllowPush    = ((LjcTogetherInfo)(L.DataRead.TogetherInfo)).AllowPush;    //10
            //熄焦车:熄到位,焦罐旋转/车门关闭,人工允推,水熄/干熄,焦罐号,1#罐有无,2#罐有无
            Vehicle X = job ? TJobCarLst[2] : NonJobCarLst[2];

            tInfo.XJobCarReady = X.IsReady;                                              //11
            tInfo.CanReady     = ((XjcTogetherInfo)(X.DataRead.TogetherInfo)).CanReady;  //12
            tInfo.XAllowPush   = ((XjcTogetherInfo)(X.DataRead.TogetherInfo)).AllowPush; //13
            tInfo.Dry          = ((XjcTogetherInfo)(X.DataRead.TogetherInfo)).Dry;       //14
            bool carNum = X.CarNum == 1 ? false : true;

            if (tInfo.CarNum != carNum)
            {
                tInfo.CarNum = carNum;
            }
            tInfo.CanNum    = ((XjcTogetherInfo)(X.DataRead.TogetherInfo)).CanNum; //15
            tInfo.TimeAllow = tInfo.IsTimeAllow();                                 //
            tInfo.FstCan    = ((XjcTogetherInfo)(X.DataRead.TogetherInfo)).FstCan; //16
            tInfo.SecCan    = ((XjcTogetherInfo)(X.DataRead.TogetherInfo)).SecCan; //17
            //tInfo.IsReady = X.IsReady;//21 20171206 当前车队中指示;20171207 此对中信号指的是工作车的对中信号;不应置于联锁信息中
            //一级允推,二级允推,平煤请求
            tInfo.FstAllow = tInfo.GetFstAllow(); //18
            tInfo.SecAllow = tInfo.GetSecAllow(); //19
        }