RMP Motion Controller
10.6.0
APIs
, concepts, guides, and more
Community
Support
Contact
◆
CreateDigitalOutput()
[4/5]
static
IOPoint
* CreateDigitalOutput
(
MotionController
*
controller
,
uint64_t
memoryAddress
,
int32_t
bitNumber
)
static
Description:
Parameters
controller
Your motion controller object
memoryAddress
the memory address you want to target
bitNumber
The bit number relative to the memory address
Returns
(IOPoint*) A pointer to the newly created
IOPoint
.
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.That(output0.
Get
(), Is.False,
"The getter function should return a value equal to false"
);
RSI
RapidCode
IOPoint
Generated by
1.10.0