The digital outputs need an external power supply. This function checks the state of the power supply. If the power supply is ok, the function returns 0 (in ulValue).
- Parameters:
-
[in] | ulPort | Selected digital I/O port (0 to MX370x__ExtDigitalIOGetNumberOfPorts -1).
Have a look on the documentation of MX370x__ExtDigitalIOGetNumberOfPorts for the description of a port. |
[in] | ulOption1 | Reserved. Set to 0 |
[out] | Response |
sResponse.iReturnValue
- 0: Means the remote function performed OK
- -1: Means an system error occurred
- -2: Port selection wrong
- -3: Error when getting the diagnosis
- -100: Internal system error occurred. See value of syserrno
sResponse.syserrno system-error code (the value of the libc "errno" code)
ulValue Digital outputs power supply state.
- 0: power supply state is ok.
- 1: no power supply detected on the outputs
|
- Return values:
-
| 0 | SOAP_OK |
| Others | See SOAP error |