68 lines
1.3 KiB
C
68 lines
1.3 KiB
C
|
#pragma once
|
|||
|
|
|||
|
#include <string>
|
|||
|
#include <vector>
|
|||
|
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
|
|||
|
|
|||
|
class AxisCfg
|
|||
|
{
|
|||
|
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;
|
|||
|
static string CODE_SHOW_POS_INV; //<2F><>ʾλ<CABE><CEBB><EFBFBD>÷<EFBFBD>
|
|||
|
static string CODE_SHOW_REF_ZERO;
|
|||
|
static string CODE_MAX_LOAD_VALUE;
|
|||
|
static string CODE_SAFE_LIMIT;
|
|||
|
public:
|
|||
|
short m_axis_id ;
|
|||
|
string m_name;
|
|||
|
int m_active_limit; //<><CEA2>
|
|||
|
int m_negactive_limit; //<><CEA2>
|
|||
|
int m_active_direct;
|
|||
|
float m_OverLoadLimit; //<2F><><EFBFBD><EFBFBD>Խ<EFBFBD><D4BD>ֵ
|
|||
|
double m_ShowRefZero; //<><CEA2>
|
|||
|
bool m_ShowPosInv;
|
|||
|
bool m_IsUse;
|
|||
|
float m_MaxLoadValue;
|
|||
|
bool m_SafeLimit;
|
|||
|
};
|
|||
|
|