________________________________________________________________________________________________________________
12-20-2002
Figure Sheet 1-853-A
Page 37
CDP-01 Key Codes
The CDP-01 keypad is shown below, along with the key codes for each key. The key codes can be
used to send a command to the CDP-01 to simulate a key pressed on the CDP-01 keypad.
Commands are sent via a 16 bit command word, Register 0 in Table 4-1. Commands are issued by
placing an 8-bit “command” byte in the lower half of the command word and an 8-bit “action” byte in
the upper half of the command word. The “Key Pressed’ command is byte 0x13. The “Manual” key
code is 0x88. To simulate that the “Manual” key is pressed, send the command word 0x8813 to the
CDP-01. As long as the command is issued, the CDP-01 acts as though the key is being held down.
Even the actual keys on the CDP-01 keypad will be ignored until the command is cleared by writing
zero 0x0000 to the command word. This provides the ability to lock out the CDP-01 keypad. If local
keypad operation was needed concurrently with network control, the command should be maintained
until the correct feedback is obtained. Feedback is obtained by monitoring the CDP-01 status data
block parameters of Section 5. For instance, Register 0x40D could be monitored to verify that the key
pressed command was received and Register 0x405 could be monitored to see what the CDP-01
response was to the key pressed command.
Figure 6-2: CDP-01 Key Codes
Simulating Dual-Key Presses
It is also possible to simulate dual-key presses. Single-key presses contain a value like 0x44 for “jog
minus” or 0x55 for “jog plus.” To simulate two keys pressed simultaneously, combine the two key
codes like this: “job minus” combined with “jog plus” is 0x54. Any two keys can be combined as long
as the key code with the higher value is placed in the upper nibble. This allows simulation of setup
functions. Key combinations of three keys or more cannot be simulated by network commands.
KEY
HEX
CODE
Automatic 0xAA
Servo-Center 0x99
Manual 0x88
F1 0xCC
F2 0xDD
F3 0xEE
ASC 0xFF
Sensor 0xBB
Setup 0x66
Jog Minus
0x44
Drive Select
0x77
Jog Plus
0x55