diff --git a/API_MachMgr.cpp b/API_MachMgr.cpp index 31a5b51..2c1e32e 100644 --- a/API_MachMgr.cpp +++ b/API_MachMgr.cpp @@ -1483,6 +1483,13 @@ __stdcall EgtUpdateAllMachinings( BOOL bStopOnFirstErr, wchar_t*& wsErrList) //----------------------------------------------------------------------------- // Simulation +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtSimInit( void) +{ + return ( ExeSimInit() ? TRUE : FALSE) ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtSimStart( BOOL bFirst) @@ -1508,6 +1515,20 @@ __stdcall EgtSimHome( void) return ( ExeSimHome() ? TRUE : FALSE) ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtSimSetStep( double dStep) +{ + return ( ExeSimSetStep( dStep) ? TRUE : FALSE) ; +} + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtSimSetUiStatus( int nUiStatus) +{ + return ( ExeSimSetUiStatus( nUiStatus) ? TRUE : FALSE) ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtSimGetAxisInfoPos( int nI, wchar_t*& wsName, wchar_t*& wsToken, BOOL* pbLinear, double* pdVal) @@ -1562,23 +1583,9 @@ __stdcall EgtSimGetMoveInfo( int* pnGmove, double* pdFeed) //----------------------------------------------------------------------------- BOOL -__stdcall EgtSimSetStep( double dStep) +__stdcall EgtSimExit( void) { - return ( ExeSimSetStep( dStep) ? TRUE : FALSE) ; -} - -//----------------------------------------------------------------------------- -BOOL -__stdcall EgtSimSetUiStatus( int nUiStatus) -{ - return ( ExeSimSetUiStatus( nUiStatus) ? TRUE : FALSE) ; -} - -//----------------------------------------------------------------------------- -BOOL -__stdcall EgtSimStop( void) -{ - return ( ExeSimStop() ? TRUE : FALSE) ; + return ( ExeSimExit() ? TRUE : FALSE) ; } //-----------------------------------------------------------------------------