EgtMachKernel 1.8d4 :

- aggiunta funzione GetAxisType.
This commit is contained in:
Dario Sassi
2017-04-13 18:24:14 +00:00
parent a90a7ad34a
commit d474f151b0
3 changed files with 10 additions and 0 deletions
BIN
View File
Binary file not shown.
+1
View File
@@ -293,6 +293,7 @@ class MachMgr : public IMachMgr
int GetHeadId( const std::string& sHead) const override ;
int GetHeadExitCount( const std::string& sHead) const override ;
bool GetAxisToken( const std::string& sAxis, std::string& sToken) const override ;
bool GetAxisType( const std::string& sAxis, bool& bLinear) const override ;
bool SetAxisPos( const std::string& sAxis, double dVal) override ;
bool GetAxisPos( const std::string& sAxis, double& dVal) const override ;
bool GetAxisHomePos( const std::string& sAxis, double& dHomeVal) const override ;
+9
View File
@@ -242,6 +242,15 @@ MachMgr::GetAxisToken( const string& sAxis, string& sToken) const
return ( ( pMch != nullptr) ? pMch->GetAxisToken( sAxis, sToken) : false) ;
}
//----------------------------------------------------------------------------
bool
MachMgr::GetAxisType( const string& sAxis, bool& bLinear) const
{
Machine* pMch = GetCurrMachine() ;
// restituisco il tipo dell'asse indicato nella macchina corrente
return ( ( pMch != nullptr) ? pMch->GetAxisType( sAxis, bLinear) : false) ;
}
//----------------------------------------------------------------------------
bool
MachMgr::SetAxisPos( const string& sAxis, double dVal)