NRC_RunqueueInsertDOUT(int port, int value)
Insert DOUT instruction in the run queue
Before calling this function, please call NRC_CreateNoFlieRunqueue() to create a fileless run queue
Type
int=>Insert DOUT instruction in the run queue
Return value | Description |
---|---|
0 | The function is called successfully |
-101 | Invalid input parameter |
-102 | The target object does not exist. This typically occurs when the system initialization is incomplete, and calling other functions may return this value |
-103 | The target object is currently in an inoperable state |
Parameter Option
Parameter | Type | Description |
---|---|---|
port | int | The number of the digital output port to output the level, parameter range: port > 0 |
value | int | Port output status; 0: low level, 1: high level |
Sample code
NRC_RunqueueInsertDOUT(1, 1);
//Insert DOUT instruction in the run queue, setting DOUT1 to output a high level