Macro programming
Single or multiple command sequences can be summarised as so-called macros and permanently stored in the EEPROM. These can then be started with the commands "Execute macro". There are 3 different macro types:
Touch macro (1..255)
Starts when a touch panel is touched (only for versions with Touch Panel TP) or when an externally connected button/matrix keyboard is pressed. Touch macro no. 0 has a special function: touch macro no. 0 is started when any button is released.
Port macro (0..255)
Start when a voltage is applied to IN 1..8 (only for version with inputs and outputs EA OPT-OPTO8I8O).
;Macro Demo
COM2: 115200 ; KIT is connected to COM2
; Transmission with 115,200 baud
;----------------------------------------------------------
;Define constants
OFF = 0
ON = 1
FONT4x6 = 1
FONT5x6 = 2
FONT6x8 = 3
FONT8x8 = 4
FONT8x16 = 5
;----------------------------------------------------------
;Include fonts
Font: FONT4x6, 32, 95 <..\..\FONTS\4x6.FNT>
Font: FONT5x6, 32,158 <..\..\FONTS\5x6.FNT>
Font: FONT6x8, 32,158 <..\..\FONTS\6x8.FNT>
Font: FONT8x8, 32,158 <..\..\FONTS\8x8.FNT>
Font: FONT8x16, 32,158 <..\..\FONTS\8x16.FNT>
;----------------------------------------------------------
Macro: 0 ; Power-on/reset macro
#QC ON ; Cursor visible
#FT FONT8x16 ; Set terminal font
#UL 0,20,<EA2.BMP> ; DISPLAY VISIONS Logo
Normal macro (1..255)
Start by command via serial interface or from another macro. Several consecutive macros can also be called up automatically in cycles (movie, rotating hourglass, multi-page help text).
Power-on macro
Normal macro no. 0 has a special function: It is executed automatically after switching on the operating units. Here you can, for example, switch off the cursor and define a start screen.
256 images permanently stored
Up to 256 images can be stored in the internal EEPROM to shorten transmission times of the serial interface or to save memory space in the processor system. Call e.g. with ESC U E. Compatible with Windows BMP files.
Create customised macros
Tools required:
- EA DISK240 with compiler, examples, fonts
- PC with COM1 or COM2, at least 500kB memory
- Text editor such as WordPad or Norton Editor
C:\>KITCOMP DEMO.KMC
Then
DEMO.EEP is generated and loaded into the display. Documentation: DOKU.DOC / DOKU.TXT on the disc.