254 lines
8.6 KiB
C
254 lines
8.6 KiB
C
|
#pragma once
|
|||
|
|
|||
|
#include <string>
|
|||
|
#include <vector>
|
|||
|
#include <Windows.h>
|
|||
|
using namespace std;
|
|||
|
|
|||
|
class RunCfg
|
|||
|
{
|
|||
|
public:
|
|||
|
enum PreJobParamType {
|
|||
|
Default=0,
|
|||
|
Data
|
|||
|
};
|
|||
|
|
|||
|
RunCfg();
|
|||
|
~RunCfg();
|
|||
|
//static void Generate(vector<string>& ins);
|
|||
|
void GetUpdateSql(vector<string>& ups);
|
|||
|
|
|||
|
void SetOxygenTargeValue(float to) {
|
|||
|
EnterCriticalSection(&m_CS);
|
|||
|
m_TargeOxygen = to;
|
|||
|
LeaveCriticalSection(&m_CS);
|
|||
|
}
|
|||
|
|
|||
|
float GetOxygenTargeValue()
|
|||
|
{
|
|||
|
float fv = 0.0f;
|
|||
|
EnterCriticalSection(&m_CS);
|
|||
|
fv = m_TargeOxygen;
|
|||
|
LeaveCriticalSection(&m_CS);
|
|||
|
return fv;
|
|||
|
}
|
|||
|
|
|||
|
void SetOxygenAlarmValue(float to) {
|
|||
|
EnterCriticalSection(&m_CS);
|
|||
|
m_AlarmOxygen = to;
|
|||
|
LeaveCriticalSection(&m_CS);
|
|||
|
}
|
|||
|
|
|||
|
float GetOxygenAlarmValue()
|
|||
|
{
|
|||
|
float fv = 0.0f;
|
|||
|
EnterCriticalSection(&m_CS);
|
|||
|
fv = m_AlarmOxygen;
|
|||
|
LeaveCriticalSection(&m_CS);
|
|||
|
return fv;
|
|||
|
}
|
|||
|
public:
|
|||
|
bool m_IsDebugMode;
|
|||
|
float m_TargeOxygen; //Ŀ<><C4BF><EFBFBD><EFBFBD>
|
|||
|
float m_WarnOxygen; //Ԥ<><D4A4><EFBFBD><EFBFBD>
|
|||
|
float m_AlarmOxygen; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
float m_StartCycleOxygen; //ѭ<><D1AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ
|
|||
|
float m_DangerousOxygen; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Σ<EFBFBD><CEA3><EFBFBD><EFBFBD>ʾֵ
|
|||
|
float m_AlarmTemperture; //<2F><><EFBFBD><EFBFBD><EFBFBD>¶<EFBFBD>
|
|||
|
float m_AlarmTempertureMin;
|
|||
|
float m_AlarmTempertureMax;
|
|||
|
float m_AlarmWaterTempDown; //ˮ<><CBAE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
float m_AlarmWaterTempDownMin; //ˮ<><CBAE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
float m_AlarmWaterTempDownMax; //ˮ<><CBAE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
float m_AlarmWaterTempUp; //ˮ<><CBAE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
float m_AlarmWaterTempUpMin; //ˮ<><CBAE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
float m_AlarmWaterTempUpMax; //ˮ<><CBAE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
// float m_CheckWind; //<2F><><EFBFBD>÷<EFBFBD><C3B7><EFBFBD> <20><>ʼʱѭ<CAB1><D1AD><EFBFBD><EFBFBD><EFBFBD>ټ<EFBFBD><D9BC><EFBFBD>
|
|||
|
// float m_CheckWindMin; //<2F><>ʼʱѭ<CAB1><D1AD><EFBFBD><EFBFBD><EFBFBD>ټ<EFBFBD><D9BC><EFBFBD>
|
|||
|
// float m_CheckWindMax; //<2F><>ʼʱѭ<CAB1><D1AD><EFBFBD><EFBFBD><EFBFBD>ټ<EFBFBD><D9BC><EFBFBD>
|
|||
|
// float m_AlarmWindLowerLimit; //<2F><><EFBFBD>÷<EFBFBD><C3B7><EFBFBD> <20>ͷ籨<CDB7><E7B1A8>
|
|||
|
unsigned int m_LogPersistInteval; //<2F><>־<EFBFBD><D6BE>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>
|
|||
|
unsigned int m_StatisticsInteval; //ϵͳͳ<CDB3>Ƽ<EFBFBD><C6BC><EFBFBD>
|
|||
|
bool m_OffsetRotateEnable;
|
|||
|
// float m_ArgonCheckWind; //Ŀ<><C4BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
// float m_ArgonTargetWind; //Ŀ<><C4BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
// float m_ArgonTargetWindMin; //Ŀ<><C4BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
// float m_ArgonTargetWindMax; //Ŀ<><C4BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
// float m_NitrogenCheckWind; //Ŀ<><C4BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
// float m_NitrogenTargetWind; //Ŀ<><C4BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
// float m_NitrogenTargetWindMin; //Ŀ<><C4BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
// float m_NitrogenTargetWindMax; //Ŀ<><C4BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
// float m_AlarmArgonWindLowerLimit; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
// float m_AlarmNitrogenWindLowerLimit; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
float m_StableWindStep; //<2F><><EFBFBD>ȵ<EFBFBD>ѹ<EFBFBD><D1B9><EFBFBD><EFBFBD>ֵ
|
|||
|
|
|||
|
unsigned int m_SSRTimeLimit; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͬ<EFBFBD><CDAC>ʱ<EFBFBD><CAB1> ms
|
|||
|
unsigned int m_SSRTimeLimitMin;
|
|||
|
unsigned int m_SSRTimeLimitMax;
|
|||
|
unsigned int m_HeatingDeleyDisableMinute; //<2F><><EFBFBD><EFBFBD><EFBFBD>ӳٹر<D9B9>
|
|||
|
float m_HighOxygenHeatingTemp;
|
|||
|
float m_LowOxygenHeatingTemp;
|
|||
|
|
|||
|
bool m_UseHeatingMotion;
|
|||
|
unsigned int m_HeatingMotionPeriodSecond;
|
|||
|
double m_HeatingMotionDistance;
|
|||
|
|
|||
|
float m_FanVoltageOverLimit; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѹԽ<D1B9><D4BD>
|
|||
|
bool m_IsAutoReleasePressureWhenFinish; //<2F><>ӡ<EFBFBD><D3A1><EFBFBD>ɺ<EFBFBD><C9BA>Ƿ<EFBFBD><C7B7>Զ<EFBFBD>йѹ
|
|||
|
uint32_t m_ReleasePressureSeconds; //йѹ<D0B9><D1B9><EFBFBD><EFBFBD>
|
|||
|
float m_ReleasePressureTargeValue; //йѹĿ<D1B9><C4BF>ֵ
|
|||
|
bool m_PrintRestEnable; //<2F><>ӡͣЪ
|
|||
|
uint32_t m_PrintContinueMinute; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӡ<EFBFBD><D3A1><EFBFBD><EFBFBD>
|
|||
|
uint32_t m_PrintRestMinutes; //ͣЪ<CDA3><D0AA><EFBFBD><EFBFBD>
|
|||
|
uint32_t m_BlowbackNotifyTimeout; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD>
|
|||
|
bool m_BlowbackTimeoutExecute; //<2F><>ʱ<EFBFBD><CAB1>ǿ<EFBFBD><C7BF>ִ<EFBFBD><D6B4>
|
|||
|
unsigned int m_DownSkinStopTimes; //<2F>±<EFBFBD><C2B1><EFBFBD>ֹͣ<CDA3><D6B9><EFBFBD><EFBFBD>
|
|||
|
bool m_TimePowerCompensateEnable;
|
|||
|
|
|||
|
bool m_IsPreparePrint; //Ԥ<><D4A4>ӡ
|
|||
|
int m_PrepareParamType;
|
|||
|
|
|||
|
unsigned int m_WarnAlarmNotifySecond;
|
|||
|
|
|||
|
bool m_HadSetBasePlatformPoint;
|
|||
|
|
|||
|
int m_PowderAlarmPos; //<2F><><EFBFBD>۲<EFBFBD><DBB2>㱨<EFBFBD><E3B1A8>λ
|
|||
|
|
|||
|
float m_VoltageAlarmOffset; //<2F><>Դ<EFBFBD><D4B4>ѹ<EFBFBD><D1B9><EFBFBD><EFBFBD>ƫ<EFBFBD><C6AB>
|
|||
|
|
|||
|
unsigned int m_ScannerPowerLogTick;
|
|||
|
unsigned int m_ScannerPowerLogCount;
|
|||
|
float m_ScannerVoltageMinLimit; //<2F><EFBFBD>ѹ<EFBFBD><D1B9><EFBFBD><EFBFBD>
|
|||
|
float m_ScannerVoltageMaxLimit; //<2F><EFBFBD>ѹ<EFBFBD><D1B9><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
bool m_PrintAutoRenewalGas; //<2F><>ӡ<EFBFBD>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
bool m_MoldDeoxygenEnable; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
float m_AddPowderWarnPos; //<2F>ӷ<EFBFBD>Ԥ<EFBFBD><D4A4>λ
|
|||
|
float m_PowderStickLowLevelAlarmPos; //<2F>ӷ۵<D3B7>λ<EFBFBD><CEBB><EFBFBD><EFBFBD>λ
|
|||
|
|
|||
|
bool m_UseCoverWindSignal;
|
|||
|
unsigned int m_MoldServoPosWarnOffset; //<2F><><EFBFBD><EFBFBD><EFBFBD>ŷ<EFBFBD>λ<EFBFBD>þ<EFBFBD>ʾֵ
|
|||
|
unsigned int m_LayerLinearPosAlarmOffset; //<2F><><EFBFBD><EFBFBD>դλ<D5A4><CEBB>ƫ<EFBFBD><EFBFBD><EEB1A8>ֵ
|
|||
|
unsigned int m_PrintLinearAccDevAlarmOffset; //<2F><>ӡ<EFBFBD><D3A1>դ<EFBFBD>ۻ<EFBFBD><DBBB><EFBFBD><EFBFBD><EFBFBD><EEB1A8>ֵ
|
|||
|
|
|||
|
bool m_UseLinearJudgePos;
|
|||
|
|
|||
|
double m_CoverSimulateTimeOffset;
|
|||
|
double m_CoverWindSimulateTimeOffset;
|
|||
|
bool m_LogDebugInfo;
|
|||
|
bool m_AutoShutdownPower;
|
|||
|
float m_FilterOxygenAlarmValue;
|
|||
|
float m_FanFreqLowLimit;
|
|||
|
|
|||
|
unsigned int m_PrintLayerDelay;
|
|||
|
unsigned int m_CoverLayerDelay;
|
|||
|
|
|||
|
bool m_SmartCoverEnable;
|
|||
|
|
|||
|
float m_PowderStickCalcLength;
|
|||
|
int m_PurifierFilterNotifyHour;
|
|||
|
|
|||
|
double m_CheckDiskSpaceG;
|
|||
|
double m_PerlayerSpaceK;
|
|||
|
|
|||
|
bool m_ShowUnloadHandPos;
|
|||
|
|
|||
|
unsigned int m_PurifierDisconnectAlarmJudgeSecond;
|
|||
|
unsigned int m_PurifierKeepAliveAlarmJudgeSecond;
|
|||
|
unsigned int m_OxygenSensorDisconnectAlarmJudgeSecond;
|
|||
|
unsigned int m_HeatingDisconnectAlarmJudgeSecond;
|
|||
|
unsigned int m_ChillerDisconnectAlarmJudgeSecond;
|
|||
|
public:
|
|||
|
static const string CONFIG_NAME;
|
|||
|
static const string FIELD_IS_DEBUG_MODE;
|
|||
|
static const string FIELD_TARGE_OXYGEN;
|
|||
|
static const string FIELD_WARN_OXYGEN;
|
|||
|
static const string FIELD_ALARM_OXYGEN;
|
|||
|
static const string FIELD_DANGEROUS_OXYGEN;
|
|||
|
static const string FIELD_ALARM_TEMPERTURE;
|
|||
|
static const string FIELD_ALARM_TEMPERTURE_MIN;
|
|||
|
static const string FIELD_ALARM_TEMPERTURE_MAX;
|
|||
|
static const string FIELD_ALARM_WATER_TEMP_DOWN;
|
|||
|
static const string FIELD_ALARM_WATER_TEMP_DOWN_MIN;
|
|||
|
static const string FIELD_ALARM_WATER_TEMP_DOWN_MAX;
|
|||
|
static const string FIELD_ALARM_WATER_TEMP_UP;
|
|||
|
static const string FIELD_ALARM_WATER_TEMP_UP_MIN;
|
|||
|
static const string FIELD_ALARM_WATER_TEMP_UP_MAX;
|
|||
|
// static const string FIELD_CHECK_WIND;
|
|||
|
// static const string FIELD_CHECK_WIND_MIN;
|
|||
|
// static const string FIELD_CHECK_WIND_MAX;
|
|||
|
static const string FIELD_START_CYCLE_OXYGEN;
|
|||
|
static const string FIELD_LOG_PERSIST_INTEVAL;
|
|||
|
static const string FIELD_STATISTICS_INTEVAL;
|
|||
|
static const string FIELD_STABLE_WIND_STEP;
|
|||
|
// static const string FIELD_WIND_LOWER_LIMIT;
|
|||
|
static const string FIELD_SSR_TIME_LIMIT;
|
|||
|
static const string FIELD_SSR_TIME_LIMIT_MIN;
|
|||
|
static const string FIELD_SSR_TIME_LIMIT_MAX;
|
|||
|
static const string FIELD_HEATING_DELAY_DISABLE_MINUTE;
|
|||
|
static const string FIELD_HIGH_OXYGEN_HEATING_TEMP;
|
|||
|
static const string FIELD_LOW_OXYGEN_HEATING_TEMP;
|
|||
|
static const string FIELD_USE_HEATING_MOTION;
|
|||
|
static const string FIELD_HEATING_MOTION_PERIOD_SECOND;
|
|||
|
static const string FIELD_HEATING_MOTION_DISTANCE;
|
|||
|
static const string FIELD_FAN_VOLTAGE_OVER_LIMIT;
|
|||
|
static const string FIELD_IS_AUTO_RELEASE_PRESSURE_WHEN_FINISH;
|
|||
|
static const string FIELD_RELEASE_PRESSURE_SECONDS;
|
|||
|
static const string FIELD_RELEASE_PRESSURE_TARGE_VALUE;
|
|||
|
static const string FIELD_PRINT_REST_ENABLE;
|
|||
|
static const string FIELD_PRINT_CONTINUE_MINUTES;
|
|||
|
static const string FIELD_PRINT_REST_MINUTES;
|
|||
|
static const string FIELD_BLOW_BACK_NOTIFY_TIMEOUT;
|
|||
|
static const string FIELD_BLOW_BACK_TIMEOUT_EXECUTE;
|
|||
|
static const string FIELD_DOWM_SKIN_STOP_TIMES;
|
|||
|
static const string FIELD_TIME_POWER_COMPENSATE_ENABLE;
|
|||
|
static const string FIELD_IS_PREPARE_PRINT;
|
|||
|
static const string FIELD_PREPARE_PARAM_TYPE;
|
|||
|
static const string FIELD_WARN_ALARM_NOTIFY_SECOND;
|
|||
|
static const string FIELD_POWDER_ALARM_POS;
|
|||
|
|
|||
|
static const string FIELD_VOLTAGE_ALARM_OFFSET;
|
|||
|
static const string FIELD_SCANNER_POWER_LOG_TICK;
|
|||
|
static const string FIELD_SCANNER_POWER_LOG_COUNT;
|
|||
|
static const string FIELD_SCANNER_VOLTAGE_MIN_LIMIT;
|
|||
|
static const string FIELD_SCANNER_VOLTAGE_MAX_LIMIT;
|
|||
|
|
|||
|
static const string FIELD_PRINT_AUTO_RENEWAL_GAS;
|
|||
|
static const string FIELD_MOLD_DEOXYGEN_ENABLE;
|
|||
|
static const string FIELD_ADD_POWDER_WARN_POS;
|
|||
|
static const string FIELD_POWDER_STICK_LOW_LEVEL_ALARM_POS;
|
|||
|
static const string FIELD_USE_COVER_WIND_SIGNAL;
|
|||
|
|
|||
|
static const string FIELD_MOLD_SERVO_POS_WARN_OFFSET;
|
|||
|
static const string FIELD_LAYER_LINEAR_POS_ALARM_OFFSET;
|
|||
|
static const string FIELD_PRINT_LINEAR_ACC_DEV_ALARM_OFFSET;
|
|||
|
static const string FIELD_USE_LINEAR_JUDGE_POS;
|
|||
|
static const string FIELD_COVER_SIMULATE_TIME_OFFSET;
|
|||
|
static const string FIELD_COVER_WIND_SIMULATE_TIME_OFFSET;
|
|||
|
static const string FIELD_LOG_DEBUG_INFO;
|
|||
|
static const string FIELD_AUTO_SHUTDOWN_POWER;
|
|||
|
static const string FIELD_FILTER_OXYGEN_ALARM_VALUE;
|
|||
|
static const string FIELD_FAN_FREQ_LOW_LIMIT;
|
|||
|
static const string FIELD_PRINT_LAYER_DELAY;
|
|||
|
static const string FIELD_COVER_LAYER_DELAY;
|
|||
|
static const string FIELD_SMART_COVER_ENABLE;
|
|||
|
static const string FIELD_POWDER_STICK_CALC_LENGTH;
|
|||
|
static const string FIELD_PURIFIER_FILTER_NOTIFY_HOUR;
|
|||
|
|
|||
|
static const string FIELD_CHECK_DISK_SPACE_G;
|
|||
|
static const string FIELD_PERLAYER_SPACE_K;
|
|||
|
static const string FIELD_SHOW_UNLOAD_HAND_POS;
|
|||
|
|
|||
|
static const string FIELD_PURIFIER_DISCONNECT_ALARM_JUDGE_SECOND;
|
|||
|
static const string FIELD_PURIFIER_KEEP_ALIVE_ALARM_JUDGE_SECOND;
|
|||
|
static const string FIELD_OXYGEN_SENSOR_DISCONNECT_ALARM_JUDGE_SECOND;
|
|||
|
static const string FIELD_HEATING_DISCONNECT_ALARM_JUDGE_SECOND;
|
|||
|
static const string FIELD_CHILLER_DISCONNECT_ALARM_JUDGE_SECOND;
|
|||
|
private:
|
|||
|
CRITICAL_SECTION m_CS;
|
|||
|
};
|
|||
|
|