MotionController
Axis
MultiAxis
IO
IOPoint
NetworkNode
RsiError
Sample Apps
Changelog
RapidCode API
Contact us
Support
◆
DedicatedInGet()
bool DedicatedInGet
(
RSIMotorDedicatedIn
bitNumber
)
pure virtual
Read a digital input.
Description:
DedicatedInGet reads the state of any of the dedicated digital inputs.
Parameters
bitNumber
A
RSIMotorDedicatedIn
value.
Returns
(bool) State of the input.
Sample Code:
if
(axis.
DedicatedInGet
(
RSIMotorDedicatedIn
.RSIMotorDedicatedInINDEX) ==
true
)
{
Console.WriteLine(
"Encoder Index is ON"
);
}
RapidSetup:
Go to axis screen->Dedicated I/O tab. The High/Low state next to each dedicated input is the result of the DedicatedInGet function.
See also
DedicatedOutGet
Examples
DedicatedIO.cpp
, and
DedicatedIO.cs
.