78
8.29 EnDat 2.2: Reading the Position and Additional Datum and Transmitting the Error Reset
The position and additional datum of an EnDat22 encoder are transmitted as described in section 8.24. The error memory of
the EnDat22 encoder is also cleared. This function may only be performed in Polling mode. The axis must be configured for
EnDat22 encoders.
Function
EIB7_ERR EIB7EnDat22ErrorReset ( EIB7_AXIS axis,
unsigned short* status,
ENCODER_POSITION* pos,
ENDAT_ADDINFO* ai1,
ENDAT_ADDINFO* ai2,
)
Parameters
axis AXIS handle
status [return code] Pointer to the variable for the status word
pos [return code] Pointer to the variable for the position value
ai1 [return code] Pointer to the structure for the EnDat additional datum 1
ai2 [return code] Pointer to the structure for the EnDat additional datum 2
Return code
The return code delivers a status for the function call. In addition to the standard return codes, the following error messages
can occur.
EIB7_InvInterface Axis is not configured for EnDat encoders
EIB7_NotInitialized Axis is not initialized
EIB7_EncPwrSuppErr Error in the encoder power supply (encoder is not ready for operation)
EIB7_EnDatErrII Type II EnDat error occurred
EIB7_EnDatIfBusy EnDat master not ready for operation
EIB7_EnDatXmitErr Error during data transmission (encoder might not be connected)
EIB7_EnDat22NotSupp The encoder does not support EnDat 2.2 commands or the axis is not configured for EnDat 2.2
mode