Header, middle, and trailer strings – Controlled Products Systems Group WDG-5912 User Manual
Page 23
©2010
Cypress Computer Systems, Inc. 2/1/10
WDG-5912 Programming Instructions Version 1.0.2
Page 17
\L02 029 01 2B
2 total bytes in
parameter string
Address
1 Byte
For Header, Middle, Trailer strings - The number of characters and scan codes must be
included in the string. The USB interface does not require Key up codes to be entered.
Header, Middle, and Trailer Strings
It is possible to send characters and control keystrokes such as the Enter key either before,
between fields, and after the keyboard data has been sent. The header is sent before the
data string is sent from the USB port, the Middle is sent between Field 1 and Field 2 and the
Trailer is sent after Field 2.
This programming string will send the TAB key before sending the data.
\L02 047 01 28
2 total bytes in
parameter string
Address
1 Byte
This programming string will send the ENTER key after sending the data.
Youʼre probably wondering, how do you know TAB is 2B and ENTER is 28? Some are listed on
the simulator screen and others are listed in a table at the end of this manual that lists the keys and their
ID codes. These codes are in Hexadecimal.
If you need to send a shifted character, i.e. capital letter or punctuation of
the numeric keys? Set the most significant bit of the character you are sending.
example: The letter “X” is coded as 1B. This will send a small “x”. If a shift X is needed (caps) then
take 1B which is 0001 1011 in binary and add a one to the most significant bit.
1001 1011 would be 9B. 9B will send as Shift X (Caps). This can be applied to other characters as
needed.
TAB key code
Enter key code