Kyocera KM-8030 PRESCRIBE Commands Technical Reference Manual - Rev. 4.7 - Page 19

Character Strings

Page 19 highlights

Command Parameters For computer code values beyond four decimal places, the fifth and subsequent decimal places are ignored. Examples: Number output by computer Number used by printing system 1234.1234 1234.1234 -1234.1234 -1234.1234 0.123456 0.1234 Some commands have angle parameters. Angles are specified in degrees. (The printing system does not recognize radians). The printing system rounds off all angles to the nearest integral degree. Only angles in the range from -360 degrees to 360 degrees are recognized. Angles less than -360 degrees are ignored, and angles greater than 360 degrees are treated as the remainder of the angle divided by 360. Examples: Angle output by computer Angle used by printing system (degrees) 90 90 -90 -90 90.4 90 90.5 91 -400 Ignored The printing system does not accept the exponential notation used in some computer languages. For example, do not specify 1E-3 instead of 0.001. Character Strings PRESCRIBE text-printing commands have parameters that consist of character strings. A character string is any string of characters enclosed by quotation marks or apostrophes, such as shown in the example below. TEXT 'You are about to enter PRESCRIBE.'; PRESCRIBE allows character strings to be enclosed in either single quotation marks (apostrophes) or double quotation marks. The following example has exactly the same meaning as the one above. TEXT "You are about to enter PRESCRIBE."; The beginning of a character string is recognized when the first single or double quotation mark appears. If the beginning quotation mark is a single quotation mark, the string does not end until the next single quotation mark. If the beginning quotation mark is a double quotation mark, the string does not end until the next double quotation mark. Whatever comes in the middle of a character string, including commas, semicolons, and even PRESCRIBE command names, is recognized as part of the character string, and not as part of the PRESCRIBE command language. For example, the expression EXIT; in the following string is just text; it does not cause the printing system to exit from the PRESCRIBE mode. TEXT 'NO EXIT; NO RETURN.'; When the string itself contains one type of quotation mark, the quotation mark must be enclosed in quotes of the other type. Here are two examples: 1-11

  • 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
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257
  • 258
  • 259
  • 260

Command Parameters
1-11
For computer code values beyond four decimal places, the fifth and subsequent decimal
places are ignored.
Examples:
Some commands have angle parameters. Angles are specified in degrees. (The printing
system does not recognize radians). The printing system rounds off all angles to the near-
est integral degree. Only angles in the range from -360 degrees to 360 degrees are recog-
nized. Angles less than -360 degrees are ignored, and angles greater than 360 degrees are
treated as the remainder of the angle divided by 360.
Examples:
The printing system does not accept the exponential notation used in some computer lan-
guages. For example, do not specify 1E-3 instead of 0.001.
Character Strings
PRESCRIBE text-printing commands have parameters that consist of character strings.
A character string is any string of characters enclosed by quotation marks or apostrophes,
such as shown in the example below.
TEXT ’You are about to enter PRESCRIBE.’;
PRESCRIBE allows character strings to be enclosed in either single quotation marks
(apostrophes) or double quotation marks. The following example has exactly the same
meaning as the one above.
TEXT "You are about to enter PRESCRIBE.";
The beginning of a character string is recognized when the first single or double quota-
tion mark appears. If the beginning quotation mark is a single quotation mark, the string
does not end until the next single quotation mark. If the beginning quotation mark is a
double quotation mark, the string does not end until the next double quotation mark.
Whatever comes in the middle of a character string, including commas, semicolons, and
even PRESCRIBE command names, is recognized as part of the character string, and not
as part of the PRESCRIBE command language. For example, the expression EXIT; in
the following string is just text; it does not cause the printing system to exit from the
PRESCRIBE mode.
TEXT ’NO EXIT; NO RETURN.’;
When the string itself contains one type of quotation mark, the quotation mark must be
enclosed in quotes of the other type. Here are two examples:
Number output by computer
Number used by printing system
1234.1234
1234.1234
-1234.1234
-1234.1234
0.123456
0.1234
Angle output by computer
Angle used by printing system (degrees)
90
90
-90
-90
90.4
90
90.5
91
-400
Ignored