RTC
®
4 PC Interface Board
Rev. 1.3 e
10 Commands And Functions
86
innovators for industry
Ctrl Command get_status
Function returns the current status of list execution
Result
busy
true ( ≠ 0 ) : a list is executing at the moment
false ( = 0 ) : no list is executing at the moment
position
pointer to the command which is executing at the moment
0 ≤
position
≤ 7999.
Integration Pascal:
procedure get_status(var busy: wordbool, var position: word);
C:
void get_status(unsigned short *busy, unsigned short *position);
Basic:
sub get_status(busy%, position%)
Comments • If
position
< 4000, list 1 is executing at the moment, otherwise list 2.
•If
busy
= false, the variable
pointer
contains the position of the last command that was
executed (usually set_end_of_list).
• In Pascal the variable
busy
can alternatively be of the type
boolean
.
•The
busy
signal is also available at pin (13) of the MARKING ON THE FLY connector
(TTL level; a HIGH level indicates that a list is executing at the moment).
References read_status, get_head_status
Ctrl Command get_time
Function returns the RTC
®
4 timer value stored during the most recent call of
save_and_restart_timer
Result timer value as 64-bit IEEE floating point value
Integration Pascal:
function get_time: double;
C:
double get_time(void);
Basic:
function get_time ()#
References save_and_restart_timer