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 Lahis Almeida

Revision:
2:835c883d81b0
Parent:
1:ef18c260ce02
--- a/EixoMonitoring.h	Mon Sep 18 13:05:47 2017 +0000
+++ b/EixoMonitoring.h	Fri Dec 15 19:40:41 2017 +0000
@@ -4,6 +4,8 @@
 #include "mbed.h" 
 #include "rtos.h"
 #include "Debug.h"
+#include "PCF8574.h"
+
 
 
 //#define DELAY_TIMER 500
@@ -14,6 +16,9 @@
        int    delayTimer; 
        int    hitSensor;
        Debug* debug;  
+       PCF8574* pcf;
+       int sensor_Origin;
+       int sensor_End;
              
     
        // Variáveis e Controle do Movimento do Eixo
@@ -24,10 +29,7 @@
     
        // Switches e seu vetor de leitura
              int sensorInput_End;  
-             DigitalIn*  sensor_End;
-             int sensorInput_Origin;  
-             DigitalIn*  sensor_Origin;
-            
+             int sensorInput_Origin;              
             
              // Threads
          Mutex stdioMutex;                   // controle de Acesso Mútuo
@@ -36,7 +38,7 @@
              Thread sensorThread_Origin;             // threads de leitura dos sensores
              Thread handleSensorThread_Origin;       // threads para lidar com a leitur
         
-             EixoMonitoring(PinName, PinName);
+             EixoMonitoring(PCF8574*,int,int);
              void startThreads();
          void stopThreads();
              void readSensor_End();