using RSI.RapidCode.dotNET;  
 
#if DOXYGEN 
#endif
 
class TouchProbe
  {
    
    {
      
      const int TOUCH_PROBE_OUTPUT_INDEX = 3; 
      const int TOUCH_PROBE_STATUS_INDEX = 6; 
      const int TOUCH_PROBE_VALUE_INDEX  = 7; 
 
      
      
      
      const ulong TOUCH_PROBE_ON_EACH_Z_PHASE_COMMAND = 0x17;
 
      
 
      
      
 
      
 
      
    }
 
    
    {
      
      const int TOUCH_PROBE_OUTPUT_INDEX = 3; 
      const int TOUCH_PROBE_STATUS_INDEX = 6; 
 
      const int TOUCH_PROBE_2_FALLING_EDGE_VALUE_INDEX     = 0x60BD;
      const int TOUCH_PROBE_2_FALLING_EDGE_VALUE_SUB_INDEX = 0x0;
      const int TOUCH_PROBE_2_FALLING_EDGE_VALUE_SIZE      = 0x4;
 
      
      
      
      const ulong TOUCH_PROBE_2_ON_FIRST_FALLING_EXT2_COMMAND = 0x2100;
 
      
 
      
      
 
      
      int fallingEdgeExt2 = axis.
NetworkNode.
ServiceChannelRead(TOUCH_PROBE_2_FALLING_EDGE_VALUE_INDEX, TOUCH_PROBE_2_FALLING_EDGE_VALUE_SUB_INDEX, TOUCH_PROBE_2_FALLING_EDGE_VALUE_SIZE);
 
    }
 
    static void Main(string[] args)
    {
      
 
 
      CaptureEachIndexPulseDuringMotion(controller);
 
      CapturePositionOnFallingEdgeOfSI6(controller, axis);
    }
  }
static void CheckErrors(RapidCodeObject rsiObject)
Check if the RapidCodeObject has any errors.
static void StartTheNetwork(MotionController controller)
Start the controller communication/network.
Helper Functions for checking logged creation errors, starting the network, etc.
NetworkNode * NetworkNode
Gets the associated NetworkNode object.
Represents a single axis of motion control. This class provides an interface for commanding motion,...
Axis * AxisGet(int32_t axisNumber)
AxisGet returns a pointer to an Axis object and initializes its internals.
uint64_t NetworkInputValueGet(int32_t index)
void NetworkOutputValueSet(int32_t index, uint64_t outputValue)
Sets a PDO output directly.
static MotionController * CreateFromSoftware()
Initialize and start the RMP EtherCAT controller.
Represents the RMP soft motion controller. This class provides an interface to general controller con...
int32_t ServiceChannelRead(int32_t index, int32_t subIndex, int32_t byteCount)
Read a 32-bit integer value from the SDO.