47 cout <<
"Epos2 Position Marker:" << endl;
60 cout <<
" DIGITAL INPUTS:\n";
61 for(
int i=1;i<=10;i++)
62 cout <<
" DigIN " << i <<
": " << controller.
getDigInState(i) << endl;
76 int num_positions = 1;
78 while(num_positions < 11){
80 cout <<
" > New Position: " << endl
90 }
catch(std::exception &e){
93 cout << e.what() << endl;
void waitPositionMarker()
wait for marker position reached
void setPositionMarker(char polarity=0, char edge_type=0, char mode=0, char digitalIN=2)
Sets the configuration of a marker position.
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.
int getDigInFuncMask()
Gives Digital Inputs Functionalities Mask.
int getDigInState(int digitalIN=2)
Gives the state of a certain digital Input.
long getPositionMarker(int buffer=0)
gets the position marked by the sensor