Beispiel #1
0
 private void SendInMission(AgvInMissonModel mission)
 {
     SendLogEvent?.Invoke(new StationClientState {
         State = StationClientStateEnum.INFO, Message = "入库请求:" + mission.Type.EnumToString()
     }.ToString());
     SendSingnalrEvent?.Invoke(AgvSendActionEnum.SendInMission.EnumToString(), mission);
 }
Beispiel #2
0
        private void SendFeedingSignal()
        {
            var empty_in     = false;
            var ret_empty_in = StationDevice.GetEmptyInFeedingSignal(ref empty_in);

            if (ret_empty_in)
            {
                SendSingnalrEvent?.Invoke(AgvSendActionEnum.SendFeedingSignalMessage.EnumToString(), new AgvFeedingSignal
                {
                    Id       = Station_Id + "_EMPTYIN",
                    ClientId = Station_Id,
                    Type     = AgvMissionTypeEnum.EMPTY_IN,
                    Value    = empty_in,
                });
            }

            var raw_in     = false;
            var ret_raw_in = StationDevice.GetRawInFeedingSignal(ref raw_in);

            if (ret_raw_in == true)
            {
                SendSingnalrEvent?.Invoke(AgvSendActionEnum.SendFeedingSignalMessage.EnumToString(), new AgvFeedingSignal
                {
                    Id       = Station_Id + "_RAWIN",
                    ClientId = Station_Id,
                    Type     = AgvMissionTypeEnum.RAW_IN,
                    Value    = raw_in,
                });
            }
        }