Publication 1746-PM001A-US-P
BASIC Macro Library
A-5
Clock Functions
The following table describes the macro CALLs that you use to set and read the
clock.
wait_m1()
Waits for the M1 file to be read.
None
None
wait_m0()
Waits for the M0 file to be updated.
None
None
wait_input_image(%1)
Waits on the input image file to be read.
None
%1 = The success
of the transfer:
0 = Not read yet
1 = Has been read
2 = Not supported
wait_output_image(%1)
Waits for the SLC output image file to be
updated.
None
%1 = The success
of the transfer:
0 = Not read yet
1 = Has been read
2 = Not supported
Table A.3 Communication Macros
Backplane Macro CALLs
Macro
Inputs
Outputs
Table A.4 Clock Macros
Clock Macro CALLs
Macro
Inputs
Outputs
input_time()
Asks the operator for the correct time, then sets the clock. No
input or output variables.
None
None
set_time(%1,%2,%3)
Sets the clock to the time indicated by %1, %2, and %3.
%1 = Hours (0 to 23)
%2 = Minutes (0 to 59)
%3 = seconds (0 to 59)
None
set_date(%1,%2,%3)
Sets the clock to the date indicated by %1, %2, and %3.
%1 = Days (1 to 31)
%2 = Months (1 to 12)
%3 = Years (0 to 99)
None
input_date()
Sets the Wall Clock date. It asks the operator for the date,
and sets the clock.
None
None
set_day()
Asks the operator for the day of week, and sets the Wall
Clock day of week.
None
None
get_time(%1,%2,%3)
Reads the time from the clock and returns the time in the
variables %1, %2, and %3.
None
%1 = Hours
%2 = Minutes
%3 = Seconds
print_time()
Reads the time from the clock and prints the time. The cursor
is left at the end of the time. (That is, no carriage return/line
feed is sent.)
None
None
print_date()
Reads the date from the clock and prints the date. The cursor
is left at the end of the date. (That is, no carriage return/line
feed is sent.)
None
None
print_day()
Reads the day from the clock and prints the day. The cursor is
left at the end of the day. (That is, no carriage return/line feed
is sent.)
None
None
Содержание 1747-PBASE
Страница 1: ...BASIC Development Software Catalog Numbers 1747 PBASE Programming Manual ...
Страница 8: ...Publication 1746 PM001A US P Table of Contents vi ...
Страница 34: ...Publication 1746 PM001A US P 2 14 Getting Familiar with Your Development Software ...
Страница 72: ...Publication 1746 PM001A US P 5 8 Manipulating Files ...
Страница 88: ...Publication 1746 PM001A US P 6 16 Writing Programs Using the BASIC Development Language ...
Страница 143: ......