int MX370x__ExtDigitalIOReadPort ( xsd__unsignedLong  ulPort,
xsd__unsignedLong  ulOption1,
struct MX370x__unsignedLongResponse Response 
)
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 reading the port state
  • -100: Internal system error occurred. See value of syserrno

sResponse.syserrno system-error code (the value of the libc "errno" code)
ulValue Digital I/O state. Each bit represent the state for one digital I/O channel.

  • D0 : 0: Digital I/O 0 of selected port is low. 1: Digital I/O 0 of selected port is high
  • ...
  • D31 : 0: Digital I/O 31 of selected port is low. 1: Digital I/O 31 of selected port is high
Return values:
0 SOAP_OK
Others See SOAP error