Siemens SIMATIC RF310M Function Manual page 38

Rfid systems mobile reader
Hide thumbs Also See for SIMATIC RF310M:
Table of Contents

Advertisement

RFID Reader Interface User's Guide
2.3 Extending the Reach
These calls to PsionTeklogix.Keyboard.KeyRemapper select the key in question with the first
parameter and provide new keycodes wih the last parameter. After this initialization we can
rewrite our keyhandler as follows:
protected void KeyDownHandler(object sender, KeyEventArgs e)
{
switch (e.KeyValue)
{
}
}
Now we know which key was pressed and can implement a different behavior for each of
them if wanted.
The key mapping stays active until a cold reset, a redefinition or if we manually remove the
key mapping again. As we want to leave the system as clean as we found it, we undo our
key mapping before exiting:
...
// Make our key mapping undone again
PsionTeklogix.Keyboard.KeyRemapper Rf610MKeyRemapper =
Rf610MKeyRemapper.Remove(0x38, null);
Rf610MKeyRemapper.Remove(0x39, null);
Rf610MKeyRemapper.Remove(0x3A, null);
Rf610MKeyRemapper.Remove(0x01, null);
...
38
...
case (int)PsionTeklogix.Keyboard.VirtualKey.VK_F25:
// right scan key pressed
...
break;
case (int)PsionTeklogix.Keyboard.VirtualKey.VK_F26:
// pistol grip key pressed
...
break;
case (int)PsionTeklogix.Keyboard.VirtualKey.VK_F27:
// left scan key pressed
...
break;
case (int)PsionTeklogix.Keyboard.VirtualKey.VK_F28:
// top scan key pressed
...
break;
...
new
KeyRemapper();
Function Manual, 02/2009, J31069-D0198-U001-A1-0076
Mobile Reader

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic rf610m

Table of Contents