Advantech AWS-8248 User Manual

Page of 66
AWS-8248 User’s Manual
34
Chapter 4  Macro Key Programming
4.1 Introduction
Our workstations are equipped with programmable function keys (macro 
keys) that greatly enhance the operator interface. Macros, which are far 
more powerful than batch files, automate the most commonly used input 
sequences. They extended their functional reach to within application 
programs.
4.2 Macro Key Review
The complete macro function consists of the following elements: 
Macro keys (SF1 , SF2, ... SF10) 
Ten programmable macro keys that are located on the dust-proof door on 
the front panel of your workstation. 
Macro EEPROM 
Holds the key sequences that are activated when the corresponding macro 
key is pushed. 
Macro programming utility 
In the sub-directory, AWS-8259&8124&8248/KBT-utility, of the HMI 
utility CD-ROM, you will find a program called SFED8248.COM.. The 
SFED8248 program provides an edit function to produce an ASCII file 
that contains key stroke sequences for every macro key. After you have 
finished editing the file, the program will ask you whether you want to 
save the macro script and/or transmit it to the EEPROM. Macros consist 
of keystroke sequences to automate the most common procedures in your 
application. The way they function is much like batch files (.BAT) under 
DOS, but there are some differences. In a Macro, you have to specify the 
ENTER key explicitly. Also, macros give you the option of entering key 
sequences in an application that was executed by the macro itself.