int MSXE17xx__MFIncCounterInitAndEnableClear ( xsd__unsignedLong  ulMFModuleIndex,
xsd__unsignedLong  ulClearSource,
xsd__unsignedLong  ulCondition,
xsd__unsignedLong  ulAutoMode,
xsd__unsignedLong  ulOption01,
xsd__unsignedLong  ulOption02,
struct MSXE17xx__Response Response 
)
Parameters:
[in] ulMFModuleIndex : Index of the multifunction sub module (0 to 3).
[in] ulClearSource : Clear source.

  • 0: Index input
  • 1: Hardware trigger
  • 2: Synchro input
[in] ulCondition : Previously condition for accept the clear source

  • 0: No previously condition required
  • 1: Index input condition required (Only if index input not selected selected for the clear source)
  • 2: Hardware trigger condition required (Only if hardware trigger not selected selected for the clear source)
  • 3: Synchro input condition required (Only if synchro input not selected selected for the clear source)
  • 4: Reference input (D) condition required
[in] ulAutoMode : Action mode

  • 0: Do not use auto mode (action is done only once)
  • 1: Use auto mode (action is done continously)
[in] ulOption01 : set it to 0
[in] ulOption02 : set it to 0
[out] Response :
iReturnValue :

  • 0: means the remote function performed OK
  • -1: means an system error occured
  • -2: Multifunction sub module index selection error
  • -3: Multifunction sub module is not a incremental counter
  • -4: Incremental counter not initialised
  • -5: Clear logic already initialised
  • -6: Clear source selection error
  • -7: Previously condition selection error
  • -8: Auto mode selection error
  • -9: Hardware trigger not initialised. Refer to MSXE17xx__MFIncCounterInitHardwareTrigger
  • -10: Index input not initialised. Refer to MSXE17xx__MFIncCounterInitIndex
  • -100: Init and enable counter clear kernel function error

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

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