int MSXE173x__MFEndatGetPositionWithAddData ( xsd__unsignedLong  ulConnectorIndex,
xsd__unsignedLong  ulChannelIndex,
xsd__unsignedLong  ulOption01,
xsd__unsignedLong  ulOption02,
xsd__unsignedLong  ulOption03,
xsd__unsignedLong  ulOption04,
struct MSXE173x__MFEndatGetPositionWithAddDataResponse Response 
)

Before calling this function, you must call the MSXE173x__MFEndatInitSensor function.
You must also call the function MSXE173x__MFEndatSelectAdditionalData to select the additional data that you want to receive.
This function is reserved for EnDat 2.2 sensors. It will returns an error if the sensor does not support EnDat 2.2 commands.

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] 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 
sResponse.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 component is not programmed as EnDat
  • -6 The driver is in a wrong state (must be INITIALISED)
  • -7 Error while reading the position
  • -41 Transmission error. Please call MSXE173x__MFEndatGetErrorSources to get more information
  • -100 Internal system error occurred. See value of syserrno

sResponse.syserrno system-error code (the value of the libc "errno" code)
ulPositionLow Position - low bits
ulPositionHigh Position - high bits
ulAddData1 Value of the additional data 1
ulAddData2 Value of the additional data 2

Return values:
0 SOAP_OK
Others See SOAP error