RTC
®
5 PC Interface Board
Rev. 1.9 e
10 Commands And Functions
260
innovators for industry
Ctrl Command get_auto_cal
Function
returns the attached scan system’s type of ASC hardware previously detected via
Call
ASCtype = get_auto_cal()
Result
ASC hardware type as an unsigned 32-bit value
Comments
• If the ASC hardware type was previously detected via
get_auto_cal
will
return the same value as
Command
= 4) – see comments there.
• If the ASC hardware type was
not
previously detected via
, then
get_auto_cal
will return the value 255 (initialized value).
RTC
®
4
RTC
®
5 new command
Version info
Available beginning with version DLL 520, OUT 519
References
Ctrl Command get_char_pointer
Function
returns the absolute start address of an indexed character.
Call
CharPointer = get_char_pointer( Char )
Parameter
Char
Index of the indexed character as an unsigned 32-bit value;
allowed range: [0 … 1023]
Result
Absolute start address as an unsigned 32-bit value
Comments
• The
get_char_pointer
command reads from the internal management table the start
address of the indexed character with the specified index. Whether the read address
resides in a protected or the unprotected memory area depends on whether the char-
acter was loaded into the protected memory area or an unprotected subroutine was
only subsequently referenced.
• If
Index
> 1023 or if no character was referenced with the specified index, then the
command returns the value “–1” (e.g. 2
32
–1).
• This command is useful for checking if a character has already been defined or for
calling an indexed character via an absolute memory address as if it were a non-indexed
subroutine, e.g. for conditional execution with
. Be aware, though, that
a subsequent
might alter the absolute memory address. And you
should ensure that
get_char_pointer
doesn’t return “–1”; otherwise the
command will be ignored.
RTC
®
4
RTC
®
5 new command
References