The RMP Motion Controller APIs

◆ CreateDigitalOutput() [5/5]

static IOPoint * CreateDigitalOutput ( NetworkNode * networkNode,
int32_t bitNumber )
static
Description:
Parameters
networkNodeThe network node which has the digital output bit.
bitNumberThe bit number relative to the entire I/O node
Returns
(IOPoint*) A pointer to the newly created IOPoint.

Part of the IOPoint Creation method group.

Sample Code:
IO: Input & Output
const int NODE_INDEX = 0; // The EtherCAT Node we will be communicating with
//const int INPUT_INDEX = 0; // The PDO Index in that Node
const int OUTPUT_INDEX = 0; // The PDO Index in that Node
IOPoint output0 = IOPoint.CreateDigitalOutput(controller.NetworkNodeGet(NODE_INDEX), OUTPUT_INDEX); // Automatically gets the memory index of a specified node and input index
output0.Set(false);
controller.SampleWait(1);
Assert.False(output0.Get(), "The getter function should return a value equal to false");