int MSXE17xx__MFIncCounterInitAndEnableIndex ( xsd__unsignedLong  ulMFModuleIndex,
xsd__unsignedLong  ulReferenceAction,
xsd__unsignedLong  ulIndexOperation,
xsd__unsignedLong  ulAutoMode,
xsd__unsignedLong  ulOption01,
struct MSXE17xx__Response Response 
)


It is recommended to use the "MSXE17xx__MFIncCounterInitAndEnableLatch" and "MSXE17xx__MFIncCounterInitAndEnableClear" functions

The index operation can be programmed. If used, the reference signal enable the index management. Rising edge on reference enable the index management. Rising edge on index reset the reference management.

Parameters:
[in] ulMFModuleIndex : index of the multifunction sub module (0 to 3).
[in] ulReferenceAction : Reference action

  • 0: do not use the D pin as reference,
  • 1: use the D pin as reference
[in] ulIndexOperation : Index operation

  • 0 = MSXE170X_COUNTER_LOW_EDGE_LATCH_AND_CLEAR_COUNTER,
  • 1 = MSXE170X_COUNTER_HIGH_EDGE_LATCH_AND_CLEAR_COUNTER,
  • 2 = MSXE170X_COUNTER_LOW_EDGE_LATCH_COUNTER,
  • 3 = MSXE170X_COUNTER_HIGH_EDGE_LATCH_COUNTER,
[in] ulAutoMode : AutoMode 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
[out] Response :
iReturnValue :

  • 0: means the remote function performed OK
  • -1: means an system error occured
  • -2: Multifunction sub module index selection error
  • -3: Reference action selection error
  • -4: Index operation selection error
  • -5: Auto mode selection error
  • -6: Multifunction sub module is not a incremental counter
  • -7: Incremental counter not initialised
  • -8: Index logic already initialised
  • -100: Init and enable counter index kernel function error

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

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