MotionController Axis MultiAxis IO IOPoint NetworkNode RsiError
Sample Apps Changelog

RapidCode API

◆ StreamingOutputAdd() [2/4]

void StreamingOutputAdd ( int32  onMask,
int32  offMask,
uint64  address,
int  ptPointIndex 
)
pure virtual

Applies the on and off bitmasks to the controller's memory address when the motion reaches the specified streaming point index. Used to toggle Digital Outputs and/or memory.

Description:
StreamingOutputAdd will apply the bitmasks "onMask" and "offMask" to the specified address, setting high bits in the on mask to high, and the high bits in the off mask to low. ptPointIndex specified the MotionElementExecutingID at which the masks will be applied.
Parameters
onMaskThe high bits of this bitmask sets the corresponding bits at the address high.
offMaskThe high bits of this bitmask sets the corresponding bits at the address low.
addressThe address at which to toggle bits
ptPointIndexThe MotionElementExecutingID at which to apply the masks. 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->MaskGet(), 0, digitalOut->AddressGet(), arbitrary_point_index);
// To disable
multiAxis->StreamingOutputAdd(0, digitalOut->MaskGet(), digitalOut->AddressGet(), arbitrary_point_index);
// -- C# -- //
IOPoint digitalOut;
int arbitrary_point_index;
// To enable
multiAxis.StreamingOutputAdd(digitalOut.MaskGet(), 0, digitalOut.AddressGet(), arbitrary_point_index);
// To disable
multiAxis.StreamingOutputAdd(0, digitalOut.MaskGet(), digitalOut.AddressGet(), arbitrary_point_index);
Note
The points need to be added sequentially.
See also
StreamingOutputsEnableSet, StreamingOutputsClear, StreamingOutputAdd, MotionIdExecutingGet, MotionElementIdExecutingGet, IO, IOPoint