MotionController Axis MultiAxis IO IOPoint NetworkNode RsiError
Sample Apps Changelog

RapidCode API

◆ DedicatedInGet()

bool DedicatedInGet ( RSIMotorDedicatedIn  bitNumber)
pure virtual

Read a digital input.

Description:
DedicatedInGet reads the state of any of the dedicated digital inputs.
Parameters
bitNumberA 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.
DedicatedIO.jpg
See also
DedicatedOutGet
 
Examples
DedicatedIO.cpp, and DedicatedIO.cs.