int MSXE17xx__MFEndatSelectMemoryArea ( xsd__unsignedLong  ulConnectorIndex,
xsd__unsignedLong  ulChannelIndex,
xsd__unsignedLong  ulMrsCode,
xsd__unsignedLong  ulOption01,
xsd__unsignedLong  ulOption02,
xsd__unsignedLong  ulOption03,
xsd__unsignedLong  ulOption04,
struct MSXE17xx__Response Response 
)

In order to send or read parameters, the memory area must first be selected.
Before calling this function, you must call the MSXE17xx__MFEndatInitSensor function.

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] ulMrsCode The MRS-code corresponding to the memory area that you want to select (see page 31/121 and 84/121 of EnDat specifications)

  • 0xB9 Operating status (address area: 0x0 - 0x3)
  • 0xA1 Parameters of the encoder manufacturer - first part (address area: 0x4 - 0xF)
  • 0xA3 Parameters of the encoder manufacturer - second part (address area: 0x0 - 0xF)
  • 0xA5 Parameters of the encoder manufacturer - third part (address area: 0x0 - 0xF)
  • 0xA7 Operating parameters (address area: 0x0 - 0xF)
  • 0xA9 Parameters of the OEM - first part (address area: depending on the sensor)
  • 0xAB Parameters of the OEM - second part (address area: depending on the sensor)
  • 0xAD Parameters of the OEM - third part (address area: depending on the sensor)
  • 0xAF Parameters of the OEM - fourth part (address area: depending on the sensor)
  • 0xB1 Compensation values of the encoder manufacturer - first part (address area: depending on the sensor)
  • 0xB3 Compensation values of the encoder manufacturer - second part (address area: depending on the sensor)
  • 0xB5 Compensation values of the encoder manufacturer - third part (address area: depending on the sensor)
  • 0xB7 Compensation values of the encoder manufacturer - fourth part (address area: depending on the sensor)
[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 component is not programmed as EnDat
  • -6 The driver is in a wrong state (must be INITIALISED)
  • -7 The ulMrsCode parameter is wrong
  • -8 Error while selecting the memory area
  • -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