Skip to main content

NRC_DigOut(int port, int value)

Digital IO port output

Type

int=>Digital IO port output

Return valueDescription
0The function is called successfully
-101Invalid input parameter
-102The target object does not exist. This typically occurs when the system initialization is incomplete, and calling other functions may return this value
-103The target object is currently in an inoperable state

Parameter Option

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