
14
The ASCII characters are derived as per the following table:
Value Hex Value Binary Value ASCII Character ASCII Code
(Hex) (Decimal)
00 0 0000 0 30 48
01 1 0001 1 31 49
02 2 0010 2 32 50
03 3 0011 3 33 51
04 4 0100 4 34 52
05 5 0101 5 35 53
06 6 0110 6 36 54
07 7 0111 7 37 55
08 8 1000 8 38 56
09 9 1001 9 39 57
10 A 1010 : 3A 58
11 B 1011 ; 3B 59
12 C 1100 < 3C 60
13 D 1101 = 3D 61
14 E 1110 > 3E 62
15 F 1111 ? 3F 63
Examples:
I/O Line Nrs - Groups
GROUP 6 5 4 3 2 1
----- ----------- ----------- ----------- ----------- -----------
LINE # 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Write
Output -- -- -- -- -- -- 1 1 0 0 0 0 1 1 1 1 1 1 0 0 0 1
Command:
XOF<3?1 <CR> <LF>
Turns on Outputs 15, 14, 09, 08, 07, 06, 05, 04, 00
Turns off Outputs 13, 12, 11, 10, 03, 02, 01
GROUP 6 5 4 3 2 1
----- ----------- ----------- ----------- ----------- -----------
LINE # 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Read
Status 1 1 0 0 0 0 0 0 0 1 1 1 1 1 1 0 0 1 0 0 0 1
Command:
XSF <CR>
Read all lines
Response:
XS301?91 <CR><LF>
Indicates line status as in example above:
Lines 21, 20, 12, 11, 10, 09, 08, 07, 04, 00 are High (ON)
Lines 19, 18, 17, 16, 15, 14, 13, 06, 05, 03, 02, 01 are Low (OFF)
Komentarze do niniejszej Instrukcji