Matrix Orbital PK202-25 User Manual
Page 3
4 Keypad Interface
19
4.1 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.2 Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.3 I
2
C Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.4 RS-232 Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.5 Keypad Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
4.5.1 Auto repeat mode on (254 126 [mode]) (R) . . . . . . . . . . . . . . . . . . . . . . 21
4.5.2 Auto repeat mode off (254 96) (R) . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
4.5.3 Auto transmit keypresses on (254 65) (R) . . . . . . . . . . . . . . . . . . . . . . . 22
4.5.4 Auto transmit keypresses off (254 79) (R) . . . . . . . . . . . . . . . . . . . . . . . 22
4.5.5 Clear key buffer (254 69) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
4.5.6 Poll keypad (254 38) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
4.5.7 Set debounce time (254 85 [time]) (R) . . . . . . . . . . . . . . . . . . . . . . . . . 22
5 Bar Graphs and Special Characters
22
5.1 Command List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.1.1 Initialize wide vertical bar graph (254 118) . . . . . . . . . . . . . . . . . . . . . . 23
5.1.2 Initialize narrow vertical bar graph (254 115) . . . . . . . . . . . . . . . . . . . . . 23
5.1.3 Draw vertical bar graph (254 61 [column] [height]) . . . . . . . . . . . . . . . . . . 23
5.1.4 Initialize horizontal bar graph (254 104) . . . . . . . . . . . . . . . . . . . . . . . . 23
5.1.5 Draw horizontal bar graph (254 124 [column] [row] [dir] [length]) . . . . . . . . . . 23
5.1.6 Define custom character (254 78 [c] [8 bytes]) . . . . . . . . . . . . . . . . . . . . 24
5.1.7 Initialize Medium Digits (254 109) . . . . . . . . . . . . . . . . . . . . . . . . . . 25
5.1.8 Draw Medium Digits (254 111 [row][column][digit]) . . . . . . . . . . . . . . . . . 25
6 Miscellaneous Commands
25
6.1 Command List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
6.1.1 Remember (254 147 [0|1]) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
6.1.2 Clear display (254 88) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
6.1.3 Set brightness (254 89 [brightness]) (R) . . . . . . . . . . . . . . . . . . . . . . . . 26
6.1.4 Set brightness and Save (254 145 [brightness]) (R) . . . . . . . . . . . . . . . . . . 26
6.1.5 Display on (254 66 [minutes]) (R) . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
6.1.6 Display off (254 70) (R) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
6.1.7 Load startup screen (254 64 [40 characters]) . . . . . . . . . . . . . . . . . . . . . 26
6.1.8 General purpose output off (254 86 [gpo #]) . . . . . . . . . . . . . . . . . . . . . . 27
6.1.9 General purpose output on (254 87 [gpo #]) . . . . . . . . . . . . . . . . . . . . . . 27
6.1.10 Remember GPO State (254 195 [gpo#][gpo value]) . . . . . . . . . . . . . . . . . . 27
6.1.11 Set I
2
C address (254 51 [address]) (R) . . . . . . . . . . . . . . . . . . . . . . . . . 27
6.1.12 Read module type (254 55) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
6.1.13 Set RS-232 port speed (254 57 [speed]) (R) . . . . . . . . . . . . . . . . . . . . . . 28
6.1.14 Set Serial Number (254 52 [byte1] [byte2]) . . . . . . . . . . . . . . . . . . . . . . 28
6.1.15 Read Serial Number (254 53) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
6.1.16 Read Version Number (254 54) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
6.2 Flow Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
6.2.1 Enter Flow Control Mode (254 58 [full][empty]) . . . . . . . . . . . . . . . . . . . 29
6.2.2 Exit Flow Control Mode (254 59) . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Matrix Orbital
PK202-25
iii