PCD7.D250
User program examples
26/770 E1
(D25-08-E.DOC)
SAIA-Burgess Electronics Ltd.
Page 8-13
8.4 Recognition of a pressed key with a following action
When one of the function keys F1, F2 or F3 is pressed the following texts
are transmitted.
Key F1 :
a simple text is displayed
Key F2 :
a text containing the state of the inputs 0 to 7 is displayed.
Key F3 :
a text containing the the value of the BCD switches
connected to the inputs 0...7 is displayed.
Key F4 :
a text containing the date, week and time is displayed..
When the function keys are pressed the corresponding text is sent to the
terminal once only. If a value is to be refreshed cyclically on the terminal,
the following points concerning text output should be noted in order to
achieve a stable display:
–
Switch off the cursor
–
Don't send the control code "12" (clear screen) at the beginning of
the text.
•
8.4.1
The user program contains jumps
*)
•
8.4.2
The user program is structured in BLOCTEC
*)
•
8.4.3
The user program is structured in GRAFTEC
*)
*)
With these programs, the functional readiness of the terminal is
checked by the XOB16 cold start routine using the POLL
instruction. This also coordinates the power-up processes of the
controller and terminal with each other.