显示字体修改
This commit is contained in:
1 parent
79a90c67e9
commit
05afd19e80
15 files changed
+253
-18365
No files matched your search
@@ -338,39 +338,39 @@ void pasre_DAT(const char *api, const char *json_str)
|
||||
int ID_s;
|
||||
GET_INT_FROM_ANY(ID_s,root, "ID",0);
|
||||
|
||||
if (!(ID_s < 0 || ID_s >= 99))
|
||||
if (!(ID_s < 0 || ID_s >= 255))
|
||||
{
|
||||
// 1. 如果不是最后一项,将 [index+1, 98] 前移一位到 [index, 97]
|
||||
if (ID_s < 98) {
|
||||
memmove(&step_table[ID_s],&step_table[ID_s + 1],(98 - ID_s) * sizeof(IO_STEP_DATA));
|
||||
if (ID_s < 254) {
|
||||
memmove(&step_table[ID_s],&step_table[ID_s + 1],(254 - ID_s) * sizeof(IO_STEP_DATA));
|
||||
}
|
||||
}
|
||||
// 2. 末尾(最后一个位置)填入空步骤
|
||||
step_table[99].RUN = 0;
|
||||
step_table[99].Parameter1 = 0;
|
||||
step_table[99].Parameter2 = 0;
|
||||
step_table[99].Parameter3 = 0;
|
||||
step_table[99].Parameter4 = 0;
|
||||
step_table[99].Parameter5 = 0;
|
||||
step_table[99].Parameter1_S1 = 0;
|
||||
step_table[99].Parameter2_S1 = 0;
|
||||
step_table[99].Parameter3_S1 = 0;
|
||||
step_table[99].Parameter4_S1 = 0;
|
||||
step_table[99].Parameter5_S1 = 0;
|
||||
step_table[99].Parameter1_S2 = 0;
|
||||
step_table[99].Parameter2_S2 = 0;
|
||||
step_table[99].Parameter3_S2 = 0;
|
||||
step_table[99].Parameter4_S2 = 0;
|
||||
step_table[99].Parameter5_S2 = 0;
|
||||
step_table[99].Parameter1_S3 = 0;
|
||||
step_table[99].Parameter2_S3 = 0;
|
||||
step_table[99].Parameter3_S3 = 0;
|
||||
step_table[99].Parameter4_S3 = 0;
|
||||
step_table[99].Parameter5_S3 = 0;
|
||||
rt_snprintf(step_table[99].StepID, 3,"000");
|
||||
rt_snprintf(step_table[99].StepID_S1, 3,"000");
|
||||
rt_snprintf(step_table[99].StepID_S2, 3,"000");
|
||||
rt_snprintf(step_table[99].StepID_S3, 3,"000");
|
||||
step_table[255].RUN = 0;
|
||||
step_table[255].Parameter1 = 0;
|
||||
step_table[255].Parameter2 = 0;
|
||||
step_table[255].Parameter3 = 0;
|
||||
step_table[255].Parameter4 = 0;
|
||||
step_table[255].Parameter5 = 0;
|
||||
step_table[255].Parameter1_S1 = 0;
|
||||
step_table[255].Parameter2_S1 = 0;
|
||||
step_table[255].Parameter3_S1 = 0;
|
||||
step_table[255].Parameter4_S1 = 0;
|
||||
step_table[255].Parameter5_S1 = 0;
|
||||
step_table[255].Parameter1_S2 = 0;
|
||||
step_table[255].Parameter2_S2 = 0;
|
||||
step_table[255].Parameter3_S2 = 0;
|
||||
step_table[255].Parameter4_S2 = 0;
|
||||
step_table[255].Parameter5_S2 = 0;
|
||||
step_table[255].Parameter1_S3 = 0;
|
||||
step_table[255].Parameter2_S3 = 0;
|
||||
step_table[255].Parameter3_S3 = 0;
|
||||
step_table[255].Parameter4_S3 = 0;
|
||||
step_table[255].Parameter5_S3 = 0;
|
||||
rt_snprintf(step_table[255].StepID, 3,"000");
|
||||
rt_snprintf(step_table[255].StepID_S1, 3,"000");
|
||||
rt_snprintf(step_table[255].StepID_S2, 3,"000");
|
||||
rt_snprintf(step_table[255].StepID_S3, 3,"000");
|
||||
}
|
||||
else
|
||||
{}
|
||||
|
||||
@@ -19,15 +19,6 @@ typedef struct {
|
||||
str_id_t name; // 名称(可选,用于调试)
|
||||
} IO_State_AIO;
|
||||
|
||||
typedef struct {
|
||||
char Dyelot[32]; // 单号
|
||||
int ReDye;
|
||||
char *ProgramName; // 工艺
|
||||
int lock;
|
||||
int State;
|
||||
char *Remark; //
|
||||
} WorkOrder_DATA;
|
||||
|
||||
typedef struct {
|
||||
int pin; // ID
|
||||
rt_int32_t current_data; // 当前状态
|
||||
|
||||
Reference in new issue
Block a user