MotionController
Axis
MultiAxis
IO
IOPoint
NetworkNode
RsiError
Sample Apps
Changelog
RapidCode API
Contact us
Support
◆
DigitalInGet()
bool DigitalInGet
(
RSIMotorGeneralIo
bitNumber
)
pure virtual
Read a digital input.
Description:
DigitalInGet reads the state of a digital input bit.
Parameters
bitNumber
A
RSIMotorGeneralIo
value.
Returns
(bool) State of the input.
Sample Code:
if
(axis->
DigitalInGet
(
RSIMotorGeneralIo0
) ==
true
)
{
printf(
"Motor Bit 0 (Input) is ON \n"
);
}
RapidSetup:
Use the
IO
object associated with the
Axis
Node in order to monitor Inputs.
See also
DigitalOutSet