background image

Serial Data to PC Keyboard Input

When serial information is received on the KE24 RS-232 port, it 
may be translated in one of two user selectable manners.

One method allows for receiving ASCII characters on the serial 
port. Characters are translated into PC keyboard signals and sent 
directly to the computer. Although this method provides a simple 
interface, it does not allow for full keyboard functions, or multiple 
keystroke commands such as Ctr/Alt, etc. 

The  second  method  receives  codes  from  1  to  127,  which  each 
correspond to a key on the PC keyboard. The KE24 translates these 
codes into PC keyboard signals. In addition, each code sent has 
a “make” and a “break” value for the key. Reception of a “make” 
code on the serial port produces a signal into the computer that 
is the equivalent of pressing that key on a keyboard and holding 
it down (without repeat). In order to simulate the release of that 
key,  you  must  send  a  “break”  code  for  the  same  key.  Several 
“make”  codes  can  be  transmitted  before  their  corresponding 
“break” codes, which allows for emulation of key sequences such 
as Shift+F1, Ctrl+L, etc.

8

Connecting the KE24 to a PC

“Make” and “Break” codes respectively, this may be changed by 
selecting the desired setting in the lower left corner of the keyboard 
representation.

You do not need to send a response for both MAKE and BREAK 
sections. For example, if you want the KE24 to send an “A” keystroke 
to the computer when your input is released, program a “Make” 
code for that key in the first section under the BREAK area, and the 
“Break code for the key in the second BREAK section.

To  create  a  delay  between  steps  in 
a  macro,  click  on  an  unused  step  in 
the macro dialog, then click DELAY at 
the  bottom  of 
the  keyboard 

representation.  Enter  the  desired  delay 
time  in  the  window  that  appears.  Delay 
times  may  be  set  in  10  msec  increments 
from 10 to 2550 msec. 

23

Summary of Contents for KE24

Page 1: ...KE24 PC Keyboard Encoder User Manual ...

Page 2: ... before using your KE24 In addition to this printed manual other resources are included with the product CD which provide information and tips on using the KE24 and making the most of it s features If you have any questions about the use of the KE24 not covered in this manual please contact us directly We offer toll free technical product support from 8 00am to 5 00pm M F Eastern Time 888 690 9080...

Page 3: ...ata to PC Keyboard Input PC Keyboard to Serial Port KE24 I O Data to Serial Port The KE24Load Program Programming Macros Appendix A Specifications Appendix B Connection of an External Supply Appendix C Placing KE24 into PROGRAM Mode Appendix D KE24 Operating Tips Accessories 2 s 3 5 6 8 11 12 13 21 25 26 27 28 29 ...

Page 4: ... in the KE24 provides 24 I O signals that can be programmed to scan a matrix or discrete inputs Any of the 24 I O pins can be programmed as a Row or Column in a matrix application or as an individual input A matrix size from 1x1 to 12x12 can be scanned I O pins not assigned as Rows or Columns in a matrix application may be used as discrete inputs Input from the I O header may be directed to the PC...

Page 5: ...with PCXT AT PS 2 286 386 486 Pentium and compatibles Hardware Required For programming the KE24 configuration only A serial port COM1 through COM6 on your PC and a DB9 serial cable Male to Female Default Settings 4 PC Type AT Serial Port Disabled I O Header Configured as 24 Discrete Inputs Connect the input to ground to ac tivate it Codes directed to the PC keyboard input Pin A emulates the A key...

Page 6: ...trix scanning application or discrete inputs Activation of an input in a matrix mode requires that a row and column be shorted together to produce a keystroke Discrete inputs are activated by shorting the desired input to the ground signal located on either end of the dual row header Figure 1 1 demonstrates how to activate an input that has been programmed to be a discrete input Although a switch ...

Page 7: ... they do not exceed the 5 volt range of the KE24 I O Pins defined as Rows in this mode sink current while scanning and the Columns are used to read the status of the inputs when a column is active There are two DIN type connectors located on your KE24 Although the connectors are physically alike they have different functions The connector marked To PC is for interface of the KE24 to the computer s...

Page 8: ...plug the computer into the incorrect port on the KE24 you will receive an error message on your computer If this happens turn off the computer and correct the connection The serial port on your KE24 may be used for input and output in several different modes Data received may be sent to the computer s keyboard input Keypads and switches connected to the KE24 I O header may be programmed to produce...

Page 9: ...thod receives codes from 1 to 127 which each correspond to a key on the PC keyboard The KE24 translates these codes into PC keyboard signals In addition each code sent has a make and a break value for the key Reception of a make code on the serial port produces a signal into the computer that is the equivalent of pressing that key on a keyboard and holding it down without repeat In order to simula...

Page 10: ...0 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F none none none none none none none none Backspace Tab none none none Return F11 F12 none F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 Esc none none none none 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F Space _ 0 1 2 3 4...

Page 11: ...57 158 159 160 161 162 G H J K L Enter L Shift Z X C V B N M R Shift L Ctrl L Alt Space R Alt R Ctrl Insert Delete L Arrow Home End Up Arrow Dn Arrow Pg Up 35 36 37 38 39 40 41 43 44 46 47 48 49 50 51 52 53 54 55 57 58 60 61 62 64 75 76 79 80 81 83 84 85 163 164 165 166 167 168 169 171 172 174 175 176 177 178 179 180 181 182 183 185 186 188 189 190 192 203 204 207 208 209 211 212 213 Pg Dn R Arrow...

Page 12: ...4 129 130 131 132 133 134 135 136 137 138 139 140 141 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 G H J K L Enter L Shift Z X C V B N M R Shift L Ctrl L Alt Space R Alt R Ctrl Insert Delete L Arrow Home End Up Arrow Dn Arrow Pg Up 35 36 37 38 39 40 41 43 44 46 47 48 49 50 51 52 53 54 55 57 58 60 61 62 64 75 76 79 80 81 83 84 85 163 164 165 166 167 168 169 171 17...

Page 13: ...smitted when the input is made In addition to the make code for the input the KE24 may be programmed in this mode to send a break code when the key is released If selected a break code consisting of F0 hex preceding the make code for that key is transmitted when the input is released Use the KE24Load configuration program to specify the codes to be transmitted for the various key positions The ser...

Page 14: ...the matrix and discrete input configuration to be used and assign the pins according to the functions Row Column Discrete Input that you want them to have 3 Program the Options for direction of the port data baud rate etc refer to page 17 4 Edit matrix tables and your discrete input tables Program each input to emulate the keys you have selected for your application 5 Save your configuration to di...

Page 15: ...lections and how they pertain to the KE24 setup Use your mouse to change the various options Number of Rows If your application is using a matrix program the number of rows in the highlighted area This number may be from 0 to 23 Use 0 if all of the KE24 inputs are to be used as discrete individual inputs 14 m d y d e s s 2 n o n ...

Page 16: ...vailable in your configuration Pins not used as rows or columns may be used as discrete inputs This number is determined by the Row and Column numbers and cannot be entered directly Column Assignments For each Column in your application you must assign an I O pin from the KE24 to that Column You may specify any pin A X as a Column Note Take care not to assign the same pin to two different Rows Col...

Page 17: ...u must assign an I O pin from the KE24 You may specify any header pin A X as an Input Note Take care not to assign the same pin to two different Rows Columns Inputs or combination of these as this will cause an error Each pin may only be assigned once Key Assignment To assign a key click on the appropriate matrix or discrete input position This will bring up a representation of a keyboard Click on...

Page 18: ... Keyboard Output To This option controls where input from an external keyboard connected to the KE24 sends its data If set to COMPUTER the data from the external keyboard is sent to the PC This allows the full use of the keyboard with the PC If set to RS 232 port as ASCII the data from the external keyboard is sent to the RS 232 port as ASCII data see table in the serial port section This option m...

Page 19: ...E24 I O header will be output If set to COMPUTER the programmed response codes will be sent to the PC If set to RS 232 the codes will be sent to the KE24 serial port KE24 Make Break The response from KE24 inputs will send a Make code when the input is first made then a Break code when the input is released when sending the data to the PC If the data is being directed to the serial port on the KE24...

Page 20: ...ser must send a code for the Make of the key as well as the Break code This method allows for the creation of multiple keystrokes such as Ctrl F1 Baud Rate Setting Program the Baud rate to be used for the KE24 serial port communication Rates from 300 to 19 200 are available The KE24 uses 8 Bit characters No Parity and 1 Stop Bit Computer Type Set the type of computer that you will be using with th...

Page 21: ... program can change these settings at power up or during execution of an application Consult your computer or software manual information regarding the change of typematic rates New To create a new configuration go to the File menu and select New This will return the configuration to its default settings Open Choose this selection to open a configuration file previously saved on your computer Save...

Page 22: ...correctly create a Macro you should first understand how the PC keyboard sends its information to the PC When you press a key on your computer keyboard the keyboard sends a Make code as soon as it sees the key pressed When the key is released the keyboard sends a Break code to the computer to let it know that the key has been released When programming Macros you create a series of these Make and B...

Page 23: ...reas the MAKE section and the BREAK section The MAKE section contains the keystrokes that you want to KE24 to send when the input becomes active The BREAK section contains the keystrokes to be sent when that input is released Although keys in the MAKE and BREAK sections default to 22 t g n r ...

Page 24: ...E24 to send an A keystroke to the computer when your input is released program a Make code for that key in the first section under the BREAK area and the Break code for the key in the second BREAK section To create a delay between steps in a macro click on an unused step in the macro dialog then click DELAY at the bottom of the keyboard representation Enter the desired delay time in the window tha...

Page 25: ...ount of Macro memory available Each keystroke occupies one position in the Macro memory When the Macro memory is full you may not create any more Macros Below is an example of a completed matrix and set of inputs 24 t e l u a o o s e d e g e s n y d e e ...

Page 26: ...ting Temp 0 to 70 degrees C PC Interface XT or AT PC Compatible 5 pin DIN Keyboard Interface XT or AT Compatible 5 pin DIN Serial Port RS 232 300 Baud to 19 200 8 N 1 I O Header 24 I O up to 12x12 Matrix programmable Req Input Current 1 ma of sink current in for discrete inputs 25 3 0 Note Maximum Height 91 125 Dia 4 150 150 4 0 ...

Page 27: ...nector to the KE24 to supply the 5 volts Special care must be taken to assure the proper polarity of the voltage The supply must be within 4 75 to 5 25 volts DC Note Reverse connection of the supply voltage will permanently damage the unit Use 5 volt source only Do not attempt this connection if you are uncertain of your power supply voltage or polarity NEVER attach a KE24 that is powered from an ...

Page 28: ... in certain situations as decribed above When using the jumper the KE24 must be powered up with this programming jumper in place to en ter the program mode When programming the KE24 the user nor mally connects the se rial cable as described above and uses the KE24Load program that comes with the unit to set up the KE24 with no jumper required Programming Jumper 1 With power off place the enclosed ...

Page 29: ...24 make sure that the keyboard itself is configured for the type of computer you have specified in the configuration XT or AT compatible The maximum recommended cable length from your computer to the KE24 is 10 feet This distance is also the maximum length that you should use on connections from the switches or keypads in your applications to the KE24 I O header If your KE24 will not communicate w...

Page 30: ...oll free at 888 690 9080 E mail sales hagstromelectronics com Log on to our website at www hagstromelectronics com 29 MTA 100 13 12 Cable set connects to KE24 header Brings each pin to a discrete wire 12 in long KE MM6 mini Connect from Encoder to PC 6 pin mini connector KE DB9MF 9 pin serial DB9 cable 6 ft Male to Female configuration ...

Page 31: ...live you may have additional rights Great care has been taken during the assembly testing and burn in of your KE24 to ensure its performance If you have any questions please send us an email or give us a call Support is available Monday through Friday 8 00 am to 5 00 pm EST customer service email sales hagstromelectronics com Call Toll Free 888 690 9080 or 540 465 4677 NOTICE The KE24 product is d...

Page 32: ...5 4677 Fax 540 465 4678 Monday through Friday 8 00 am to 5 00 pm EST sales hagstromelectronics com www hagstromelectronics com 1986 Junction Road Strasburg VA 22657 Copyright 2017 HAGSTROM ELECTRONICS INC V 07 16 HAGSTROM ELECTRONICS INC ...

Reviews: