2026年6月4日 commit
This commit is contained in:
@@ -55,18 +55,18 @@
|
||||
#define AUTH_SUPER_USER1 (1<<16)
|
||||
#define AUTH_SUPER_USER2 (1<<17)
|
||||
typedef enum {
|
||||
PRINT_TRIGGER_TIME = 0,
|
||||
PRINT_TRIGGER_ELEC_EYE_VOLTATE_LEVEL = 1,
|
||||
PRINT_TRIGGER_ELEC_EYE_EDGE =2,
|
||||
PRINT_TRIGGER_SYNCHRONIZER = 3,
|
||||
PRINT_TRIGGER_NONE = 4,
|
||||
PRINT_TRIGGER_EYESYN =5
|
||||
}print_trigger_mode_t;
|
||||
PRINT_TRIGGER_TIME = 0,
|
||||
PRINT_TRIGGER_ELEC_EYE_VOLTATE_LEVEL = 1,
|
||||
PRINT_TRIGGER_ELEC_EYE_EDGE =2,
|
||||
PRINT_TRIGGER_SYNCHRONIZER = 3,
|
||||
PRINT_TRIGGER_NONE = 4,
|
||||
PRINT_TRIGGER_EYESYN =5
|
||||
}print_trigger_mode_t;
|
||||
typedef enum {
|
||||
OSCILLATTOR_FREQ_64K = 0,
|
||||
OSCILLATTOR_FREQ_76K = 1,
|
||||
OSCILLATTOR_FREQ_96K =2,
|
||||
OSCILLATTOR_FREQ_128K =3
|
||||
OSCILLATTOR_FREQ_64K = 0,
|
||||
OSCILLATTOR_FREQ_76K = 1,
|
||||
OSCILLATTOR_FREQ_96K =2,
|
||||
OSCILLATTOR_FREQ_128K =3
|
||||
}oscillator_freq_t;
|
||||
|
||||
#define TIME_TRIGGER_PRINT_MODE_END_TO_HEAD 0
|
||||
@@ -80,16 +80,16 @@ typedef enum {
|
||||
#define MAX_CNT1_GROUPS_NUM 50
|
||||
|
||||
typedef struct {
|
||||
unsigned int second:6;
|
||||
unsigned int minute:6;
|
||||
unsigned int hour:5;
|
||||
unsigned day:9;
|
||||
unsigned month:4;
|
||||
unsigned dummy:2;
|
||||
unsigned int second:6;
|
||||
unsigned int minute:6;
|
||||
unsigned int hour:5;
|
||||
unsigned day:9;
|
||||
unsigned month:4;
|
||||
unsigned dummy:2;
|
||||
unsigned dayofweek:3;
|
||||
unsigned year:12;
|
||||
unsigned year:12;
|
||||
|
||||
unsigned int leap_year:1; //标记当年是否是闰年
|
||||
unsigned int leap_year:1; //标记当年是否是闰年
|
||||
unsigned int cntCurrValueInitEnable:8; //{[0] -> cnt1CurrValue [1] ->cun2CurrValue [2] ->cun3CurrValue}
|
||||
unsigned int week:8;
|
||||
unsigned int cnt1CurrValue;// BCD码 9
|
||||
@@ -133,33 +133,33 @@ typedef struct {
|
||||
|
||||
typedef struct
|
||||
{
|
||||
unsigned short builTime;
|
||||
unsigned short inkDot; //
|
||||
unsigned char year;
|
||||
unsigned char month;
|
||||
unsigned char day;
|
||||
unsigned short builTime;
|
||||
unsigned short inkDot; //
|
||||
unsigned char year;
|
||||
unsigned char month;
|
||||
unsigned char day;
|
||||
|
||||
}build_dat_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
quint8 print_data_xor;
|
||||
quint8 counter1_current_value;
|
||||
quint64 sync_counter_at_zero;
|
||||
quint8 print_data_xor;
|
||||
quint8 counter1_current_value;
|
||||
quint64 sync_counter_at_zero;
|
||||
|
||||
}xor_sync_couter;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
{
|
||||
unsigned short startValue; // 起始值
|
||||
unsigned short StepValue; // 跳米间隔
|
||||
unsigned short endValue; // 结束值
|
||||
unsigned char enbale; //
|
||||
unsigned char nncc; // 实际跳米数
|
||||
}stepPrint_t; // 8Byte
|
||||
}stepPrint_t; // 8Byte
|
||||
|
||||
typedef struct
|
||||
{
|
||||
{
|
||||
unsigned short startValue; // 起始值
|
||||
unsigned short repeatValue; // 重复间隔
|
||||
unsigned short repeatPrintTimes; //重复打印次数
|
||||
@@ -167,11 +167,11 @@ typedef struct
|
||||
unsigned char enable:2; // 交替便能
|
||||
unsigned char lineSpace:6; //行距
|
||||
//unsigned int bak[10]; // 保留参数
|
||||
}alterPrint_t; // 8Byte
|
||||
}alterPrint_t; // 8Byte
|
||||
|
||||
//隐藏功能
|
||||
typedef struct
|
||||
{
|
||||
{
|
||||
unsigned char SpecialVarEnable; //特殊变量使能
|
||||
unsigned char MeterEnable; //计数器4带米标使能
|
||||
unsigned short SpecialConditionValue; // 隐藏条件倍数值
|
||||
@@ -180,39 +180,39 @@ typedef struct
|
||||
unsigned short SpecialVarColEnd;
|
||||
unsigned char SpecialVarRowStart;
|
||||
unsigned char SpecialVarRowEnd;
|
||||
}SpecialVarPrint; // 8Byte
|
||||
}SpecialVarPrint; // 8Byte
|
||||
|
||||
typedef struct // BarCodeOption
|
||||
{
|
||||
unsigned char xpos;
|
||||
unsigned char font;
|
||||
unsigned char width;
|
||||
unsigned char height;
|
||||
unsigned char scale;
|
||||
unsigned char type:6;
|
||||
unsigned char InkColor:1;
|
||||
unsigned char autoFlash:1;
|
||||
unsigned char xpos;
|
||||
unsigned char font;
|
||||
unsigned char width;
|
||||
unsigned char height;
|
||||
unsigned char scale;
|
||||
unsigned char type:6;
|
||||
unsigned char InkColor:1;
|
||||
unsigned char autoFlash:1;
|
||||
|
||||
unsigned char RecFromHost:1;// RecFromHost
|
||||
unsigned char DisplayUpdate:1; //变量更新标志
|
||||
unsigned char AutoCount:1; // 自动变化
|
||||
unsigned char var1En:1; //变量1使用
|
||||
unsigned char var2En:1; //变量2使用
|
||||
unsigned char RecFromHost:1;// RecFromHost
|
||||
unsigned char DisplayUpdate:1; //变量更新标志
|
||||
unsigned char AutoCount:1; // 自动变化
|
||||
unsigned char var1En:1; //变量1使用
|
||||
unsigned char var2En:1; //变量2使用
|
||||
|
||||
unsigned char barType;// 条形码类型
|
||||
unsigned char barType;// 条形码类型
|
||||
|
||||
unsigned short var1Type;// 变量1类型
|
||||
unsigned short var2Type;// 变量2类型
|
||||
unsigned char var1Num;// 变量1位数
|
||||
unsigned char var2Num;// 变量2位数
|
||||
unsigned short var1Type;// 变量1类型
|
||||
unsigned short var2Type;// 变量2类型
|
||||
unsigned char var1Num;// 变量1位数
|
||||
unsigned char var2Num;// 变量2位数
|
||||
|
||||
|
||||
unsigned char NC2[11];
|
||||
char text[80];
|
||||
char TxtModule[40];
|
||||
char TxtLine[30];
|
||||
char TxtLine1[30];
|
||||
// unsigned char var3Num;// 变量3位数
|
||||
unsigned char NC2[11];
|
||||
char text[80];
|
||||
char TxtModule[40];
|
||||
char TxtLine[30];
|
||||
char TxtLine1[30];
|
||||
// unsigned char var3Num;// 变量3位数
|
||||
}bcOption_t;
|
||||
|
||||
typedef struct {
|
||||
@@ -237,22 +237,22 @@ typedef struct {
|
||||
}qrOption_t;
|
||||
|
||||
typedef struct {
|
||||
int type;
|
||||
int width;
|
||||
int height;
|
||||
int startColPos;
|
||||
int endRowPos;
|
||||
int startRowPos;
|
||||
unsigned int Counter; //
|
||||
unsigned char countEn;
|
||||
unsigned char TimeEn;
|
||||
unsigned char cntNum; // 未使用
|
||||
unsigned char NNC2; // 未使用
|
||||
//---------------------
|
||||
char text[100]; //指向申请内存的空间 生成字模数据
|
||||
char textCnt[10];
|
||||
char text2[90];
|
||||
bool original; //表示当前dat是通过calloc申请而来还是直接引用别人的指针,主要是影响到指针的释放
|
||||
int type;
|
||||
int width;
|
||||
int height;
|
||||
int startColPos;
|
||||
int endRowPos;
|
||||
int startRowPos;
|
||||
unsigned int Counter; //
|
||||
unsigned char countEn;
|
||||
unsigned char TimeEn;
|
||||
unsigned char cntNum; // 未使用
|
||||
unsigned char NNC2; // 未使用
|
||||
//---------------------
|
||||
char text[100]; //指向申请内存的空间 生成字模数据
|
||||
char textCnt[10];
|
||||
char text2[90];
|
||||
bool original; //表示当前dat是通过calloc申请而来还是直接引用别人的指针,主要是影响到指针的释放
|
||||
}QRvars_t;
|
||||
|
||||
/* 分段计米相关设定 */
|
||||
@@ -320,7 +320,7 @@ typedef struct {
|
||||
unsigned short productNumToGenerateOutputPulse; //0x1d,1e num产品 out put a pulse
|
||||
unsigned short outputPulseDelayMs; // 0x1f,0x20
|
||||
|
||||
// FPGA ADDR 0x44~
|
||||
// FPGA ADDR 0x44~
|
||||
alterPrint_t alterPrint; // 8Byte FPAG由地址0x44~0x4B
|
||||
unsigned char Cnt1NatureValue:1; //0自然数
|
||||
unsigned char eleEyeTriggerSynPrintEn:1; //1电眼触发的同步打印使能
|
||||
@@ -403,7 +403,7 @@ typedef struct {
|
||||
#ifdef COUNTER1_BY_GROUP //分段计米
|
||||
Cnt1ByGroup_t Cnt1ByGroup;
|
||||
#endif
|
||||
EXPIRYVAR_t ExpiryVar; //有效期变量 2018.5.24
|
||||
EXPIRYVAR_t ExpiryVar; //有效期变量 2018.5.24
|
||||
EXPIRYVAR_t CurDateVar;
|
||||
EXPIRYVAR_t ClassVari;
|
||||
int ExpiryDay; //有效期天数
|
||||
@@ -427,121 +427,121 @@ typedef struct {
|
||||
|
||||
typedef struct{
|
||||
/* 打印参数 */
|
||||
// unsigned int printTotalColNum:16; // 0,1
|
||||
// unsigned int printDirection:8; // 2[0] 上下颠倒 [1] 左右颠倒 [2] 扫描颠倒
|
||||
// unsigned int reducedPixelNum:6; // 3 冗余点数
|
||||
// unsigned int reducedPixelMode:2; // 冗余点比例
|
||||
// unsigned int printRowDelay:8; //4 打印模式
|
||||
unsigned int printColDelay:24; // 打印设置下的 5,6,7 字宽
|
||||
// unsigned int printTotalColNum:16; // 0,1
|
||||
// unsigned int printDirection:8; // 2[0] 上下颠倒 [1] 左右颠倒 [2] 扫描颠倒
|
||||
// unsigned int reducedPixelNum:6; // 3 冗余点数
|
||||
// unsigned int reducedPixelMode:2; // 冗余点比例
|
||||
// unsigned int printRowDelay:8; //4 打印模式
|
||||
unsigned int printColDelay:24; // 打印设置下的 5,6,7 字宽
|
||||
|
||||
unsigned char charBold; //8 字体加宽
|
||||
// unsigned char pixNumPerCol; // 9 每列点阵数
|
||||
unsigned int timeTriggerPrintDelayMs:16; //a,b
|
||||
unsigned int photoElectricityRepeateNum:16; //c,d
|
||||
unsigned short eleEyeTriggerPrintDelay; // e,f
|
||||
unsigned char charBold; //8 字体加宽
|
||||
// unsigned char pixNumPerCol; // 9 每列点阵数
|
||||
unsigned int timeTriggerPrintDelayMs:16; //a,b
|
||||
unsigned int photoElectricityRepeateNum:16; //c,d
|
||||
unsigned short eleEyeTriggerPrintDelay; // e,f
|
||||
|
||||
unsigned int printTriggerMode:8; // 10
|
||||
// unsigned int totalSynPulseNum:24; //11,12,13
|
||||
unsigned int elecEyeTriggerInterval:32; //14,15,16,17
|
||||
unsigned int printTriggerMode:8; // 10
|
||||
// unsigned int totalSynPulseNum:24; //11,12,13
|
||||
unsigned int elecEyeTriggerInterval:32; //14,15,16,17
|
||||
|
||||
// unsigned char extClearAllCntEnable; // 1c --- 通过外部(同步器或电眼)清零 0x3a
|
||||
// unsigned char extClearAllCntEnable; // 1c --- 通过外部(同步器或电眼)清零 0x3a
|
||||
|
||||
unsigned char HighVoltageAmplitude; //0x1d 字高// 字高电压系数
|
||||
// unsigned char mmmee[2];
|
||||
unsigned char HighVoltageAmplitude; //0x1d 字高// 字高电压系数
|
||||
// unsigned char mmmee[2];
|
||||
|
||||
// FPGA ADDR 0x60~0x63
|
||||
// unsigned short productNumToGenerateOutputPulse; //0x1d,1e num产品 out put a pulse
|
||||
unsigned short outputPulseDelayMs; // 0x1f,0x20
|
||||
// FPGA ADDR 0x60~0x63
|
||||
// unsigned short productNumToGenerateOutputPulse; //0x1d,1e num产品 out put a pulse
|
||||
unsigned short outputPulseDelayMs; // 0x1f,0x20
|
||||
|
||||
// FPGA ADDR 0x44~
|
||||
alterPrint_t alterPrint; // 8Byte FPAG由地址0x44~0x4B
|
||||
unsigned char Cnt1NatureValue:1; //0自然数
|
||||
unsigned char eleEyeTriggerSynPrintEn:1; //1电眼触发的同步打印使能
|
||||
// unsigned char autoSynSpeedEn:1; //2同步打印自动模式
|
||||
// unsigned char newAmplifyPlate:1;//新放大板选项
|
||||
// unsigned char SynCntEn1:1; // 4 不打印走米
|
||||
// unsigned char Vol1of8En:1; // 5 1/8电压打印
|
||||
unsigned char eleEyeReTrigDisable:1; // 6
|
||||
// unsigned char set_HVData_Flag:1; // checkBoxYH
|
||||
// FPGA ADDR 0x44~
|
||||
alterPrint_t alterPrint; // 8Byte FPAG由地址0x44~0x4B
|
||||
unsigned char Cnt1NatureValue:1; //0自然数
|
||||
unsigned char eleEyeTriggerSynPrintEn:1; //1电眼触发的同步打印使能
|
||||
// unsigned char autoSynSpeedEn:1; //2同步打印自动模式
|
||||
// unsigned char newAmplifyPlate:1;//新放大板选项
|
||||
// unsigned char SynCntEn1:1; // 4 不打印走米
|
||||
// unsigned char Vol1of8En:1; // 5 1/8电压打印
|
||||
unsigned char eleEyeReTrigDisable:1; // 6
|
||||
// unsigned char set_HVData_Flag:1; // checkBoxYH
|
||||
|
||||
unsigned char decimalBits; // 0x4d 小数点位数
|
||||
unsigned char decimalBits; // 0x4d 小数点位数
|
||||
|
||||
// unsigned short synPulsePerMmX8 ;// 0x4e~4f
|
||||
// unsigned short synPulsePerMmX8 ;// 0x4e~4f
|
||||
|
||||
bool leftRightInverse;
|
||||
bool upDownInverse;
|
||||
bool scanInverse;
|
||||
int currPrintMode;
|
||||
bool leftRightInverse;
|
||||
bool upDownInverse;
|
||||
bool scanInverse;
|
||||
int currPrintMode;
|
||||
|
||||
int cnt1EndValue;
|
||||
int cnt1StartValue;
|
||||
int cnt1StepValue;
|
||||
int cnt1RepeateValue;
|
||||
int cnt1CurrValue;
|
||||
int cnt2EndValue;
|
||||
int cnt2StartValue;
|
||||
int cnt2StepValue;
|
||||
int cnt2RepeateValue;
|
||||
int cnt2CurrValue;
|
||||
float synTriggerPrintLenMm;
|
||||
int timeTriggerPrintMode;
|
||||
int printDelayMs;
|
||||
int sysTriggerPrintMode; //在同步模式下选择按字宽或时喷印比例进行打印
|
||||
int rowSequenceMode;
|
||||
int cnt1EndValue;
|
||||
int cnt1StartValue;
|
||||
int cnt1StepValue;
|
||||
int cnt1RepeateValue;
|
||||
int cnt1CurrValue;
|
||||
int cnt2EndValue;
|
||||
int cnt2StartValue;
|
||||
int cnt2StepValue;
|
||||
int cnt2RepeateValue;
|
||||
int cnt2CurrValue;
|
||||
float synTriggerPrintLenMm;
|
||||
int timeTriggerPrintMode;
|
||||
int printDelayMs;
|
||||
int sysTriggerPrintMode; //在同步模式下选择按字宽或时喷印比例进行打印
|
||||
int rowSequenceMode;
|
||||
|
||||
int synClearCntInEleEyeMode; //在电眼触发模式下通过同步器清零
|
||||
int eleEyeClearCntInSynMode;
|
||||
int reducedPixelNumRatio;
|
||||
int pulseOutputEnable; // 脉冲使能输出
|
||||
int productCntPerOutputPulse;//
|
||||
int synClearCntInEleEyeMode; //在电眼触发模式下通过同步器清零
|
||||
int eleEyeClearCntInSynMode;
|
||||
int reducedPixelNumRatio;
|
||||
int pulseOutputEnable; // 脉冲使能输出
|
||||
int productCntPerOutputPulse;//
|
||||
|
||||
// int startVoltage; //首行电压
|
||||
// int endVoltage; //行末电压
|
||||
// int startVoltage; //首行电压
|
||||
// int endVoltage; //行末电压
|
||||
|
||||
float synPulseNumPerMm;// 同步器参数 脉冲/毫米
|
||||
// 添加参数
|
||||
// unsigned char adjVolDacRate[40]; //增加了DAC电压间隔调整比例
|
||||
// int FullColFixVal;
|
||||
unsigned char SynCntEn:1;
|
||||
// unsigned char ENNCC:7;
|
||||
// unsigned char NCCC22;
|
||||
unsigned short eleMaskTime; // 16bit
|
||||
// unsigned short AltMirrorGap;// 镜像打印间隔 Mirror image alternation
|
||||
unsigned short headLen;
|
||||
unsigned short endLen;//6
|
||||
unsigned char varLenEn;//
|
||||
short varLen; // 可变长
|
||||
short varLen1; // 可变长
|
||||
// unsigned char NCCC;
|
||||
QRvars_t QRvars[MAX_QVARI_NUM];
|
||||
//BCvars_t BCvars[MAX_QVARI_NUM];
|
||||
stepPrint_t stepPrint; // 8Byte
|
||||
// int phaseHighLowRatio; //保存相检
|
||||
// short phaseShift; //相位偏移
|
||||
// unsigned short OuputPulseCol; //桂林客户,精准控制输出脉冲的位置,精确到打印的列数
|
||||
// int phaseDetectVol;
|
||||
// unsigned int phase_detect_pulse_num:4; // 检测个数
|
||||
// unsigned int phase_detect_voltage:12; // 相检电压阀值
|
||||
// unsigned short phaseDetectDelay;
|
||||
// unsigned char rrrccc[2];
|
||||
// quint16 phaseHighCnt;
|
||||
float synPulseNumPerMm;// 同步器参数 脉冲/毫米
|
||||
// 添加参数
|
||||
// unsigned char adjVolDacRate[40]; //增加了DAC电压间隔调整比例
|
||||
// int FullColFixVal;
|
||||
unsigned char SynCntEn:1;
|
||||
// unsigned char ENNCC:7;
|
||||
// unsigned char NCCC22;
|
||||
unsigned short eleMaskTime; // 16bit
|
||||
// unsigned short AltMirrorGap;// 镜像打印间隔 Mirror image alternation
|
||||
unsigned short headLen;
|
||||
unsigned short endLen;//6
|
||||
unsigned char varLenEn;//
|
||||
short varLen; // 可变长
|
||||
short varLen1; // 可变长
|
||||
// unsigned char NCCC;
|
||||
QRvars_t QRvars[MAX_QVARI_NUM];
|
||||
//BCvars_t BCvars[MAX_QVARI_NUM];
|
||||
stepPrint_t stepPrint; // 8Byte
|
||||
// int phaseHighLowRatio; //保存相检
|
||||
// short phaseShift; //相位偏移
|
||||
// unsigned short OuputPulseCol; //桂林客户,精准控制输出脉冲的位置,精确到打印的列数
|
||||
// int phaseDetectVol;
|
||||
// unsigned int phase_detect_pulse_num:4; // 检测个数
|
||||
// unsigned int phase_detect_voltage:12; // 相检电压阀值
|
||||
// unsigned short phaseDetectDelay;
|
||||
// unsigned char rrrccc[2];
|
||||
// quint16 phaseHighCnt;
|
||||
#ifdef COUNTER1_BY_GROUP /* 分段计米 */
|
||||
Cnt1ByGroup_t Cnt1ByGroup;
|
||||
Cnt1ByGroup_t Cnt1ByGroup;
|
||||
#endif
|
||||
EXPIRYVAR_t ExpiryVar; //有效期变量 2018.5.24
|
||||
EXPIRYVAR_t CurDateVar;
|
||||
EXPIRYVAR_t ClassVari;
|
||||
int ExpiryDay; //有效期天数
|
||||
EXPIRYVAR_t ExpiryVar; //有效期变量 2018.5.24
|
||||
EXPIRYVAR_t CurDateVar;
|
||||
EXPIRYVAR_t ClassVari;
|
||||
int ExpiryDay; //有效期天数
|
||||
|
||||
int cnt4CurrValue;
|
||||
int HiddenConditionValue;
|
||||
bool HiddenFuncEnable;
|
||||
bool HiddenMeterEnable;
|
||||
int cnt4CurrValue;
|
||||
int HiddenConditionValue;
|
||||
bool HiddenFuncEnable;
|
||||
bool HiddenMeterEnable;
|
||||
|
||||
int cnt3CurrValue;
|
||||
int textEditLineSpace;
|
||||
int textEditCharSpace;
|
||||
// unsigned char speedoverPaushPrint; // 3速度超速不打印标志
|
||||
int cnt3CurrValue;
|
||||
int textEditLineSpace;
|
||||
int textEditCharSpace;
|
||||
// unsigned char speedoverPaushPrint; // 3速度超速不打印标志
|
||||
}printPara_t;
|
||||
|
||||
|
||||
@@ -624,38 +624,38 @@ typedef struct {
|
||||
stepPrint_t stepPrint; // 8Byte
|
||||
unsigned int reserved_reg[12]; // 4*(12)=48Byte // 地址: ~0x7F
|
||||
unsigned short highVoltageRecord[10]; // 0x80 = 128开始
|
||||
int reclaimPumpPWMWidth;
|
||||
bool leftRightInverse;
|
||||
bool upDownInverse;
|
||||
bool scanInverse;
|
||||
int currPrintMode;
|
||||
float synPulseNumPerMm;
|
||||
int cnt1EndValue;
|
||||
int cnt1StartValue;
|
||||
int cnt1StepValue;
|
||||
int cnt1RepeateValue;
|
||||
int cnt1CurrValue;
|
||||
int cnt2EndValue;
|
||||
int cnt2StartValue;
|
||||
int cnt2StepValue;
|
||||
int cnt2RepeateValue;
|
||||
int cnt2CurrValue;
|
||||
int reclaimPumpPWMWidth;
|
||||
bool leftRightInverse;
|
||||
bool upDownInverse;
|
||||
bool scanInverse;
|
||||
int currPrintMode;
|
||||
float synPulseNumPerMm;
|
||||
int cnt1EndValue;
|
||||
int cnt1StartValue;
|
||||
int cnt1StepValue;
|
||||
int cnt1RepeateValue;
|
||||
int cnt1CurrValue;
|
||||
int cnt2EndValue;
|
||||
int cnt2StartValue;
|
||||
int cnt2StepValue;
|
||||
int cnt2RepeateValue;
|
||||
int cnt2CurrValue;
|
||||
|
||||
int startVoltage;
|
||||
int endVoltage;
|
||||
float synTriggerPrintLenMm;
|
||||
|
||||
int highVoltageLevel;
|
||||
int pressure;
|
||||
int viscosityPumpInterval;
|
||||
int reclaimTankTime;
|
||||
int highVoltageLevel;
|
||||
int pressure;
|
||||
int viscosityPumpInterval;
|
||||
int reclaimTankTime;
|
||||
int temperature;//喷头温度
|
||||
int viscosity;
|
||||
int viscosityAdjust;
|
||||
bool stopCounterMeterAfterFault;
|
||||
bool suspendAfterPhaseFault;
|
||||
int oscillatoFreq;
|
||||
int synTriggerPrintLenRatio;
|
||||
int viscosity;
|
||||
int viscosityAdjust;
|
||||
bool stopCounterMeterAfterFault;
|
||||
bool suspendAfterPhaseFault;
|
||||
int oscillatoFreq;
|
||||
int synTriggerPrintLenRatio;
|
||||
char lastOpenedFileName[100];
|
||||
int phaseHighLowRatio; //相位高电平占空比
|
||||
int phaseDetectVol; //因为和实际的值有一个转换过程,所以用此变量做中转
|
||||
@@ -672,8 +672,8 @@ typedef struct {
|
||||
int powerOffAfterPhaseFault;
|
||||
int synClearCntInEleEyeMode; //在点眼触发模式下通过同步器清零
|
||||
int eleEyeClearCntInSynMode; // CNT2 D5=0选择电眼复位 D5=1选择电眼加1 ;
|
||||
// CNT1 D4=0选择电眼复位 D4=1选择电眼加1 ;
|
||||
// D2D1D0 =00 禁止电眼操作,01 电眼复位,打印完成,10 电眼立即复位
|
||||
// CNT1 D4=0选择电眼复位 D4=1选择电眼加1 ;
|
||||
// D2D1D0 =00 禁止电眼操作,01 电眼复位,打印完成,10 电眼立即复位
|
||||
|
||||
int fontPixelSize; //用来记录上一次设置的字体大小
|
||||
//int septalPostion;
|
||||
@@ -692,7 +692,7 @@ typedef struct {
|
||||
int SynCntEn:1;
|
||||
int ResetProductCntEn:1; // 复位产品计数器
|
||||
int ResetAllProductCntEn:1;// 复位总产品计数器
|
||||
int HVFaultCloseEn:1;// 高压故障关回收槽
|
||||
int HVFaultCloseEn:1;// 高压故障关回收槽
|
||||
int MirrABCEnable:2; // 0 无镜像,1 水平,2 垂直
|
||||
int checkSpace:1; //使用空列
|
||||
int varLenEn:1;//
|
||||
@@ -723,13 +723,13 @@ typedef struct {
|
||||
unsigned short AltMirrorGap;// 镜像打印间隔 Mirror image alternation
|
||||
long long openInkLineTime; //记录墨线开关时间 136年 以秒为单位
|
||||
long TrunOnPowerCnt; // 开机次数 20151218
|
||||
// int varLenEn:1;//
|
||||
// unsigned char varLen; // 可变长
|
||||
// int varLenEn:1;//
|
||||
// unsigned char varLen; // 可变长
|
||||
unsigned short headLen;
|
||||
unsigned short endLen;
|
||||
int ExpiryDay; //有效期天数
|
||||
unsigned char ExpirySplitMode;
|
||||
quint16 diaphramOffset; // 隔膜位置偏移,当隔膜位置低于(设定的隔膜位置-偏移),主墨泵就开启
|
||||
quint16 diaphramOffset; // 隔膜位置偏移,当隔膜位置低于(设定的隔膜位置-偏移),主墨泵就开启
|
||||
unsigned char gearPumpEnable:1;
|
||||
|
||||
quint16 gearPumpValue;
|
||||
@@ -949,24 +949,24 @@ typedef struct
|
||||
#define AUTOCLEAN_STATUS_STEP3_TIME (5)
|
||||
|
||||
typedef struct {
|
||||
int type;
|
||||
int digitalNum;
|
||||
int type;
|
||||
int digitalNum;
|
||||
int width; // 字模的宽度
|
||||
int height; // 字模的高度
|
||||
int startColPos;
|
||||
int endRowPos;
|
||||
int startRowPos;
|
||||
int startColPos;
|
||||
int endRowPos;
|
||||
int startRowPos;
|
||||
int bassAddr; // 字模的地址, 从0开始,不同类型会一直增加
|
||||
int currVal;
|
||||
int bold;
|
||||
int letterSpace;
|
||||
//int chartype;// 字体类型:0 常规,1 左横,2 右横, 4 倒立(Nc)
|
||||
//---------------------
|
||||
int currVal;
|
||||
int bold;
|
||||
int letterSpace;
|
||||
//int chartype;// 字体类型:0 常规,1 左横,2 右横, 4 倒立(Nc)
|
||||
//---------------------
|
||||
unsigned char *dat; //指向申请内存的空间 生成字模数据
|
||||
int datWidth; //datWidth * datHeight为像素的数目,申请空间的大小为datWidth*rowByteNum;
|
||||
int datWidth; //datWidth * datHeight为像素的数目,申请空间的大小为datWidth*rowByteNum;
|
||||
int datHeight; // 变量的高度
|
||||
int rowByteNum;
|
||||
bool original; //表示当前dat是通过calloc申请而来还是直接引用别人的指针,主要是影响到指针的释放
|
||||
int rowByteNum;
|
||||
bool original; //表示当前dat是通过calloc申请而来还是直接引用别人的指针,主要是影响到指针的释放
|
||||
}vars_t;
|
||||
|
||||
typedef struct{
|
||||
@@ -996,7 +996,7 @@ typedef struct{
|
||||
|
||||
unsigned char phaseChargeResult[8];
|
||||
|
||||
/*
|
||||
/*
|
||||
unsigned short ink_dot_num:6; //飞过相检头上的墨点数 0x20
|
||||
unsigned short detect_phase_error:1;
|
||||
unsigned short flight_tm_error:1;
|
||||
@@ -1029,7 +1029,7 @@ typedef struct{
|
||||
unsigned char ele_product_cnt_reset; //36 {ele_product_cnt_reset[1:0]};
|
||||
unsigned char RandomNum; // 目前实际只[4:0] 37
|
||||
unsigned int totalProductCnt ; // 总产品计数器 38393A3B // [1:0] 11立即清零, [2]计数器1单独清零 [3]计数2单独清零 [4]总产品计数器清零
|
||||
unsigned int total_syn_pulse_num ; //
|
||||
unsigned int total_syn_pulse_num ; //
|
||||
unsigned int volGap_pulse_num:24; //
|
||||
unsigned int AlterMode:8; // 交替状态 0,1,2; //0x43 共 0x44个字节
|
||||
unsigned int VREF:16;
|
||||
@@ -1171,84 +1171,84 @@ typedef struct{
|
||||
unsigned int septalPositionOverFlowCnt;
|
||||
bool powerOffAfterInkOrSOLVEmptyAppending; //墨水或溶剂空3小时标志
|
||||
//
|
||||
alterPrint_t alterPrint; // 交替打印
|
||||
stepPrint_t stepPrint; // 跳米打印
|
||||
build_dat_t build_dat;
|
||||
xor_sync_couter xor_sync;
|
||||
unsigned int InkOrSOLVEmptyCnt;
|
||||
unsigned char EditMode; //
|
||||
alterPrint_t alterPrint; // 交替打印
|
||||
stepPrint_t stepPrint; // 跳米打印
|
||||
build_dat_t build_dat;
|
||||
xor_sync_couter xor_sync;
|
||||
unsigned int InkOrSOLVEmptyCnt;
|
||||
unsigned char EditMode; //
|
||||
|
||||
unsigned char updateSoftEN:1;
|
||||
unsigned char adjHightVolInitEN:1;
|
||||
unsigned char FileChangeRestCntFlag:1; // 更换文件,清除计数器
|
||||
unsigned char HVFaultCloseEn:1;// 高压故障关回收槽
|
||||
unsigned char ExtScreenEn; // 外接屏连接正常
|
||||
unsigned char waitHightVolOff,waitHightVolOn; //
|
||||
unsigned char addSpace;//sysPara->para.checkSpace
|
||||
unsigned char autoCleanStatus; // clean status, 0: NONE,1: Step1 ...
|
||||
unsigned int autoCleanTime; // clean time
|
||||
unsigned char updateSoftEN:1;
|
||||
unsigned char adjHightVolInitEN:1;
|
||||
unsigned char FileChangeRestCntFlag:1; // 更换文件,清除计数器
|
||||
unsigned char HVFaultCloseEn:1;// 高压故障关回收槽
|
||||
unsigned char ExtScreenEn; // 外接屏连接正常
|
||||
unsigned char waitHightVolOff,waitHightVolOn; //
|
||||
unsigned char addSpace;//sysPara->para.checkSpace
|
||||
unsigned char autoCleanStatus; // clean status, 0: NONE,1: Step1 ...
|
||||
unsigned int autoCleanTime; // clean time
|
||||
|
||||
unsigned int cnt1GroupCurrentLoop; //分段计米 计数器1当前第几次循环
|
||||
unsigned char cnt1GroupRunningIndex; //分段计米 计数器1当前第几次段
|
||||
unsigned int indoorTemperature; //开机记录喷头温度,作为是否调整粘度的根据
|
||||
unsigned int needPowerOffTimerout;
|
||||
unsigned char bLanConfigManual; //手动设定有线ip 地址
|
||||
quint16 r_print_q;
|
||||
quint8 col_state;
|
||||
quint8 r_row_sequcence;
|
||||
quint8 dot_num;
|
||||
quint8 curr_index;
|
||||
quint16 RowADC;
|
||||
quint16 w_curr_DAC;
|
||||
quint16 curr_DAC;
|
||||
quint16 printed_column;
|
||||
unsigned int cnt1GroupCurrentLoop; //分段计米 计数器1当前第几次循环
|
||||
unsigned char cnt1GroupRunningIndex; //分段计米 计数器1当前第几次段
|
||||
unsigned int indoorTemperature; //开机记录喷头温度,作为是否调整粘度的根据
|
||||
unsigned int needPowerOffTimerout;
|
||||
unsigned char bLanConfigManual; //手动设定有线ip 地址
|
||||
quint16 r_print_q;
|
||||
quint8 col_state;
|
||||
quint8 r_row_sequcence;
|
||||
quint8 dot_num;
|
||||
quint8 curr_index;
|
||||
quint16 RowADC;
|
||||
quint16 w_curr_DAC;
|
||||
quint16 curr_DAC;
|
||||
quint16 printed_column;
|
||||
|
||||
quint16 printed_adj_dac[40];
|
||||
bool cnt3CurrentValueInitDoneFlag;
|
||||
stru_counter3 Status_Counter3;
|
||||
bool printDoneFlag;
|
||||
bool oneCodePrintOnce;
|
||||
bool forTemplateUse;
|
||||
SpecialVarPrint specialVarPrint;
|
||||
bool lastHighVoltageFault; //高压错误
|
||||
bool circleProductCnt;
|
||||
unsigned int printTotalColNum:16;
|
||||
unsigned char pixNumPerCol;
|
||||
unsigned short XXXDay;
|
||||
int cnt4CurrValue;
|
||||
bool flagOfAdjustWidth_1;
|
||||
unsigned char splitMode_Adjust_1;
|
||||
bool flagOfAdjustWidth_2;
|
||||
unsigned char splitMode_Adjust_2;
|
||||
//edit-12.2
|
||||
bool flagOfNo67FPGA; //识别67版本,67版本使用4000列,其他版本使用8000列
|
||||
short FPGAVersionType; //兼容旧的FPGA版本,0=新FPGA. 旧FPGA: 1=No66,2=No67,3=No72,4=No73 //VX4使用,VX5不需要
|
||||
unsigned int textEditTotalCol;
|
||||
quint16 gearspeed;
|
||||
int sizeFPGA;
|
||||
int sizeSTM32;
|
||||
bool flagOfSpeedAlarm;
|
||||
bool flagOfPressureFault;
|
||||
int currVoltageVersion;
|
||||
int lastVoltageVersion;
|
||||
unsigned int stm32Verion;
|
||||
bool stm32Time;
|
||||
unsigned int machineMac;
|
||||
int sizequeueFPGA;
|
||||
bool flagOfRebootEnable;
|
||||
bool logflag;
|
||||
unsigned int TextInkDots;
|
||||
bool flagOfSolventMaxNum;
|
||||
bool flagOfInkMaxDot;
|
||||
bool flagOfNeedInkCard;
|
||||
bool flagOfNeedSolventCard;
|
||||
bool flagOfKeyBoardType;
|
||||
unsigned char changed;
|
||||
unsigned int inkWarningCnt;
|
||||
unsigned int solventWarningCnt;
|
||||
unsigned int showInkWarningNumber;
|
||||
unsigned int showSolventWarningNumber;
|
||||
bool needMaintenanceRemind;
|
||||
quint16 printed_adj_dac[40];
|
||||
bool cnt3CurrentValueInitDoneFlag;
|
||||
stru_counter3 Status_Counter3;
|
||||
bool printDoneFlag;
|
||||
bool oneCodePrintOnce;
|
||||
bool forTemplateUse;
|
||||
SpecialVarPrint specialVarPrint;
|
||||
bool lastHighVoltageFault; //高压错误
|
||||
bool circleProductCnt;
|
||||
unsigned int printTotalColNum:16;
|
||||
unsigned char pixNumPerCol;
|
||||
unsigned short XXXDay;
|
||||
int cnt4CurrValue;
|
||||
bool flagOfAdjustWidth_1;
|
||||
unsigned char splitMode_Adjust_1;
|
||||
bool flagOfAdjustWidth_2;
|
||||
unsigned char splitMode_Adjust_2;
|
||||
//edit-12.2
|
||||
bool flagOfNo67FPGA; //识别67版本,67版本使用4000列,其他版本使用8000列
|
||||
short FPGAVersionType; //兼容旧的FPGA版本,0=新FPGA. 旧FPGA: 1=No66,2=No67,3=No72,4=No73 //VX4使用,VX5不需要
|
||||
unsigned int textEditTotalCol;
|
||||
quint16 gearspeed;
|
||||
int sizeFPGA;
|
||||
int sizeSTM32;
|
||||
bool flagOfSpeedAlarm;
|
||||
bool flagOfPressureFault;
|
||||
int currVoltageVersion;
|
||||
int lastVoltageVersion;
|
||||
unsigned int stm32Verion;
|
||||
bool stm32Time;
|
||||
unsigned int machineMac;
|
||||
int sizequeueFPGA;
|
||||
bool flagOfRebootEnable;
|
||||
bool logflag;
|
||||
unsigned int TextInkDots;
|
||||
bool flagOfSolventMaxNum;
|
||||
bool flagOfInkMaxDot;
|
||||
bool flagOfNeedInkCard;
|
||||
bool flagOfNeedSolventCard;
|
||||
bool flagOfKeyBoardType;
|
||||
unsigned char changed;
|
||||
unsigned int inkWarningCnt;
|
||||
unsigned int solventWarningCnt;
|
||||
unsigned int showInkWarningNumber;
|
||||
unsigned int showSolventWarningNumber;
|
||||
bool needMaintenanceRemind;
|
||||
}sysStatus_t;
|
||||
|
||||
#include <stdint.h>
|
||||
@@ -1297,38 +1297,40 @@ typedef struct {
|
||||
|
||||
class SysPara{
|
||||
//Q_OBJECT
|
||||
|
||||
private:
|
||||
SysPara(void);
|
||||
public :
|
||||
static SysPara* ins();
|
||||
QString sysFile;
|
||||
printPara_t print;
|
||||
printPara_t printPre;
|
||||
printPara_t printInit;
|
||||
sysPara_t para;
|
||||
voltePara_t voltePara;
|
||||
voltePara_t_25Dots voltePara_25Dots;
|
||||
voltePara_t_No73 voltePara_No73;
|
||||
RFIDPara_t RFIDPara;
|
||||
sysStatus_t status;
|
||||
ModbusPrintStatus modbusStatus;
|
||||
ModbusPrintParas modbusParas;
|
||||
|
||||
SysPara(void);
|
||||
QString sysFile;
|
||||
printPara_t print;
|
||||
printPara_t printPre;
|
||||
printPara_t printInit;
|
||||
sysPara_t para;
|
||||
voltePara_t voltePara;
|
||||
voltePara_t_25Dots voltePara_25Dots;
|
||||
voltePara_t_No73 voltePara_No73;
|
||||
RFIDPara_t RFIDPara;
|
||||
sysStatus_t status;
|
||||
ModbusPrintStatus modbusStatus;
|
||||
ModbusPrintParas modbusParas;
|
||||
JSON_DATA Get_JSON_DATA; // unused
|
||||
|
||||
JSON_DATA Get_JSON_DATA; // unused
|
||||
|
||||
DevOp *devOp; /*设备操作*/
|
||||
void loadParaFromFile();
|
||||
void saveParaToFile();
|
||||
void loadDefaultPara();
|
||||
void loadDefaultPrintPara();
|
||||
void loadPrintParaFromFile(QString fileName);
|
||||
void savePrintParaToFile();
|
||||
void loadVolteParaFromFile(PRINT_MODE mode);
|
||||
void saveRFIDPara();
|
||||
bool loadRFIDPara();
|
||||
void comparePrintStruct();
|
||||
void loadParaToPrintInit();
|
||||
void updatePrintInitToPara();
|
||||
private:
|
||||
DevOp *devOp; /*设备操作*/
|
||||
void loadParaFromFile();
|
||||
void saveParaToFile();
|
||||
void loadDefaultPara();
|
||||
void loadDefaultPrintPara();
|
||||
void loadPrintParaFromFile(QString fileName);
|
||||
void savePrintParaToFile();
|
||||
void loadVolteParaFromFile(PRINT_MODE mode);
|
||||
void saveRFIDPara();
|
||||
bool loadRFIDPara();
|
||||
void comparePrintStruct();
|
||||
void loadParaToPrintInit();
|
||||
void updatePrintInitToPara();
|
||||
private:
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user