int MSXE17xx__MFPWMGetState ( xsd__unsignedLong  ulMFModuleIndex,
xsd__unsignedLong  ulPWM,
struct MSXE17xx__MFPWMGetStateResponse Response 
)
Parameters:
[in] ulMFModuleIndex : Index of the multifunction sub module (0 to 3).
[in] ulPWM : Selected PWM 0 or 1
[out] Response :
ulInitialised : Return the initialisation flag

  • 0: PWN not initialised
  • 1: PWM initialised

ulEnabled : Return the enabled status

  • 0: PWM disabled
  • 1: PWN enabled

ulProgress : Return the progress status

  • 0: PWM not in progress
  • 1: PWM in progress

ulOutput : Return the PWM output signal state

  • 0: PWM output is low
  • 1: PWM output is high

ulDiffInput : Return the diff input state

  • 0: The diff input C (for PWM0) or F (for PWM1) is low
  • 1: The diff input C (for PWM0) or F (for PWM1) is high

ulTriggerInput : Return the extern trigger state

  • 0: The trigger input (24V) is low
  • 1: The trigger input (24V) is high

ulCounter :

  • Return the number of completed PWM periods

ulInfo01 :

  • Reserved. Return 0

ulInfo02 :

  • Reserved. Return 0

sResponse.iReturnValue :

  • 0: means the remote function performed OK
  • -1: means an system error occured
  • -2: Sub module selection wrong
  • -3: Sub module is not a PWM
  • -4: PWM selection wrong
  • -100: Get PWM state kernel function error

sResponse.syserrno : system-error code (the value of the libc "errno" code)

Returns:
  • 0: SOAP_OK
  • <> 0: See SOAP error