Oki ML591 MICROLINE Reference Manual - Page 133

Vertical Format Unit [VFU] Commands Epson

Page 133 highlights

Vertical Format Unit [VFU] Commands (Epson) ߜ ML320 E/I, ML321 E/I ߜ ML320 Turbo, ML321 Turbo ߜ ML390 Turbo, ML391 Turbo ߜ ML520, ML521 ߜ ML590, ML591 Function Set Vertical Format Unit (VFU) Select Vertical Tab Channel ASCII ESC b m n1 n2 ... nk NUL ESC / n Dec 27 98 m n1 n2 ... nk 0 27 47 n Hex 1B 62 m n1 n2 ... nk 00 1B 2F n The Epson emulation gives you the option of setting up to eight separate channels of vertical tab stops using the command ESC b m n1 n2 ... nk NUL. Parameter m Parameter m designates the channel to which the tab stops are being assigned and can have any whole number value from 0 to 7. Parameters n1 through nk Parameters n1 through nk designate the individual stops for each channel. You can set up to 16 stops (n1 through n16). The value of n can be any whole number from 0 to 255, designating how many lines to skip down to that tab stop. You must enter the stops in increasing order (n1 > n2 > n3, etc.), and end the series with the NUL character. Once you've set up the channels you're using, send the ESC / n command to specify which channel to select (replace n with desired channel number, 0 through 7), followed by the VT command to advance to the next tab stop in the selected sequence. For example, the following BASIC program will set stops in three channels, and then perform a series of vertical tabs in the different channels: 5 REM Stops in channel 0: lines 10, 20, 30, 40, 50 10 LPRINT CHR$(27);"b";CHR$(0);CHR$(10);CHR$(20);CHR$(30); CHR$(40);CHR$(50);CHR$(0) 20 REM Stops in channel 1: lines 5, 15, 35, 45, 55 30 LPRINT CHR$(27);"b";CHR$(1);CHR$(5);CHR$(15);CHR$(35);CHR$(45); CHR$(55);CHR$(0) 40 REM Stops in channel 2: lines 12, 24, 48 50 LPRINT CHR$(27);"b";CHR$(2);CHR$(12);CHR$(24); CHR$(48);CHR$(0) 60 LPRINT CHR$(27);"/";CHR$(1): REM Select channel 1 70 LPRINT CHR$(11);"This prints on line 5" 80 LPRINT CHR$(11);CHR$(11);"This prints on line 35" 90 LPRINT CHR$(27);"/";CHR$(2): REM Select channel 2 100 LPRINT CHR$(11);"This prints on line 48" 110 LPRINT CHR$(27);"/";CHR$(0): REM Select channel 0 120 LPRINT CHR$(11);"This prints on line 50" Chapter 9: Vertical Control Commands 95

  • 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
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180

Chapter 9: Vertical Control Commands
95
Vertical Format Unit [VFU] Commands (Epson)
±
ML320 E/I, ML321 E/I
±
ML320 Turbo, ML321 Turbo
±
ML520, ML521
±
ML390 Turbo, ML391 Turbo
±
ML590, ML591
Function
ASCII
Dec
Hex
Set Vertical Format
Unit (VFU)
ESC b m n
1
n
2
... n
k
NUL
27 98 m n
1
n
2
... n
k
0
1B 62 m n
1
n
2
...
n
k
00
Select Vertical Tab
Channel
ESC / n
27 47 n
1B 2F n
The Epson emulation gives you the option of setting up to eight separate channels of vertical
tab stops using the command ESC b m n
1
n
2
... n
k
NUL.
Parameter m
Parameter m designates the channel to which the tab stops are being assigned and can have
any whole number value from 0 to 7.
Parameters n
1
through n
k
Parameters n
1
through n
k
designate the individual stops for each channel. You can set up to 16
stops (n
1
through n
16
). The value of n can be any whole number from 0 to 255, designating how
many lines to skip down to that tab stop. You must enter the stops in increasing order (n
1
> n
2
>
n
3
, etc.), and end the series with the NUL character.
Once you've set up the channels you're using, send the ESC / n command to specify which
channel to select (replace n with desired channel number, 0 through 7), followed by the VT
command to advance to the next tab stop in the selected sequence.
For example, the following BASIC program will set stops in three channels, and then perform a
series of vertical tabs in the different channels:
5 REM Stops in channel 0: lines 10, 20, 30, 40, 50
10 LPRINT CHR$(27);"b";CHR$(0);CHR$(10);CHR$(20);CHR$(30);
CHR$(40);CHR$(50);CHR$(0)
20 REM Stops in channel 1: lines 5, 15, 35, 45, 55 30 LPRINT
CHR$(27);"b";CHR$(1);CHR$(5);CHR$(15);CHR$(35);CHR$(45);
CHR$(55);CHR$(0)
40 REM Stops in channel 2: lines 12, 24, 48
50 LPRINT CHR$(27);"b";CHR$(2);CHR$(12);CHR$(24); CHR$(48);CHR$(0)
60 LPRINT CHR$(27);"/";CHR$(1): REM Select channel 1
70 LPRINT CHR$(11);"This prints on line 5"
80 LPRINT CHR$(11);CHR$(11);"This prints on line 35"
90 LPRINT CHR$(27);"/";CHR$(2): REM Select channel 2
100 LPRINT CHR$(11);"This prints on line 48"
110 LPRINT CHR$(27);"/";CHR$(0): REM Select channel 0
120 LPRINT CHR$(11);"This prints on line 50"