對(duì)于很多同學(xué)來講,在PLC編程、HMI組態(tài)中,特別是PLC通訊編程中經(jīng)常會(huì)碰到這個(gè)問題。比如標(biāo)準(zhǔn)的ASCII編碼轉(zhuǎn)換,需要對(duì)照對(duì)應(yīng)表。多年前我為了方便還自己做了文檔。比如下面這樣的:【在線工具,在二樓】
ASCII碼 | 字符 |
16進(jìn)制 | 10進(jìn)制 | 2進(jìn)制 |
0x00 | 0 | 00000000 | NUL 空 |
0x01 | 1 | 00000001 | SOH 標(biāo)題開始 |
0x02 | 2 | 00000010 | STX 正文開始 |
0x03 | 3 | 00000011 | ETX 正文結(jié)束 |
0x04 | 4 | 00000100 | EOT 傳輸結(jié)束 |
0x05 | 5 | 00000101 | ENQ 詢問字符 |
0x06 | 6 | 00000110 | ACK 承認(rèn) |
0x07 | 7 | 00000111 | BEL 報(bào)警 |
0x08 | 8 | 00001000 | BS 退一格 |
0x09 | 9 | 00001001 | HT 橫向制表 |
0x0A | 10 | 00001010 | LF 換行 |
0x0B | 11 | 00001011 | VT 垂直制表 |
0x0C | 12 | 00001100 | FF 走紙控制 |
0x0D | 13 | 00001101 | CR 回車 |
0x0E | 14 | 00001110 | SO 移位輸出 |
0x0F | 15 | 00001111 | SI 移位輸入 |
0x10 | 16 | 00010000 | DLE 數(shù)據(jù)鏈路轉(zhuǎn)義 |
0x11 | 17 | 00010001 | DC1 設(shè)備控制1 |
0x12 | 18 | 00010010 | DC2 設(shè)備控制2 |
0x13 | 19 | 00010011 | DC3 設(shè)備控制3 |
0x14 | 20 | 00010100 | DC4 設(shè)備控制4 |
0x15 | 21 | 00010101 | NAK 否定 |
0x16 | 22 | 00010110 | SYN 空轉(zhuǎn)同步 |
0x17 | 23 | 00010111 | ETB 信息組傳送結(jié)束 |
0x18 | 24 | 00011000 | CAN 作廢 |
0x19 | 25 | 00011001 | EM 紙盡 |
0x1A | 26 | 00011010 | SUB 換置 |
0x1B | 27 | 00011011 | ESC 換碼 |
0x1C | 28 | 00011100 | FS 文字分隔符 |
0x1D | 29 | 00011101 | GS 組分隔符 |
0x1E | 30 | 00011110 | RS 記錄分隔符 |
0x1F | 31 | 00011111 | US 單元分隔符 |
0x20 | 32 | 00100000 | (space) |
0x21 | 33 | 00100001 | ! |
0x22 | 34 | 00100010 | ” |
0x23 | 35 | 00100011 | # |
0x24 | 36 | 00100100 | $ |
0x25 | 37 | 00100101 | % |
0x26 | 38 | 00100110 | & |
0x27 | 39 | 00100111 | ' |
0x28 | 40 | 00101000 | ( |
0x29 | 41 | 00101001 | ) |
0x2A | 42 | 00101010 | * |
0x2B | 43 | 00101011 | + |
0x2C | 44 | 00101100 | , |
0x2D | 45 | 00101101 | - |
0x2E | 46 | 00101110 | . |
0x2F | 47 | 00101111 | / |
0x30 | 48 | 00110000 | 0 |
0x31 | 49 | 00110001 | 1 |
0x32 | 50 | 00110010 | 2 |
0x33 | 51 | 00110011 | 3 |
0x34 | 52 | 00110100 | 4 |
0x35 | 53 | 00110101 | 5 |
36 | 54 | 00110110 | 6 |
0x37 | 55 | 00110111 | 7 |
0x38 | 56 | 00111000 | 8 |
0x39 | 57 | 00111001 | 9 |
0x3A | 58 | 00111010 | : |
0x3B | 59 | 00111011 | ; |
0x3C | 60 | 00111100 | < |
0x3D | 61 | 00111101 | = |
0x3E | 62 | 00111110 | > |
0x3F | 63 | 00111111 | ? |
0x40 | 64 | 01000000 | @ |
0x41 | 65 | 01000001 | A |
0x42 | 66 | 01000010 | B |
0x43 | 67 | 01000011 | C |
0x44 | 68 | 01000100 | D |
0x45 | 69 | 01000101 | E |
0x46 | 70 | 01000110 | F |
0x47 | 71 | 01000111 | G |
0x48 | 72 | 01001000 | H |
0x49 | 73 | 01001001 | I |
0x4A | 74 | 01001010 | J |
0x4B | 75 | 01001011 | K |
0x4C | 76 | 01001100 | L |
0x4D | 77 | 01001101 | M |
0x4E | 78 | 01001110 | N |
0x4F | 79 | 01001111 | O |
0x50 | 80 | 01010000 | P |
0x51 | 81 | 01010001 | Q |
0x52 | 82 | 01010010 | R |
0x53 | 83 | 01010011 | S |
0x54 | 84 | 01010100 | T |
0x55 | 85 | 01010101 | U |
0x56 | 86 | 01010110 | V |
0x57 | 87 | 01010111 | W |
0x58 | 88 | 01011000 | X |
0x59 | 89 | 01011001 | Y |
0x5A | 90 | 01011010 | Z |
0x5B | 91 | 01011011 | [ |
0x5C | 92 | 01011100 | \ |
0x5D | 93 | 01011101 | ] |
0x5E | 94 | 01011110 | ^ |
0x5F | 95 | 01011111 | _ |
0x60 | 96 | 01100000 | ` |
0x61 | 97 | 01100001 | a |
0x62 | 98 | 01100010 | b |
0x63 | 99 | 01100011 | c |
0x64 | 100 | 01100100 | d |
0x65 | 101 | 01100101 | e |
0x66 | 102 | 01100110 | f |
0x67 | 103 | 01100111 | g |
0x68 | 104 | 01101000 | h |
0x69 | 105 | 01101001 | i |
0x6A | 106 | 01101010 | j |
0x6B | 107 | 01101011 | k |
0x6C | 108 | 01101100 | l |
0x6D | 109 | 01101101 | m |
0x6E | 110 | 01101110 | n |
0x6F | 111 | 01101111 | o |
0x70 | 112 | 01110000 | p |
0x71 | 113 | 01110001 | q |
0x72 | 114 | 01110010 | r |
0x73 | 115 | 01110011 | s |
0x74 | 116 | 01110100 | t |
0x75 | 117 | 01110101 | u |
0x76 | 118 | 01110110 | v |
0x77 | 119 | 01110111 | w |
0x78 | 120 | 01111000 | x |
0x79 | 121 | 01111001 | y |
0x7A | 122 | 01111010 | z |
0x7B | 123 | 01111011 | { |
0x7C | 124 | 01111100 | | |
0x7D | 125 | 01111101 | } |
0x7E | 126 | 01111110 | ~ |
0x7F | 127 | 01111111 | DEL 刪除 |