LR N_DEMO
P urpose
Comments
Note
! Program name : LRN_DEMO
10
! - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
20
30
40
50
60
70
80
90
100
CLEAR SCREEN
1 10
120
CLEAR 712
7-1 6
Programming Examples
This program demonstrates the Learn String's usage:
•
Reading the current Learn String with CST
•
Sending the Learn String back to the HP81 12A
•
Time taken for transferring the Learn String is printed
•
Recalling a setting from a location is shown (RCLO)
There is no direct command in the Learn String which indicates
the active parameter of the two modes: DELAY /DOUBLE and
WIDTH/DTY. Instead the command of the active parameter is
preceded by the non-active parameter's command. The two examples
below will help to understand this structure.
Learn String (Delay Mode active)
Ml ,CTO,Tl ,W2,SMO,LO,CO,D l,BUR 0001 #,PER 1 .00 MS,DBL 200
US, D EL 65.0
NS ,DTY 50 %,WID 100 US,LEE 10.0 NS,TRE 10.0 NS ,HIL + LOO
V,LOL +o.oo v,
Learn String (Double Mode active)
Ml,CTO,Tl ,W2,SMO,LO,CO,D l,BUR 0001 #,PER 1.00 MS ,DEL 65.0
NS,DBL 200
US, DTY 50 %,WID 100 US ,LEE 10.0 NS,TRE 10.0 NS ,HIL + LOO
V,LOL +o.oo v,
Please refer to the listing of the program for the exact usage of the
commands above.
The Learn String consists of upto 153 ASCII characters.
The time for transferring Learn Strings may vary with different
settings.
Funct ion : Demonstration of the Learn String ' s usage :
- Reading the current Learn String with " CST"
- Sending the Le arn String back to the HP8 1 12A
Additional features :
- Time taken f or transfering the Learn String is printed
- Recalling a sett ing from a locat ion is shown
initial ize interface and HP8 1 1 2A