Oki X400 X400 Programming Command Manual - Page 132

<ESC>A, <ESC>K1B3F, <ESC>Z, <ESC>L0303<ESC>H125<ESC>V250<ESC&

Page 132 highlights

6. To store the custom designed character in memory using a binary data stream, the command would be: A K1B3F 01H 00H 03H 80H 07H C0H 0FH E0H 1FH F0H 3FH F8H 7FH FCH FFH FEH 07H C0H 07H C0H 07H C0H 07H C0H 07H C0H 07H C0H 07H C0H 07H C0H Z Note: Spaces are shown between hexadecimal values in the above example for clarity only and are not included in the data string. Note that the data string is only half as long as the hexadecimal format. This is because we can send the binary equivalent of "11111111" (represented above in its hexadecimal value of FFH), for example, using one eight bit word while it takes two eight bit words to transmit the hexadecimal equivalent "F" and "F". To send binary characters using BASIC, the expression CHR(&HFF) will send the binary equivalent of FF (i.e. 11111111). 7. To recall the custom character from memory, send the following code to the printer: A L0505H150V100K1H903F L0505H600V100K1H903F L0303H125V250MTHIS SIDE UP ! Q1Z The printer output for both hexadecimal and binary format examples is: 130

  • 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

6.
To store the custom designed character in memory using a binary data stream, the command would be:
<ESC>A
<ESC>K1B3F
01
H
00
H
03
H
80
H
07
H
C0
H
0F
H
E0
H
1F
H
F0
H
3F
H
F8
H
7F
H
FC
H
FF
H
FE
H
07
H
C0
H
07
H
C0
H
07
H
C0
H
07
H
C0
H
07
H
C0
H
07
H
C0
H
07
H
C0
H
07
H
C0
H
<ESC>Z
Note: Spaces are shown between hexadecimal values in the above example for clarity only and
are not included in the data string.
Note that the data string is only half as long as the hexadecimal format. This is because we can send the
binary equivalent of “11111111” (represented above in its hexadecimal value of FF
H
), for example, using
one eight bit word while it takes two eight bit words to transmit the hexadecimal equivalent “F” and “F”.
To send binary characters using BASIC, the expression CHR(&HFF) will send the binary equivalent of
FF (i.e. 11111111).
7.
To recall the custom character from memory, send the following code to the printer:
<ESC>A
<ESC>L0505<ESC>H150<ESC>V100<ESC>K1H903F
<ESC>L0505<ESC>H600<ESC>V100<ESC>K1H903F
<ESC>L0303<ESC>H125<ESC>V250<ESC>MTHIS SIDE UP !
<ESC>Q1<ESC>Z
The printer output for both hexadecimal and binary format examples is:
130