int MSXE17xx__MFEndatInitSensor ( xsd__unsignedLong  ulConnectorIndex,
xsd__unsignedLong  ulChannelIndex,
xsd__unsignedLong  ulFrequency,
xsd__unsignedLong  ulOption01,
xsd__unsignedLong  ulOption02,
xsd__unsignedLong  ulOption03,
xsd__unsignedLong  ulOption04,
struct MSXE17xx__Response Response 
)

This function should be called once, in order to call the other EnDat functions.

Parameters:
[in] ulConnectorIndex Index of the EnDat connector (0 to 3). See on the MSX-E system.
[in] ulChannelIndex Index of the channel. Set to 0
[in] ulFrequency Frequency to use in kHz (500, 900, 1500, 2500, 4500)
[in] ulOption01 Reserved. Set to 0
[in] ulOption02 Reserved. Set to 0
[in] ulOption03 Reserved. Set to 0
[in] ulOption04 Reserved. Set to 0
[out] Response 
iReturnValue

  • 0 The remote function performed OK
  • -1 System error occurred
  • -2 The PLD is not working
  • -3 The ulConnectorIndex parameter is wrong
  • -4 The ulChannelIndex parameter is wrong
  • -5 The driver is in a wrong state (must be INITIALISED or UNINITIALISED)
  • -6 The component is not programmed as EnDat
  • -7 Error while reseting sensor. Note: If no sensor is plugged on the selected channel, you will get this error.
  • -8 Error while selecting memory area 0xB9
  • -9 Error while reading alarm space (address 0x0)
  • -10 Error while reading warning space (address 0x1)
  • -11 Error while clearing errors (write 0 at address 0x0)
  • -12 Error while clearing warnings (write 0 at address 0x1)
  • -13 Error while selecting memory area 0xA1
  • -14 Error while reading number of clock pulses for transfer of position value (address 0x0D)
  • -15 Error while selecting memory area 0xA5
  • -16 Error while reading EnDat command set (address 0x5)
  • -17 Error while reading support of error messages 1 (address 0x3)
  • -18 Error while reading support of warnings (address 0x4)
  • -19 Error while reading EnDat ordering designation (address 0x8)
  • -20 ulFrequency parameter is too high for current sensor
  • -21 The ulFrequency parameter is wrong
  • -22 EnDat ordering designation is invalid
  • -41 Transmission error. Please call MSXE17xx__MFEndatGetErrorSources to get more information
  • -100 Internal system error occurred. See value of syserrno

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

Return values:
0 SOAP_OK
Others See SOAP error