RTC
®
5 PC Interface Board
Rev. 1.9 e
10 Commands And Functions
264
innovators for industry
Result
Bit
Error type
Error constant
Bit #16
= 1:
Error reading PCI configuration register (can only occur
during
RTC5_CONFIG_ERROR
= 65536
Bits #17.#31
reserved
Comments
• For error handling see
• The commands
get_error
and
n_get_error
are also available without explicit access
rights to a specific RTC
®
5 board.
• The board-specific error variables
LastError
and
AccError
(see
) are neither generated nor altered by
get_error
.
Example
(C/C
++
)
creates an array for specifying which board has no existing access rights and resets the
cumulative error code.
UINT NoAccess[M1]; // MaxCount is a user-defined constant
UINT Error = init_rtc5_dll();// Searches for all installed RTC5 boards
if (Error & RTC5_ACCESS_DENIED) { // at least one board is inaccessible
UINT Count = rtc5_count_cards(); // number of boards found
for ( UINT Num = 1; Num <= Count; Num++ ) {
NoAccess[Num] = n_get_last_error(Num) & RTC5_ACCESS_DENIED;
n_reset_error(Num, RTC5_ACCESS_DENIED);
}
}
RTC
®
4
RTC
®
5 new command
Version info
Change with version DLL 518: bit#10
Last change with version DLL 535: bits #11, 12, 16
References
,
,
Ctrl Command get_fly_2d_offset
Function
returns the current reference values (offset values) for 2D encoder compensation.
Call
get_fly_2d_offset( &OffsetX, &OffsetY )
Returned
parameter
values
OffsetX,
OffsetY
Reference values as pointers to signed 32-bit values
Comments
• For 2D encoder compensation, see
.
RTC
®
4
RTC
®
5 new command
Version info
Available beginning with version DLL 536, OUT 536
References
,
Ctrl Command get_error