45 cout <<
"Epos2 Homing:" << endl;
61 cout <<
" DIGITAL INPUTS:\n";
62 for(
int i=1;i<=10;i++)
63 cout <<
" DigIN " << i <<
": " << controller.
getDigInState(i) << endl;
73 cout <<
" Home is done!\n\n";
77 }
catch(std::exception &e){
80 cout << e.what() << endl;
void enableMotor(long opmode)
function to facititate transitions from switched on to operation enabled
int getDigInExecutionMask()
Gives Digital Inputs Execution Mask.
int getDigInPolarity()
Gives Digital Inputs Polarity Mask.
void setVerbose(bool verbose)
int getDigInStateMask()
Gives Digital Inputs State Mask.
void enableController()
function to facititate transitions from the start of the controller to switch it on ...
void close()
Disconnects hardware.
Implementation of a driver for EPOS2 Motor Controller.
void init()
Connects hardware.
void setHoming(int home_method=11, int speed_pos=100, int speed_zero=100, int acc=1000, int digitalIN=2)
Sets the configuration of a homing operation.
void doHoming(bool blocking=false)
starts a homing operation
int getDigInFuncMask()
Gives Digital Inputs Functionalities Mask.
int getDigInState(int digitalIN=2)
Gives the state of a certain digital Input.