/// <summary>
 /// Does the initialize.
 /// </summary>
 public virtual void doInit()
 {
     try
     {
         ValueRead FireReport_vr = null;
         if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "FIRE_REPORT", out FireReport_vr))
         {
             FireReport_vr.afterValueChange += (_sender, _e) => FireReportChange(_sender, _e);
         }
         ValueRead TestFireReport_vr = null;
         if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "TEST_FIRE_REPORT", out TestFireReport_vr))
         {
             TestFireReport_vr.afterValueChange += (_sender, _e) => FireReportChange(_sender, _e);
         }
         //ValueRead FireDoorOpen_vr = null;
         //if (bcfApp.tryGetReadValueEventstring(SCAppConstants.EQPT_OBJECT_CATE_UNIT, eqpt.EQPT_ID, "FIRE_DOOR_OPEN", out FireDoorOpen_vr))
         //{
         //    FireDoorOpen_vr.afterValueChange += (_sender, _e) => FireDoorDataChange(_sender, _e);
         //}
         //ValueRead FireDoorCloseGrant_vr = null;
         //if (bcfApp.tryGetReadValueEventstring(SCAppConstants.EQPT_OBJECT_CATE_UNIT, eqpt.EQPT_ID, "FIRE_DOOR_CLOSE_GRANT", out FireDoorCloseGrant_vr))
         //{
         //    FireDoorCloseGrant_vr.afterValueChange += (_sender, _e) => FireDoorDataChange(_sender, _e);
         //}
     }
     catch (Exception ex)
     {
         logger.Error(ex, "Exection:");
     }
 }
 public virtual void doInit()
 {
     try
     {
         ValueRead vr = null;
         if (bcfApp.tryGetReadValueEventstring(masterPLC.EqptObjectCate, masterPLC.PORT_ID, "PLC_HEARTBEAT", out vr))
         {
             vr.afterValueChange += (_sender, _e) => PLCSystem_onHeartBeat(_sender, _e);
         }
     }
     catch (Exception ex)
     {
         logger.Error(ex, "Exception:");
     }
 }
Ejemplo n.º 3
0
        public virtual void Read(BCFApplication bcfApp, string eqObjIDCate, string eq_id)
        {
            List <ValueRead> listVR = new List <ValueRead>();

            foreach (FieldInfo info in fieldInfos)
            {
                ValueRead  vr      = null;
                PLCElement element = getPLCElementAttr(info);
                if (bcfApp.tryGetReadValueEventstring(eqObjIDCate, EQ_ID, element.ValueName, out vr))
                {
                    if (info.FieldType == typeof(Int32))
                    {
                        info.SetValue(this, Convert.ToInt32(vr.getText()));
                    }
                    else
                    {
                        info.SetValue(this, vr.getText());
                    }
                    listVR.Add(vr);
                }
                else
                {
                }
            }
            if (listVR.Count > 0)
            {
                BCFUtility.writeEquipmentLog(eq_id, listVR);
            }
        }
Ejemplo n.º 4
0
        public ValueRead getValueReadHandshake(BCFApplication bcfApp, string eqObjIDCate, string eq_id)
        {
            ValueRead vr = null;

            if (!SCUtility.isEmpty(HandshakePropName))
            {
                if (!bcfApp.tryGetReadValueEventstring(eqObjIDCate, eq_id, HandshakePropName, out vr))
                {
                }
            }
            else if (!SCUtility.isEmpty(IndexPropName))
            {
                if (!bcfApp.tryGetReadValueEventstring(eqObjIDCate, eq_id, IndexPropName, out vr))
                {
                }
            }

            return(vr);
        }
Ejemplo n.º 5
0
 /// <summary>
 /// Does the initialize.
 /// </summary>
 public virtual void doInit()
 {
     try
     {
         mcsMapAction = SCApplication.getInstance().getEQObjCacheManager().getLine().getMapActionByIdentityKey(typeof(AUOMCSDefaultMapAction).Name) as AUOMCSDefaultMapAction;
         ValueRead EQ_Ready_vr = null;
         if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "EQ_READY", out EQ_Ready_vr))
         {
             EQ_Ready_vr.afterValueChange += (_sender, _e) => EQStatusReport(_sender, _e);
         }
         ValueRead EQ_Error_vr = null;
         if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "EQ_ERROR", out EQ_Error_vr))
         {
             EQ_Error_vr.afterValueChange += (_sender, _e) => EQStatusReport(_sender, _e);
         }
     }
     catch (Exception ex)
     {
         logger.Error(ex, "Exection:");
     }
 }
Ejemplo n.º 6
0
 public virtual void doInit()
 {
     try
     {
         mcsMapAction =
             SCApplication.getInstance().getEQObjCacheManager().getLine().getMapActionByIdentityKey(typeof(AUOMCSDefaultMapAction).Name) as AUOMCSDefaultMapAction;
         ValueRead PortRequest_vr = null;
         if (bcfApp.tryGetReadValueEventstring(SCAppConstants.EQPT_OBJECT_CATE_PORT, PortStation.PORT_ID, "REQUEST", out PortRequest_vr))
         {
             PortRequest_vr.afterValueChange += (_sender, _e) => PortStationDataChange(_sender, _e);
         }
         ValueRead PortReady_vr = null;
         if (bcfApp.tryGetReadValueEventstring(SCAppConstants.EQPT_OBJECT_CATE_PORT, PortStation.PORT_ID, "READY", out PortReady_vr))
         {
             PortReady_vr.afterValueChange += (_sender, _e) => PortStationDataChange(_sender, _e);
         }
     }
     catch (Exception ex)
     {
         logger.Error(ex, "Exception:");
     }
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Does the initialize.
 /// </summary>
 public virtual void doInit()
 {
     try
     {
         ValueRead vr = null;
         if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "HID_TO_OHXC_TRIGGER", out vr))
         {
             vr.afterValueChange += (_sender, _e) => HID_ChargeInfo(_sender, _e);
         }
         if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "HID_TO_OHXC_POWER_ALARM", out vr))
         {
             vr.afterValueChange += (_sender, _e) => PowerAlarm(_sender, _e);
         }
         if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "HID_TO_OHXC_TEMP_ALARM", out vr))
         {
             vr.afterValueChange += (_sender, _e) => TempAlarm(_sender, _e);
         }
     }
     catch (Exception ex)
     {
         logger.Error(ex, "Exection:");
     }
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Does the initialize.
 /// </summary>
 public virtual void doInit()
 {
     try
     {
         ValueRead vr = null;
         if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MCHARGER_TO_AGVC_ABNORMAL_CHARGING_REPORT_INDEX", out vr))
         {
             vr.afterValueChange += (_sender, _e) => MasterChargerAbnormalChargingReport(_sender, _e);
         }
     }
     catch (Exception ex)
     {
         logger.Error(ex, "Exection:");
     }
 }
 /// <summary>
 /// Does the initialize.
 /// </summary>
 public virtual void doInit()
 {
     try
     {
         ValueRead work_button_signal_vr = null;
         if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "TRAFFIC_LIGHT_WORK_BUTTON_SIGNAL", out work_button_signal_vr))
         {
             work_button_signal_vr.afterValueChange += (_sender, _e) => WorkButtonSignalChange(_sender, _e);
         }
     }
     catch (Exception ex)
     {
         logger.Error(ex, "Exection:");
     }
 }
        /// <summary>
        /// Does the initialize.
        /// </summary>
        public virtual void doInit()
        {
            try
            {
                ValueRead vr = null;

                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TRACK_CLOSED", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTLTrackClosedChange(_sender, _e);
                }
            }
            catch (Exception ex)
            {
                logger.Error(ex, "Exection:");
            }
        }
Ejemplo n.º 11
0
        public virtual void Read(BCFApplication bcfApp, string eqObjIDCate, string eq_id, int index)
        {
            List <ValueRead> listVR = new List <ValueRead>();

            foreach (FieldInfo info in fieldInfos)
            {
                ValueRead  vr         = null;
                PLCElement element    = getPLCElementAttr(info);
                string     value_name = $"{element.ValueName}{index}";
                if (bcfApp.tryGetReadValueEventstring(eqObjIDCate, EQ_ID, value_name, out vr))
                {
                    info.SetValue(this, vr.getText());
                    listVR.Add(vr);
                }
                else
                {
                }
            }
            if (listVR.Count > 0)
            {
                BCFUtility.writeEquipmentLog(eq_id, listVR);
            }
        }
Ejemplo n.º 12
0
        private void initialValueRead()
        {
            ValueRead OHCV_Alive_vr = null;

            if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "OHCV_TO_OHTC_ALIVE", out OHCV_Alive_vr))
            {
                AliveChange(OHCV_Alive_vr, null);
            }
            InitialSafetyCheckRequest();
            ValueRead Safety_Check_Complete_vr = null;

            if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "SAFETY_CHECK_COMPLETE", out Safety_Check_Complete_vr))
            {
                SafetyCheckCompleteChange(Safety_Check_Complete_vr, null);
            }
            ValueRead Door_Close_vr = null;

            if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "DOOR_CLOSE", out Door_Close_vr))
            {
                DoorCloseChange(Door_Close_vr, null);
            }
        }
Ejemplo n.º 13
0
        /// <summary>
        /// Does the initialize.
        /// </summary>
        public virtual void doInit()
        {
            try
            {
                ValueRead vr = null;

                if (bcfApp.tryGetReadValueEventstring(unit.EqptObjectCate, unit.UNIT_ID, "CHARGERX_TO_AGVC_ALIVE_INDEX", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => ChargerAliveReport(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(unit.EqptObjectCate, unit.UNIT_ID, "CHARGERX_TO_AGVC_CHARGER_CURRENT_CHARGING_STATUS_REPORT_BLOCK", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => ChargerCurrentStatus(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(unit.EqptObjectCate, unit.UNIT_ID, "CHARGERX_TO_AGVC_CHARGER_STATUS_REPORT_INDEX", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => ChargerStatusReport(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(unit.EqptObjectCate, unit.UNIT_ID, "CHARGERX_TO_AGVC_CHARGER_CURRENT_CONSTANT_REPORT_INDEX", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => ConstantReport(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(unit.EqptObjectCate, unit.UNIT_ID, "CHARGERX_TO_AGVC_COUPLER_CHANGING_INFO_REPORT_INDEX", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => ChangingInfoReport(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(unit.EqptObjectCate, unit.UNIT_ID, "CHARGERX_TO_AGVC_PIO_HANDSHAKE_REPORT_INDEX", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => ChargerPIOHandshake(_sender, _e);
                }
            }
            catch (Exception ex)
            {
                logger.Error(ex, "Exection:");
            }
        }
        /// <summary>
        /// Does the initialize.
        /// </summary>
        public virtual void doInit()
        {
            try
            {
                ValueRead vr = null;
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_DATETIME", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_DATETIME(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_ALIVE_INDEX", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_Alive(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_CURRENT_CAR_ID_INDEX", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_Current_ID(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_MTL_CAR_OUT_REQUEST_HS", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_CarOutRequest(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_REQUEST_CAR_IN_DATA_CHECK_HS", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_CarInRequest(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_LFT_STATUS_HAS_VEHICLE", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_LFTStatus(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_LFT_STATUS_STOP_SINGLE", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_LFTStatus(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_LFT_MODE", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_LFTStatus(_sender, _e);
                }

                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_LFT_VEHICLE_PARKED", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_LFTStatus(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_REPLY_OHXC_CAR_OUT_NOTIFY_HS", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_TO_OHXC_REPLY_OHXC_CAR_OUT_NOTIFY_HS(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_U2D_SAFETY_CHECK", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => CarOutSafetyChcek(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_D2U_SAFETY_CHECK", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => CarInSafetyChcek(_sender, _e);
                }
            }
            catch (Exception ex)
            {
                logger.Error(ex, "Exection:");
            }
        }
Ejemplo n.º 15
0
        /// <summary>
        /// Does the initialize.
        /// </summary>
        public virtual void doInit()
        {
            try
            {
                ValueRead vr = null;

                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_U2D_SAFETY_CHECK", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => CarOutSafetyChcek(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_U2D_SAFETY_CHECK_PH2", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => CarOutSafetyChcek(_sender, _e);
                }

                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_U2D_CAR_OUT_ACTION_TYPE_1", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => CarOutActionType(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_U2D_CAR_OUT_ACTION_TYPE_1_PH2", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => CarOutActionType(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_U2D_CAR_OUT_ACTION_TYPE_2", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => CarOutActionType(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_U2D_CAR_OUT_ACTION_TYPE_2_PH2", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => CarOutActionType(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_U2D_CAR_OUT_ACTION_TYPE_3", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => CarOutActionType(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_U2D_CAR_OUT_ACTION_TYPE_3_PH2", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => CarOutActionType(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_U2D_CAR_OUT_ACTION_TYPE_4", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => CarOutActionType(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_U2D_CAR_OUT_ACTION_TYPE_4_PH2", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => CarOutActionType(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_U2D_CAR_OUT_ACTION_TYPE_5", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => CarOutActionType(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_U2D_CAR_OUT_ACTION_TYPE_5_PH2", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => CarOutActionType(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_D2U_SAFETY_CHECK", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => CarInSafetyChcek(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_D2U_SAFETY_CHECK_PH2", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => CarInSafetyChcek(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_ALARM_REPORT_HS", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_Alarm_Report(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_ALARM_REPORT_HS_PH2", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_Alarm_Report(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_DATETIME", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_DATETIME(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_DATETIME_PH2", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_DATETIME(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_ALIVE_INDEX", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_Alive(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_ALIVE_INDEX_PH2", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_Alive(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_CURRENT_CAR_ID_INDEX", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_Current_ID(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_CURRENT_CAR_ID_INDEX_PH2", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_Current_ID(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_REPLY_OHXC_CAR_OUT_NOTIFY_HS", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_TO_OHXC_REPLY_OHXC_CAR_OUT_NOTIFY_HS(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_REPLY_OHXC_CAR_OUT_NOTIFY_HS_PH2", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_TO_OHXC_REPLY_OHXC_CAR_OUT_NOTIFY_HS(_sender, _e);
                }

                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_LFT_STATUS_HAS_VEHICLE", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_LFTStatus(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_LFT_STATUS_HAS_VEHICLE_PH2", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_LFTStatus(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_LFT_STATUS_STOP_SINGLE", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_LFTStatus(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_LFT_STATUS_STOP_SINGLE_PH2", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_LFTStatus(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_LFT_MODE", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_LFTStatus(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_LFT_MODE_PH2", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_LFTStatus(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_LFT_LOCATION", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_LFTStatus(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_LFT_LOCATION_PH2", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_LFTStatus(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_LFT_MOVING_STATUS", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_LFTStatus(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_LFT_MOVING_STATUS_PH2", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_LFTStatus(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_LFT_ENCODER", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_LFTStatus(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_LFT_ENCODER_PH2", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_LFTStatus(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_LFT_VEHICLE_PARKED", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_LFTStatus(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_LFT_VEHICLE_PARKED_PH2", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_LFTStatus(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_LFT_FRONT_DOOR_STATUS", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_LFTStatus(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_LFT_FRONT_DOOR_STATUS_PH2", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_LFTStatus(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_LFT_BACK_DOOR_STATUS", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_LFTStatus(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_LFT_BACK_DOOR_STATUS_PH2", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_LFTStatus(_sender, _e);
                }

                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_MTL_CAR_OUT_REQUEST_HS", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_CarOutRequest(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_MTL_CAR_OUT_REQUEST_HS_PH2", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_CarOutRequest(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_REQUEST_CAR_IN_DATA_CHECK_HS", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_CarInRequest(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_REQUEST_CAR_IN_DATA_CHECK_HS_PH2", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => MTL_CarInRequest(_sender, _e);
                }
                //if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_U2D_SAFETY_CHECK", out vr))
                //{
                //    vr.afterValueChange += (_sender, _e) => MTL_LFTStatus(_sender, _e);
                //}
                //if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_D2U_SAFETY_CHECK", out vr))
                //{
                //    vr.afterValueChange += (_sender, _e) => MTL_LFTStatus(_sender, _e);
                //}
                //if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "MTL_TO_OHXC_D2U_CAR_IN_INTERLOCK", out vr))
                //{
                //    vr.afterValueChange += (_sender, _e) => MTL_LFTStatus(_sender, _e);
                //}
            }
            catch (Exception ex)
            {
                logger.Error(ex, "Exection:");
            }
        }
        /// <summary>
        /// Does the initialize.
        /// </summary>
        public virtual void doInit()
        {
            try
            {
                ValueRead vr = null;
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "HID_TO_OHXC_TRIGGER", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => HID_ChargeInfo(_sender, _e);
                }

                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "HID_TO_OHXC_IGBT_A_ALARM", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => IGBT_A_Alarm(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "HID_TO_OHXC_IGBT_B_ALARM", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => IGBT_B_Alarm(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "HID_TO_OHXC_TEMP_ALARM", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => TempAlarm(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "HID_TO_OHXC_POWER_ALARM", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => PowerAlarm(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "HID_TO_OHXC_EMI_ALARM", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => EMIAlarm(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "HID_TO_OHXC_SMOKE_ALARM", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => SmokeAlarm(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "HID_TO_OHXC_SAFE_CIRCUIT_ALARM", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => SafeCircuitAlarm(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "HID_TO_OHXC_FAN_1_ALARM", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => Fan_1_Alarm(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "HID_TO_OHXC_FAN_2_ALARM", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => Fan_2_Alarm(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "HID_TO_OHXC_FAN_3_ALARM", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => Fan_3_Alarm(_sender, _e);
                }
                if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "HID_TO_OHXC_TIMEOUT_ALARM", out vr))
                {
                    vr.afterValueChange += (_sender, _e) => Timeout_Alarm(_sender, _e);
                }
            }
            catch (Exception ex)
            {
                logger.Error(ex, "Exection:");
            }
        }
 /// <summary>
 /// Does the initialize.
 /// </summary>
 public virtual void doInit()
 {
     try
     {
         ValueRead vr = null;
         if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "HID_TO_OHXC_TRIGGER_PH2", out vr))
         {
             vr.afterValueChange += (_sender, _e) => HID_ChargeInfo(_sender, _e);
         }
         if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "HID_TO_OHXC_ALARM_1", out vr))
         {
             vr.afterValueChange += (_sender, _e) => Alarm_1(_sender, _e);
         }
         if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "HID_TO_OHXC_ALARM_2", out vr))
         {
             vr.afterValueChange += (_sender, _e) => Alarm_2(_sender, _e);
         }
         if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "HID_TO_OHXC_ALARM_3", out vr))
         {
             vr.afterValueChange += (_sender, _e) => Alarm_3(_sender, _e);
         }
         if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "HID_TO_OHXC_ALARM_4", out vr))
         {
             vr.afterValueChange += (_sender, _e) => Alarm_4(_sender, _e);
         }
         if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "HID_TO_OHXC_ALARM_5", out vr))
         {
             vr.afterValueChange += (_sender, _e) => Alarm_5(_sender, _e);
         }
         if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "HID_TO_OHXC_ALARM_6", out vr))
         {
             vr.afterValueChange += (_sender, _e) => Alarm_6(_sender, _e);
         }
         if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "HID_TO_OHXC_ALARM_7", out vr))
         {
             vr.afterValueChange += (_sender, _e) => Alarm_7(_sender, _e);
         }
         if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "HID_TO_OHXC_ALARM_8", out vr))
         {
             vr.afterValueChange += (_sender, _e) => Alarm_8(_sender, _e);
         }
         if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "HID_TO_OHXC_ALARM_9", out vr))
         {
             vr.afterValueChange += (_sender, _e) => Alarm_9(_sender, _e);
         }
         if (bcfApp.tryGetReadValueEventstring(eqpt.EqptObjectCate, eqpt.EQPT_ID, "HID_TO_OHXC_ALARM_10", out vr))
         {
             vr.afterValueChange += (_sender, _e) => Alarm_10(_sender, _e);
         }
     }
     catch (Exception ex)
     {
         logger.Error(ex, "Exection:");
     }
 }