Control Unit RS-232 / RS-422

  • Size 2.4"~5.9"
  • Immediately ready to use
  • With touchpanel and mounting options
  • Individual touch keys and screen content
Control unit for installation with RS-232

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
Example command for compiling: C:\>KITCOMP DEMO.KMC
Then DEMO.EEP is generated and loaded into the display. Documentation: DOKU.DOC / DOKU.TXT on the disc.

FAQ - Questions and answers about macro programming

Questions and short, easy-to-understand answers on macro programming

How can macros be saved in the EEPROM?

Macros can be saved in the EEPROM by combining individual or multiple command sequences. These macros can then be started using the 'Execute macro' command. The advantage of saving in the EEPROM is that the macros remain available even after a system restart. This enables efficient use of resources and faster execution of commands. Storage in the EEPROM is particularly useful for shortening transfer times and saving memory space in the processor system. Up to 256 images can also be stored in the EEPROM, which increases flexibility.

What types of macros are there and how are they started?

There are three main types of macros: Touch Macros, Port Macros and Normal Macros. Touch macros are started by touching a touch field or by pressing an external button. Port macros start when a voltage is applied to the inputs IN 1 to 8. Normal macros can be started via the serial interface or from another macro. There is also the Power-On macro, which is executed automatically when the operating units are switched on. Each macro type offers specific advantages and possible uses, depending on the requirements of the application.

What is the special position of the Touch Macro No. 0?

Touch macro no. 0 has a special function, as it is started when any button is released. This special position makes it possible to execute specific actions that are to take place immediately after touching a touch field or a button. This function is particularly useful in applications where an immediate response to user interactions is required. By automatically triggering the macro, complex processes can be simplified and the user experience improved. The flexibility of this function can be used in various scenarios to increase efficiency.

How can the Power-On macro be used?

The power-on macro, also known as normal macro no. 0, is executed automatically when the operating units are switched on. It can be used to make basic settings such as switching off the cursor or defining a start screen. This automatic execution makes it possible to set the operating unit to a desired state immediately after switching it on. This is particularly useful for preparing the user interface and ensuring a consistent start-up environment. By using the power-on macro, recurring tasks can be automated, which increases efficiency.

Which tools are required to create individual macros?

Various tools are required to create individual macros, including a touch panel and mounting options, as well as individual touch buttons and screen contents. The EA DISK240 with compiler, examples and fonts is also required. A PC with COM1 or COM2 and at least 500kB of memory is also required. A text editor such as WordPad or Norton Editor is used to write the macros. These tools make it possible to create customized macros that meet specific requirements and extend the functionality of the control units.

Why is Display Visions the best choice for macro programming?

Display Visions is the best choice for macro programming as they offer comprehensive solutions and a wide range of tools specifically designed for the creation and management of macros. With their expertise in developing touch and port macros and the ability to store macros in EEPROM, they offer high flexibility and efficiency. Display Visions' products are known for their reliability and ease of use, which simplifies the implementation of macros. In addition, Display Visions provides comprehensive support and documentation to ensure that customers achieve the best possible results. This combination of quality, functionality and support makes Display Visions the ideal choice for anyone requiring macro programming.
Deutsch
Französisch