MotionController Axis MultiAxis IO IOPoint NetworkNode RsiError
Sample Apps Changelog

RapidCode API

◆ ErrorLogCountGet()

int32 ErrorLogCountGet ( )
pure virtual

Get the number of software errors in the error log.

Description:
ErrorLogCountGet returns the number of software errors in the error log.
Returns
(int32) Number of software errors in the error log.
Sample Code:
// Turn off exceptions.
axis->ThrowExcetpions(false)
// Do something that will cause an error (zero acceleration).
axis->MoveVelocity(0.0, 0.0);
while( axis->ErrorLogCountGet() > 0 )
{
error = axis->ErrorLogGet();
printf("Error is %s\n",error->text);
printf("ErrorLogCount is %ld\n", axis->ErrorLogCountGet());
}
See also
ErrorLogGet
 
Examples
CustomEtherCATHome.cpp, ErrorLog.cpp, ErrorLog.cs, HelperFunctions.h, StreamingMotionBufferManagement.cpp, SyncOutputWithMotion.cpp, and UpdateBufferPoints.cpp.