EasyManua.ls Logo

Scanlab RTC 4 - Page 81

Scanlab RTC 4
136 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
RTC
®
4 PC Interface Board
Rev. 1.3 e
10 Commands And Functions
81
innovators for industry
Ctrl Command execute_at_pointer
Function starts list execution at the specified address in the RTC
®
4 list buffer.
Also see chapter 5.6 "Structured Programming", page 45.
Parameter
pointer
address of the first list command to be executed (unsigned 16-bit value).
Allowed range: [0 7999]
Integration Pascal:
procedure execute_at_pointer(pointer: word);
C:
void execute_at_pointer(unsigned short pointer);
Basic:
sub execute_at_pointer(ByVal pointer%)
Comments This command can be used instead of execute_list.
For instance,
execute_at_pointer(0)
is the same as
execute_list(1)
,
execute_at_pointer(4000)
is the same as
execute_list(2)
.
However, execution can be started at any other position in the list buffer as well.
CAUTION: If the end of the list buffer is reached, the RTC
®
4 continues at the address
zero.
Execution stops when a set_end_of_list command is encountered.
The command execute_at_pointer is ignored if a list is executing at the moment.
References set_input_pointer, get_input_pointer
Ctrl Command execute_list
Function starts execution of list 1 or list 2
Parameter
list_no
number of the list to be executed (1 or 2)
Integration Pascal:
procedure execute_list(list_no: word);
C:
void execute_list(unsigned short list_no);
Basic:
sub execute_list(ByVal list_no%)
Comments The commands execute_list_1 and execute_list_2 (with no parameters)
can be used alternatively.
Execution stops when a set_end_of_list command is encountered.
During execution of a particular list, the other list can be loaded. However, that other
list must not be started by execute_list until the current list execution is finished. (The
command execute_list is ignored if a list is executing at the moment.)
Also see "List Handling", page 13.
•Use the command get_status (page 86) to determine the current status of execution.
References get_status, execute_at_pointer
Ctrl Command get_counts
Function reads the counter for the external list starts
Result counter value as a signed 32-bit value
Integration Pascal:
function get_counts: longint;
C:
long get_counts(void);
Basic:
function get_counts()&
Comments The counter is incremented each time a list is started via the external start signal.
To reset the counter, call the command set_control_mode (see page 103).
References set_max_counts, set_control_mode, get_startstop_info

Table of Contents

Related product manuals