76 lines
1.5 KiB
C
Raw Normal View History

2024-05-06 10:49:15 +08:00
#pragma once
2024-03-19 17:45:12 +08:00
#include <string>
#include <vector>
2024-05-06 10:49:15 +08:00
#include "../Communication/BaseData.h"
#include "../Controller/Base.h"
2024-03-19 17:45:12 +08:00
using namespace std;
#define GTS_AXIS_ID_LOAD 1
#define GTS_AXIS_ID_MOLD 2
#define GTS_AXIS_ID_ARM 3
#define GTS_AXIS_ID_SUPPLY 4
#define GTS_AXIS_ID_CLEAN 5
#define GTS_AXIS_ID_ELE 6
2024-05-09 12:49:18 +08:00
#pragma pack(1)
2024-05-06 10:49:15 +08:00
class AxisCfg : public Base
2024-03-19 17:45:12 +08:00
{
public:
enum ActiveDirect {
UP=0,
DOWN,
LEFT,
RIGHT,
FRONT,
BACK
};
enum ServoType {
MITSUBISHI = 0,
SANYO,
SIEMENS,
MITSUBISHI_JE
};
AxisCfg(short id);
~AxisCfg();
void GetUpdateSql(vector<string>& vecf);
short GetId() { return m_axis_id; }
void SetId(short id) { m_axis_id = id; }
public:
static string TABLE_NAME;
static string FIELD_ID;
static string FIELD_AXIS_ID;
static string FIELD_CODE;
static string FIELD_VALUE;
static string CODE_NAME;
static string CODE_ACTIVE_LIMIT;
static string CODE_NEGACTIVE_LIMIT;
static string CODE_ACTIVE_DIRECT;
static string CODE_OVER_LOAD_LIMIT;
2024-05-06 10:49:15 +08:00
static string CODE_SHOW_POS_INV; //显示位置置反
2024-03-19 17:45:12 +08:00
static string CODE_SHOW_REF_ZERO;
static string CODE_MAX_LOAD_VALUE;
static string CODE_SAFE_LIMIT;
public:
2024-05-06 10:49:15 +08:00
short m_axis_id;
2024-03-19 17:45:12 +08:00
string m_name;
2024-05-06 10:49:15 +08:00
char m_startFlag;
IntData* m_active_limit; //微米
IntData* m_negactive_limit; //微米
IntData* m_active_direct;
FloatData* m_OverLoadLimit; //负载越限值
FloatData* m_ShowRefZero; //微米
BoolData* m_ShowPosInv;
BoolData* m_IsUse;
FloatData* m_MaxLoadValue;
BoolData* m_SafeLimit;
char m_endFlag;
2024-03-19 17:45:12 +08:00
};
2024-05-09 12:49:18 +08:00
#pragma pack()
2024-05-06 10:49:15 +08:00