int MX370x__ExtDigitalIOWritePort ( xsd__unsignedLong  ulPort,
xsd__unsignedLong  ulState,
xsd__unsignedLong  ulOption1,
struct MX370x__Response 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] ulState Digital I/O state. Each bit set the state for one digital I/O channel.

  • D0 : 0: Set the digital I/O output channel 0 of the selected port to low. 1: Set the digital I/O output channel 0 of the selected port to high
  • ...
  • D31 : 0: Set the digital I/O output channel 31 of the selected port to low. 1: Set the digital I/O output channel 31 of the selected port to high
[in] ulOption1 Reserved. Set to 0
[out] Response 
iReturnValue

  • 0: Means the remote function performed OK
  • -1: Means an system error occurred
  • -2: Port selection wrong
  • -3: Any selected digital I/O is not a output channel
  • -4: Error when setting digital outputs
  • -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