PI1X Basic Programming Manual Ver. 1.10
38/156
3.6
System commands
Purpose
:
To set auto power off timer.
Syntax
:
AUTO_OFF(N%)
Example
:
AUTO_OFF(56)
Description
:
N%
is an integer variable in the range from 30 to 65535,
indicating a specified period of time in units of 1 second. If
the time interval is set to zero, this function will be disabled.
Purpose
:
To get the serial number of the terminal.
Syntax
:
A$ = DEVICE_ID$
Example
:
PRINT “S/N:” + DEVICE_ID$
Description
:
A$
is a string variable to be assigned to the result. That is a
string of the target terminal serial number to be returned.
Purpose
:
To get the model name of the target terminal.
Syntax
:
A$ = GET_TARGET_MACHINE$
Example
:
PRINT “Model Name:”+GET_TARGET_MACHINE$
Description
:
A$
is a string variable to be assigned to the result. That is a
string of the model name of the target terminal to be returned.
Purpose
:
To create a menu.
Syntax
:
A% = MENU(Item$)
Example
:
MENU_STR$="1.Auto off"+CHR$(13)
MENU_STR$=ME"2.System Info"+CHR$(13)
MENU_STR$=ME"3.Power on"+CHR$(13)
MENU_STR$=ME"4.Suspend"+CHR$(13)
MENU_STR$=ME"5.Restart"+CHR$(13)
MENU_STR$=ME"6.Exit"+CHR$(13)
MENU_STR$=ME"@SYSTEM
TEST"+CHR$(13)
…
S%=MENU(MENU_STR$)
ON S% GOTO 10,20,30,40,50,60
…