GrpcPrint/PrintC/PLC/AxisCtrl.cpp

54 lines
913 B
C++
Raw Normal View History

2024-05-06 10:49:15 +08:00
#include "AxisCtrl.h"
void AxisCtrl::ServoOn(bool on)
{
m_ServoOn->SetValue(on);
}
void AxisCtrl::ServoHomeIndexOn(void)
{
m_ServoHomeIndexOn->SetValue(true);
m_ServoHomeIndexOn->SetValue(false);
}
void AxisCtrl::ServoReset(void)
{
m_ServoReset->SetValue(true);
m_ServoReset->SetValue(false);
}
void AxisCtrl::MovePositive(void)
{
m_MoveP->SetValue(true);
m_MoveP->SetValue(false);
}
void AxisCtrl::MoveNegative(void)
{
m_MoveN->SetValue(true);
m_MoveN->SetValue(false);
}
void AxisCtrl::MovePContinueStart(void)
{
m_MovePContinue->SetValue(true);
m_MovePContinue->SetValue(false);
}
void AxisCtrl::MoveNContinueStop(void)
{
m_MoveNContinue->SetValue(true);
m_MoveNContinue->SetValue(false);
}
void AxisCtrl::MoveAbsPos(void)
{
m_MoveAbsPos->SetValue(true);
m_MoveAbsPos->SetValue(false);
}
void AxisCtrl::MotionStop(void)
{
m_MotionStop->SetValue(true);
m_MotionStop->SetValue(false);
}