MotionController Axis MultiAxis IO IOPoint NetworkNode RsiError
Sample Apps Changelog

RapidCode API

◆ StreamingOutputAdd() [4/4]

void StreamingOutputAdd ( RapidCode::IOPoint *  point,
bool  on,
int  ptPointIndex 
)
pure virtual

Sets the state of the specified IOPoint when the motion reaches the specified streaming point index.

Description:
Sets the state of the passed IOPoint to high (true) or low (false) once the controller reaches the specified point index.
Parameters
pointThe IOPoint to turn on or off.
onThe value to set the output to. true=>high, false=>low
ptPointIndexThe MotionElementExecutingID at which to set the output. The valid range is from 0 to the last point index of the currently executing streaming move.
Sample Code:
// -- C++ -- //
IOPoint *digitalOut;
int arbitrary_point_index;
// To enable
multiAxis->StreamingOutputAdd(digitalOut, on, arbitrary_point_index);
// To disable
multiAxis->StreamingOutputAdd(digitalOut, off, arbitrary_point_index);
// -- C# -- //
IOPoint *digitalOut;
int arbitrary_point_index;
// To enable
multiAxis.StreamingOutputAdd(digitalOut, on, arbitrary_point_index);
// To disable
multiAxis.StreamingOutputAdd(digitalOut, off, arbitrary_point_index);
See also
StreamingOutputsEnableSet, StreamingOutputsClear, StreamingOutputAdd, MotionIdExecutingGet, MotionElementIdExecutingGet, IO, IOPoint