NRC_ReadDigOut(int port)
Read the status of the digital IO output port
Type
int=>Read the status of the digital IO output port
Return value | Description |
---|---|
0 | Currently in a low-level state |
1 | Currently in a high-level state |
-1 | The port does not exist |
Parameter Option
Parameter | Type | Description |
---|---|---|
port | int | The digital IO port to be read, with a range of 1 <= port <= 16. The actual range depends on the number of IO ports on the connected IO module |
Sample code
int readIo = NRC_ReadDigOut(5);//Digital IO output port 5 outputs high level