Intermec CV30 Intermec Terminal Emulator (ITE) Programmer's Reference Manual - Page 74

Parameters, Lock Parameter, Example

Page 74 highlights

Chapter 2 - About VT/ANSI Programming • DCS indicates the beginning of a device control string. DCS is an 8-bit C1 character (90 hexadecimal). You can use ESC P (1B and 50 hexadecimals) for a 7bit environment. • Pc is the clear parameter that selects how to clear key definitions. Parameters Pc 0 (default) or none 1 Meaning Clear all keys before loading new values. Clear one key at a time, before loading a new value. When Pc is 1, the computer only clears the keys you are loading. By using a Pc value of 1, you can redefine some keys without redefining them all. Note: There are 256 bytes of memory for all UDKs. A key definition can only use the number of bytes available when that key is loaded. Example: If Pc is 1, a key load may fail because no memory space is available. The reason for this is, with Pc set to 1, keys are cleared and loaded sequentially. If the new definition for a key is larger than the old one you may exceed the 256-byte limit. Suppose F6 contains 120 bytes, F7 contains 110 bytes, and F8 contains 20 bytes. You try to load F8 with 40 bytes, F6 with 1 byte, and F7 with 1 byte, in that order. This works if all keys are cleared first (Pc is 0), but not if keys are cleared one at a time (Pc is 1). When you try to load F8 with 40 bytes, the load fails because only 26 bytes are free at that time. (256 maximum - 120 in F6 - 110 in F7 = 26.) Pl is the lock parameter. Pl determines whether the key definitions are locked or unlocked after you load them. Lock Parameter Pl 0 1 (default) or none Meaning Lock the keys. If you want to load new values into the keys, you must unlock the keys through the computer's firmware menus. Do not lock the keys. Keys are unlocked and can be redefined with another DECUDK string. Note: If Pl is 1 and the keys are already locked, nothing happens. The computer ignores UDK DSR exchanges. The computer uses a special lock to allow or prevent the programming of UDKs. You can turn on this lock through the computer firmware menus or from the host (with a DECUDK device control string). The lock affects all programmable keys. When using the lock follow these guidelines: • Unlock the keys to define them. The keys must be unlocked before you can define them. You can only unlock the keys through the computer firmware 62 Intermec Terminal Emulator (ITE) Programmer's Reference Manual

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 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
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184

Chapter 2 — About VT/ANSI Programming
62
Intermec Terminal Emulator (ITE) Programmer’s Reference Manual
DCS indicates the beginning of a device control string. DCS is an 8-bit C1
character (90 hexadecimal). You can use ESC P (1B and 50 hexadecimals) for a 7-
bit environment.
Pc is the clear parameter that selects how to clear key definitions.
When Pc is 1, the computer only clears the keys you are loading. By using a Pc value
of 1, you can redefine some keys without redefining them all.
If Pc is 1, a key load may fail because no memory space is available. The reason for
this is, with Pc set to 1, keys are cleared and loaded sequentially. If the new definition
for a key is larger than the old one you may exceed the 256-byte limit.
Example:
Suppose F6 contains 120 bytes, F7 contains 110 bytes, and F8 contains 20 bytes. You
try to load F8 with 40 bytes, F6 with 1 byte, and F7 with 1 byte, in that order. This
works if all keys are cleared first (Pc is 0), but not if keys are cleared one at a time (Pc
is 1). When you try to load F8 with 40 bytes, the load fails because only 26 bytes are
free at that time. (256 maximum – 120 in F6 – 110 in F7 = 26.)
Pl is the lock parameter. Pl determines whether the key definitions are locked or
unlocked after you load them.
The computer uses a special lock to allow or prevent the programming of UDKs.
You can turn on this lock through the computer firmware menus or from the host
(with a DECUDK device control string). The lock affects all programmable keys.
When using the lock follow these guidelines:
Unlock the keys to define them. The keys must be unlocked before you can
define them. You can only unlock the keys through the computer firmware
Parameters
Pc
Meaning
0 (default) or none
Clear all keys before loading new values.
1
Clear one key at a time, before loading a new value.
Note:
There are 256 bytes of memory for all UDKs. A key definition can only use
the number of bytes available when that key is loaded.
Lock Parameter
Pl
Meaning
0
Lock the keys. If you want to load new values into the keys, you
must unlock the keys through the computer’s firmware menus.
1 (default) or none
Do not lock the keys. Keys are unlocked and can be redefined
with another DECUDK string.
Note
: If Pl is 1 and the keys are already locked, nothing happens. The computer
ignores UDK DSR exchanges.