int MSXE17xx__MFIncCounterInitAndEnableLatchRegister ( xsd__unsignedLong  ulMFModuleIndex,
xsd__unsignedLong  ulLatchRegister,
xsd__unsignedLong  ulHardwareTriggerEdgeSelection,
xsd__unsignedLong  ulHardwareTriggerCount,
xsd__unsignedLong  ulOption01,
struct MSXE17xx__Response Response 
)


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

Parameters:
[in] ulMFModuleIndex : index of the multifunction sub module (0 to 3).
[in] ulLatchRegister : 0: First Latch Register used with trigger input, 1: Second Lath Register used with synchro input
[in] ulHardwareTriggerEdgeSelection : not used for the synchro input

  • 01 : rising front (Only if trigger input selected)
  • 10 : falling front (Only if trigger input selected)
  • 11 : Both front (Only if trigger input selected)
[in] ulHardwareTriggerCount : not used for the synchro input
Define the number of trigger events before the action occur
1 : all trigger event start the action
max value : 65535
[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: Latch register selection error
  • -4: Trigger edge selection error
  • -5: Trigger count selection error
  • -6: Multifunction sub module is not a incremental counter
  • -7: Incremental counter not initialised
  • -8: Latch logic already initialised
  • -100: Init and enable counter latch register kernel function error

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

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