NRC_DigOut(int port, int value)
Digital IO port output
Type
int=>Digital IO port output
| 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 digital IO port to output, with a range of 1 <= port <= 16. The actual range depends on the number of IO ports on the connected IO module |
| value | int | The state to be output; 0 means low level; 1 means high level |
Sample code
NRC_DigOut(5, 1);//Digital IO port 5 outputs high level