int MSXExxxx__DigitalIOWritePort ( xsd__unsignedLong  ulPort,
xsd__unsignedLong  ulState,
xsd__unsignedLong  ulOption1,
struct MSXExxxx__Response Response 
)

Write a value to the selected digital I/O port.

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] ulState Digital I/O state. Each bit set the state for one digital I/O channel (0: off, 1: on).
[in] ulOption1 Reserved. Set to 0
[out] Response 
iReturnValue

  • 0: The remote function performed OK
  • -1: System error occurred
  • -2: The ulPort parameter is wrong
  • -3: The ulState parameter is wrong
  • -4: Any digital I/O set to 1 is not an output channel
  • -100: Internal system error occurred. See value of syserrno

syserrno system error code (the value of the libc "errno" code)

Return values:
0 SOAP_OK
Others See SOAP error