int MSXE17xx__MFSinCosInitAndEnableCompareLogic ( xsd__unsignedLong  ulMFModuleIndex,
xsd__double  dValue,
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 (2)
  DWORD 3 : Event mask
     D30-D0 :
        0: Compare occur
     D31 :
        0: No error occur
        1: Amplitude or Frequency error occur.
  DWORD 4 :
     D31-D0: Counter value (DWORD) if the selected output format of the measure is Raw data
     D31-D0: Current position in mm (FLOAT) if the selected output format of the measure is standardized in mm.
Parameters:
[in] ulMFModuleIndex : index of the multifunction sub module (0 to 3).
[in] dValue : compare value :

  • 0 to 0xFFFFFFFF if raw data seleced
  • Position in mm if the measure is standardized in mm
[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 SinCos module.
  • -7: Sinus / Cosinus module not initialised
  • -8: Compare logic already initialised
  • -9: Can not be used for the "fast measure" mode
  • -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