int MSXE17xx__MFEndatGetCurrentLatchConfiguration ( xsd__unsignedLong  ulmFModuleIndex,
xsd__unsignedLong  ulChannelIndex,
xsd__unsignedLong  ulOption01,
xsd__unsignedLong  ulOption02,
xsd__unsignedLong  ulOption03,
xsd__unsignedLong  ulOption04,
struct MSXE17xx__MFEndatGetCurrentLatchConfigurationResponse Response 
)
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 ulConnectorIndex parameter is wrong
  • -3 The ulChannelIndex parameter is wrong
  • -4 The component is not programmed as EnDat
  • -100 Internal system error occurred. See value of syserrno

sResponse.syserrno system-error code (the value of the libc "errno" code)
ulRunning The running state.

  • 0 Not running (do not use other return parameters, there will be set to 0)
  • 1 Latch logic is running

ulLatchSource Mask of bits, that defines the trigger source. See documentation of MSXE17xx__MFEndatInitAndEnableLatchPositionValues
ulTriggerEdgeCount Number of edges required to detect an hardware trigger (only if hardware trigger is selected)
ulDataFormat Mask of bits, that defines the format of data that will be sent by the data server. See documentation of MSXE17xx__MFEndatInitAndEnableLatchPositionValues
ulModel (Used for computation) Model/Type of the sensor (see page 79/84 of EnDat application notes 722024)

  • 0, 1, 2, 3 Incremental linear encoder
  • 4, 6 Absolute linear encoder
  • 8, 9, 10, 11 Incremental rotary encoder or angle encoder
  • 12 Singleturn encoder
  • 13, 14 Multiturn encoder

ulPositionSize (Used for computation) Size of the position value send by the sensor (in bits)
ulSignalPeriod (Used for computation) Signal period length or signal periods per revolution for incremental output signals
ulStepPerRevolution (Used for computation) Measuring step length or measuring steps per revolution with serial data transfer
ulNumberOfRevolution (Used for computation) Distinguishable revolutions - only for multiturn encoders
ulScalingFactor (Used for computation) Scaling factor for resolution

Return values:
0 SOAP_OK
Others See SOAP error