基于接收工程的一些编译和阅读
This commit is contained in:
@@ -3950,7 +3950,7 @@ SSI_STATUS_MOTION CSO7_Proto::_write_usb_data_only(int iEP_Base)
|
||||
return SSI_STATUS_MOTION_NORMAL;
|
||||
}
|
||||
//=================================================================
|
||||
// false: probe off 当前探头为激光;true: probe on当前探头为接触式.//
|
||||
// false: probe off ��ǰ̽ͷΪ���⣻true: probe on��ǰ̽ͷΪ�Ӵ�ʽ.//
|
||||
//=================================================================
|
||||
SSI_STATUS_MOTION CSO7_Proto::so7_motion_probe_on_off_(bool _bOnOff)
|
||||
{
|
||||
@@ -3983,7 +3983,7 @@ SSI_STATUS_MOTION CSO7_Proto::so7_motion_stop_motor_to_get_laser_data()
|
||||
};
|
||||
|
||||
//=================================================================
|
||||
// false: 关闭夹具 ; true: 启动夹具. //
|
||||
// false: �رռо� �� true: ����о�. //
|
||||
//=================================================================
|
||||
SSI_STATUS_MOTION CSO7_Proto::so7_motion_fixture_on_off(bool _bOnOff)
|
||||
{
|
||||
@@ -3996,7 +3996,7 @@ SSI_STATUS_MOTION CSO7_Proto::so7_motion_fixture_on_off(bool _bOnOff)
|
||||
};
|
||||
|
||||
//=================================================================
|
||||
// false: 夹具下 ; true: 夹具上. //
|
||||
// false: ��� �� true: ���. //
|
||||
//=================================================================
|
||||
SSI_STATUS_MOTION CSO7_Proto::so7_motion_fixture_up_down(bool _bOnOff)
|
||||
{
|
||||
@@ -4009,7 +4009,7 @@ SSI_STATUS_MOTION CSO7_Proto::so7_motion_fixture_up_down(bool _bOnOff)
|
||||
};
|
||||
|
||||
//==================================================================
|
||||
//false: CT_LASE_TIMMER_ON 关马达; true: CT_LASE_TIMMER_OFF 开马达//
|
||||
//false: CT_LASE_TIMMER_ON ���� true: CT_LASE_TIMMER_OFF �����//
|
||||
//==================================================================
|
||||
SSI_STATUS_MOTION CSO7_Proto::so7_motion_laser_on_off(bool _bOnOff)
|
||||
{
|
||||
@@ -4160,7 +4160,7 @@ SSI_STATUS_MOTION CSO7_Proto::so7_motion_Dcc_HomeXYZ(char cHomeMachineMode)
|
||||
SetEvent(g_hHomedEvent);
|
||||
return SSI_STATUS_MOTION_NORMAL;
|
||||
}
|
||||
//查询是否复位
|
||||
//��ѯ�Ƿ�λ
|
||||
_send_cmd_SO7_CMD_GET_RESET_FLAG();
|
||||
g_machine.cVerNumber=3;
|
||||
if (g_machine.Sys_Reset_Flag == 1)
|
||||
@@ -4239,7 +4239,7 @@ SSI_STATUS_MOTION CSO7_Proto::so7_Motion_R_IsHomed(bool &bHomed)
|
||||
//==================================================================
|
||||
SSI_STATUS_MOTION CSO7_Proto::so7_motion_Dcc_Home_R()
|
||||
{
|
||||
//查询是否复位
|
||||
//��ѯ�Ƿ�λ
|
||||
if (g_so7_config.m_bDebugOutputEnable>=1)
|
||||
{
|
||||
g_pLogger->SendAndFlushWithTime(_T("Enter so7_motion_Dcc_Home_R.\n"));
|
||||
@@ -6054,7 +6054,7 @@ SSI_STATUS_MOTION CSO7_Proto::_send_cmd_SO7_CMD_MOVE_TO_POS_X()
|
||||
|
||||
*(ep_buff[EP_02_CMD_IDX]._buffer) = CT_MOTOR;
|
||||
*(ep_buff[EP_02_CMD_IDX]._buffer+1) = CT_MOVETOX;
|
||||
*(ep_buff[EP_02_CMD_IDX]._buffer+2)=(((g_machine.x._pos_fixed._char_[3])<0x80)?(g_machine.x._pos_fixed._char_[2]):((g_machine.x._pos_fixed._char_[2])|0x80));//最高位
|
||||
*(ep_buff[EP_02_CMD_IDX]._buffer+2)=(((g_machine.x._pos_fixed._char_[3])<0x80)?(g_machine.x._pos_fixed._char_[2]):((g_machine.x._pos_fixed._char_[2])|0x80));//���λ
|
||||
*(ep_buff[EP_02_CMD_IDX]._buffer+3)=(g_machine.x._pos_fixed._char_[1]);
|
||||
*(ep_buff[EP_02_CMD_IDX]._buffer+4)=(g_machine.x._pos_fixed._char_[0]);
|
||||
|
||||
@@ -6076,7 +6076,7 @@ SSI_STATUS_MOTION CSO7_Proto::_send_cmd_SO7_CMD_MOVE_TO_POS_Y()
|
||||
|
||||
*(ep_buff[EP_02_CMD_IDX]._buffer) = CT_MOTOR;
|
||||
*(ep_buff[EP_02_CMD_IDX]._buffer+1) = CT_MOVETOY;
|
||||
*(ep_buff[EP_02_CMD_IDX]._buffer+2)=(((g_machine.y._pos_fixed._char_[3])<0x80)?(g_machine.y._pos_fixed._char_[2]):((g_machine.y._pos_fixed._char_[2])|0x80));//最高位
|
||||
*(ep_buff[EP_02_CMD_IDX]._buffer+2)=(((g_machine.y._pos_fixed._char_[3])<0x80)?(g_machine.y._pos_fixed._char_[2]):((g_machine.y._pos_fixed._char_[2])|0x80));//���λ
|
||||
*(ep_buff[EP_02_CMD_IDX]._buffer+3)=(g_machine.y._pos_fixed._char_[1]);
|
||||
*(ep_buff[EP_02_CMD_IDX]._buffer+4)=(g_machine.y._pos_fixed._char_[0]);
|
||||
|
||||
@@ -6101,13 +6101,13 @@ SSI_STATUS_MOTION CSO7_Proto::_send_cmd_SO7_CMD_MOVE_TO_POS_Z()
|
||||
if(g_machine.z._pos_fixed._long_<0)
|
||||
{
|
||||
g_machine.z._pos_fixed._long_=-g_machine.z._pos_fixed._long_;
|
||||
*(ep_buff[EP_02_CMD_IDX]._buffer+2)=((g_machine.z._pos_fixed._char_[2])|0x80);//最高位
|
||||
*(ep_buff[EP_02_CMD_IDX]._buffer+2)=((g_machine.z._pos_fixed._char_[2])|0x80);//���λ
|
||||
*(ep_buff[EP_02_CMD_IDX]._buffer+3)=(g_machine.z._pos_fixed._char_[1]);
|
||||
*(ep_buff[EP_02_CMD_IDX]._buffer+4)=(g_machine.z._pos_fixed._char_[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
*(ep_buff[EP_02_CMD_IDX]._buffer+2)=(g_machine.z._pos_fixed._char_[2]);//最高位
|
||||
*(ep_buff[EP_02_CMD_IDX]._buffer+2)=(g_machine.z._pos_fixed._char_[2]);//���λ
|
||||
*(ep_buff[EP_02_CMD_IDX]._buffer+3)=(g_machine.z._pos_fixed._char_[1]);
|
||||
*(ep_buff[EP_02_CMD_IDX]._buffer+4)=(g_machine.z._pos_fixed._char_[0]);
|
||||
}
|
||||
@@ -6134,13 +6134,13 @@ SSI_STATUS_MOTION CSO7_Proto::_send_cmd_SO7_CMD_MOVE_TO_POS_ZM()
|
||||
if(g_machine.zm._pos_fixed._long_<0)
|
||||
{
|
||||
g_machine.zm._pos_fixed._long_=-g_machine.zm._pos_fixed._long_;
|
||||
*(ep_buff[EP_02_CMD_IDX]._buffer+2)=((g_machine.zm._pos_fixed._char_[2])|0x80);//最高位
|
||||
*(ep_buff[EP_02_CMD_IDX]._buffer+2)=((g_machine.zm._pos_fixed._char_[2])|0x80);//���λ
|
||||
*(ep_buff[EP_02_CMD_IDX]._buffer+3)=(g_machine.zm._pos_fixed._char_[1]);
|
||||
*(ep_buff[EP_02_CMD_IDX]._buffer+4)=(g_machine.zm._pos_fixed._char_[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
*(ep_buff[EP_02_CMD_IDX]._buffer+2)=(g_machine.zm._pos_fixed._char_[2]);//最高位
|
||||
*(ep_buff[EP_02_CMD_IDX]._buffer+2)=(g_machine.zm._pos_fixed._char_[2]);//���λ
|
||||
*(ep_buff[EP_02_CMD_IDX]._buffer+3)=(g_machine.zm._pos_fixed._char_[1]);
|
||||
*(ep_buff[EP_02_CMD_IDX]._buffer+4)=(g_machine.zm._pos_fixed._char_[0]);
|
||||
}
|
||||
@@ -6166,14 +6166,14 @@ SSI_STATUS_MOTION CSO7_Proto::_send_cmd_SO7_CMD_MOVE_TO_POS_XYZ(char ProbeType)
|
||||
if(g_machine.x._pos_fixed._long_<0)
|
||||
{
|
||||
g_machine.x._pos_fixed._long_=-g_machine.x._pos_fixed._long_;
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVE_TO_XYZ.data[0]=(g_machine.x._pos_fixed._char_[2] | 0x80);//最高位
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVE_TO_XYZ.data[0]=(g_machine.x._pos_fixed._char_[2] | 0x80);//���λ
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVE_TO_XYZ.data[1]=(g_machine.x._pos_fixed._char_[1]);
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVE_TO_XYZ.data[2]=(g_machine.x._pos_fixed._char_[0]);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVE_TO_XYZ.data[0]=(g_machine.x._pos_fixed._char_[2]);//最高位
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVE_TO_XYZ.data[0]=(g_machine.x._pos_fixed._char_[2]);//���λ
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVE_TO_XYZ.data[1]=(g_machine.x._pos_fixed._char_[1]);
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVE_TO_XYZ.data[2]=(g_machine.x._pos_fixed._char_[0]);
|
||||
}
|
||||
@@ -6181,14 +6181,14 @@ SSI_STATUS_MOTION CSO7_Proto::_send_cmd_SO7_CMD_MOVE_TO_POS_XYZ(char ProbeType)
|
||||
if(g_machine.y._pos_fixed._long_<0)
|
||||
{
|
||||
g_machine.y._pos_fixed._long_=-g_machine.y._pos_fixed._long_;
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVE_TO_XYZ.data[3]=(g_machine.y._pos_fixed._char_[2] | 0x80);//最高位
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVE_TO_XYZ.data[3]=(g_machine.y._pos_fixed._char_[2] | 0x80);//���λ
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVE_TO_XYZ.data[4]=(g_machine.y._pos_fixed._char_[1]);
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVE_TO_XYZ.data[5]=(g_machine.y._pos_fixed._char_[0]);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVE_TO_XYZ.data[3]=(g_machine.y._pos_fixed._char_[2]);//最高位
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVE_TO_XYZ.data[3]=(g_machine.y._pos_fixed._char_[2]);//���λ
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVE_TO_XYZ.data[4]=(g_machine.y._pos_fixed._char_[1]);
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVE_TO_XYZ.data[5]=(g_machine.y._pos_fixed._char_[0]);
|
||||
}
|
||||
@@ -6196,14 +6196,14 @@ SSI_STATUS_MOTION CSO7_Proto::_send_cmd_SO7_CMD_MOVE_TO_POS_XYZ(char ProbeType)
|
||||
if(g_machine.z._pos_fixed._long_<0)
|
||||
{
|
||||
g_machine.z._pos_fixed._long_=-g_machine.z._pos_fixed._long_;
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVE_TO_XYZ.data[6]=(g_machine.z._pos_fixed._char_[2] | 0x80);//最高位
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVE_TO_XYZ.data[6]=(g_machine.z._pos_fixed._char_[2] | 0x80);//���λ
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVE_TO_XYZ.data[7]=(g_machine.z._pos_fixed._char_[1]);
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVE_TO_XYZ.data[8]=(g_machine.z._pos_fixed._char_[0]);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVE_TO_XYZ.data[6]=(g_machine.z._pos_fixed._char_[2]);//最高位
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVE_TO_XYZ.data[6]=(g_machine.z._pos_fixed._char_[2]);//���λ
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVE_TO_XYZ.data[7]=(g_machine.z._pos_fixed._char_[1]);
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVE_TO_XYZ.data[8]=(g_machine.z._pos_fixed._char_[0]);
|
||||
}
|
||||
@@ -6231,14 +6231,14 @@ SSI_STATUS_MOTION CSO7_Proto::_send_cmd_SO7_CMD_MOVE_TO_POS_XYZV()
|
||||
if(g_machine.x._pos_fixed._long_<0)
|
||||
{
|
||||
g_machine.x._pos_fixed._long_=-g_machine.x._pos_fixed._long_;
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[0]=(g_machine.x._pos_fixed._char_[2] | 0x80);//最高位
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[0]=(g_machine.x._pos_fixed._char_[2] | 0x80);//���λ
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[1]=(g_machine.x._pos_fixed._char_[1]);
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[2]=(g_machine.x._pos_fixed._char_[0]);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[0]=(g_machine.x._pos_fixed._char_[2]);//最高位
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[0]=(g_machine.x._pos_fixed._char_[2]);//���λ
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[1]=(g_machine.x._pos_fixed._char_[1]);
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[2]=(g_machine.x._pos_fixed._char_[0]);
|
||||
}
|
||||
@@ -6246,14 +6246,14 @@ SSI_STATUS_MOTION CSO7_Proto::_send_cmd_SO7_CMD_MOVE_TO_POS_XYZV()
|
||||
if(g_machine.y._pos_fixed._long_<0)
|
||||
{
|
||||
g_machine.y._pos_fixed._long_=-g_machine.y._pos_fixed._long_;
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[3]=(g_machine.y._pos_fixed._char_[2] | 0x80);//最高位
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[3]=(g_machine.y._pos_fixed._char_[2] | 0x80);//���λ
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[4]=(g_machine.y._pos_fixed._char_[1]);
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[5]=(g_machine.y._pos_fixed._char_[0]);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[3]=(g_machine.y._pos_fixed._char_[2]);//最高位
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[3]=(g_machine.y._pos_fixed._char_[2]);//���λ
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[4]=(g_machine.y._pos_fixed._char_[1]);
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[5]=(g_machine.y._pos_fixed._char_[0]);
|
||||
}
|
||||
@@ -6261,14 +6261,14 @@ SSI_STATUS_MOTION CSO7_Proto::_send_cmd_SO7_CMD_MOVE_TO_POS_XYZV()
|
||||
if(g_machine.z._pos_fixed._long_<0)
|
||||
{
|
||||
g_machine.z._pos_fixed._long_=-g_machine.z._pos_fixed._long_;
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[6]=(g_machine.z._pos_fixed._char_[2] | 0x80);//最高位
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[6]=(g_machine.z._pos_fixed._char_[2] | 0x80);//���λ
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[7]=(g_machine.z._pos_fixed._char_[1]);
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[8]=(g_machine.z._pos_fixed._char_[0]);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[6]=(g_machine.z._pos_fixed._char_[2]);//最高位
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[6]=(g_machine.z._pos_fixed._char_[2]);//���λ
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[7]=(g_machine.z._pos_fixed._char_[1]);
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[8]=(g_machine.z._pos_fixed._char_[0]);
|
||||
}
|
||||
@@ -6276,14 +6276,14 @@ SSI_STATUS_MOTION CSO7_Proto::_send_cmd_SO7_CMD_MOVE_TO_POS_XYZV()
|
||||
if(g_machine.zm._pos_fixed._long_<0)
|
||||
{
|
||||
g_machine.zm._pos_fixed._long_=-g_machine.z._pos_fixed._long_;
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[6]=(g_machine.zm._pos_fixed._char_[2] | 0x80);//最高位
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[6]=(g_machine.zm._pos_fixed._char_[2] | 0x80);//���λ
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[7]=(g_machine.zm._pos_fixed._char_[1]);
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[8]=(g_machine.zm._pos_fixed._char_[0]);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[9]=(g_machine.zm._pos_fixed._char_[2]);//最高位
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[9]=(g_machine.zm._pos_fixed._char_[2]);//���λ
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[10]=(g_machine.zm._pos_fixed._char_[1]);
|
||||
pSO7_CMD_02->s_SO7_CMD_MOVETOXYZV.data[11]=(g_machine.zm._pos_fixed._char_[0]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user