MotionController Axis MultiAxis IO IOPoint NetworkNode RsiError
Sample Apps Changelog

RapidCode API

◆ IOGet()

RapidCode::IO * IOGet ( int32  nodeNumber)
pure virtual

IOGet returns a pointer to an IO object using its node number and initializes its internals.

Description:
IOGet takes a node reference number and returns a pointer to the IO object it represents.
Parameters
nodeNumberThe reference number of the node the IO is on. The first I/O node is the 0th Node. Non-I/O Nodes are not considered for this numbering schema.
Returns
(IO*) A pointer to the IO specified.
Sample Code:
// -- C++ -- //
IO *io = controller->IOGet(IO_NODE_NUMBER);
// -- C# -- //
IO io = controller.IOGet(IO_NODE_NUMBER);
Note
SynqNet assigns a logical number to each I/O node that it encounters during initialization. This number will be consistent as int32 as the SynqNet Node's relative location on the network remains the same.
 
Examples
IOwithAKD.cpp, SingleAxisSyncOutputs.cpp, SingleAxisSyncOutputs.cs, Template.cpp, UserLimitDigitalInputAction.cpp, UserLimitDigitalInputOneCondition.cpp, UserLimitDigitalInputOneCondition.cs, UserLimitDigitalInputTwoCondition.cpp, UserLimitPositionOneCondition.cpp, UserLimitPositionOneCondition.cs, and VelocitySetByAnalogInputValue.cs.