Skip to main content

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 valueDescription
0Currently in a low-level state
1Currently in a high-level state
-1The port does not exist

Parameter Option

ParameterTypeDescription
portintThe 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