
PI1X Basic Programming Manual Ver. 1.10
119/156
Loop:For beep loop times, 0 and 1=> 1time, 2 =>2times, 3=>3times
Beep1~3:For beep time. 0 and 1=> 100ms, 2=>200ms, 3=>300ms
Stop: For beep stop time. 0 and 1=> 100ms, 2=>200ms, 3=>300ms
N1%
is an integer variable to be assigned to the result.
N1%
Meaning
1
Success.
0
Fail.
-1
Not open RF.
-2
ID is incorrect.
Purpose
:
Start RF module.
Syntax
:
S1$=RFHOST_GETVER$
Example
:
Result%=RFHOST_OPEN
RFVersion$=RFHOST_GETVER$
PRINT "RF FW version ="; RFVersion$
RFHOST_CLOSE
Description
:
The command can get the RF module firmware version.
3.22
Simulator (Only for PC simulator) commands
Purpose
:
To copy a file from PC side to PDT.
Syntax
:
COPYFILETOPDT(PCPath$ , PDTPath$)
Example
:
COPYFILETOPDT("D:\Code\BASIC\5.BMP","D:\PROGRAM\5.
BMP")
Description
:
The COPYFILETOPDT command copies the PC file path specified
by
PCPath$
to the simulator path specified by
PDTPath$.
Purpose
:
To backup a file from PDT to PC.
Syntax
:
BACKUPDATAFILETOPC(PDTPath$ , PCPath$)
Example
:
BACKUPDATAFILETOPC("D:\PROGRAM\5.BMP","d:\test.bmp
")
Description
:
The BACKUPDATAFILETOPC command copies the simulator
datafile path specified by
PDTPath$
to the
PCPath$
in PC and
stored in PC with the same file name.