Oki X400 Manual

Manual is about: X400 Programming Command Manual

Summary of X400

  • Page 1

    Table of contents okipos x400 programming guide introduction .........................1 the oki data programming language ...............1 selecting protocol control codes ................2 using basic..........................2 printing with the parallel port...................3 printing with the r...

  • Page 2

    Ii print length, expanded...................51 line feed ........................52 media size ........................54 postnet ..........................55 print position .......................56 print quantity .......................58 print speed ........................59 repeat label ..........

  • Page 3

    1 okipos x400 programming guide introduction this section presents the commands that are used with the okipos x400 printer to produce labels with logos, bar codes, and alphanumeric data. The commands listed include all revisions of firmware. The following information is presented in this section: th...

  • Page 4

    This commands set the operational parameters of the printer, “set the print speed to 3.” {command} {parameter} {data} some commands can contain both parameter and data elements, such as “print a code 39 symbol containing the data.” selecting protocol control codes protocol codes are special control ...

  • Page 5

    Characters after every line. The command string should be continuous and uninterrupted by and/or commands. The examples given in this manual are printed on separate lines because they will not fit on one line and do not contain any and/or characters. If these characters are needed, they are explicit...

  • Page 6

    Printing with the rs232 port 5 10 20 30 40 50 60 rem rs232 example e$=chr$(27) open “com1:9600,n,8,1,cs,ds” as #1 print #1,e$;”a”; print #1,e$;”h400”;e$;”v100”;e$;”wl1oki”; print #1,e$;”q1”; print #1,e$;”z”; identifies the program as a rs232 port print label. The “rem” prevents this data from being ...

  • Page 7

    Label feed direction 4.1” print area 2:0” from edge 7” print area 3” label length 2:1” label width label your normal reference point h1, v1 the base reference point is always on the right edge of the print head as you face the front (label exit) of the printer. If you are using a label that is narro...

  • Page 8

    Note: after the reference point is moved, you can no longer print on the 426 dot “margin” unless the reference point is reset. 2. Use the normal reference point from the print area and use the horizontal position for each field to properly locate it on the label. Calculate the distance (in dots) fro...

  • Page 9

    V=100 if you are using a two inch wide label, the entire image may not appear on your label. By adding the following base reference point command to the second line of the data stream, the base reference point will be changed, causing the image to be shifted over toward the inside of the printer whe...

  • Page 10

    Rotated field the printers can rotate each print field in 90 o increments using the rotate command. There are two variations of this command. % - the field rotates, but the base reference point for the field remains the same. R - the field and the base reference point rotate. The following data stre...

  • Page 11

    Command default note print rotation 0 o (1) vertical reference point 0 (1) horizontal reference point 0 (1) character pitch 2 (1) base reference point h=0, v=0 (2) character expansion 1 (1) print darkness 200 (1) print speed 3 ips (2) notes: (1) the settings for these commands will revert to the def...

  • Page 12

    Bottom of the label liner or tag. The eye-mark must not reflect more than 12% of the light. Since the same receiving sensor is used for all three types of sensing, it must be calibrated with the media that will be used. The ribbon must be installed while the calibration is being performed. When cali...

  • Page 13

    1. Explain the different commands and provide examples of their usage. 2. To provide a detailed reference for programming. Each command begins on a separate page with its own heading. An uniform layout is used to help you find key information about each command. For each command code in this section...

  • Page 14

    Bar codes command structure 1:3 narrow/wide bar ratio: babbcccd 2:5 narrow/wide bar ratio: bdabbcccd 1:2 narrow/wide bar ratio: dabbcccd a = bar code symbol 0 codabar 1 code 39 2 interleaved 2 of 5 (i25) 3 upc-a/ean-13 4 ean-8 5 industrial 2 of 5 6 matrix 2 of 5 a msi c code 93 e upc-e f bookland g ...

  • Page 15

    Input to printer a h25v25b103100*code 39* h155v130xs*code 39* h25v200bd20210045676567 h75v310xm45676567 h25v375bd30215001234567890 h25v950ba03100123455 h95v1060xs12345 h25v1125bc03100081234abcd h80v1240xs1234abcd h525v25b002100a12345b h565v135xs123445 h475v200bd303100123456789012 h525v375bd403100123...

  • Page 16

    Printer output 14.

  • Page 17

    Ucc-128 without incrementing a h100v200bi04150101234567000000001 q2z with incrementing a h100v200f001+001bi04150101234567000000001 q2z 15.

  • Page 18

    Special notes 1. Upc and ean bar codes are not affected by the different types of narrow to wide ratios. Instead, the d command adds descender bar to these codes where needed to meet upc specification. The bd command puts descender bars and human readable text below the symbol. 2. The code 128, ucc ...

  • Page 19

    Bar codes, expansion command structure bwaabbb aa = expansion factor by which the width of all bars and spaces will be increased (01-12) bbb = bar height by dot (004 - 999 dots) example: bw02100 placement: immediately follows the bt command and precedes data to be encoded. Default: zero command func...

  • Page 20

    Bar codes, variable ratio command structure btabbccddee a = bar code symbol 0 codabar 1 code 39 2 interleaved 2 of 5 5 industrial 2 of 5 6 matrix 2 of 5 bb = narrow space in dots (01-99) cc = wide space in dots (01-99) dd = narrow bar in dots (01-99) ee = wide bar in dot (01-99) example: bt101030103...

  • Page 21

    Special notes 1. This command must be immediately follow by the bw bar code exp -ansion command. 2. You may use only one variable ratio bar code per label. 3. If the data specified in this command is incorrect, the command is ignored and the ratio used will be based on the previous setting. 19.

  • Page 22

    Base reference point command structure a3h-aaaavbbbb - = this character is optional. When present, it specifies that the horizontal offset is the negative direction. If it is left out the offset direction is positive. Aaaa = horizontal print offset (-832 to 0832) bbbb = vertical print offset (1 to 9...

  • Page 23

    Special notes 1. Use of this command will set the vertical/horizontal offset setting of the printer configuration until a new base reference point command is issued. 2. This command may be used more than once in a print job. 3. An alternative to using this command is to make changes to your current ...

  • Page 24

    Character, custom-designed command structure store command : tabcc recall command: kab90cc a = 1 16x16 matrix 2 24x24 matrix b = specifies the character encoding method for the data stream h hexadecimal characters b binary characters if b is specified than both 90 and cc codes are represented by one...

  • Page 25

    A h150v100l0505k1h903f h350v100l1010k1h903f q1z printer output special notes 1. When printing the custom character using the k recall command, the character is affected by the following commands: character expansion character pitch line feed rotate, fixed base reference point rotate, moving base ref...

  • Page 26

    Character expansion command structure laabb aa = multiple to expand horizontally (01~12) bb = multiple to expand vertically (01~12) example: l0304 placement: preceding the data to be expanded default: l0101 command function to expand characters independently in both the horizontal and vertical direc...

  • Page 27

    Special notes this command will expand the following fonts: 1. Fonts u, s, m xu, xs, xm, oa & ob and fonts wb, wl, xb, and xl. 2. This command will also affect the following commands: character pitch characters, custom-designed 3. The character expansion value is in effect for the current print job ...

  • Page 28

    Character, fixed spacing command structure pr example: see above placement: preceding the data. Default: the default is proportional spacing for proportional fonts. Command function to reset proportional spacing and place the printer to fixed spacing. Input to printer a h100v50ps l0101xmproportional...

  • Page 29

    Character pitch command structure paa aa = number of dots between characters (00 ~ 99). Example: p03 placement: preceding the text to be printed default: p02 command function to designate the amount of spacing (in dots) between characters. This com- mand provides a means of altering character spacin...

  • Page 30

    Special notes 1. This command is affected by the l character expansion command. The character pitch is actually the product of the current horizontal expansion multiple and the designed pitch value. Example: l0304 p03 pitch = (03) x (03) = 9 dots 2. To avoid confusion, you may want to include the l ...

  • Page 31

    Continuous forms printing command structure none the printer locates the end of adhesive label by sensing the backing between labels or through the use of an eye-mark (black rectangle on the reverse side of the backing). It locates the end of a tag from a notch, eye-mark, or a hole be- tween tags. B...

  • Page 32

    Character, proportional spacing command structure ps sets to proportional spacing. Pr resets to fixed spacing. Example: see above placement: preceding the data to be proportionally spaced. Default: ps command function to specify the printing of proportional or fixed spacing for proportionally spaced...

  • Page 33

    Clear print job(s) & memory command structure *a a = specifies the internal memory section to be cleared. T to clear the custom character memory. & to clear the form overlay memory. X to clear all internal memory. Example: *& placement: this command should be sent to the printer as an independent da...

  • Page 34

    Copy image area command structure wdhaaaavbbbbxccccydddd aaaa = horizontal position of the top left corner of the area to be copied 0001 to 832. Bbbb = vertical position of the top left corner of the area to be copied 0001 to 1424. Cccc = horizontal length of the image area to be copied 0001 to 832....

  • Page 35

    Special notes 1. Use the print position command (v and h) to locate the new area for the dup- licate image. 2. Position of the new target area must not be inside the original image. 3. If you use the rotate command, v, h, x and y axis will be reversed. 4. If the reference area of the target image ex...

  • Page 36

    Cutter command command structure cka a = cutter control 0 disables cutter. 1 enables cutter. Example: ck1 placement: following the q print quality command. Default: cutter is disabled command function to control the cutting of labels when using a oki cutter unit with the printer. Input to printer a ...

  • Page 37

    Peeler command command structure cla a = peeler control 0 disables peeler. 1 enables peeler. Example: cl1 placement: following the q print quality command. Default: peeler is disabled command function to control the cutting of labels when using peeler unit with the printer. Input to printer a h20v20...

  • Page 38

    Fonts u, s, m, oa, ob, xu, xs & xm command structure xu font xu u font u xs font xs s font s xm font xm m font m oa font oa ob font ob example: see above placement: preceding the data to be printed. Default: none command function to print text images on a label. These are eight of the built-in fonts...

  • Page 39

    Printer output special notes 1. Characters may be enlarged through the use of character expansion command (see page 24). 2. Character spacing may be altered through the use of the character pitch com- mand (see page 27). The default is 2 dots between characters. It is recom- mended to use a spacing ...

  • Page 40

    Fonts wb, wl, xb & xl command structure wba font wb xba font xb wla font wl xla font xl a = provided for compatibility with cl printers. Can be either a 0 or 1. Example: wb1123456 placement: preceding the data to be printed. Default: none command function to print text images on a label. These are f...

  • Page 41

    Special notes 1. Characters may be enlarged through the use of character expansion command (see page 24). 2. Character spacing may be altered through the use of the character pitch com- mand (see page 27). 3. A font must be defined for each field to be printed. There is no default font. 4. The propo...

  • Page 42

    Font, vector command structure specify vector font: $a,b,c,d data vector font: $=(data) a = a helvetica bold (proportional spacing). B helvetica bold (fixed spacing). B = font width (24~999 dots) c = font height (24~999 dots) d = font variation (0~9) as follows: 0 standard 1 standard open (outlined)...

  • Page 43

    Printer output special notes 1. The pitch command can be used with vector fonts. 2. If the font size designation is out of the specified range, a default value of 50 is used. 3. The font width and height values include asenders, desenders and other space. 4. A font must be defined for each field to ...

  • Page 44

    Form feed command structure a(space)z example: see above placement: separate data stream sent to printer. Default: none command function to feed a blank tag or label, which is the equivalent of a “form feed”. Input to printer a(space) z printer output blank label or tag. 42.

  • Page 45

    Form overlay, recall command structure / example: see above placement: must be preceded by all other data and placed just before the print quality command (q). Default: none command function to recall the label image from the form overlay memory for printing. This command recalls a stored image from...

  • Page 46

    Form overlay, store command structure & example: see above placement: must be preceded by all other data and placed just before the stop command (z). Default: none command function to store a label image in the volatile form overlay memory. Only one label image may be stored in this memory area at a...

  • Page 47

    Graphics, custom command structure gabbbccc(data) a = specifies format of data stream to follow b binary format. H hexadecimal format. Bbb = number of horizontal 8 x 8 blocks 001 to 104. Ccc = number of vertical 8 x 8 blocks 001 to 356. (data) = data to describe the graphic image. Example: gh006006 ...

  • Page 48

    H300v150xsin a safe place q1z printer output special notes 1. Do not insert or codes (carriage return or line feed) as line deli- meters within the graphic data or the actual image will not be printed as specified. 2. A custom graphic cannot be enlarged by the l character expansion command (page 24)...

  • Page 49

    Graphics, pcx command structure gpaaaaa,(data) aaaaa = number of bytes to be downloaded. Example: gp32000,…data… see appendix c for a detailed example. Placement: anywhere within the job data stream. Default: none command function to allow the creation and printing of graphic images using a pcx file...

  • Page 50

    Journal print command structure j example: see above placement: immediately following a. Default: none command function to print text in a line by line format on a label. By specifying this command, you automatically select font s with a character expansion of 2x2. You also establish a base referenc...

  • Page 51

    Lines and boxes command structure line: fwaabcccc aa = width of horizontal line in dots (01 ~ 99). B = line orientation h horizontal line. V vertical line. Cccc = length of line in dots. Box: fwaabbvcccchdddd aa = width of horizontal side in dots (01 ~ 99). Bb = width of vertical side in dots (01 ~ ...

  • Page 52

    Print darkness command structure #ea a = print darkness value a = 1,2,3,4 or 5 example: #e2 placement: must be placed immediately after a and immediately before z in its own separate data stream. Default: 2 command function to specify a new print darkness setting. This command allows software contro...

  • Page 53

    Print length, expanded command structure ax sets the print length to 14”(356 mm) ar resets the maximum print length to 7”(178 mm) ex0 sets the print length to 50”(1270 mm) example: see above placement: must follow the start code command and be in its separate data stream. Default: ar command functio...

  • Page 54

    Line feed command structure eaaa aaa = number of dots (001 ~ 999) between the bottom of the characters on one line to the top of the characters on the next line. Example: e010 placement: preceding the text that will use the line feed function. Default: none command function to print multiple lines o...

  • Page 55

    4. Following this command with a character will allow you to print with auto line feed. The print position will be determined from the value specified and the h value set in the printer. If you specify several h values after this command, the print position will be determined by the h value last spe...

  • Page 56

    Media size command structure a1aaaabbbb aaaa = vertical media size in dots (0 to vmax). Bbbb = horizontal media size in dots (0 to hmax). Example: a132000832 placement: separate data stream to the printer. Default: a136000832 command function to set the size of the media. Input to printer a a1083208...

  • Page 57

    Postnet command structure bpn…n n…n = 5 digits (postnet-32 format) 6 digits (postnet-37 format) 9 digits (postnet-52 format) 11 digits (postnet-62 format, delivery point format). Example: bp123456789 placement: immediately preceding the data stream to be encoded. Default: none command function to pr...

  • Page 58

    Print position command structure horizontal position haaaa vertical position vbbbb aaaa = number of dots horizontally from the base reference point 1 to 832. Bbbb = number of dots vertically from the base reference point 1 to 8120. Example: h0020v0150 placement: preceding any printed field descripti...

  • Page 59

    Special notes 1. The print position of a field is affected by both the rotate (r) and a3 commands. 2. If any part of an image is placed past maximum allowable dots across the label, that part of the image will be lost. 3. If you attempt to print where there is no paper, you may damage the print head...

  • Page 60

    Print quantity command structure qaaaaaa aaaaaa = total number of labels to print (1 to 65535). Placement: just preceding z. This command must be present in every print job. Default: q1 command function to specify the total number of labels to print for a given print job. Input to printer a h100v100...

  • Page 61

    Print speed command structure csa a = designates the speed selection. 1 = 1 ips (25 mm/s) 2 = 2 ips (50 mm/s) 3 = 3 ips (75 mm/s) 4 = 4 ips (100 mm/s) example: cs3 placement: must be placed immediately after a and immediately before z in its own data stream. Default: as previously set in the printer...

  • Page 62

    Repeat label command structure c example: see above placement: must be placed immediately after a and immediately before z in its own data stream. Default: none command function to print duplicate of the last label printed. Input to printer a c z printer output a duplicate of the previous label will...

  • Page 63

    Replace data (partial edit) command structure 0 example: see above placement: must follow a and precede all other print data. Default: none command function to replace a specified area of the previous label with new data. This command will cause the previous label to print along with any changes spe...

  • Page 64

    Special notes 1. Specify the exact same parameters for the image to be replaced as were speci- fied in the original data stream, including rotation, expansion, pitch, etc.. This will ensure that the new data will exactly replace the old image. If the replace- ment data contains fewer characters than...

  • Page 65

    Reverse image command structure (aaaa,bbbb aaaa = horizontal length in dots of reverse image area 1 to 832. Bbbb = vertical height in dots of reverse image area 1 to 10150 example: (100,50 placement: this command must be preceded by all other data and be placed just before q. Default: none command f...

  • Page 66

    3. If the rotate commands are used with this command, the v and h parameters are reversed. 4. If the height and width to be reversed contain other than alphanumeric data, the area is not printed. 5. If the values specified exceed the maximum ranges, the reverse image is not created. 64.

  • Page 67

    Rotate, fixed base reference point command structure %a a = 0 sets print to normal direction. 1 sets print to 90 o ccw. 2 sets print to 180 o ccw (upside down). 3 sets print to 270 o ccw. Example: %3 placement: preceding any printed data to be rotated. Default: %0 command function to rotate the prin...

  • Page 68

    Special notes 1. Do not combine this command and the r rotate command in the same data stream. 2. The specified values are valid until another rotate (%) command is received. 3. Receipt of a stop print (z) command will reset the setting to the default value. 66.

  • Page 69

    Rotate, moving base reference point command structure normal direction: n rotated direction: r example: see above placement: preceding any printed data to be rotated. Default: n command function the r command rotates the printing data of all subsequent images in a print job by 90 o counterclockwise ...

  • Page 70

    Special notes 1. This command is provided for compatibility with other oki printers. It is not recommended for new label designs and the % rotate command should be used. 2. Do not combine this command and the % rotate command (see page 65) in the same data stream. 3. A custom graphic is not affected...

  • Page 71

    Sequential numbering command structure faaaabcccc,dd,ee aaaa = number of times to repeat the same data (0001 ~ 9999). B = plus or minus symbol (+ for increments, – for decrements). Cccc = value of step for sequence (0001 ~ 9999). Dd = number of digits for sequential numbering (01 ~ 99). The first in...

  • Page 72

    Printer output special notes 1. The value specified for print quantity (see page 58) should be equal to the number of different sequential number desired multiplied by the number of repeats specified. Example: to print 2 sets each of the numbers 1001 ~ 1025 on separate labels, we need 50 total label...

  • Page 73

    Start/stop label command structure start command: a stop command: z example: see above placement: a must precede data. Z must follow data. Default: none. Command function for all print jobs, the start command must precede the data, and the stop com- mand must follow. The print job will not run prope...

  • Page 74

    Expanded memory option commands these commands require the expanded memory option. There are two types of expanded memory cards, 2mb and 4mb respectively. 72.

  • Page 75

    Expanded memory function graphics, custom store command structure giabbbcccddd{data} a = specifies character format of the data. H hex data b binary data bbb = number of horizontal 8x8 blocks (001 to 104). Ccc = number of vertical 8x8 blocks (001 to 178). Ddd = graphics storage number (001 to 999). ...

  • Page 76

    2. The maximum storage capacity is 999 graphics, up to the capacity of the memory expansion. 3. Each graphic to be stored must be sent in its own data stream. Example of correct data stream: a gihaaabbb001(data) z a gihaaabbb002(data) z example of incorrect data stream: a gihaaabbb001(data) gihaaabb...

  • Page 77

    Expanded memory function graphics, custom recall command structure graaa aaa = graphics storage number (1 ~ 999). Example: gr111 placement: the recall command is sent in a secondary data stream to print the graphic, and follows any necessary position or size commands. Default: none. Command function...

  • Page 78

    Expanded memory function graphics, pcx store command structure piaaa,bbbbb,{data} aaa = storage area number. Bbbbb = size of pcx file in bytes. {data} = data. Example: pi001,32000,{data} placement: this command must be placed within its own data stream. Default: none. Command function to store for l...

  • Page 79

    Expanded memory function graphics, pcx recall command structure pyaaa aaa = storage area number (1 ~ 999). Example: py001 placement: this command must be placed within its own data stream specifying the placement of the graphic. Default: none. Command function to recall for printing a graphic file p...

  • Page 80

    Expanded memory function initialize command structure bjfaaaaaaaa aaaaaaaa = eight character alphanumeric user id. Example: bjfoki placement: immediately following the cc memory area select command. Default: none. Command function this clears all of the data from the specified memory area and prepar...

  • Page 81

    Expanded memory function area select command structure cc1 or cc2 example: cc1 placement: immediately following the a start code. Default: onboard flash memory is selected (cc1). Command function selects the expanded memory to be used for the following commad. Input to printer a cc1 {commands} z pri...

  • Page 82

    Expanded memory function status command structure bjs example: bjs placement: after the cc memory area select command. Default: none command function causes the printer to print the card status. Input to printer a cc2 bjs z printer output mycard : 2097152 bytes pcx graphic (0) 1234 custom graphic (1...

  • Page 83

    Two-dimensional symbols the following commands are used to create the two-dimensional symbologies supported by the printers. 81.

  • Page 84

    Two-dimensional bar codes maxicode command structure bva,b,c,ddddddddd,eee,fff,gggg… a = position of maxicode symbol within the set, when used in a structured append format 1~8. B = total number of maxicode symbols in the set, when used in a structured format 1~8. C = 2 for mode 2 structured carrier...

  • Page 85

    Special notes 1. Please refer to ups publication “guide to bar coding with ups online - version 5” for the ups secondary message data format requirements and the latest format requirements. 2. This command implements maxicode aim i.S.S. (ups version 3.1) symbol. 3. The following modes are supported....

  • Page 86

    Two-dimensional bar codes pdf 417 command structure bkaabbcddeeffffnn…n aa = minimum module dimension (03~09 dots). Will not print if values of 01, 02 or greater than 10 are specified. Bb = minimum module pitch dimension (04 ~ 24 dots). Will not print if values of 01, 02, 03 or greater than 25 are s...

  • Page 87

    Special notes 1. When the code words per line and the number of rows per symbol (“dd” and “ee”) are set to all zeroes, the printer will calculate the optimum configuration. 2. The product of the values entered for “dd” and “ee” are not equal to or less than the value of “ffff” (i.E. “ffff” is greate...

  • Page 88

    Configuration commands the following commands are used to set the operating parameters of the okipos x400 printers. The settings currently active in the printer can be determined by printing a test label, either by using the ct print test label command or by pressing the feed button while turning on...

  • Page 89

    Backfeed enable command structure cea a = 0 disables backfeed. 1 enables backfeed. Example: ce1 placement: this command should be sent in a separate data stream. Default: last setting. Command function to select the top-of-label sensing method. Input to printer a ce1 z printer output there is no pri...

  • Page 90

    Calibrate sensor command structure ca example: ca placement: this command should be sent after the sensor type has been selected with the ci command. It should not be included with print job commands. Default: there is no default for this command. Command function to adjust the label sensor for uniq...

  • Page 91

    Custom protocol command codes download command structure ld,a,b,c,d,e,f,g,h,i a = replacement character for stx in ascii or hex format b = replacement character for etx in ascii or hex format c = replacement character for esc in ascii or hex format d = replacement character for enq in ascii or hex f...

  • Page 92

    2. This command must be sent as an independent data stream immediately following the a start code and immediately preceding the z stop code. No other commands can be included in the data stream. 3. If more or less than nine commas are included in the command, the entire command sequence will be igno...

  • Page 93

    Label tear-off command structure cbabb a = + to move the print line down from the top edge of the label - to move the print line toward the top of the label. Bb = distance moved in millimeters (00 to 25) example: cb+03 placement: this command should be sent in a separate data stream. Default: last v...

  • Page 94

    Print test label command structure ct example: ct placement: this command should be sent in a separate data stream. Default: there is no default for this command. Command function to print a test label. Input to printer a ct z printer output special note this mode is used for diagnostic troubleshoot...

  • Page 95

    Print darkness fine adjustment command structure cdaaa,bbb aaa = print darkness adjust (0 to 400) bbb = media adjustment (0 to 6000). Example: cd250,3000 placement: this command should be sent in a separate data stream. Default: print darkness=200, media=3300. Command function to make fine adjustmen...

  • Page 96

    Set rs232 parameters command structure craaaaa,b,c,d aaaaa = baud rate (9600, 19200 or 38400) b = parity (n for none, o for odd, e for even) c = number of data bits (7 or 8) d = number of stop bits (1 or 2) example: cr9600,n,8,1 placement: must be sent in a separate data stream. Default: 9600,n,8,1 ...

  • Page 97

    Set print mode command structure cpa a = 0 for direct thermal printing (without ribbon) 1 for thermal transfer printing (with ribbon) example: cp0 placement: must precede all other commands in the data stream. Default: 1 for okipos x400 model. Command function to optimize the print head heat managem...

  • Page 98

    Set sensor type command structure cia a = 0 disables sensor. 1 reflective (eye-mark) sensing. 2 transmissive (label gap or notch) sensing. Example: ci0 placement: this command should be sent in a separate data stream. Default: ci2 (transmissive sensing) command function to select the top-of-label se...

  • Page 99

    Appendix a. Command code quick reference instruction description page a start code. Begins all print jobs. Page 71 a1aaaabbbb media size. Specifies the label size. Used to automatically calculate page 54 the offset for center justified labels. Aaaa = vertical length. 0001 ~ 9999. Bbbb = width. 0001 ...

  • Page 100

    I ucc 128 bb = number of dots (01-12) for narrow bar and narrow space ccc = bar height in dots (001-600) d = ucc 128 only. Not used for other bar code types. 0 no human readable text 1 human readable text at top 2 human readable text at bottom bdabbcccd bar codes. Prints a 2:5 ratio bar code, except...

  • Page 101

    Btabbccddee bar codes. Variable ratio. Provides the ability to print a bar code page 18 with a ratio other than those specified through the standard bar code commands (b, bd and d). A = bar code symbol 0 codabar 1 code 39 2 interleaved 2 of 5 5 industrial 2 of 5 6 matrix 2 of 5 bb = narrow space in ...

  • Page 102

    Ca calibration. Calibrates the media so that the print can recognize page 88 the characteristics of the media used. Cbabb label tear-off. Page 91 a = + to move the print line down from the top edge of the label - to move the print line toward the top of the label. Bb = distance moved in millimeters ...

  • Page 103

    1 for thermal transfer printing (with ribbon) craaaaa,b,c,d rs232 setting. Sets the related parameters for the rs232 page 94 communication. Aaaaa = baud rate (9600, 19200 or 38400) b = parity (n for none, o for odd, e for even) c = number of data bits (7 or 8) d = number of stop bits (1 or 2) csa pr...

  • Page 104

    Is 0. Fwaahbbbb horizontal line. Prints a horizontal line. Units of measurement are page 49 dots. Aa = width of horizontal line, 1 ~ 99. Bbbb = length of horizontal line, 1 ~ 1248. Fwaabbvccchdddd box. Prints a box. For values aa, bbbb, cc and dddd, see instructions page 49 for horizontal and vertic...

  • Page 105

    Data = hex or binary data to describe the graphic image gpaaaaa,(data) pcx graphics. Prints a graphic with standard pcx format. Page 47 aaaaa = number of bytes to be downloaded. Graaa expansion memory function. Recalls custom designed character page 75 from expansion memory. Aaa = graphics storage n...

  • Page 106

    M font type. Specifies the 13wx20h dot matrix font (including page 36 descenders). N normal direction. Returns to the original base reference point and page 67 returns printing to the normal orientation. Oa font type. Specifies the ocr-a font with dot matrix. Page 36 oa font matrix: 15wx22h. Ob font...

  • Page 107

    S font type. Specifies the 8wx15h dot matrix font (including page 36 descenders). Tabcc(data) store custom designed characters. To create and store custom page 22 characters or images in the printer’s volatile memory. See kab90cc to recall the character for printing. A = 1 16x16 matrix 2 24x24 matri...

  • Page 108

    0001 to 832. Dddd = vertical length of the image area to be copied 0001 to 1424. Wla font type. Specifies the 28wx52h dot matrix font (including page 38 descenders). Xba font type. Specifies the 48wx48h dot matrix font (including page 38 descenders). Xla font type. Specifies the 48wx48h dot matrix f...

  • Page 109

    D = font variation (0~9) as follows: 0 standard 1 standard open (outlined) 2 gray (mesh) pattern 1 3 gray (mesh) pattern 2 4 gray (mesh) pattern 3 5 standard open, shadow 1 6 standard open, shadow 2 7 standard mirror image 8 italic 9 italic open, shadow $=(data) data for vector font. Page 40 (aaaa,b...

  • Page 110

    Appendix b. Bar code specification bar code symbologies this section contains detailed information on the printing of bar codes on the okipos x400 printers. Information on printing the following bar code symbologies is provided: codabar code 39 interleaved 2 of 5 upc-a/ean-13 ean-8 industrial 2 of 5...

  • Page 111

    Codabar command structure 1:3 ratio b0bbcccd (data) d 2:5 ratio bd0bbcccd (data) d 1:2 ratio d0bbcccd (data) d bb = width of narrow element in dots (01~12) ccc = bar height in dots (001~999) d = required start and stop character (a,b,c, or d) (data) = bar code data (alphanumeric) character set 0-9, ...

  • Page 112

    Code 39 command structure 1:3 ratio b1bbccc* (data) * 2:5 ratio bd1bbccc* (data) * 1:2 ratio d1bbccc* (data) * bb = width of narrow element in dots (01~12) ccc = bar height in dots (001~999) * = required start and stop character (asterisk) (data) = bar code data (alphanumeric) character set 0-9, a-z...

  • Page 113

    Interleaved two of five command structure 1:3 ratio b2bbccc (data) 2:5 ratio bd2bbccc (data) 1:2 ratio d2bbccc (data) bb = width of narrow element in dots (01~12) ccc = bar height in dots (001~999) (data) = bar code data (numeric); must be an even number of digits or else the printer will add a lead...

  • Page 114

    Upc-a/ean-13 command structure b3bbccc (data) d3bbccc (data) bd3bbccc (data) bb = width of narrow element in dots (01~12) ccc = bar height in dots (001~999) (data) = bar code data (numeric); must be exactly 13 digits. For upc-a, the first digit must be a zero and the last 11 digits are the actual up...

  • Page 115

    1. First add all the numbers in the odd positions. I.E., 0+2+4+6+8+0 = 20 2. Multiple the result of step 1 by 3. I.E., 20 x 3 = 60 3. Add up all the numbers in the even positions. I.E., 1+3+5+7+9 = 25 4. Add the result of step 2 to that of step 3. I.E., 60 + 25 = 85 5. Subtract the result of step 4 ...

  • Page 116

    Ean-8 command structure b4bbccc (data) d4bbccc (data) bb = width of narrow element in dots (01~12) ccc = bar height in dots (001~999) (data) = bar code data (numeric); must be exactly 8 digits. Character set 0-9 (numeric only) density table value of “bb” narrow bar width (mils) magnification factor ...

  • Page 117

    Industrial two of five command structure 1:3 ratio b5bbccc (data) 2:5 ratio bd5bbccc (data) 1:2 ratio d5bbccc (data) bb = width of narrow element in dots (01~12) ccc = bar height in dots (001~999) (data) = bar code data (numeric); must be an even number of digits or else the printer will add a leadi...

  • Page 118

    Matrix two of five command structure 1:3 ratio b6bbccc (data) 2:5 ratio bd6bbccc (data) 1:2 ratio d6bbccc (data) bb = width of narrow element in dots (01~12) ccc = bar height in dots (001~999) (data) = bar code data (numeric); must be an even number of digits or else the printer will add a leading z...

  • Page 119

    Code 128 command structure bgbbcccdd (data) bb = width of narrow element in dots (01~12). Ccc = bar height in dots (001~999) dd = start code to specify initial subset of bar code data. >g subset a start code. >h subset b start code. >i subset c start code. (data) = includes bar code data and subset ...

  • Page 120

    Character table the code 128 table lists 105 data values for the three subsets: a, b and c. Each subset column displays either a single column of data or a double column of data. If the subset column displays a single column of data, this is the data to be entered to produce the result. If the subse...

  • Page 121

    Value subset a subset b subset c value subset a subset b subset c 0 sp sp 00 36 d d 36 1 ! ! 01 37 e e 37 2 “ “ 02 38 f f 38 3 # # 03 39 g g 39 4 $ $ 04 40 h h 40 5 % % 05 41 i i 41 6 & & 06 42 j j 42 7 ‘ ‘ 07 43 k k 43 8 ( ( 08 44 l l 44 9 ) ) 09 45 m m 45 10 * * 10 46 n n 46 11 + + 11 47 o o 47 12...

  • Page 123

    Msi command structure 1:3 ratio babbccc (data) d 2:5 ratio bdabbccc (data) d 1:2 ratio dabbccc (data) d bb = width of narrow element in dots (01~12). Ccc = bar height in dots (001~999) (data) = bar code data (numeric); maximum of 15 digits. D = required check digit. Character set 0-9 (numeric only) ...

  • Page 124

    Code 93 command structure 1:3 ratio bcbbcccdd (data) bb = width of narrow element in dots (01~12). Ccc = bar height in dots (001~999) dd = length of data (number of digits, 00~99). (data) = bar code data (alphanumeric); length must match value of parameter “dd”; check digit is supplied by the printe...

  • Page 125

    Upc-e command structure bebbccc (data) debbccc (data) bb = width of narrow element in dots (01~12) ccc = bar height in dots (001~999) (data) = bar code data (numeric); must be exactly 6 digits. Character set 0-9 (numeric only) density table value of “bb” narrow bar width (mils) magnification factor ...

  • Page 126

    Bookland (upc/ean supplement) command structure bfbbccc (data) bb = width of narrow element in dots (01~12) ccc = bar height in dots (001~999) (data) = bar code data (numeric); must be exactly 2 or 5 digits. Character set 0-9 (numeric only) density table value of “bb” narrow bar width (mils) magnifi...

  • Page 127

    Ucc-128 command structure bibbcccd (data) bb = width of narrow element in dots (01~12) ccc = bar height in dots (001~999) d = placement of human readable text. 0 none 1 text at top of bar code 2 text at bottom of bar code (data) = 17 digits made up of the following: 1 st digit = container type digit...

  • Page 128

    None of it will be printed. Care should be exercised when placing the bar code to allow for any automatically created human readable text. Example without incrementing a h100v200bi04150101234567000000001 q2z with incrementing a h100v200f001+001 bi04150101234567000000001 q2z 126.

  • Page 129

    Postnet command structure bp (data) (data) = 5 digit zip = 6 digits for postnet 37 = 9 digits for zip+4 = 11 digits for delivery point bar code character set 1-9 (numeric only) notes 1. Frame bits and check digits added automatically by printer. 2. Bar code width and height are fixed and cannot be c...

  • Page 130

    Appendix c. Custom characters and graphics custom-designed character the following example is presented to help understand the use of the custom-designed characters command. It demonstrates the design and printing of an “arrow” in a 16x16 matrix. 1. Determine which matrix size to use. 16 dot x 16 do...

  • Page 131

    3. Transfer the image into two bit map representations and then into hexadecimal or binary format. Row bit map hex 1 0000 0001 0000 0000 01 00 2 0000 0011 1000 0000 03 80 3 0000 0111 1100 0000 07 c0 4 0000 1111 1110 0000 0f e0 5 0001 1111 1111 0000 1f f0 6 0011 1111 1111 1000 3f f8 7 0111 1111 1111 ...

  • Page 132

    6. To store the custom designed character in memory using a binary data stream, the command would be: a 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 z note: spaces are shown betwe...

  • Page 133

    Custom graphics example the following example is presented to help you understand the use of the custom graphics command. It demonstrates the design and printing of an “diskette” in a 48x48 matrix. 1. Determine the matrix size for the graphic. It must be in 8 dot by 8 dot blocks. The example here ha...

  • Page 134

    11000000 00000000 00000111 11100000 00000000 00000011 c0 00 07 e0 00 03 11000000 00000000 00001111 11110000 00000000 00000011 c0 00 0f f0 00 03 11000000 00000000 00001111 11110000 00000000 00000011 c0 00 0f f0 00 03 11000000 00000000 00001111 11110000 00000000 00000011 c0 00 0f f0 00 03 11000000 000...

  • Page 135

    C00000000003 c00000000003 c00003c00003 c00007e00003 c0000ff00003 c0000ff00003 c0000ff00003 c0000ff00003 c00007e00003 c00003c00003 c00003c00003 c00003c00003 c00003c00003 c00003c00003 c00003c00003 c00003c00003 c00003c00003 c00003c00003 c00003c00003 c00001800003 c00000000003 c00000000003 ffffffffffff f...

  • Page 136

    Print #1,chr$(&hc0);chr$(&h00);chr$(&h80);chr$(&h00);chr$(&h00);chr$(&h13); print #1,chr$(&hc0);chr$(&h00);chr$(&hff);chr$(&hff);chr$(&hff);chr$(&hf3); print #1,chr$(&hc0);chr$(&h00);chr$(&h00);chr$(&h00);chr$(&h00);chr$(&h03); print #1,chr$(&hc0);chr$(&h00);chr$(&h00);chr$(&h00);chr$(&h00);chr$(&h0...

  • Page 137

    Print #1,e$;"q1";e$;"z" close #1 the printer output for both hexadecimal and binary format examples is: 135.