Add Rotary axis。-Ed
This commit is contained in:
@@ -4697,18 +4697,21 @@ SSI_STATUS_MOTION CSO7_Proto::_process_SO7_CMD_READ_AXIS_XYZ()
|
||||
g_machine.z._scale_pos._char_[1] = *(ep_buff[EP_82_DATA_IDX]._buffer+7);
|
||||
g_machine.z._scale_pos._char_[0] = *(ep_buff[EP_82_DATA_IDX]._buffer+8);
|
||||
g_machine.z._scale_pos._char_[3] = 0;
|
||||
|
||||
if (g_machine.x._scale_pos._long_ > 8388608)
|
||||
g_machine.x._scale_pos._long_=g_machine.x._scale_pos._long_-16777216;
|
||||
|
||||
if (g_machine.y._scale_pos._long_ > 8388608)
|
||||
g_machine.y._scale_pos._long_=g_machine.y._scale_pos._long_-16777216;
|
||||
|
||||
if (g_machine.z._scale_pos._long_ > 8388608)
|
||||
g_machine.z._scale_pos._long_=g_machine.z._scale_pos._long_-16777216;
|
||||
// if (g_machine.z._scale_pos._long_ > 8388608)
|
||||
// g_machine.z._scale_pos._long_=g_machine.z._scale_pos._long_-16777216;
|
||||
|
||||
|
||||
return SSI_STATUS_MOTION_NORMAL;
|
||||
// for rotary table
|
||||
if (g_machine.z._scale_pos._long_ > 4194304)
|
||||
g_machine.z._scale_pos._long_=g_machine.z._scale_pos._long_-8388608;
|
||||
|
||||
return SSI_STATUS_MOTION_NORMAL;
|
||||
};
|
||||
|
||||
//==============================================================
|
||||
|
||||
Reference in New Issue
Block a user