RMP Motion Controller
10.6.4
APIs
, concepts, guides, and more
Community
Support
Contact
◆
DedicatedInGet()
bool DedicatedInGet
(
RSIMotorDedicatedIn
motorDedicatedInNumber
)
Description:
DedicatedInGet reads the state of any of the dedicated digital inputs.
Parameters
motorDedicatedInNumber
A
RSIMotorDedicatedIn
value.
Returns
(bool) State of the input.
Part of the
Dedicated I/O
method group.
Sample Code:
IO: Input & Output
// Retrieve dedicated inputs with generic and specific function.
Console.WriteLine(
"RSIMotorDedicatedInLIMIT_HW_NEG: {0} and {1}"
,
axis.
DedicatedInGet
(
RSIMotorDedicatedIn
.RSIMotorDedicatedInLIMIT_HW_NEG),
axis.
NegativeLimitGet
());
Console.WriteLine(
"RSIMotorDedicatedInLIMIT_HW_POS: {0} and {1}"
,
axis.
DedicatedInGet
(
RSIMotorDedicatedIn
.RSIMotorDedicatedInLIMIT_HW_POS),
axis.
PositiveLimitGet
());
Console.WriteLine(
"RSIMotorDedicatedInHOME: {0} and {1}"
,
axis.
DedicatedInGet
(
RSIMotorDedicatedIn
.RSIMotorDedicatedInHOME),
axis.
HomeSwitchGet
());
Console.WriteLine(
"RSIMotorDedicatedInAMP_FAULT: {0} and {1}"
,
axis.
DedicatedInGet
(
RSIMotorDedicatedIn
.RSIMotorDedicatedInAMP_FAULT),
axis.
AmpFaultGet
());
Console.WriteLine(
"RSIMotorDedicatedInAMP_ACTIVE: {0} and {1}"
,
axis.
DedicatedInGet
(
RSIMotorDedicatedIn
.RSIMotorDedicatedInAMP_ACTIVE),
axis.
AmpEnableGet
());
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
InputOutput.cs
.
RSI
RapidCode
Axis
Generated by
1.10.0