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
.
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
command is encountered.
• The command
is ignored if a list is executing at the moment.
References
,
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
command is encountered.
• During execution of a particular list, the other list can be loaded. However, that other
list
must
not be started by
until the current list execution is finished. (The
command
is ignored if a list is executing at the moment.)
Also see
• Use the command
to determine the current status of execution.
References
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
References