|
Before calling this function, you must call the MSXE17xx__MFEndatInitSensor function to initialise the sensor, and then MSXE17xx__MFEndatSelectMemoryArea, or MSXE17xx__MFEndatSensorSendPosAndRecvSelMemArea to select the memory area that contains the parameter you want to read.
- 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 last memory area that you have selected (see MSXE17xx__MFEndatSelectMemoryArea or MSXE17xx__MFEndatSensorSendPosAndRecvSelMemArea) |
[in] | ulAddress | The address of the parameter that you want to read (0x0-0xFF) |
[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 The ulMrsCode parameter is wrong
- -8 The ulAddress parameter is wrong
- -9 Your sensor is not compatible with EnDat 2.2, but the parameter ulMrsCode is only available for EnDat 2.2
- -10 The last selected memory area do not corresponds to the parameter ulMrsCode. Please call MSXE17xx__MFEndatSelectMemoryArea or MSXE17xx__MFEndatSensorSendPosAndRecvSelMemArea with the wished ulMrsCode before
- -11 Error while reading parameter
- -41 Transmission error. Please call MSXE17xx__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)
ulParam Value of the parameter |
- Return values:
-
| 0 | SOAP_OK |
| Others | See SOAP error |
|