int MSXE17xx__MFIncCounterInitAndEnableCompareLogic ( xsd__unsignedLong  ulMFModuleIndex,
xsd__unsignedLong  ulValue,
xsd__unsignedLong  ulMode,
xsd__unsignedLong  ulSynchroTrigger,
xsd__unsignedLong  ulOption01,
xsd__unsignedLong  ulOption02,
struct MSXE17xx__Response Response 
)
For each compare the data server send a 5 DWORD frame with following informations:
  DWORD 0 : Time stamp micro s
  DWORD 1 : Time stamp s
  DWORD 2 :
     D1-D0   : Sub module index (0 to 3)
     D31-D16 : Sub module functionality (0)
  DWORD 3 : Event mask
     D30-D0 :
          0: Compare
          1: Frequency measurement
          2: Hardware trigger latch occur
          3: Synchro input latch occur
          4: Index input latch occur
     D31 :
        0: No error occur
        1: Amplitude or Frequency error occur.
  DWORD 4 :
     D31-D0: Counter value (DWORD)
Parameters:
[in] ulMFModuleIndex : index of the multifunction sub module (0 to 3).
[in] ulValue : compare value ( 0 to 0xFFFFFFFF included )
[in] ulMode : compare mode

  • 0: condition true when counter equals compare value
  • 1: condition true when counter equals a multiple of the compare value
[in] ulSynchroTrigger 

  • 0 : no synchro trigger
  • 1 : generates a synchro trigger when condition is true
[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: Compare value error
  • -4: Compare mode error
  • -5: Synchro trigger error
  • -6: Multifunction sub module is not a incremental counter
  • -7: Incremental counter not initialised
  • -8: Compare logic already initialised
  • -100: Init and enable counter compare kernel function error

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

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