
This is a remote control tester, it uses a CNC, Ethernet Communication with a JAVAFX interface and a PLC in order to control some valves.
Dependencies: EthernetInterface mbed-rtos mbed
Fork of CNC_CONTROLLER by
EixoController.h@0:7cedfb720712, 2017-06-07 (annotated)
- Committer:
- waspSalander
- Date:
- Wed Jun 07 13:31:02 2017 +0000
- Revision:
- 0:7cedfb720712
- Child:
- 2:835c883d81b0
CNC_Controller (2 mechanical axis)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
waspSalander | 0:7cedfb720712 | 1 | #ifndef EIXO_CONTROLLER_H |
waspSalander | 0:7cedfb720712 | 2 | #define EIXO_CONTROLLER_H |
waspSalander | 0:7cedfb720712 | 3 | |
waspSalander | 0:7cedfb720712 | 4 | #include "Debug.h" |
waspSalander | 0:7cedfb720712 | 5 | #include "Stepp.h" |
waspSalander | 0:7cedfb720712 | 6 | #include "mbed.h" |
waspSalander | 0:7cedfb720712 | 7 | |
waspSalander | 0:7cedfb720712 | 8 | |
waspSalander | 0:7cedfb720712 | 9 | class EixoController{ |
waspSalander | 0:7cedfb720712 | 10 | |
waspSalander | 0:7cedfb720712 | 11 | public: |
waspSalander | 0:7cedfb720712 | 12 | EixoController(float, float, Stepp*, PinName, PinName ); |
waspSalander | 0:7cedfb720712 | 13 | bool goToOrigem(DigitalIn, int); |
waspSalander | 0:7cedfb720712 | 14 | void calibragem(int); |
waspSalander | 0:7cedfb720712 | 15 | int conversao(int); |
waspSalander | 0:7cedfb720712 | 16 | void goToPosition(int, int ); |
waspSalander | 0:7cedfb720712 | 17 | |
waspSalander | 0:7cedfb720712 | 18 | private: |
waspSalander | 0:7cedfb720712 | 19 | int totalPathPulse; |
waspSalander | 0:7cedfb720712 | 20 | int totalPathCm; |
waspSalander | 0:7cedfb720712 | 21 | |
waspSalander | 0:7cedfb720712 | 22 | DigitalIn swOrigin; |
waspSalander | 0:7cedfb720712 | 23 | DigitalIn swEnd; |
waspSalander | 0:7cedfb720712 | 24 | Stepp* motor ; |
waspSalander | 0:7cedfb720712 | 25 | Debug* debug; |
waspSalander | 0:7cedfb720712 | 26 | }; |
waspSalander | 0:7cedfb720712 | 27 | |
waspSalander | 0:7cedfb720712 | 28 | #endif |
waspSalander | 0:7cedfb720712 | 29 |