SetAxisDigitalOutput
Sets a BOOL value to an output indicated by the index.
Syntax
KsCommandStatus SetAxisDigitalOutput(
int Index,
int OutputNumber,
BOOL Value,
McExecutionMode ExecutionMode
);
Parameters
Index [in]: the index of an output signal source (axis). Indexes are zero based. Aliases affect this parameter.
OutputNumber [in]: selects an output. The range is 0-31.
Value [in]: the value of the selected output.
ExecutionMode [in]: defines the chronological sequence of the function. See McExecutionMode.
Return value
Returns the KsCommandStatus structure.
Example
Copy
KsCommandStatus DICommand = WaitForCommand(5, TRUE,
SetAxisDigitalOutput(0, 1, TRUE, McExecutionMode::mcImmediately));
Requirements
| RT | Win32 | |
|---|---|---|
| Minimum supported version | 4.0 | 4.0 |
| Header | ksmotion.h | ksmotion.h |
| Library | KsApi_Rtss.lib | KsApi.lib |
See also