4163 lines
201 KiB
C++
4163 lines
201 KiB
C++
// SSIData.cpp: implementation of the CSSIData class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
#include "stdafx.h"
|
|
#include "HAL_SSIStatus.H"
|
|
#include "Logger.h"
|
|
#include "SSIData.h"
|
|
|
|
//===================================================================================
|
|
int CSSIData::Read_CSG_Config_File(CString FileName)
|
|
{
|
|
// FILE * pFile = NULL;
|
|
// CStdioFile cCalFile;
|
|
// BOOL bFileStatus = FALSE;
|
|
// CFileException cfeOpenError;
|
|
// bFileStatus = cCalFile.Open(FileName, CFile::modeRead|CFile::typeText, &cfeOpenError );
|
|
// if (!bFileStatus)
|
|
// {
|
|
// return SSI_STATUS_ERROR;
|
|
// }
|
|
//
|
|
// CString csLine;
|
|
//
|
|
// switch (eMode)
|
|
// {
|
|
// case eHEXMODE:
|
|
// {
|
|
// CString resToken;
|
|
// int curPos= 0;
|
|
// int ii=0;
|
|
//
|
|
// cCalFile.ReadString(csLine);
|
|
// resToken= csLine.Tokenize(_T(" "),curPos);
|
|
// while (resToken != "" && ii <= EEPROMBYTES)
|
|
// {
|
|
// printf("Resulting token: %s\n", resToken);
|
|
// _stscanf(resToken, _T("%x"), &(m_EEPROM.EEPROM_Bytes[ii++]));
|
|
// resToken= csLine.Tokenize(_T(" "),curPos);
|
|
// }
|
|
// break;
|
|
// }
|
|
// case eCFGTEXTMODE:
|
|
// {
|
|
// CStdioFile cLogFile;
|
|
// bFileStatus = cLogFile.Open(_T("ParserLog.txt"), CFile::modeCreate | CFile::modeWrite| CFile::typeText, &cfeOpenError );
|
|
// if (!bFileStatus)
|
|
// {
|
|
// return SSI_STATUS_ERROR;
|
|
// }
|
|
//
|
|
// long lStart=0;
|
|
// CString csValue;
|
|
//
|
|
// while (cCalFile.ReadString(csLine))
|
|
// {
|
|
// if (csLine.Left(1) != _T("#")) // comment line
|
|
// {
|
|
// csLine.Replace(_T("="),_T(" "));
|
|
// csLine.Replace(_T(":"),_T(" "));
|
|
// if ((lStart = csLine.Find(cs_Z_POS_KEEP_PARAM_10))>-1)
|
|
// {
|
|
// Z_POS_KEEP_PARAM_10 = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_PARAM_10.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_Z_POS_KEEP_PARAM_11))>-1)
|
|
// {
|
|
// Z_POS_KEEP_PARAM_11 = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_PARAM_11.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_Z_POS_KEEP_PARAM_12))>-1)
|
|
// {
|
|
// Z_POS_KEEP_PARAM_12 = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_PARAM_12.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_ROTARY_SLOW_VELOCITY))>-1) {
|
|
// ROTARY_SLOW_VELOCITY = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_ROTARY_SLOW_VELOCITY.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_ROTARY_MEDIUM_VELOCITY))>-1) {
|
|
// ROTARY_MEDIUM_VELOCITY = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_ROTARY_MEDIUM_VELOCITY.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_ROTARY_FAST_VELOCITY))>-1) {
|
|
// ROTARY_FAST_VELOCITY = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_ROTARY_FAST_VELOCITY.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_PRIMARY_ROTARY_SERVO_KP))>-1) {
|
|
// PRIMARY_ROTARY_SERVO_KP = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_PRIMARY_ROTARY_SERVO_KP.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_PRIMARY_ROTARY_SERVO_KI))>-1) {
|
|
// PRIMARY_ROTARY_SERVO_KI = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_PRIMARY_ROTARY_SERVO_KI.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_PRIMARY_ROTARY_SERVO_KIC))>-1) {
|
|
// PRIMARY_ROTARY_SERVO_KIC = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_PRIMARY_ROTARY_SERVO_KIC.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_PRIMARY_ROTARY_SERVO_KDD))>-1) {
|
|
// PRIMARY_ROTARY_SERVO_KDD = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_PRIMARY_ROTARY_SERVO_KDD.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_PRIMARY_ROTARY_SERVO_IL))>-1) {
|
|
// PRIMARY_ROTARY_SERVO_IL = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_PRIMARY_ROTARY_SERVO_IL.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_PRIMARY_ROTARY_SERVO_KSP))>-1) {
|
|
// PRIMARY_ROTARY_SERVO_KSP = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_PRIMARY_ROTARY_SERVO_KSP.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_PRIMARY_ROTARY_SERVO_KSD))>-1) {
|
|
// PRIMARY_ROTARY_SERVO_KSD = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_PRIMARY_ROTARY_SERVO_KSD.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_PRIMARY_ROTARY_XCESS_PERR))>-1) {
|
|
// PRIMARY_ROTARY_XCESS_PERR = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_PRIMARY_ROTARY_XCESS_PERR.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_PRIMARY_ROTARY_TRAJECTORY_FILTER))>-1) {
|
|
// PRIMARY_ROTARY_TRAJECTORY_FILTER = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_PRIMARY_ROTARY_TRAJECTORY_FILTER.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_SECONDARY_ROTARY_SERVO_KP))>-1) {
|
|
// SECONDARY_ROTARY_SERVO_KP = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_SECONDARY_ROTARY_SERVO_KP.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_SECONDARY_ROTARY_SERVO_KI))>-1) {
|
|
// SECONDARY_ROTARY_SERVO_KI = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_SECONDARY_ROTARY_SERVO_KI.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_SECONDARY_ROTARY_SERVO_KIC))>-1) {
|
|
// SECONDARY_ROTARY_SERVO_KIC = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_SECONDARY_ROTARY_SERVO_KIC.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_SECONDARY_ROTARY_SERVO_KDD))>-1) {
|
|
// SECONDARY_ROTARY_SERVO_KDD = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_SECONDARY_ROTARY_SERVO_KDD.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_SECONDARY_ROTARY_SERVO_IL))>-1) {
|
|
// SECONDARY_ROTARY_SERVO_IL = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_SECONDARY_ROTARY_SERVO_IL.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_SECONDARY_ROTARY_SERVO_KSP))>-1) {
|
|
// SECONDARY_ROTARY_SERVO_KSP = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_SECONDARY_ROTARY_SERVO_KSP.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_SECONDARY_ROTARY_SERVO_KSD))>-1) {
|
|
// SECONDARY_ROTARY_SERVO_KSD = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_SECONDARY_ROTARY_SERVO_KSD.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_SECONDARY_ROTARY_XCESS_PERR))>-1) {
|
|
// SECONDARY_ROTARY_XCESS_PERR = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_SECONDARY_ROTARY_XCESS_PERR.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_SECONDARY_ROTARY_TRAJECTORY_FILTER))>-1) {
|
|
// SECONDARY_ROTARY_TRAJECTORY_FILTER = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_SECONDARY_ROTARY_TRAJECTORY_FILTER.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_X_BREAK_THRESHOLD))>-1) {
|
|
// X_BREAK_THRESHOLD = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_X_BREAK_THRESHOLD.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_Y_BREAK_THRESHOLD))>-1) {
|
|
// Y_BREAK_THRESHOLD = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_Y_BREAK_THRESHOLD.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_Z_BREAK_THRESHOLD))>-1) {
|
|
// Z_BREAK_THRESHOLD = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_Z_BREAK_THRESHOLD.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_ZM_BREAK_THRESHOLD))>-1) {
|
|
// ZM_BREAK_THRESHOLD = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_ZM_BREAK_THRESHOLD.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_X_BREAK_TICKS))>-1) {
|
|
// X_BREAK_TICKS = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_X_BREAK_TICKS.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_Y_BREAK_TICKS))>-1) {
|
|
// Y_BREAK_TICKS = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_Y_BREAK_TICKS.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_Z_BREAK_TICKS))>-1) {
|
|
// Z_BREAK_TICKS = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_Z_BREAK_TICKS.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_ZM_BREAK_TICKS))>-1) {
|
|
// ZM_BREAK_TICKS = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_ZM_BREAK_TICKS.GetLength())));
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_JS_X_SERVO_KP))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_X_SERVO_KP.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_JS_X_SERVO_KP = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_JS_X_SERVO_KI))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_X_SERVO_KI.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_JS_X_SERVO_KI = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_JS_X_SERVO_KD))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_X_SERVO_KD.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_JS_X_SERVO_KD = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_JS_X_SERVO_IL))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_X_SERVO_IL.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_JS_X_SERVO_IL = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_JS_Y_SERVO_SWAP))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_Y_SERVO_SWAP.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_JS_Y_SERVO_SWAP = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_TB_Y_SERVO_VEL))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TB_Y_SERVO_VEL.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_TB_Y_SERVO_VEL = _tstol(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_TB_Y_SERVO_KP))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TB_Y_SERVO_KP.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_TB_Y_SERVO_KP = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_TB_Y_SERVO_KI))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TB_Y_SERVO_KI.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_TB_Y_SERVO_KI = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_TB_Y_SERVO_KD))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TB_Y_SERVO_KD.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_TB_Y_SERVO_KD = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_TB_Y_SERVO_IL))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TB_Y_SERVO_IL.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_TB_Y_SERVO_IL = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_TB_Y_SERVO_SWAP))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TB_Y_SERVO_SWAP.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_TB_Y_SERVO_SWAP = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AG_X_SERVO_ACC))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_X_SERVO_ACC.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_X_SERVO_ACC = _tstol(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AG_X_SERVO_VEL))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_X_SERVO_VEL.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_X_SERVO_VEL = _tstol(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AG_X_SERVO_KP))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_X_SERVO_KP.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_X_SERVO_KP = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AG_X_SERVO_KI))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_X_SERVO_KI.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_X_SERVO_KI = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AG_X_SERVO_KD))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_X_SERVO_KD.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_X_SERVO_KD = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AG_X_SERVO_IL))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_X_SERVO_IL.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_X_SERVO_IL = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AG_Y_SERVO_ACC))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Y_SERVO_ACC.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_Y_SERVO_ACC = _tstol(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AG_Y_SERVO_VEL))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Y_SERVO_VEL.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_Y_SERVO_VEL = _tstol(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AG_Y_SERVO_KP))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Y_SERVO_KP.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_Y_SERVO_KP = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AG_Y_SERVO_KI))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Y_SERVO_KI.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_Y_SERVO_KI = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AG_Y_SERVO_KD))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Y_SERVO_KD.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_Y_SERVO_KD = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AG_Y_SERVO_IL))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Y_SERVO_IL.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_Y_SERVO_IL = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AG_Z_SERVO_ACC))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Z_SERVO_ACC.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_Z_SERVO_ACC = _tstol(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AG_Z_SERVO_VEL))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Z_SERVO_VEL.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_Z_SERVO_VEL = _tstol(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AG_Z_SERVO_KP))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Z_SERVO_KP.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_Z_SERVO_KP = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AG_Z_SERVO_KI))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Z_SERVO_KI.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_Z_SERVO_KI = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AG_Z_SERVO_KD))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Z_SERVO_KD.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_Z_SERVO_KD = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AG_Z_SERVO_IL))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Z_SERVO_IL.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_Z_SERVO_IL = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AG_ZM_SERVO_ACC))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_ZM_SERVO_ACC.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_ZM_SERVO_ACC = _tstol(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AG_ZM_SERVO_VEL))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_ZM_SERVO_VEL.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_ZM_SERVO_VEL = _tstol(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AG_ZM_SERVO_KP))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_ZM_SERVO_KP.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_ZM_SERVO_KP = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AG_ZM_SERVO_KI))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_ZM_SERVO_KI.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_ZM_SERVO_KI = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AG_ZM_SERVO_KD))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_ZM_SERVO_KD.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_ZM_SERVO_KD = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AG_ZM_SERVO_IL))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_ZM_SERVO_IL.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_ZM_SERVO_IL = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_MAX_ZOOM_COUNTS))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_MAX_ZOOM_COUNTS.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_MAX_ZOOM_COUNTS = _tstof(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_Zoom_Lens_Magnification_Calibration_Table))>-1)
|
|
// {
|
|
// ParseLineArrayData(csLine.Right(csLine.GetLength() - (lStart + cs_Zoom_Lens_Magnification_Calibration_Table.GetLength())),
|
|
// _T(" "), 100, m_EEPROM.ConfigData.e_Zoom_Lens_Magnification_Calibration_Table);
|
|
// goto bottom;
|
|
// }
|
|
// if (((lStart = csLine.Find(cs_X_SCALE_FACTOR))>-1) && (csLine.Find(cs_SECOND_X_SCALE_FACTOR) == -1))
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_X_SCALE_FACTOR.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_X_SCALE_FACTOR = _tstof(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if (((lStart = csLine.Find(cs_Y_SCALE_FACTOR))>-1) && (csLine.Find(cs_SECOND_Y_SCALE_FACTOR) == -1)
|
|
// && (csLine.Find(cs_XY_SCALE_FACTOR) == -1))
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_SCALE_FACTOR.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_Y_SCALE_FACTOR = _tstof(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_SECOND_X_SCALE_FACTOR))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_SECOND_Z_SCALE_FACTOR.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_SECOND_X_SCALE_FACTOR = _tstof(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_SECOND_Y_SCALE_FACTOR))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_SECOND_Z_SCALE_FACTOR.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_SECOND_Y_SCALE_FACTOR = _tstof(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_SECOND_Z_SCALE_FACTOR))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_SECOND_Z_SCALE_FACTOR.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_SECOND_Z_SCALE_FACTOR = _tstof(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if (((lStart = csLine.Find(cs_Z_SCALE_FACTOR))>-1) && (csLine.Find(cs_XZ_SCALE_FACTOR) == -1)
|
|
// && (csLine.Find(cs_YZ_SCALE_FACTOR) == -1) && (csLine.Find(cs_SECOND_Z_SCALE_FACTOR) == -1))
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Z_SCALE_FACTOR.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_Z_SCALE_FACTOR = _tstof(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_XY_SCALE_FACTOR))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_XY_SCALE_FACTOR.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_XY_SCALE_FACTOR = _tstof(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_XZ_SCALE_FACTOR))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_XZ_SCALE_FACTOR.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_XZ_SCALE_FACTOR = _tstof(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_YZ_SCALE_FACTOR))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_YZ_SCALE_FACTOR.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_YZ_SCALE_FACTOR = _tstof(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_X_LOW_FOV_INCHES))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_X_LOW_FOV_INCHES.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_X_LOW_FOV_INCHES = _tstof(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_X_HIGH_FOV_INCHES))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_X_HIGH_FOV_INCHES.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_X_HIGH_FOV_INCHES = _tstof(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_Y_LOW_FOV_INCHES))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_LOW_FOV_INCHES.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_Y_LOW_FOV_INCHES = _tstof(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_Y_HIGH_FOV_INCHES))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_HIGH_FOV_INCHES.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_Y_HIGH_FOV_INCHES = _tstof(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_EDGE_CONTRAST_THRESHOLD))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_CONTRAST_THRESHOLD.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_EDGE_CONTRAST_THRESHOLD = _tstof(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_EDGE_X_OFFSET))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_X_OFFSET.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_EDGE_X_OFFSET = _tstof(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_EDGE_Y_OFFSET))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_Y_OFFSET.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_EDGE_Y_OFFSET = _tstof(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_EDGE_IS_CALIBRATED))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_IS_CALIBRATED.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_EDGE_IS_CALIBRATED = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_EDGE_AUTO_FOV))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_AUTO_FOV.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_EDGE_AUTO_FOV = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_EDGE_RELATIVE_MAG))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_RELATIVE_MAG.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_EDGE_RELATIVE_MAG = _tstof(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_EDGE_ZOOM_RATIO))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_ZOOM_RATIO.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_EDGE_ZOOM_RATIO = _tstof(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_EDGE_FRAME_AVERAGES))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_FRAME_AVERAGES.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_EDGE_FRAME_AVERAGES = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_EDGE_AUTO_REMEASURE))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_AUTO_REMEASURE.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_EDGE_AUTO_REMEASURE = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_EDGE_TARGET_SIZE))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_TARGET_SIZE.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_EDGE_TARGET_SIZE = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_OPTICS_TUBE))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_OPTICS_TUBE.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_OPTICS_TUBE = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_OPTICS_LENS))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_OPTICS_LENS.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_OPTICS_LENS = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_X_STAGE_TRAVEL))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_X_STAGE_TRAVEL.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_X_STAGE_TRAVEL = _tstof(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_Y_STAGE_TRAVEL))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_STAGE_TRAVEL.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_Y_STAGE_TRAVEL = _tstof(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_Z_STAGE_TRAVEL))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Z_STAGE_TRAVEL.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_Z_STAGE_TRAVEL = _tstof(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_BACK_LIGHT_OFFSET))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_BACK_LIGHT_OFFSET.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_BACK_LIGHT_OFFSET = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_RING_LIGHT_OFFSET))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_RING_LIGHT_OFFSET.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_RING_LIGHT_OFFSET = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AUX_LIGHT_OFFSET))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AUX_LIGHT_OFFSET.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AUX_LIGHT_OFFSET = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_X_SERVO_PRE_VEL))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_X_SERVO_PRE_VEL.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_X_SERVO_PRE_VEL = _tstol(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_Y_SERVO_PRE_VEL))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_SERVO_PRE_VEL.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_Y_SERVO_PRE_VEL = _tstol(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_Z_SERVO_PRE_VEL))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Z_SERVO_PRE_VEL.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_Z_SERVO_PRE_VEL = _tstol(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_ZM_SERVO_PRE_VEL))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_ZM_SERVO_PRE_VEL.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_ZM_SERVO_PRE_VEL = _tstol(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_X_SERVO_XCESS_PERR))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_X_SERVO_XCESS_PERR.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_X_SERVO_XCESS_PERR = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_Y_SERVO_XCESS_PERR))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_SERVO_XCESS_PERR.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_Y_SERVO_XCESS_PERR = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_Z_SERVO_XCESS_PERR))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Z_SERVO_XCESS_PERR.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_Z_SERVO_XCESS_PERR = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_ZM_SERVO_XCESS_PERR))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_ZM_SERVO_XCESS_PERR.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_ZM_SERVO_XCESS_PERR = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AG_X_POS_WIN))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_X_POS_WIN.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_X_POS_WIN = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AG_Y_POS_WIN))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Y_POS_WIN.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_Y_POS_WIN = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AG_Z_POS_WIN))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Z_POS_WIN.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_Z_POS_WIN = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_AG_ZM_POS_WIN))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_ZM_POS_WIN.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// m_EEPROM.ConfigData.e_AG_ZM_POS_WIN = _tstoi(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_Y_POS_KEEP_KSD))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_POS_KEEP_KSD.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// Y_POS_KEEP_KSD = _tstof(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// if ((lStart = csLine.Find(cs_Y_POS_KEEP_KSP))>-1)
|
|
// {
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_POS_KEEP_KSP.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// Y_POS_KEEP_KSP = _tstof(csValue);
|
|
// goto bottom;
|
|
// }
|
|
// {
|
|
// // if here then no parsed cfg label
|
|
// CString msg;
|
|
// msg.Format(_T("No laser cfg parse: %s \n"), csLine);
|
|
// cLogFile.WriteString(msg);
|
|
// }
|
|
//bottom:;
|
|
// goto finish;
|
|
//finish:;
|
|
// }
|
|
// }
|
|
//
|
|
// cLogFile.Close();
|
|
// }
|
|
// }
|
|
// cCalFile.Close();
|
|
return SSI_STATUS_NORMAL;
|
|
}
|
|
|
|
//===================================================================================
|
|
// Find the Lens type and
|
|
// Build the file name based on the result.
|
|
//
|
|
int CSSIData::Read_EEPROM_From_File( eFILEWRITEMODE eMode, CString FileName)
|
|
{
|
|
// FILE * pFile = NULL;
|
|
CStdioFile cCalFile;
|
|
BOOL bFileStatus = FALSE;
|
|
CFileException cfeOpenError;
|
|
bFileStatus = cCalFile.Open(FileName, CFile::modeRead|CFile::typeText, &cfeOpenError );
|
|
if (!bFileStatus)
|
|
{
|
|
return SSI_STATUS_ERROR;
|
|
}
|
|
|
|
CString csLine;
|
|
|
|
switch (eMode)
|
|
{
|
|
case eHEXMODE:
|
|
{
|
|
CString resToken;
|
|
int curPos= 0;
|
|
int ii=0;
|
|
|
|
cCalFile.ReadString(csLine);
|
|
resToken= csLine.Tokenize(_T(" "),curPos);
|
|
while (resToken != "" && ii <= EEPROMBYTES)
|
|
{
|
|
printf("Resulting token: %s\n", resToken);
|
|
_stscanf(resToken, _T("%x"), &(m_EEPROM.EEPROM_Bytes[ii++]));
|
|
resToken= csLine.Tokenize(_T(" "),curPos);
|
|
}
|
|
break;
|
|
}
|
|
case eCFGTEXTMODE:
|
|
{
|
|
CStdioFile cLogFile;
|
|
bFileStatus = cLogFile.Open(_T("ParserLog.txt"), CFile::modeCreate | CFile::modeWrite| CFile::typeText, &cfeOpenError );
|
|
if (!bFileStatus)
|
|
{
|
|
return SSI_STATUS_ERROR;
|
|
}
|
|
|
|
long lStart=0;
|
|
CString csValue;
|
|
|
|
while (cCalFile.ReadString(csLine))
|
|
{
|
|
if (csLine.Left(1) != _T("#")) // comment line
|
|
{
|
|
csLine.Replace(_T("="),_T(" "));
|
|
csLine.Replace(_T(":"),_T(" "));
|
|
///////////////////////////////////////////////////////////////
|
|
/// non EEPROM params ///
|
|
///////////////////////////////////////////////////////////////
|
|
//if ((lStart = csLine.Find(cs_EDGE_RETRY_TIMEOUT_X))>-1)
|
|
//{
|
|
// EDGE_RETRY_TIMEOUT_X = _tstol(csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_RETRY_TIMEOUT_X.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_EDGE_RETRY_TIMEOUT_Y))>-1)
|
|
//{
|
|
// EDGE_RETRY_TIMEOUT_Y = _tstol(csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_RETRY_TIMEOUT_Y.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_EDGE_RETRY_TIMEOUT_Z))>-1)
|
|
//{
|
|
// EDGE_RETRY_TIMEOUT_Z = _tstol(csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_RETRY_TIMEOUT_Z.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_EDGE_RETRY_TIMEOUT_MAG))>-1)
|
|
//{
|
|
// EDGE_RETRY_TIMEOUT_MAG = _tstol(csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_RETRY_TIMEOUT_MAG.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_EDGE_RETRY_BANDWIDTH_X))>-1)
|
|
//{
|
|
// EDGE_RETRY_BANDWIDTH_X = _tstol(csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_RETRY_BANDWIDTH_X.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_EDGE_RETRY_BANDWIDTH_Y))>-1)
|
|
//{
|
|
// EDGE_RETRY_BANDWIDTH_Y = _tstol(csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_RETRY_BANDWIDTH_Y.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_EDGE_RETRY_BANDWIDTH_Z))>-1)
|
|
//{
|
|
// EDGE_RETRY_BANDWIDTH_Z = _tstol(csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_RETRY_BANDWIDTH_Z.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_EDGE_RETRY_BANDWIDTH_MAG))>-1)
|
|
//{
|
|
// EDGE_RETRY_BANDWIDTH_MAG = _tstol(csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_RETRY_BANDWIDTH_MAG.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_EDGE_RETRY_COUNT_X))>-1)
|
|
//{
|
|
// EDGE_RETRY_COUNT_X = _tstol(csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_RETRY_COUNT_X.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_EDGE_RETRY_COUNT_Y))>-1)
|
|
//{
|
|
// EDGE_RETRY_COUNT_Y = _tstol(csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_RETRY_COUNT_Y.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_EDGE_RETRY_COUNT_Z))>-1)
|
|
//{
|
|
// EDGE_RETRY_COUNT_Z = _tstol(csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_RETRY_COUNT_Z.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_EDGE_RETRY_COUNT_MAG))>-1)
|
|
//{
|
|
// EDGE_RETRY_COUNT_MAG = _tstol(csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_RETRY_COUNT_MAG.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_MM_XY_PIXEL_MOTION_TOLERANCE))>-1)
|
|
//{
|
|
// MM_XY_PIXEL_MOTION_TOLERANCE = _tstol(csLine.Right(csLine.GetLength() - (lStart + cs_MM_XY_PIXEL_MOTION_TOLERANCE.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_MM_Z_INCH_MOTION_TOLERANCE))>-1)
|
|
//{
|
|
// MM_Z_INCH_MOTION_TOLERANCE = _tstol(csLine.Right(csLine.GetLength() - (lStart + cs_MM_Z_INCH_MOTION_TOLERANCE.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_MM_ZOOM_PERCENT_MOTION_TOLERANCE))>-1)
|
|
//{
|
|
// MM_ZOOM_PERCENT_MOTION_TOLERANCE = _tstol(csLine.Right(csLine.GetLength() - (lStart + cs_MM_ZOOM_PERCENT_MOTION_TOLERANCE.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_LIGHT_SETTLE_TIME))>-1)
|
|
//{
|
|
// LIGHT_SETTLE_TIME = _tstol(csLine.Right(csLine.GetLength() - (lStart + cs_LIGHT_SETTLE_TIME.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_BACK_LIGHT_MAPPING))>-1)
|
|
//{
|
|
// BACK_LIGHT_MAPPING = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_BACK_LIGHT_MAPPING.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_RING_LIGHT_MAPPING))>-1)
|
|
//{
|
|
// RING_LIGHT_MAPPING = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_RING_LIGHT_MAPPING.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_AUX_LIGHT_MAPPING))>-1)
|
|
//{
|
|
// AUX_LIGHT_MAPPING = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_AUX_LIGHT_MAPPING.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_GRID_LIGHT_MAPPING))>-1)
|
|
//{
|
|
// GRID_LIGHT_MAPPING = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_GRID_LIGHT_MAPPING.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_ROTARY_AZIMUTH_RADIANS))>-1)
|
|
//{
|
|
// ROTARY_AZIMUTH_RADIANS = _tstol(csLine.Right(csLine.GetLength() - (lStart + cs_ROTARY_AZIMUTH_RADIANS.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_RING_KNOB_TO_LED_RING))>-1)
|
|
//{
|
|
// RING_KNOB_TO_LED_RING = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_RING_KNOB_TO_LED_RING.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_WATT_WATCHER_TIMEOUT))>-1)
|
|
//{
|
|
// WATT_WATCHER_TIMEOUT = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_WATT_WATCHER_TIMEOUT.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_LASER_PRESENT))>-1)
|
|
//{
|
|
// LASER_PRESENT = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_LASER_PRESENT.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_TP_DO_ARC_MOTION))>-1)
|
|
//{
|
|
// TP_DO_ARC_MOTION = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_TP_DO_ARC_MOTION.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_X_POS_KEEP_PARAMS_ENABLE))>-1)
|
|
//{
|
|
// X_POS_KEEP_PARAMS_ENABLE = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_X_POS_KEEP_PARAMS_ENABLE.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_X_POS_KEEP_KP))>-1)
|
|
//{
|
|
// X_POS_KEEP_KP = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_X_POS_KEEP_KP.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_X_POS_KEEP_KI))>-1)
|
|
//{
|
|
// X_POS_KEEP_KI = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_X_POS_KEEP_KI.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_X_POS_KEEP_KD))>-1)
|
|
//{
|
|
// X_POS_KEEP_KD = _tstof(csLine.Right(csLine.GetLength() - (lStart + cs_X_POS_KEEP_KD.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_X_POS_KEEP_IL))>-1)
|
|
//{
|
|
// X_POS_KEEP_IL = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_X_POS_KEEP_IL.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_X_POS_KEEP_KDD))>-1)
|
|
//{
|
|
// X_POS_KEEP_KDD = _tstof(csLine.Right(csLine.GetLength() - (lStart + cs_X_POS_KEEP_KDD.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_X_POS_KEEP_KSD))>-1)
|
|
//{
|
|
// X_POS_KEEP_KSD = _tstof(csLine.Right(csLine.GetLength() - (lStart + cs_X_POS_KEEP_KSD.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_X_POS_KEEP_KSP))>-1)
|
|
//{
|
|
// X_POS_KEEP_KSP = _tstof(csLine.Right(csLine.GetLength() - (lStart + cs_X_POS_KEEP_KSP.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_X_POS_KEEP_KPF))>-1)
|
|
//{
|
|
// X_POS_KEEP_KPF = _tstof(csLine.Right(csLine.GetLength() - (lStart + cs_X_POS_KEEP_KPF.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_X_POS_KEEP_KIF))>-1)
|
|
//{
|
|
// X_POS_KEEP_KIF = _tstof(csLine.Right(csLine.GetLength() - (lStart + cs_X_POS_KEEP_KIF.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_Y_POS_KEEP_PARAMS_ENABLE))>-1)
|
|
//{
|
|
// Y_POS_KEEP_PARAMS_ENABLE = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_Y_POS_KEEP_PARAMS_ENABLE.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_Y_POS_KEEP_KP))>-1)
|
|
//{
|
|
// Y_POS_KEEP_KP = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_Y_POS_KEEP_KP.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_Y_POS_KEEP_KI))>-1)
|
|
//{
|
|
// Y_POS_KEEP_KI = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_Y_POS_KEEP_KI.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_Y_POS_KEEP_KD))>-1)
|
|
//{
|
|
// Y_POS_KEEP_KD = _tstof(csLine.Right(csLine.GetLength() - (lStart + cs_Y_POS_KEEP_KD.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_Y_POS_KEEP_IL))>-1)
|
|
//{
|
|
// Y_POS_KEEP_IL = _tstol(csLine.Right(csLine.GetLength() - (lStart + cs_Y_POS_KEEP_IL.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_Y_POS_KEEP_KDD))>-1)
|
|
//{
|
|
// Y_POS_KEEP_KDD = _tstof(csLine.Right(csLine.GetLength() - (lStart + cs_Y_POS_KEEP_KDD.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_Y_POS_KEEP_KSD))>-1)
|
|
//{
|
|
// Y_POS_KEEP_KSD = _tstof(csLine.Right(csLine.GetLength() - (lStart + cs_Y_POS_KEEP_KSD.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_Y_POS_KEEP_KSP))>-1)
|
|
//{
|
|
// Y_POS_KEEP_KSP = _tstof(csLine.Right(csLine.GetLength() - (lStart + cs_Y_POS_KEEP_KSP.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_Y_POS_KEEP_KPF))>-1)
|
|
//{
|
|
// Y_POS_KEEP_KPF = _tstof(csLine.Right(csLine.GetLength() - (lStart + cs_Y_POS_KEEP_KPF.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_Y_POS_KEEP_KIF))>-1)
|
|
//{
|
|
// Y_POS_KEEP_KIF = _tstof(csLine.Right(csLine.GetLength() - (lStart + cs_Y_POS_KEEP_KIF.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_Z_POS_KEEP_PARAMS_ENABLE))>-1)
|
|
//{
|
|
// Z_POS_KEEP_PARAMS_ENABLE = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_PARAMS_ENABLE.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_Z_POS_KEEP_KP))>-1)
|
|
//{
|
|
// Z_POS_KEEP_KP = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_KP.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_Z_POS_KEEP_KI))>-1)
|
|
//{
|
|
// Z_POS_KEEP_KI = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_KI.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_Z_POS_KEEP_KD))>-1)
|
|
//{
|
|
// Z_POS_KEEP_KD = _tstof(csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_KD.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_Z_POS_KEEP_IL))>-1)
|
|
//{
|
|
// Z_POS_KEEP_IL = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_IL.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_Z_POS_KEEP_KDD))>-1)
|
|
//{
|
|
// Z_POS_KEEP_KDD = _tstof(csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_KDD.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_Z_POS_KEEP_KSD))>-1)
|
|
//{
|
|
// Z_POS_KEEP_KSD = _tstof(csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_KSD.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_Z_POS_KEEP_KSP))>-1)
|
|
//{
|
|
// Z_POS_KEEP_KSP = _tstof(csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_KSP.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
if ((lStart = csLine.Find(cs_Z_POS_KEEP_PARAM_10))>-1)
|
|
{
|
|
Z_POS_KEEP_PARAM_10 = (USHORT)_tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_PARAM_10.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Z_POS_KEEP_PARAM_11))>-1)
|
|
{
|
|
Z_POS_KEEP_PARAM_11 = (USHORT)_tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_PARAM_11.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Z_POS_KEEP_PARAM_12))>-1)
|
|
{
|
|
Z_POS_KEEP_PARAM_12 = (USHORT)_tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_PARAM_12.GetLength())));
|
|
goto bottom;
|
|
}
|
|
//if ((lStart = csLine.Find(cs_Z_POS_KEEP_KPF))>-1)
|
|
//{
|
|
// Z_POS_KEEP_KPF = _tstof(csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_KPF.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_Z_POS_KEEP_KIF))>-1)
|
|
//{
|
|
// Z_POS_KEEP_KIF = _tstof(csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_KIF.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
if ((lStart = csLine.Find(cs_ROTARY_SLOW_VELOCITY))>-1) {
|
|
ROTARY_SLOW_VELOCITY = (USHORT)_tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_ROTARY_SLOW_VELOCITY.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_ROTARY_MEDIUM_VELOCITY))>-1) {
|
|
ROTARY_MEDIUM_VELOCITY = (USHORT)_tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_ROTARY_MEDIUM_VELOCITY.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_ROTARY_FAST_VELOCITY))>-1) {
|
|
ROTARY_FAST_VELOCITY = (USHORT)_tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_ROTARY_FAST_VELOCITY.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_PRIMARY_ROTARY_SERVO_KP))>-1) {
|
|
PRIMARY_ROTARY_SERVO_KP = (USHORT)_tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_PRIMARY_ROTARY_SERVO_KP.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_PRIMARY_ROTARY_SERVO_KI))>-1) {
|
|
PRIMARY_ROTARY_SERVO_KI = (USHORT)_tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_PRIMARY_ROTARY_SERVO_KI.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_PRIMARY_ROTARY_SERVO_KIC))>-1) {
|
|
PRIMARY_ROTARY_SERVO_KIC = (USHORT)_tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_PRIMARY_ROTARY_SERVO_KIC.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_PRIMARY_ROTARY_SERVO_KDD))>-1) {
|
|
PRIMARY_ROTARY_SERVO_KDD = (USHORT)_tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_PRIMARY_ROTARY_SERVO_KDD.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_PRIMARY_ROTARY_SERVO_IL))>-1) {
|
|
PRIMARY_ROTARY_SERVO_IL = (USHORT)_tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_PRIMARY_ROTARY_SERVO_IL.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_PRIMARY_ROTARY_SERVO_KSP))>-1) {
|
|
PRIMARY_ROTARY_SERVO_KSP = (USHORT)_tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_PRIMARY_ROTARY_SERVO_KSP.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_PRIMARY_ROTARY_SERVO_KSD))>-1) {
|
|
PRIMARY_ROTARY_SERVO_KSD = (USHORT)_tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_PRIMARY_ROTARY_SERVO_KSD.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_PRIMARY_ROTARY_XCESS_PERR))>-1) {
|
|
PRIMARY_ROTARY_XCESS_PERR = (USHORT)_tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_PRIMARY_ROTARY_XCESS_PERR.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_PRIMARY_ROTARY_TRAJECTORY_FILTER))>-1) {
|
|
PRIMARY_ROTARY_TRAJECTORY_FILTER = (USHORT)_tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_PRIMARY_ROTARY_TRAJECTORY_FILTER.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_SECONDARY_ROTARY_SERVO_KP))>-1) {
|
|
SECONDARY_ROTARY_SERVO_KP = (USHORT)_tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_SECONDARY_ROTARY_SERVO_KP.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_SECONDARY_ROTARY_SERVO_KI))>-1) {
|
|
SECONDARY_ROTARY_SERVO_KI = (USHORT)_tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_SECONDARY_ROTARY_SERVO_KI.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_SECONDARY_ROTARY_SERVO_KIC))>-1) {
|
|
SECONDARY_ROTARY_SERVO_KIC = (USHORT)_tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_SECONDARY_ROTARY_SERVO_KIC.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_SECONDARY_ROTARY_SERVO_KDD))>-1) {
|
|
SECONDARY_ROTARY_SERVO_KDD = (USHORT)_tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_SECONDARY_ROTARY_SERVO_KDD.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_SECONDARY_ROTARY_SERVO_IL))>-1) {
|
|
SECONDARY_ROTARY_SERVO_IL = (USHORT)_tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_SECONDARY_ROTARY_SERVO_IL.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_SECONDARY_ROTARY_SERVO_KSP))>-1) {
|
|
SECONDARY_ROTARY_SERVO_KSP = (USHORT)_tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_SECONDARY_ROTARY_SERVO_KSP.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_SECONDARY_ROTARY_SERVO_KSD))>-1) {
|
|
SECONDARY_ROTARY_SERVO_KSD = (USHORT)_tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_SECONDARY_ROTARY_SERVO_KSD.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_SECONDARY_ROTARY_XCESS_PERR))>-1) {
|
|
SECONDARY_ROTARY_XCESS_PERR = (USHORT)_tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_SECONDARY_ROTARY_XCESS_PERR.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_SECONDARY_ROTARY_TRAJECTORY_FILTER))>-1) {
|
|
SECONDARY_ROTARY_TRAJECTORY_FILTER = (USHORT)_tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_SECONDARY_ROTARY_TRAJECTORY_FILTER.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_X_BREAK_THRESHOLD))>-1) {
|
|
X_BREAK_THRESHOLD = (USHORT)_tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_X_BREAK_THRESHOLD.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Y_BREAK_THRESHOLD))>-1) {
|
|
Y_BREAK_THRESHOLD = (USHORT)_tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_Y_BREAK_THRESHOLD.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Z_BREAK_THRESHOLD))>-1) {
|
|
Z_BREAK_THRESHOLD = (USHORT)_tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_Z_BREAK_THRESHOLD.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_ZM_BREAK_THRESHOLD))>-1) {
|
|
ZM_BREAK_THRESHOLD = (USHORT)_tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_ZM_BREAK_THRESHOLD.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_X_BREAK_TICKS))>-1) {
|
|
X_BREAK_TICKS = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_X_BREAK_TICKS.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Y_BREAK_TICKS))>-1) {
|
|
Y_BREAK_TICKS = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_Y_BREAK_TICKS.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Z_BREAK_TICKS))>-1) {
|
|
Z_BREAK_TICKS = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_Z_BREAK_TICKS.GetLength())));
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_ZM_BREAK_TICKS))>-1) {
|
|
ZM_BREAK_TICKS = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_ZM_BREAK_TICKS.GetLength())));
|
|
goto bottom;
|
|
}
|
|
//if ((lStart = csLine.Find(cs_JS_MAX_VELOCITY_X))>-1) {
|
|
// m_EEPROM.ConfigData.e_JS_MAX_VELOCITY_X = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_JS_MAX_VELOCITY_X.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_JS_MAX_VELOCITY_Y))>-1) {
|
|
// m_EEPROM.ConfigData.e_JS_MAX_VELOCITY_Y = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_JS_MAX_VELOCITY_Y.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_JS_MAX_VELOCITY_Z))>-1) {
|
|
// m_EEPROM.ConfigData.e_JS_MAX_VELOCITY_Z = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_JS_MAX_VELOCITY_Z.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_JS_MAX_VELOCITY_ZM))>-1) {
|
|
// m_EEPROM.ConfigData.e_JS_MAX_VELOCITY_ZM = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_JS_MAX_VELOCITY_ZM.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_OPTICS_LENS))>-1) {
|
|
// m_EEPROM.ConfigData.e_OPTICS_LENS = _tstoi(csLine.Right(csLine.GetLength() - (lStart + cs_OPTICS_LENS.GetLength())));
|
|
// goto bottom;
|
|
//}
|
|
|
|
|
|
csLine.Replace(_T("="),_T(" "));
|
|
if ((lStart = csLine.Find(cs_X_Non_linear_Correction_table))>-1)
|
|
{
|
|
ParseLineArrayData(csLine.Right(csLine.GetLength() - (lStart + cs_X_Non_linear_Correction_table.GetLength())),
|
|
_T(" "), 25, m_EEPROM.ConfigData.e_X_Non_linear_Correction_table);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Y_Non_linear_Correction_table))>-1)
|
|
{
|
|
ParseLineArrayData(csLine.Right(csLine.GetLength() - (lStart + cs_X_Non_linear_Correction_table.GetLength())),
|
|
_T(" "), 25, m_EEPROM.ConfigData.e_Y_Non_linear_Correction_table);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_X_Deviation_table))>-1)
|
|
{
|
|
ParseLineArrayData(csLine.Right(csLine.GetLength() - (lStart + cs_X_Deviation_table.GetLength())),
|
|
_T(" "), 25, m_EEPROM.ConfigData.e_X_Deviation_table);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Y_Deviation_table))>-1)
|
|
{
|
|
ParseLineArrayData(csLine.Right(csLine.GetLength() - (lStart + cs_Y_Deviation_table.GetLength())),
|
|
_T(" "), 25, m_EEPROM.ConfigData.e_Y_Deviation_table);
|
|
goto bottom;
|
|
}
|
|
|
|
//=========================================================================================================
|
|
// Merged code from V1 to V3. The commented out lines above have dupes below
|
|
//=========================================================================================================
|
|
|
|
if ((lStart = csLine.Find(cs_JS_MAX_VELOCITY_X))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_MAX_VELOCITY_X.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_MAX_VELOCITY_X = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_MAX_VELOCITY_Y))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_MAX_VELOCITY_Y.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_MAX_VELOCITY_Y = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if (((lStart = csLine.Find(cs_JS_MAX_VELOCITY_Z))>-1)&& (csLine.Find(cs_JS_MAX_VELOCITY_ZM)==-1))
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_MAX_VELOCITY_Z.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_MAX_VELOCITY_Z = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_MAX_VELOCITY_ZM))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_MAX_VELOCITY_ZM.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_MAX_VELOCITY_ZM = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_X_SERVO_SWAP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_X_SERVO_SWAP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_X_SERVO_SWAP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_X_SERVO_KP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_X_SERVO_KP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_X_SERVO_KP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_X_SERVO_KI))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_X_SERVO_KI.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_X_SERVO_KI = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_X_SERVO_KD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_X_SERVO_KD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_X_SERVO_KD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_X_SERVO_IL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_X_SERVO_IL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_X_SERVO_IL = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_Y_SERVO_SWAP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_Y_SERVO_SWAP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_Y_SERVO_SWAP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_Y_SERVO_KP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_Y_SERVO_KP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_Y_SERVO_KP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_Y_SERVO_KI))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_Y_SERVO_KI.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_Y_SERVO_KI = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_Y_SERVO_KD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_Y_SERVO_KD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_Y_SERVO_KD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_Y_SERVO_IL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_Y_SERVO_IL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_Y_SERVO_IL = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_Z_SERVO_SWAP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_Z_SERVO_SWAP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_Z_SERVO_SWAP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_Z_SERVO_KP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_Z_SERVO_KP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_Z_SERVO_KP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_Z_SERVO_KI))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_Z_SERVO_KI.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_Z_SERVO_KI = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_Z_SERVO_KD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_Z_SERVO_KD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_Z_SERVO_KD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_Z_SERVO_IL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_Z_SERVO_IL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_Z_SERVO_IL = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_ZM_SERVO_SWAP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_ZM_SERVO_SWAP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_ZM_SERVO_SWAP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_ZM_SERVO_KP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_ZM_SERVO_KP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_ZM_SERVO_KP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_ZM_SERVO_KI))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_ZM_SERVO_KI.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_ZM_SERVO_KI = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_ZM_SERVO_KD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_ZM_SERVO_KD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_ZM_SERVO_KD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_ZM_SERVO_IL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_ZM_SERVO_IL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_ZM_SERVO_IL = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TB_X_SERVO_ACC))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TB_X_SERVO_ACC.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TB_X_SERVO_ACC = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TB_X_SERVO_VEL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TB_X_SERVO_VEL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TB_X_SERVO_VEL = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TB_X_SERVO_KP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TB_X_SERVO_KP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TB_X_SERVO_KP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TB_X_SERVO_KI))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TB_X_SERVO_KI.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TB_X_SERVO_KI = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TB_X_SERVO_KD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TB_X_SERVO_KD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TB_X_SERVO_KD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TB_X_SERVO_IL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TB_X_SERVO_IL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TB_X_SERVO_IL = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TB_X_SERVO_SWAP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TB_X_SERVO_SWAP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TB_X_SERVO_SWAP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TB_Y_SERVO_ACC))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TB_Y_SERVO_ACC.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TB_Y_SERVO_ACC = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TB_Y_SERVO_VEL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TB_Y_SERVO_VEL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TB_Y_SERVO_VEL = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TB_Y_SERVO_KP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TB_Y_SERVO_KP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TB_Y_SERVO_KP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TB_Y_SERVO_KI))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TB_Y_SERVO_KI.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TB_Y_SERVO_KI = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TB_Y_SERVO_KD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TB_Y_SERVO_KD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TB_Y_SERVO_KD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TB_Y_SERVO_IL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TB_Y_SERVO_IL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TB_Y_SERVO_IL = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TB_Y_SERVO_SWAP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TB_Y_SERVO_SWAP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TB_Y_SERVO_SWAP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_X_SERVO_ACC))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_X_SERVO_ACC.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_X_SERVO_ACC = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_X_SERVO_VEL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_X_SERVO_VEL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_X_SERVO_VEL = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_X_SERVO_KP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_X_SERVO_KP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_X_SERVO_KP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_X_SERVO_KI))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_X_SERVO_KI.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_X_SERVO_KI = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_X_SERVO_KD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_X_SERVO_KD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_X_SERVO_KD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_X_SERVO_IL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_X_SERVO_IL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_X_SERVO_IL = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Y_SERVO_ACC))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Y_SERVO_ACC.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Y_SERVO_ACC = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Y_SERVO_VEL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Y_SERVO_VEL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Y_SERVO_VEL = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Y_SERVO_KP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Y_SERVO_KP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Y_SERVO_KP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Y_SERVO_KI))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Y_SERVO_KI.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Y_SERVO_KI = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Y_SERVO_KD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Y_SERVO_KD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Y_SERVO_KD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Y_SERVO_IL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Y_SERVO_IL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Y_SERVO_IL = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Z_SERVO_ACC))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Z_SERVO_ACC.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Z_SERVO_ACC = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Z_SERVO_VEL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Z_SERVO_VEL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Z_SERVO_VEL = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Z_SERVO_KP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Z_SERVO_KP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Z_SERVO_KP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Z_SERVO_KI))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Z_SERVO_KI.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Z_SERVO_KI = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Z_SERVO_KD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Z_SERVO_KD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Z_SERVO_KD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Z_SERVO_IL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Z_SERVO_IL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Z_SERVO_IL = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_ZM_SERVO_ACC))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_ZM_SERVO_ACC.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_ZM_SERVO_ACC = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_ZM_SERVO_VEL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_ZM_SERVO_VEL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_ZM_SERVO_VEL = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_ZM_SERVO_KP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_ZM_SERVO_KP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_ZM_SERVO_KP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_ZM_SERVO_KI))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_ZM_SERVO_KI.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_ZM_SERVO_KI = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_ZM_SERVO_KD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_ZM_SERVO_KD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_ZM_SERVO_KD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_ZM_SERVO_IL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_ZM_SERVO_IL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_ZM_SERVO_IL = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_MAX_ZOOM_COUNTS))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_MAX_ZOOM_COUNTS.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_MAX_ZOOM_COUNTS = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Zoom_Lens_Magnification_Calibration_Table))>-1)
|
|
{
|
|
ParseLineArrayData(csLine.Right(csLine.GetLength() - (lStart + cs_Zoom_Lens_Magnification_Calibration_Table.GetLength())),
|
|
_T(" "), 100, m_EEPROM.ConfigData.e_Zoom_Lens_Magnification_Calibration_Table);
|
|
goto bottom;
|
|
}
|
|
if (((lStart = csLine.Find(cs_X_SCALE_FACTOR))>-1) && (csLine.Find(cs_SECOND_X_SCALE_FACTOR) == -1))
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_X_SCALE_FACTOR.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_X_SCALE_FACTOR = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if (((lStart = csLine.Find(cs_Y_SCALE_FACTOR))>-1) && (csLine.Find(cs_SECOND_Y_SCALE_FACTOR) == -1)
|
|
&& (csLine.Find(cs_XY_SCALE_FACTOR) == -1))
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_SCALE_FACTOR.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_Y_SCALE_FACTOR = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_SECOND_X_SCALE_FACTOR))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_SECOND_Z_SCALE_FACTOR.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_SECOND_X_SCALE_FACTOR = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_SECOND_Y_SCALE_FACTOR))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_SECOND_Z_SCALE_FACTOR.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_SECOND_Y_SCALE_FACTOR = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_SECOND_Z_SCALE_FACTOR))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_SECOND_Z_SCALE_FACTOR.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_SECOND_Z_SCALE_FACTOR = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if (((lStart = csLine.Find(cs_Z_SCALE_FACTOR))>-1) && (csLine.Find(cs_XZ_SCALE_FACTOR) == -1)
|
|
&& (csLine.Find(cs_YZ_SCALE_FACTOR) == -1) && (csLine.Find(cs_SECOND_Z_SCALE_FACTOR) == -1))
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Z_SCALE_FACTOR.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_Z_SCALE_FACTOR = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_XY_SCALE_FACTOR))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_XY_SCALE_FACTOR.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_XY_SCALE_FACTOR = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_XZ_SCALE_FACTOR))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_XZ_SCALE_FACTOR.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_XZ_SCALE_FACTOR = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_YZ_SCALE_FACTOR))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_YZ_SCALE_FACTOR.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_YZ_SCALE_FACTOR = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_X_LOW_FOV_INCHES))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_X_LOW_FOV_INCHES.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_X_LOW_FOV_INCHES = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_X_HIGH_FOV_INCHES))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_X_HIGH_FOV_INCHES.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_X_HIGH_FOV_INCHES = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Y_LOW_FOV_INCHES))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_LOW_FOV_INCHES.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_Y_LOW_FOV_INCHES = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Y_HIGH_FOV_INCHES))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_HIGH_FOV_INCHES.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_Y_HIGH_FOV_INCHES = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_EDGE_CONTRAST_THRESHOLD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_CONTRAST_THRESHOLD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_EDGE_CONTRAST_THRESHOLD = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_EDGE_X_OFFSET))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_X_OFFSET.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_EDGE_X_OFFSET = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_EDGE_Y_OFFSET))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_Y_OFFSET.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_EDGE_Y_OFFSET = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_EDGE_IS_CALIBRATED))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_IS_CALIBRATED.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_EDGE_IS_CALIBRATED = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_EDGE_AUTO_FOV))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_AUTO_FOV.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_EDGE_AUTO_FOV = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_EDGE_RELATIVE_MAG))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_RELATIVE_MAG.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_EDGE_RELATIVE_MAG = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_EDGE_ZOOM_RATIO))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_ZOOM_RATIO.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_EDGE_ZOOM_RATIO = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_EDGE_FRAME_AVERAGES))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_FRAME_AVERAGES.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_EDGE_FRAME_AVERAGES = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_EDGE_AUTO_REMEASURE))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_AUTO_REMEASURE.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_EDGE_AUTO_REMEASURE = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_EDGE_TARGET_SIZE))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_TARGET_SIZE.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_EDGE_TARGET_SIZE = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_OPTICS_TUBE))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_OPTICS_TUBE.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_OPTICS_TUBE = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_OPTICS_LENS))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_OPTICS_LENS.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_OPTICS_LENS = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_X_STAGE_TRAVEL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_X_STAGE_TRAVEL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_X_STAGE_TRAVEL = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Y_STAGE_TRAVEL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_STAGE_TRAVEL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_Y_STAGE_TRAVEL = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Z_STAGE_TRAVEL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Z_STAGE_TRAVEL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_Z_STAGE_TRAVEL = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_BACK_LIGHT_OFFSET))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_BACK_LIGHT_OFFSET.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_BACK_LIGHT_OFFSET = (BYTE)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_RING_LIGHT_OFFSET))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_RING_LIGHT_OFFSET.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_RING_LIGHT_OFFSET = (BYTE)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AUX_LIGHT_OFFSET))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AUX_LIGHT_OFFSET.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AUX_LIGHT_OFFSET = (BYTE)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_X_SERVO_PRE_VEL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_X_SERVO_PRE_VEL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_X_SERVO_PRE_VEL = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Y_SERVO_PRE_VEL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_SERVO_PRE_VEL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Y_SERVO_PRE_VEL = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Z_SERVO_PRE_VEL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Z_SERVO_PRE_VEL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Z_SERVO_PRE_VEL = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_ZM_SERVO_PRE_VEL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_ZM_SERVO_PRE_VEL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_ZM_SERVO_PRE_VEL = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_X_SERVO_XCESS_PERR))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_X_SERVO_XCESS_PERR.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_X_SERVO_XCESS_PERR = (short)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Y_SERVO_XCESS_PERR))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_SERVO_XCESS_PERR.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_Y_SERVO_XCESS_PERR = (short)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Z_SERVO_XCESS_PERR))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Z_SERVO_XCESS_PERR.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_Z_SERVO_XCESS_PERR = (short)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_ZM_SERVO_XCESS_PERR))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_ZM_SERVO_XCESS_PERR.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_ZM_SERVO_XCESS_PERR = (short)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_X_POS_WIN))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_X_POS_WIN.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_X_POS_WIN = (short)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Y_POS_WIN))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Y_POS_WIN.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Y_POS_WIN = (short)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Z_POS_WIN))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Z_POS_WIN.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Z_POS_WIN = (short)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_ZM_POS_WIN))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_ZM_POS_WIN.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_ZM_POS_WIN = (short)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if (((lStart = csLine.Find(cs_X_SCALE_SWAP))>-1) && (csLine.Find(cs_SECOND_X_SCALE_SWAP) == -1))
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_X_SCALE_SWAP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_X_SCALE_SWAP = (short)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if (((lStart = csLine.Find(cs_Y_SCALE_SWAP))>-1) && (csLine.Find(cs_SECOND_Y_SCALE_SWAP) == -1))
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_SCALE_SWAP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_Y_SCALE_SWAP = (short)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if (((lStart = csLine.Find(cs_Z_SCALE_SWAP))>-1) && (csLine.Find(cs_SECOND_Z_SCALE_SWAP) == -1))
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Z_SCALE_SWAP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_Z_SCALE_SWAP = (short)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_SECOND_X_SCALE_SWAP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_SECOND_X_SCALE_SWAP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_SECOND_X_SCALE_SWAP = (short)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_SECOND_Y_SCALE_SWAP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_SECOND_Y_SCALE_SWAP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_SECOND_Y_SCALE_SWAP = (short)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_SECOND_Z_SCALE_SWAP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_SECOND_Z_SCALE_SWAP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_SECOND_Z_SCALE_SWAP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_USE_SECOND_X_SCALE))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_USE_SECOND_X_SCALE.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_USE_SECOND_X_SCALE = (short)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_USE_SECOND_Y_SCALE))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_USE_SECOND_Y_SCALE.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_USE_SECOND_Y_SCALE = (short)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_OFFSET_X_LIMIT))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_OFFSET_X_LIMIT.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_OFFSET_X_LIMIT = _tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_OFFSET_Y_LIMIT))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_OFFSET_Y_LIMIT.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_OFFSET_Y_LIMIT = _tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_OFFSET_Z_LIMIT))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_OFFSET_Z_LIMIT.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_OFFSET_Z_LIMIT = _tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_FORCE_STAGE_INIT))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_FORCE_STAGE_INIT.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_FORCE_STAGE_INIT = (short)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_X_NEG_PRELIM_OFFSET))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_X_NEG_PRELIM_OFFSET.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_X_NEG_PRELIM_OFFSET = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_Y_NEG_PRELIM_OFFSET))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_Y_NEG_PRELIM_OFFSET.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_Y_NEG_PRELIM_OFFSET = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_Z_NEG_PRELIM_OFFSET))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_Z_NEG_PRELIM_OFFSET.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_Z_NEG_PRELIM_OFFSET = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_ZM_NEG_PRELIM))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_ZM_NEG_PRELIM.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_ZM_NEG_PRELIM = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_X_POS_PRELIM_OFFSET))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_X_POS_PRELIM_OFFSET.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_X_POS_PRELIM_OFFSET = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_Y_POS_PRELIM_OFFSET))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_Y_POS_PRELIM_OFFSET.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_Y_POS_PRELIM_OFFSET = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_Z_POS_PRELIM_OFFSET))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_Z_POS_PRELIM_OFFSET.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_Z_POS_PRELIM_OFFSET = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_ZM_POS_PRELIM))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_ZM_POS_PRELIM.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_ZM_POS_PRELIM = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_X_NEG_PRELIM_OFFSET))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_X_NEG_PRELIM_OFFSET.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_X_NEG_PRELIM_OFFSET = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Y_NEG_PRELIM_OFFSET))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Y_NEG_PRELIM_OFFSET.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Y_NEG_PRELIM_OFFSET = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Z_NEG_PRELIM_OFFSET))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Z_NEG_PRELIM_OFFSET.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Z_NEG_PRELIM_OFFSET = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_ZM_NEG_PRELIM))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_ZM_NEG_PRELIM.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_ZM_NEG_PRELIM = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_X_POS_PRELIM_OFFSET))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_X_POS_PRELIM_OFFSET.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_X_POS_PRELIM_OFFSET = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Y_POS_PRELIM_OFFSET))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Y_POS_PRELIM_OFFSET.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Y_POS_PRELIM_OFFSET = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Z_POS_PRELIM_OFFSET))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Z_POS_PRELIM_OFFSET.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Z_POS_PRELIM_OFFSET = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_ZM_POS_PRELIM))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_ZM_POS_PRELIM.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_ZM_POS_PRELIM = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_MIN_MOVE_TIME))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_MIN_MOVE_TIME.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_MIN_MOVE_TIME = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
///////////////////////////////////////////////////////////////
|
|
/// 2000 EEPROM params ///
|
|
///////////////////////////////////////////////////////////////
|
|
if ((lStart = csLine.Find(cs_JS_X_SERVO_KDD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_X_SERVO_KDD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_X_SERVO_KDD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_X_SERVO_KSD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_X_SERVO_KSD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_X_SERVO_KSD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_X_SERVO_AFF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_X_SERVO_AFF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_X_SERVO_AFF = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_X_SERVO_VFF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_X_SERVO_VFF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_X_SERVO_VFF = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_Y_SERVO_KDD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_Y_SERVO_KDD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_Y_SERVO_KDD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_Y_SERVO_KSD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_Y_SERVO_KSD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_Y_SERVO_KSD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_Y_SERVO_AFF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_Y_SERVO_AFF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_Y_SERVO_AFF = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_Y_SERVO_VFF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_Y_SERVO_VFF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_Y_SERVO_VFF = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_Z_SERVO_KDD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_Z_SERVO_KDD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_Z_SERVO_KDD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_Z_SERVO_KSD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_Z_SERVO_KSD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_Z_SERVO_KSD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_Z_SERVO_AFF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_Z_SERVO_AFF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_Z_SERVO_AFF = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_JS_Z_SERVO_VFF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_JS_Z_SERVO_VFF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_JS_Z_SERVO_VFF = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TB_X_SERVO_KDD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TB_X_SERVO_KDD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TB_X_SERVO_KDD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TB_X_SERVO_KSD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TB_X_SERVO_KSD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TB_X_SERVO_KSD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TB_X_SERVO_AFF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TB_X_SERVO_AFF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TB_X_SERVO_AFF = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TB_X_SERVO_VFF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TB_X_SERVO_VFF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TB_X_SERVO_VFF = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TB_Y_SERVO_KDD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TB_Y_SERVO_KDD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TB_Y_SERVO_KDD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TB_Y_SERVO_KSD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TB_Y_SERVO_KSD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TB_Y_SERVO_KSD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TB_Y_SERVO_AFF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TB_Y_SERVO_AFF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TB_Y_SERVO_AFF = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TB_Y_SERVO_VFF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TB_Y_SERVO_VFF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TB_Y_SERVO_VFF = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_X_SERVO_KDD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_X_SERVO_KDD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_X_SERVO_KDD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_X_SERVO_KSD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_X_SERVO_KSD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_X_SERVO_KSD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_X_SERVO_AFF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_X_SERVO_AFF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_X_SERVO_AFF = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_X_SERVO_VFF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_X_SERVO_VFF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_X_SERVO_VFF = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_X_SERVO_PID_SWAP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_X_SERVO_PID_SWAP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_X_SERVO_PID_SWAP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Y_SERVO_KDD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Y_SERVO_KDD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Y_SERVO_KDD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Y_SERVO_KSD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Y_SERVO_KSD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Y_SERVO_KSD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Y_SERVO_AFF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Y_SERVO_AFF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Y_SERVO_AFF = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Y_SERVO_VFF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Y_SERVO_VFF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Y_SERVO_VFF = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Y_SERVO_PID_SWAP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Y_SERVO_PID_SWAP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Y_SERVO_PID_SWAP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Z_SERVO_KDD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Z_SERVO_KDD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Z_SERVO_KDD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Z_SERVO_KSD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Z_SERVO_KSD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Z_SERVO_KSD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Z_SERVO_AFF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Z_SERVO_AFF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Z_SERVO_AFF = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Z_SERVO_VFF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Z_SERVO_VFF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Z_SERVO_VFF = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Z_SERVO_PID_SWAP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Z_SERVO_PID_SWAP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Z_SERVO_PID_SWAP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_ZM_SERVO_PID_SWAP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_ZM_SERVO_PID_SWAP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_ZM_SERVO_PID_SWAP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_X_SERVO_ACC))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_X_SERVO_ACC.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_X_SERVO_ACC = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_X_SERVO_VEL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_X_SERVO_VEL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_X_SERVO_VEL = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_X_SERVO_KP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_X_SERVO_KP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_X_SERVO_KP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_X_SERVO_KI))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_X_SERVO_KI.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_X_SERVO_KI = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_X_SERVO_KD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_X_SERVO_KD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_X_SERVO_KD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_X_SERVO_IL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_X_SERVO_IL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_X_SERVO_IL = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_X_SERVO_KDD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_X_SERVO_KDD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_X_SERVO_KDD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_X_SERVO_KSD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_X_SERVO_KSD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_X_SERVO_KSD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_X_SERVO_AFF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_X_SERVO_AFF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_X_SERVO_AFF = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_X_SERVO_VFF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_X_SERVO_VFF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_X_SERVO_VFF = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_X_SERVO_PID_SWAP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_X_SERVO_PID_SWAP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_X_SERVO_PID_SWAP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_Y_SERVO_KP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_Y_SERVO_KP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_Y_SERVO_KP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_Y_SERVO_KI))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_Y_SERVO_KI.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_Y_SERVO_KI = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_Y_SERVO_KD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_Y_SERVO_KD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_Y_SERVO_KD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_Y_SERVO_IL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_Y_SERVO_IL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_Y_SERVO_IL = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_Y_SERVO_KDD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_Y_SERVO_KDD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_Y_SERVO_KDD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_Y_SERVO_KSD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_Y_SERVO_KSD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_Y_SERVO_KSD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_Y_SERVO_AFF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_Y_SERVO_AFF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_Y_SERVO_AFF = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_Y_SERVO_VFF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_Y_SERVO_VFF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_Y_SERVO_VFF = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_Y_SERVO_PID_SWAP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_Y_SERVO_PID_SWAP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_Y_SERVO_PID_SWAP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_Z_SERVO_KP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_Z_SERVO_KP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_Z_SERVO_KP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_Z_SERVO_KI))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_Z_SERVO_KI.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_Z_SERVO_KI = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_Z_SERVO_KD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_Z_SERVO_KD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_Z_SERVO_KD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_Z_SERVO_IL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_Z_SERVO_IL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_Z_SERVO_IL = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_Z_SERVO_KDD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_Z_SERVO_KDD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_Z_SERVO_KDD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_Z_SERVO_KSD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_Z_SERVO_KSD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_Z_SERVO_KSD = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_Z_SERVO_AFF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_Z_SERVO_AFF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_Z_SERVO_AFF = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_Z_SERVO_VFF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_Z_SERVO_VFF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_Z_SERVO_VFF = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_AP_Z_SERVO_PID_SWAP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_AP_Z_SERVO_PID_SWAP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_TP_AP_Z_SERVO_PID_SWAP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_X_ROLLOFF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_X_ROLLOFF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_X_ROLLOFF = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Y_ROLLOFF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Y_ROLLOFF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Y_ROLLOFF = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_X_INDEX_OFFSET))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_X_INDEX_OFFSET.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_X_INDEX_OFFSET = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Y_INDEX_OFFSET))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_INDEX_OFFSET.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_Y_INDEX_OFFSET = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Z_INDEX_OFFSET))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Z_INDEX_OFFSET.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_Z_INDEX_OFFSET = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_USE_INDEX_PULSE))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_USE_INDEX_PULSE.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_USE_INDEX_PULSE = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_X_ROLLOFF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_X_ROLLOFF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_X_ROLLOFF = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Y_ROLLOFF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Y_ROLLOFF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Y_ROLLOFF = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Z_ROLLOFF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Z_ROLLOFF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Z_ROLLOFF = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_ZM_ROLLOFF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_ZM_ROLLOFF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_ZM_ROLLOFF = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_X_KSP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_X_KSP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_X_KSP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Y_KSP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Y_KSP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Y_KSP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Z_KSP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Z_KSP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Z_KSP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_ZM_KSP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_ZM_KSP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_ZM_KSP = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_X_SHAFT2SCALE))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_X_SHAFT2SCALE.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_X_SHAFT2SCALE = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Y_SHAFT2SCALE))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Y_SHAFT2SCALE.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Y_SHAFT2SCALE = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_Z_SHAFT2SCALE))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_Z_SHAFT2SCALE.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_Z_SHAFT2SCALE = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AG_ZM_SHAFT2SCALE))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AG_ZM_SHAFT2SCALE.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_AG_ZM_SHAFT2SCALE = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_USE_SECOND_Z_SCALE))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_USE_SECOND_Z_SCALE.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_USE_SECOND_Z_SCALE = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_PAN_VIDEO_X))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_PAN_VIDEO_X.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_PAN_VIDEO_X = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_PAN_VIDEO_Y))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_PAN_VIDEO_Y.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_PAN_VIDEO_Y = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_ILL_LENS))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_ILL_LENS.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_ILL_LENS = (USHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
///////////////////////////////////////////////////////////////
|
|
/// non EEPROM params ///
|
|
///////////////////////////////////////////////////////////////
|
|
if ((lStart = csLine.Find(cs_EDGE_RETRY_TIMEOUT_X))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_RETRY_TIMEOUT_X.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
EDGE_RETRY_TIMEOUT_X = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_EDGE_RETRY_TIMEOUT_Y))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_RETRY_TIMEOUT_Y.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
EDGE_RETRY_TIMEOUT_Y = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_EDGE_RETRY_TIMEOUT_Z))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_RETRY_TIMEOUT_Z.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
EDGE_RETRY_TIMEOUT_Z = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_EDGE_RETRY_TIMEOUT_MAG))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_RETRY_TIMEOUT_MAG.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
EDGE_RETRY_TIMEOUT_MAG = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_EDGE_RETRY_BANDWIDTH_X))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_RETRY_BANDWIDTH_X.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
EDGE_RETRY_BANDWIDTH_X = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_EDGE_RETRY_BANDWIDTH_Y))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_RETRY_BANDWIDTH_Y.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
EDGE_RETRY_BANDWIDTH_Y = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_EDGE_RETRY_BANDWIDTH_Z))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_RETRY_BANDWIDTH_Z.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
EDGE_RETRY_BANDWIDTH_Z = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_EDGE_RETRY_BANDWIDTH_MAG))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_RETRY_BANDWIDTH_MAG.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
EDGE_RETRY_BANDWIDTH_MAG = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_EDGE_RETRY_COUNT_X))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_RETRY_COUNT_X.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
EDGE_RETRY_COUNT_X = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_EDGE_RETRY_COUNT_Y))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_RETRY_COUNT_Y.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
EDGE_RETRY_COUNT_Y = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_EDGE_RETRY_COUNT_Z))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_RETRY_COUNT_Z.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
EDGE_RETRY_COUNT_Z = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_EDGE_RETRY_COUNT_MAG))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_EDGE_RETRY_COUNT_MAG.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
EDGE_RETRY_COUNT_MAG = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_MM_XY_PIXEL_MOTION_TOLERANCE))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_MM_XY_PIXEL_MOTION_TOLERANCE.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
MM_XY_PIXEL_MOTION_TOLERANCE = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_MM_Z_INCH_MOTION_TOLERANCE))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_MM_Z_INCH_MOTION_TOLERANCE.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
MM_Z_INCH_MOTION_TOLERANCE = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_MM_ZOOM_PERCENT_MOTION_TOLERANCE))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_MM_ZOOM_PERCENT_MOTION_TOLERANCE.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
MM_ZOOM_PERCENT_MOTION_TOLERANCE = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_LIGHT_SETTLE_TIME))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_LIGHT_SETTLE_TIME.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
LIGHT_SETTLE_TIME = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_BACK_LIGHT_MAPPING))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_BACK_LIGHT_MAPPING.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
BACK_LIGHT_MAPPING = (unsigned short)_tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_RING_LIGHT_MAPPING))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_RING_LIGHT_MAPPING.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
RING_LIGHT_MAPPING = (unsigned short)_tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_AUX_LIGHT_MAPPING))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_AUX_LIGHT_MAPPING.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
AUX_LIGHT_MAPPING = (unsigned short)_tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_GRID_LIGHT_MAPPING))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_GRID_LIGHT_MAPPING.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
GRID_LIGHT_MAPPING = (unsigned short)_tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_ROTARY_AZIMUTH_RADIANS))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_ROTARY_AZIMUTH_RADIANS.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
ROTARY_AZIMUTH_RADIANS = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
|
|
if ((lStart = csLine.Find(cs_RING_KNOB_TO_LED_RING))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_RING_KNOB_TO_LED_RING.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
RING_KNOB_TO_LED_RING = (unsigned short)_tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_WATT_WATCHER_TIMEOUT))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_WATT_WATCHER_TIMEOUT.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
WATT_WATCHER_TIMEOUT = (unsigned short)_tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_LASER_PRESENT))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_LASER_PRESENT.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
LASER_PRESENT = (unsigned short)_tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_TP_DO_ARC_MOTION))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_TP_DO_ARC_MOTION.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
TP_DO_ARC_MOTION = (unsigned short)_tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_DOCKABLE_TOUCH_PROBE))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_DOCKABLE_TOUCH_PROBE.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
m_EEPROM.ConfigData.e_DOCKABLE_TOUCH_PROBE = (unsigned short)_tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_X_POS_KEEP_PARAMS_ENABLE))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_X_POS_KEEP_PARAMS_ENABLE.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
X_POS_KEEP_PARAMS_ENABLE = (SHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_X_POS_KEEP_KP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_X_POS_KEEP_KP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
X_POS_KEEP_KP = (SHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_X_POS_KEEP_KI))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_X_POS_KEEP_KI.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
X_POS_KEEP_KI = (SHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_X_POS_KEEP_KD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_X_POS_KEEP_KD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
X_POS_KEEP_KD = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_X_POS_KEEP_IL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_X_POS_KEEP_IL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
X_POS_KEEP_IL = (unsigned short)_tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_X_POS_KEEP_KDD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_X_POS_KEEP_KDD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
X_POS_KEEP_KDD = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_X_POS_KEEP_KSD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_X_POS_KEEP_KSD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
X_POS_KEEP_KSD = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_X_POS_KEEP_KSP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_X_POS_KEEP_KSP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
X_POS_KEEP_KSP = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
//if ((lStart = csLine.Find(cs_X_POS_KEEP_UNK1))>-1)
|
|
//{
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_X_POS_KEEP_UNK1.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// X_POS_KEEP_UNK1 = _tstoi(csValue);
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_X_POS_KEEP_UNK2))>-1)
|
|
//{
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_X_POS_KEEP_UNK2.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// X_POS_KEEP_UNK2 = _tstoi(csValue);
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_X_POS_KEEP_UNK3))>-1)
|
|
//{
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_X_POS_KEEP_UNK3.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// X_POS_KEEP_UNK3 = _tstoi(csValue);
|
|
// goto bottom;
|
|
//}
|
|
if ((lStart = csLine.Find(cs_X_POS_KEEP_KPF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_X_POS_KEEP_KPF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
X_POS_KEEP_KPF = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_X_POS_KEEP_KIF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_X_POS_KEEP_KIF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
X_POS_KEEP_KIF = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Y_POS_KEEP_PARAMS_ENABLE))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_POS_KEEP_PARAMS_ENABLE.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
Y_POS_KEEP_PARAMS_ENABLE = (SHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Y_POS_KEEP_KP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_POS_KEEP_KP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
Y_POS_KEEP_KP = (SHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Y_POS_KEEP_KI))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_POS_KEEP_KI.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
Y_POS_KEEP_KI = (SHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Y_POS_KEEP_KD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_POS_KEEP_KD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
Y_POS_KEEP_KD = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Y_POS_KEEP_IL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_POS_KEEP_IL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
Y_POS_KEEP_IL = _tstol(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Y_POS_KEEP_KDD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_POS_KEEP_KDD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
Y_POS_KEEP_KDD = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Y_POS_KEEP_KSD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_POS_KEEP_KSD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
Y_POS_KEEP_KSD = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Y_POS_KEEP_KSP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_POS_KEEP_KSP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
Y_POS_KEEP_KSP = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
//if ((lStart = csLine.Find(cs_Y_POS_KEEP_UNK1))>-1)
|
|
//{
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_POS_KEEP_UNK1.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// Y_POS_KEEP_UNK1 = _tstoi(csValue);
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_Y_POS_KEEP_UNK2))>-1)
|
|
//{
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_POS_KEEP_UNK2.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// Y_POS_KEEP_UNK2 = _tstoi(csValue);
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_Y_POS_KEEP_UNK3))>-1)
|
|
//{
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_POS_KEEP_UNK3.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// Y_POS_KEEP_UNK3 = _tstoi(csValue);
|
|
// goto bottom;
|
|
//}
|
|
if ((lStart = csLine.Find(cs_Y_POS_KEEP_KPF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_POS_KEEP_KPF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
Y_POS_KEEP_KPF = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Y_POS_KEEP_KIF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Y_POS_KEEP_KIF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
Y_POS_KEEP_KIF = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Z_POS_KEEP_PARAMS_ENABLE))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_PARAMS_ENABLE.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
Z_POS_KEEP_PARAMS_ENABLE = (SHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Z_POS_KEEP_KP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_KP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
Z_POS_KEEP_KP = (SHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Z_POS_KEEP_KI))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_KI.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
Z_POS_KEEP_KI = (SHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Z_POS_KEEP_KD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_KD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
Z_POS_KEEP_KD = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Z_POS_KEEP_IL))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_IL.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
Z_POS_KEEP_IL = (SHORT)_tstoi(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Z_POS_KEEP_KDD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_KDD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
Z_POS_KEEP_KDD = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Z_POS_KEEP_KSD))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_KSD.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
Z_POS_KEEP_KSD = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Z_POS_KEEP_KSP))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_KSP.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
Z_POS_KEEP_KSP = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
//if ((lStart = csLine.Find(cs_Z_POS_KEEP_UNK1))>-1)
|
|
//{
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_UNK1.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// Z_POS_KEEP_UNK1 = _tstoi(csValue);
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_Z_POS_KEEP_UNK2))>-1)
|
|
//{
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_UNK2.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// Z_POS_KEEP_UNK2 = _tstoi(csValue);
|
|
// goto bottom;
|
|
//}
|
|
//if ((lStart = csLine.Find(cs_Z_POS_KEEP_UNK3))>-1)
|
|
//{
|
|
// csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_UNK3.GetLength()));
|
|
// csValue.Replace(_T(":"), _T(" "));
|
|
// Z_POS_KEEP_UNK3 = _tstoi(csValue);
|
|
// goto bottom;
|
|
//}
|
|
if ((lStart = csLine.Find(cs_Z_POS_KEEP_KPF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_KPF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
Z_POS_KEEP_KPF = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
if ((lStart = csLine.Find(cs_Z_POS_KEEP_KIF))>-1)
|
|
{
|
|
csValue = csLine.Right(csLine.GetLength() - (lStart + cs_Z_POS_KEEP_KIF.GetLength()));
|
|
csValue.Replace(_T(":"), _T(" "));
|
|
Z_POS_KEEP_KIF = _tstof(csValue);
|
|
goto bottom;
|
|
}
|
|
|
|
{
|
|
// if here then no parsed cfg label
|
|
CString msg;
|
|
msg.Format(_T("No cfg parse: %s \n"), csLine);
|
|
cLogFile.WriteString(msg);
|
|
}
|
|
bottom:;
|
|
goto finish;
|
|
finish:;
|
|
}
|
|
}
|
|
|
|
cLogFile.Close();
|
|
}
|
|
}
|
|
cCalFile.Close();
|
|
return SSI_STATUS_NORMAL;
|
|
}
|
|
|
|
// ==============================================================
|
|
int CSSIData::ParseLineArrayData(CString csDataStr, CString csTokenStr, long lMaxCnt, double *DataArray )
|
|
{
|
|
int nPos = 0;
|
|
int nCnt = 0;
|
|
CString csData;
|
|
csDataStr.Replace(_T(":"), _T(" "));
|
|
csDataStr.TrimLeft(_T(" "));
|
|
csData = csDataStr.Tokenize(csTokenStr, nPos);
|
|
while ((csData.GetLength() > 0) && (nCnt < lMaxCnt))
|
|
{
|
|
DataArray[nCnt] = _tstof(csData);
|
|
++nCnt;
|
|
csData = csDataStr.Tokenize(csTokenStr, nPos);
|
|
csData.TrimLeft(_T(" "));
|
|
}
|
|
return SSI_STATUS_NORMAL;
|
|
}
|
|
|
|
// ==============================================================
|
|
void CSSIData::Get_Cfg_Filename(CString &FileName)
|
|
{
|
|
CString Path;
|
|
GetAppPath(Path);
|
|
FileName = Path + _T("\\hardware_PCDMIS.cfg");
|
|
}
|
|
|
|
// ==============================================================
|
|
void CSSIData::Get_Laser_Cfg_Filename(CString &FileName)
|
|
{
|
|
CString Path;
|
|
GetAppPath(Path);
|
|
FileName = Path + _T("\\laser_PCDMIS.cfg");
|
|
}
|
|
|
|
|
|
// ==============================================================
|
|
void CSSIData::Get_RegToFile_Cfg_Filename(CString &FileName)
|
|
{
|
|
CString Path;
|
|
GetAppPath(Path);
|
|
FileName = Path + _T("\\hardware_PCDMIS_RegToFile.cfg");
|
|
}
|
|
|
|
// ==============================================================
|
|
int CSSIData::Write_EEPROM_To_File(eFILEWRITEMODE eMode, CString FileName)
|
|
{
|
|
FILE * pOutFile = NULL;
|
|
if (!FileName.GetLength())
|
|
return SSI_STATUS_ERROR;
|
|
|
|
_tfopen_s(&pOutFile, FileName, _T("w"));
|
|
if (!pOutFile)
|
|
{
|
|
return SSI_STATUS_ERROR;
|
|
}
|
|
|
|
switch (eMode)
|
|
{
|
|
case eHEXMODE:
|
|
{
|
|
for (int ii = 0 ; ii < EEPROMBYTES ; ++ii)
|
|
{
|
|
_ftprintf(pOutFile, _T(" %x "), m_EEPROM.EEPROM_Bytes[ii]);
|
|
}
|
|
fclose(pOutFile);
|
|
break;
|
|
}
|
|
case eCFGTEXTMODE:
|
|
{
|
|
int i;
|
|
_ftprintf(pOutFile, _T("%s "), _T("EEPROM Configuration Data: "));
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_SerialNo);
|
|
for (i=0;i<16;i++)
|
|
{
|
|
_ftprintf(pOutFile, _T(" %c"), m_EEPROM.ConfigData.e_SerialNo[i]);
|
|
};
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_X_Non_linear_Correction_table);
|
|
for (i=0;i<25;i++)
|
|
{
|
|
_ftprintf(pOutFile, _T(" %f"), m_EEPROM.ConfigData.e_X_Non_linear_Correction_table[i]);
|
|
};
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_Y_Non_linear_Correction_table);
|
|
for (i=0;i<25;i++)
|
|
{
|
|
_ftprintf(pOutFile, _T(" %f"), m_EEPROM.ConfigData.e_Y_Non_linear_Correction_table[i]);
|
|
};
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_X_Deviation_table);
|
|
for (i=0;i<25;i++)
|
|
{
|
|
_ftprintf(pOutFile, _T(" %f"), m_EEPROM.ConfigData.e_X_Deviation_table[i]);
|
|
};
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_Y_Deviation_table);
|
|
for (i=0;i<25;i++)
|
|
{
|
|
_ftprintf(pOutFile, _T(" %f"), m_EEPROM.ConfigData.e_Y_Deviation_table[i]);
|
|
};
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_MAX_VELOCITY_X); // 681288
|
|
_ftprintf(pOutFile, _T("%ld"), m_EEPROM.ConfigData.e_JS_MAX_VELOCITY_X); // 681288
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_MAX_VELOCITY_Y);
|
|
_ftprintf(pOutFile, _T("%ld"), m_EEPROM.ConfigData.e_JS_MAX_VELOCITY_Y); // 681288
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_MAX_VELOCITY_Z); // 349524
|
|
_ftprintf(pOutFile, _T("%ld"), m_EEPROM.ConfigData.e_JS_MAX_VELOCITY_Z); // 349524
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_MAX_VELOCITY_ZM); // 98304
|
|
_ftprintf(pOutFile, _T("%ld"), m_EEPROM.ConfigData.e_JS_MAX_VELOCITY_ZM);
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_X_SERVO_SWAP); // 1
|
|
_ftprintf(pOutFile, _T("%i"), (short)m_EEPROM.ConfigData.e_JS_X_SERVO_SWAP); // 1
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_X_SERVO_KP); // 4
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_X_SERVO_KP); // 4
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_X_SERVO_KI); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_X_SERVO_KI); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_X_SERVO_KD); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_X_SERVO_KD); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_X_SERVO_IL); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_X_SERVO_IL); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_Y_SERVO_SWAP); // -1
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_Y_SERVO_SWAP); // -1
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_Y_SERVO_KP); // 4
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_Y_SERVO_KP); // 4
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_Y_SERVO_KI); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_Y_SERVO_KI); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_Y_SERVO_KD); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_Y_SERVO_KD); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_Y_SERVO_IL); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_Y_SERVO_IL); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_Z_SERVO_SWAP); // -1
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_Z_SERVO_SWAP); // -1
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_Z_SERVO_KP); // 4
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_Z_SERVO_KP); // 4
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_Z_SERVO_KI); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_Z_SERVO_KI); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_Z_SERVO_KD); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_Z_SERVO_KD); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_Z_SERVO_IL); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_Z_SERVO_IL); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_ZM_SERVO_SWAP); // -1
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_ZM_SERVO_SWAP); // -1
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_ZM_SERVO_KP); // 100
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_ZM_SERVO_KP); // 100
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_ZM_SERVO_KI); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_ZM_SERVO_KI); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_ZM_SERVO_KD); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_ZM_SERVO_KD); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_ZM_SERVO_IL); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_ZM_SERVO_IL); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TB_X_SERVO_ACC); // 50000
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TB_X_SERVO_ACC); // 50000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TB_X_SERVO_VEL); // 681288
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TB_X_SERVO_VEL); // 681288
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TB_X_SERVO_KP); // 8
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TB_X_SERVO_KP); // 8
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TB_X_SERVO_KI); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TB_X_SERVO_KI); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TB_X_SERVO_KD); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TB_X_SERVO_KD); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TB_X_SERVO_IL); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TB_X_SERVO_IL); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TB_X_SERVO_SWAP); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TB_X_SERVO_SWAP); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TB_Y_SERVO_ACC); // 50000
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TB_Y_SERVO_ACC); // 50000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TB_Y_SERVO_VEL); // 681288
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TB_Y_SERVO_VEL); // 681288
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TB_Y_SERVO_KP); // 8
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TB_Y_SERVO_KP); // 8
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TB_Y_SERVO_KI); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TB_Y_SERVO_KI); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TB_Y_SERVO_KD); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TB_Y_SERVO_KD); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TB_Y_SERVO_IL); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TB_Y_SERVO_IL); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TB_Y_SERVO_SWAP); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TB_Y_SERVO_SWAP); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_X_SERVO_ACC); // 50000
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_X_SERVO_ACC); // 50000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_X_SERVO_VEL); // 681288
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_X_SERVO_VEL); // 681288
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_X_SERVO_KP); // 4
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_X_SERVO_KP); // 4
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_X_SERVO_KI); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_X_SERVO_KI); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_X_SERVO_KD); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_X_SERVO_KD); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_X_SERVO_IL); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_X_SERVO_IL); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Y_SERVO_ACC); // 50000
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Y_SERVO_ACC); // 50000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Y_SERVO_VEL); // 681288
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Y_SERVO_VEL); // 681288
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Y_SERVO_KP); // 4
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Y_SERVO_KP); // 4
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Y_SERVO_KI); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Y_SERVO_KI); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Y_SERVO_KD); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Y_SERVO_KD); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Y_SERVO_IL); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Y_SERVO_IL); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Z_SERVO_ACC); // 160000
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Z_SERVO_ACC); // 160000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Z_SERVO_VEL); // 349524
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Z_SERVO_VEL); // 349524
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Z_SERVO_KP); // 4
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Z_SERVO_KP); // 4
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Z_SERVO_KI); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Z_SERVO_KI); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Z_SERVO_KD); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Z_SERVO_KD); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Z_SERVO_IL); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Z_SERVO_IL); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_ZM_SERVO_ACC); // 1524
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_ZM_SERVO_ACC); // 1524
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_ZM_SERVO_VEL); // 98304
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_ZM_SERVO_VEL); // 98304
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_ZM_SERVO_KP); // 100
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_ZM_SERVO_KP); // 100
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_ZM_SERVO_KI); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_ZM_SERVO_KI); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_ZM_SERVO_IL); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_ZM_SERVO_IL); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_ZM_SERVO_KD); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_ZM_SERVO_KD); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_MAX_ZOOM_COUNTS); // 14477.000000
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_MAX_ZOOM_COUNTS); // 14477.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_Zoom_Lens_Magnification_Calibration_Table);
|
|
for (i = 0; i< 101; i++)
|
|
_ftprintf(pOutFile, _T(" %f"), m_EEPROM.ConfigData.e_Zoom_Lens_Magnification_Calibration_Table[i]);
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_X_SCALE_FACTOR); // 0.000020
|
|
_ftprintf(pOutFile, _T("%12.11f"), m_EEPROM.ConfigData.e_X_SCALE_FACTOR); // 0.000020
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_Y_SCALE_FACTOR); // 0.000020
|
|
_ftprintf(pOutFile, _T("%12.11f"), m_EEPROM.ConfigData.e_Y_SCALE_FACTOR); // 0.000020
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_Z_SCALE_FACTOR); // 0.000020
|
|
_ftprintf(pOutFile, _T("%12.11f"), m_EEPROM.ConfigData.e_Z_SCALE_FACTOR); // 0.000020
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_XY_SCALE_FACTOR); // 0.000000
|
|
_ftprintf(pOutFile, _T("%12.11f"), m_EEPROM.ConfigData.e_XY_SCALE_FACTOR); // 0.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_XZ_SCALE_FACTOR); // 0.000000
|
|
_ftprintf(pOutFile, _T("%12.11f"), m_EEPROM.ConfigData.e_XZ_SCALE_FACTOR); // 0.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_YZ_SCALE_FACTOR); // 0.000000
|
|
_ftprintf(pOutFile, _T("%12.11f"), m_EEPROM.ConfigData.e_YZ_SCALE_FACTOR); // 0.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_X_LOW_FOV_INCHES); // 0.536659
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_X_LOW_FOV_INCHES); // 0.536659
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_X_HIGH_FOV_INCHES); // 0.091453
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_X_HIGH_FOV_INCHES); // 0.091453
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_Y_LOW_FOV_INCHES); // 0.542137
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_Y_LOW_FOV_INCHES); // 0.542137
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_Y_HIGH_FOV_INCHES); // 0.542137
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_Y_HIGH_FOV_INCHES); // 0.542137
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_EDGE_CONTRAST_THRESHOLD); // 1.000000
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_EDGE_CONTRAST_THRESHOLD); // 1.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_EDGE_X_OFFSET); // -7.500000
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_EDGE_X_OFFSET); // -7.500000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_EDGE_Y_OFFSET); // -16.000000
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_EDGE_Y_OFFSET); // -16.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_EDGE_IS_CALIBRATED); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_EDGE_IS_CALIBRATED); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_EDGE_AUTO_FOV); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_EDGE_AUTO_FOV); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_EDGE_RELATIVE_MAG); // 1.000000
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_EDGE_RELATIVE_MAG); // 1.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_EDGE_ZOOM_RATIO); // 6.000000
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_EDGE_ZOOM_RATIO); // 6.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_EDGE_FRAME_AVERAGES); // 2
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_EDGE_FRAME_AVERAGES); // 2
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_EDGE_AUTO_REMEASURE); // 1
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_EDGE_AUTO_REMEASURE); // 1
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_EDGE_TARGET_SIZE); // 30
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_EDGE_TARGET_SIZE); // 30
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_OPTICS_TUBE); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_OPTICS_TUBE); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_OPTICS_LENS); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_OPTICS_LENS); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_X_STAGE_TRAVEL); // 8.000000
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_X_STAGE_TRAVEL); // 8.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_Y_STAGE_TRAVEL); // 6.000000
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_Y_STAGE_TRAVEL); // 6.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_Z_STAGE_TRAVEL); // 8.000000
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_Z_STAGE_TRAVEL); // 8.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_BACK_LIGHT_OFFSET); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_BACK_LIGHT_OFFSET); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_RING_LIGHT_OFFSET); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_RING_LIGHT_OFFSET); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AUX_LIGHT_OFFSET); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AUX_LIGHT_OFFSET); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_X_SERVO_PRE_VEL); // 681288
|
|
_ftprintf(pOutFile, _T("%ld"), m_EEPROM.ConfigData.e_AG_X_SERVO_PRE_VEL); // 681288
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_Y_SERVO_PRE_VEL); // 681288
|
|
_ftprintf(pOutFile, _T("%ld"), m_EEPROM.ConfigData.e_AG_Y_SERVO_PRE_VEL); // 681288
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_Z_SERVO_PRE_VEL); // 349524
|
|
_ftprintf(pOutFile, _T("%ld"), m_EEPROM.ConfigData.e_AG_Z_SERVO_PRE_VEL); // 349524
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_ZM_SERVO_PRE_VEL); // 98304
|
|
_ftprintf(pOutFile, _T("%ld"), m_EEPROM.ConfigData.e_ZM_SERVO_PRE_VEL); // 98304
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_X_SERVO_XCESS_PERR); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_X_SERVO_XCESS_PERR); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_Y_SERVO_XCESS_PERR); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_Y_SERVO_XCESS_PERR); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_Z_SERVO_XCESS_PERR); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_Z_SERVO_XCESS_PERR); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_ZM_SERVO_XCESS_PERR); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_ZM_SERVO_XCESS_PERR); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_X_POS_WIN); // 2
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_X_POS_WIN); // 2
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Y_POS_WIN); // 2
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Y_POS_WIN); // 2
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Z_POS_WIN); // 2
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Z_POS_WIN); // 2
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_ZM_POS_WIN); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_ZM_POS_WIN); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_X_SCALE_SWAP); // 1
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_X_SCALE_SWAP); // 1
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_Y_SCALE_SWAP); // -1
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_Y_SCALE_SWAP); // -1
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_Z_SCALE_SWAP); // 1
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_Z_SCALE_SWAP); // 1
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_SECOND_X_SCALE_SWAP); // 1
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_SECOND_X_SCALE_SWAP); // 1
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_SECOND_Y_SCALE_SWAP); // 1
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_SECOND_Y_SCALE_SWAP); // 1
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_SECOND_Z_SCALE_SWAP);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_SECOND_Z_SCALE_SWAP);
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_SECOND_X_SCALE_FACTOR); // 0.000000
|
|
_ftprintf(pOutFile, _T("%12.11f"), m_EEPROM.ConfigData.e_SECOND_X_SCALE_FACTOR); // 0.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_SECOND_Y_SCALE_FACTOR); // 0.000000
|
|
_ftprintf(pOutFile, _T("%12.11f"), m_EEPROM.ConfigData.e_SECOND_Y_SCALE_FACTOR); // 0.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_SECOND_Z_SCALE_FACTOR);
|
|
_ftprintf(pOutFile, _T("%12.11f"), m_EEPROM.ConfigData.e_SECOND_Z_SCALE_FACTOR);
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_USE_SECOND_X_SCALE); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_USE_SECOND_X_SCALE); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_USE_SECOND_Y_SCALE); // 0
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_USE_SECOND_Y_SCALE); // 0
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_USE_SECOND_Z_SCALE);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_USE_SECOND_Z_SCALE);
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_OFFSET_X_LIMIT); // 0.000000
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_OFFSET_X_LIMIT); // 0.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_OFFSET_Y_LIMIT); // 0.000000
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_OFFSET_Y_LIMIT); // 0.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_OFFSET_Z_LIMIT); // 0.000000
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_OFFSET_Z_LIMIT); // 0.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_FORCE_STAGE_INIT); // 1
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_FORCE_STAGE_INIT); // 1
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_X_NEG_PRELIM_OFFSET); // 0.000000
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_JS_X_NEG_PRELIM_OFFSET); // 0.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_Y_NEG_PRELIM_OFFSET); // 0.000000
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_JS_Y_NEG_PRELIM_OFFSET); // 0.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_Z_NEG_PRELIM_OFFSET); // 0.000000
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_JS_Z_NEG_PRELIM_OFFSET); // 0.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_ZM_NEG_PRELIM); // 0.000000
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_JS_ZM_NEG_PRELIM); // 0.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_X_POS_PRELIM_OFFSET); // 0.000000
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_JS_X_POS_PRELIM_OFFSET); // 0.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_Y_POS_PRELIM_OFFSET); // 0.000000
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_JS_Y_POS_PRELIM_OFFSET); // 0.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_Z_POS_PRELIM_OFFSET); // 0.000000
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_JS_Z_POS_PRELIM_OFFSET); // 0.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_ZM_POS_PRELIM); // 0.000000
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_JS_ZM_POS_PRELIM); // 0.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_X_NEG_PRELIM_OFFSET); // 0.000000
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_AG_X_NEG_PRELIM_OFFSET); // 0.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Y_NEG_PRELIM_OFFSET); // 0.000000
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_AG_Y_NEG_PRELIM_OFFSET); // 0.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Z_NEG_PRELIM_OFFSET); // 0.000000
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_AG_Z_NEG_PRELIM_OFFSET); // 0.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_ZM_NEG_PRELIM); // 0.000000
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_AG_ZM_NEG_PRELIM); // 0.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_X_POS_PRELIM_OFFSET); // 0.000000
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_AG_X_POS_PRELIM_OFFSET); // 0.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Y_POS_PRELIM_OFFSET); // 0.000000
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_AG_Y_POS_PRELIM_OFFSET); // 0.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Z_POS_PRELIM_OFFSET); // 0.000000
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_AG_Z_POS_PRELIM_OFFSET); // 0.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_ZM_POS_PRELIM); // 0.000000
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_AG_ZM_POS_PRELIM); // 0.000000
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_MIN_MOVE_TIME); // 0.000000
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_AG_MIN_MOVE_TIME); // 0.000000
|
|
|
|
///////////////////////////////////////////////////////////////
|
|
/// 2000 EEPROM params ///
|
|
///////////////////////////////////////////////////////////////
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_X_SERVO_KDD);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_X_SERVO_KDD);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_X_SERVO_KSD);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_X_SERVO_KSD);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_X_SERVO_AFF);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_X_SERVO_AFF);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_X_SERVO_VFF);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_X_SERVO_VFF);
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_Y_SERVO_KDD);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_Y_SERVO_KDD);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_Y_SERVO_KSD);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_Y_SERVO_KSD);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_Y_SERVO_AFF);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_Y_SERVO_AFF);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_Y_SERVO_VFF);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_Y_SERVO_VFF);
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_Z_SERVO_KDD);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_Z_SERVO_KDD);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_Z_SERVO_KSD);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_Z_SERVO_KSD);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_Z_SERVO_AFF);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_Z_SERVO_AFF);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_JS_Z_SERVO_VFF);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_JS_Z_SERVO_VFF);
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TB_X_SERVO_KDD);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TB_X_SERVO_KDD);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TB_X_SERVO_KSD);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TB_X_SERVO_KSD);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TB_X_SERVO_AFF);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TB_X_SERVO_AFF);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TB_X_SERVO_VFF);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TB_X_SERVO_VFF);
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TB_Y_SERVO_KDD);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TB_Y_SERVO_KDD);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TB_Y_SERVO_KSD);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TB_Y_SERVO_KSD);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TB_Y_SERVO_AFF);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TB_Y_SERVO_AFF);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TB_Y_SERVO_VFF);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TB_Y_SERVO_VFF);
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_X_SERVO_KDD);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_X_SERVO_KDD);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_X_SERVO_KSD);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_X_SERVO_KSD);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_X_SERVO_AFF);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_X_SERVO_AFF);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_X_SERVO_VFF);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_X_SERVO_VFF);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_X_SERVO_PID_SWAP);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_X_SERVO_PID_SWAP);
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Y_SERVO_KDD);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Y_SERVO_KDD);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Y_SERVO_KSD);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Y_SERVO_KSD);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Y_SERVO_AFF);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Y_SERVO_AFF);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Y_SERVO_VFF);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Y_SERVO_VFF);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Y_SERVO_PID_SWAP);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Y_SERVO_PID_SWAP);
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Z_SERVO_KDD);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Z_SERVO_KDD);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Z_SERVO_KSD);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Z_SERVO_KSD);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Z_SERVO_AFF);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Z_SERVO_AFF);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Z_SERVO_VFF);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Z_SERVO_VFF);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Z_SERVO_PID_SWAP);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Z_SERVO_PID_SWAP);
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_ZM_SERVO_PID_SWAP);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_ZM_SERVO_PID_SWAP);
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_X_SERVO_ACC);
|
|
_ftprintf(pOutFile, _T("%ld"), m_EEPROM.ConfigData.e_TP_AP_X_SERVO_ACC);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_X_SERVO_VEL);
|
|
_ftprintf(pOutFile, _T("%ld"), m_EEPROM.ConfigData.e_TP_AP_X_SERVO_VEL);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_X_SERVO_KP);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TP_AP_X_SERVO_KP);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_X_SERVO_KI);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TP_AP_X_SERVO_KI);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_X_SERVO_KD);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TP_AP_X_SERVO_KD);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_X_SERVO_IL);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TP_AP_X_SERVO_IL);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_X_SERVO_KDD);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_X_SERVO_KDD);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_X_SERVO_KSD);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TP_AP_X_SERVO_KSD);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_X_SERVO_AFF);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TP_AP_X_SERVO_AFF);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_X_SERVO_VFF);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TP_AP_X_SERVO_VFF);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_X_SERVO_PID_SWAP);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TP_AP_X_SERVO_PID_SWAP);
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_Y_SERVO_ACC);
|
|
_ftprintf(pOutFile, _T("%ld"), m_EEPROM.ConfigData.e_TP_AP_Y_SERVO_ACC);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_Y_SERVO_VEL);
|
|
_ftprintf(pOutFile, _T("%ld"), m_EEPROM.ConfigData.e_TP_AP_Y_SERVO_VEL);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_Y_SERVO_KP);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TP_AP_Y_SERVO_KP);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_Y_SERVO_KI);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TP_AP_Y_SERVO_KI);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_Y_SERVO_KD);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TP_AP_Y_SERVO_KD);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_Y_SERVO_IL);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TP_AP_Y_SERVO_IL);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_Y_SERVO_KDD);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Y_SERVO_KDD);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_Y_SERVO_KSD);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TP_AP_Y_SERVO_KSD);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_Y_SERVO_AFF);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TP_AP_Y_SERVO_AFF);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_Y_SERVO_VFF);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TP_AP_Y_SERVO_VFF);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_Y_SERVO_PID_SWAP);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TP_AP_Y_SERVO_PID_SWAP);
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_Z_SERVO_ACC);
|
|
_ftprintf(pOutFile, _T("%ld"), m_EEPROM.ConfigData.e_TP_AP_Z_SERVO_ACC);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_Z_SERVO_VEL);
|
|
_ftprintf(pOutFile, _T("%ld"), m_EEPROM.ConfigData.e_TP_AP_Z_SERVO_VEL);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_Z_SERVO_KP);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TP_AP_Z_SERVO_KP);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_Z_SERVO_KI);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TP_AP_Z_SERVO_KI);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_Z_SERVO_KD);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TP_AP_Z_SERVO_KD);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_Z_SERVO_IL);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TP_AP_Z_SERVO_IL);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_Z_SERVO_KDD);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Z_SERVO_KDD);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_Z_SERVO_KSD);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TP_AP_Z_SERVO_KSD);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_Z_SERVO_AFF);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TP_AP_Z_SERVO_AFF);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_Z_SERVO_VFF);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TP_AP_Z_SERVO_VFF);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_TP_AP_Z_SERVO_PID_SWAP);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_TP_AP_Z_SERVO_PID_SWAP);
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_X_ROLLOFF);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_X_ROLLOFF);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Y_ROLLOFF);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Y_ROLLOFF);
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_X_INDEX_OFFSET);
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_X_INDEX_OFFSET); // 1.503326743391
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_Y_INDEX_OFFSET);
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_Y_INDEX_OFFSET); // 5.563602257609
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_Z_INDEX_OFFSET);
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_Z_INDEX_OFFSET); // 1.175433201424
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_USE_INDEX_PULSE);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_USE_INDEX_PULSE);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_X_ROLLOFF);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_X_ROLLOFF);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Y_ROLLOFF);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Y_ROLLOFF);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Z_ROLLOFF);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Z_ROLLOFF);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_ZM_ROLLOFF);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_ZM_ROLLOFF);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_X_KSP);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_X_KSP);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Y_KSP);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Y_KSP);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Z_KSP);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_Z_KSP);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_ZM_KSP);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_AG_ZM_KSP);
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_X_SHAFT2SCALE);
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_AG_X_SHAFT2SCALE);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Y_SHAFT2SCALE);
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_AG_Y_SHAFT2SCALE);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_Z_SHAFT2SCALE);
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_AG_Z_SHAFT2SCALE);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AG_ZM_SHAFT2SCALE);
|
|
_ftprintf(pOutFile, _T("%f"), m_EEPROM.ConfigData.e_AG_ZM_SHAFT2SCALE);
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_PAN_VIDEO_X);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_PAN_VIDEO_X);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_PAN_VIDEO_Y);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_PAN_VIDEO_Y);
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_ILL_LENS);
|
|
_ftprintf(pOutFile, _T("%i"), m_EEPROM.ConfigData.e_ILL_LENS);
|
|
|
|
///////////////////////////////////////////////////////////////
|
|
/// non-EEPROM params ///
|
|
///////////////////////////////////////////////////////////////
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_EDGE_RETRY_TIMEOUT_X);
|
|
_ftprintf(pOutFile, _T("%i"), EDGE_RETRY_TIMEOUT_X); // 300
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_EDGE_RETRY_TIMEOUT_Y);
|
|
_ftprintf(pOutFile, _T("%i"), EDGE_RETRY_TIMEOUT_Y); // 300
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_EDGE_RETRY_TIMEOUT_Z);
|
|
_ftprintf(pOutFile, _T("%i"), EDGE_RETRY_TIMEOUT_Z); // 300
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_EDGE_RETRY_TIMEOUT_MAG);
|
|
_ftprintf(pOutFile, _T("%i"), EDGE_RETRY_TIMEOUT_MAG); // 300
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_EDGE_RETRY_BANDWIDTH_X);
|
|
_ftprintf(pOutFile, _T("%i"), EDGE_RETRY_BANDWIDTH_X); // 50
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_EDGE_RETRY_BANDWIDTH_Y);
|
|
_ftprintf(pOutFile, _T("%i"), EDGE_RETRY_BANDWIDTH_Y); // 50
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_EDGE_RETRY_BANDWIDTH_Z);
|
|
_ftprintf(pOutFile, _T("%i"), EDGE_RETRY_BANDWIDTH_Z); // 50
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_EDGE_RETRY_BANDWIDTH_MAG);
|
|
_ftprintf(pOutFile, _T("%i"), EDGE_RETRY_BANDWIDTH_MAG); // 50
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_EDGE_RETRY_COUNT_X);
|
|
_ftprintf(pOutFile, _T("%i"), EDGE_RETRY_COUNT_X); // 1
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_EDGE_RETRY_COUNT_Y);
|
|
_ftprintf(pOutFile, _T("%i"), EDGE_RETRY_COUNT_Y); // 1
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_EDGE_RETRY_COUNT_Z);
|
|
_ftprintf(pOutFile, _T("%i"), EDGE_RETRY_COUNT_Z); // 1
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_EDGE_RETRY_COUNT_MAG);
|
|
_ftprintf(pOutFile, _T("%i"), EDGE_RETRY_COUNT_MAG); // 1
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_MM_XY_PIXEL_MOTION_TOLERANCE);
|
|
_ftprintf(pOutFile, _T("%i"), MM_XY_PIXEL_MOTION_TOLERANCE); // 10
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_MM_Z_INCH_MOTION_TOLERANCE);
|
|
_ftprintf(pOutFile, _T("%lf"), MM_Z_INCH_MOTION_TOLERANCE); // 0.0001
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_MM_ZOOM_PERCENT_MOTION_TOLERANCE);
|
|
_ftprintf(pOutFile, _T("%i"), MM_ZOOM_PERCENT_MOTION_TOLERANCE); // 2
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_LIGHT_SETTLE_TIME);
|
|
_ftprintf(pOutFile, _T("%i"), LIGHT_SETTLE_TIME); // 30
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_BACK_LIGHT_MAPPING);
|
|
_ftprintf(pOutFile, _T("%i"), BACK_LIGHT_MAPPING); // 10753
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_RING_LIGHT_MAPPING);
|
|
_ftprintf(pOutFile, _T("%i"), RING_LIGHT_MAPPING); // 1154
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_AUX_LIGHT_MAPPING);
|
|
_ftprintf(pOutFile, _T("%i"), AUX_LIGHT_MAPPING); // 33028
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_GRID_LIGHT_MAPPING);
|
|
_ftprintf(pOutFile, _T("%i"), GRID_LIGHT_MAPPING); // 16384
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_RING_KNOB_TO_LED_RING);
|
|
_ftprintf(pOutFile, _T("%i"), RING_KNOB_TO_LED_RING); // 2
|
|
|
|
_ftprintf(pOutFile, _T("\n%s "), cs_LASER_STEP);
|
|
_ftprintf(pOutFile, _T("%i"), LASER_STEP); // 10
|
|
|
|
fclose(pOutFile);
|
|
break;
|
|
}
|
|
default:
|
|
ASSERT(0);
|
|
break;
|
|
}
|
|
return SSI_STATUS_NORMAL;
|
|
}
|
|
|
|
// ==============================================================
|
|
int CSSIData::Hex_Diff_To_File(CSSIData *pDataDiff1, CSSIData *pDataDiff2, CString FileName)
|
|
{
|
|
CStdioFile cCalFile;
|
|
BOOL bFileStatus = FALSE;
|
|
CFileException cfeOpenError;
|
|
bFileStatus = cCalFile.Open(FileName, CFile::modeCreate | CFile::modeWrite| CFile::typeText, &cfeOpenError );
|
|
if (!bFileStatus)
|
|
{
|
|
CString str;
|
|
str = _T("Cant open file: ");
|
|
str += FileName;
|
|
//str = GetCFileOpenErrorCause(cfeOpenError);
|
|
MessageBox(NULL, str, NULL, MB_OK);
|
|
return SSI_STATUS_ERROR;
|
|
}
|
|
|
|
CString Marker;
|
|
CString Outline;
|
|
for (int ii = 0 ; ii < EEPROMBYTES ; ++ii)
|
|
{
|
|
if (pDataDiff1->m_EEPROM.EEPROM_Bytes[ii] != pDataDiff2->m_EEPROM.EEPROM_Bytes[ii])
|
|
{
|
|
Marker = _T(">");
|
|
} else
|
|
{
|
|
Marker = _T(" ");
|
|
}
|
|
Outline.Format(_T("%s %x %x\n"), Marker, pDataDiff1->m_EEPROM.EEPROM_Bytes[ii], pDataDiff2->m_EEPROM.EEPROM_Bytes[ii]);
|
|
cCalFile.WriteString(Outline);
|
|
}
|
|
return SSI_STATUS_NORMAL;
|
|
}
|