|
Reads the current power supply status of the selected port.
The digital outputs need an external power supply. This function checks the state of the power supply.
- Parameters:
-
[in] | ulPort | Selected digital I/O port (0 to MSXExxxx__DigitalIOGetNumberOfPorts)
Please read the documentation of the MSXExxxx__DigitalIOGetNumberOfPorts for the description of a port. |
[in] | ulOption1 | Reserved. Set to 0 |
[out] | Response |
sResponse.iReturnValue
- 0: The remote function performed OK
- -1: System error occurred
- -2: The PLD is not working
- -3: The ulPort parameter is wrong
- -100: Internal system error occurred. See value of syserrno
sResponse.syserrno system error code (the value of the libc "errno" code)
ulValue Current digital I/O power supply state. Each bit indicates the power supply state of the output. Example:
- 1: No external supply voltage for the output 0
- 3: No external supply voltage for the outputs 0 and 1
|
- Return values:
-
| 0 | SOAP_OK |
| Others | See SOAP error |
|