OKIPOS 406/407/408 Programmer s Guide
Page 7
... Page Define drive pulse width for peripheral 35 device Control peripheral device #1 35 Control peripheral device #1 35 Control peripheral device #2 35 Control peripheral device #2 35 Commands to Control Auto Cutter Control codes "d" "n" "d" "t" Hexadecimal codes 1B 64 n 1B 64 74 Function Page Cut command to the auto cutter 36 Feed to Print Download Characters Control codes Hexadecimal codes Function Page "&" 1B 26 01 01 n Define download character 33 n m1 m2 ... LINE MODE Commands to Print...
... Page Define drive pulse width for peripheral 35 device Control peripheral device #1 35 Control peripheral device #1 35 Control peripheral device #2 35 Control peripheral device #2 35 Commands to Control Auto Cutter Control codes "d" "n" "d" "t" Hexadecimal codes 1B 64 n 1B 64 74 Function Page Cut command to the auto cutter 36 Feed to Print Download Characters Control codes Hexadecimal codes Function Page "&" 1B 26 01 01 n Define download character 33 n m1 m2 ... LINE MODE Commands to Print...
OKIPOS 406/407/408 Programmer s Guide
Page 24
... integers are ignored. Settings that exceed the printing area are ignored. 2. Settings that exceed the print area are shown with regard to the character direction, this specifies negative integers. 3. For example, if moving N pitches in the left direction, this specifies positive integers and when set in the left direction: n1 + n2 × 256 = 65536 - LINE MODE FUNCTION CODE HEX REMARKS Absolute...
... integers are ignored. Settings that exceed the printing area are ignored. 2. Settings that exceed the print area are shown with regard to the character direction, this specifies negative integers. 3. For example, if moving N pitches in the left direction, this specifies positive integers and when set in the left direction: n1 + n2 × 256 = 65536 - LINE MODE FUNCTION CODE HEX REMARKS Absolute...
OKIPOS 406/407/408 Programmer s Guide
Page 44
... devices. Clears the print buffer and returns settings to transmit a status byte. FUNCTION CODE HEX REMARKS Request status 05 Causes the printer to their power-up values. Status byte b7 b6 b5 b4 b3 b2 b1 b0 0 Constantly set at 0 Vertical Parity error 1 : error Framing error 1 : error Mechanical error 1 : error Paper empty 1 : empty Buffer empty 1 : empty Buffer overflow 1 : overflow Compulsion switch High level (Switch is set to ON) - 41 - LINE MODE FUNCTION CODE HEX...
... devices. Clears the print buffer and returns settings to transmit a status byte. FUNCTION CODE HEX REMARKS Request status 05 Causes the printer to their power-up values. Status byte b7 b6 b5 b4 b3 b2 b1 b0 0 Constantly set at 0 Vertical Parity error 1 : error Framing error 1 : error Mechanical error 1 : error Paper empty 1 : empty Buffer empty 1 : empty Buffer overflow 1 : overflow Compulsion switch High level (Switch is set to ON) - 41 - LINE MODE FUNCTION CODE HEX...
OKIPOS 406/407/408 Programmer s Guide
Page 55
...) Note: a) When a bar code is missing, printer goes into an error condition. - 52 - c) If ";" or "," is rotated, its dimensions may not conform to ANSI specifications. PAGE MODE FUNCTION Define bar code format CODE HEX "P B n1n2 ; n1n2 : Bar code string number (00 to 31) x1x2x3x4 : Print start position in the X direction (0000 to 1040 × 0.1 mm) y1y2y3y4 : Print start position and type of bar code string.
...) Note: a) When a bar code is missing, printer goes into an error condition. - 52 - c) If ";" or "," is rotated, its dimensions may not conform to ANSI specifications. PAGE MODE FUNCTION Define bar code format CODE HEX "P B n1n2 ; n1n2 : Bar code string number (00 to 31) x1x2x3x4 : Print start position in the X direction (0000 to 1040 × 0.1 mm) y1y2y3y4 : Print start position and type of bar code string.
OKIPOS 406/407/408 Programmer s Guide
Page 57
.... PAGE MODE - 54 - c) This command, along with "PC". a1a2....an : Character string data (up to 100 characters) Note: a) The same reference numbers used . Print Data Settings FUNCTION Set character string data CODE "R C n1n2 ;a1a2....an" HEX 1B 52 43 n1n2 3Ba1a2....an 0A 00 REMARKS This command sets character strings defined by the format definition command "PC" is missing, printer goes into an error...
.... PAGE MODE - 54 - c) This command, along with "PC". a1a2....an : Character string data (up to 100 characters) Note: a) The same reference numbers used . Print Data Settings FUNCTION Set character string data CODE "R C n1n2 ;a1a2....an" HEX 1B 52 43 n1n2 3Ba1a2....an 0A 00 REMARKS This command sets character strings defined by the format definition command "PC" is missing, printer goes into an error...
OKIPOS 406/407/408 Programmer s Guide
Page 58
... JAN, EAN, or UPC, data length is missing, printer goes into an error condition. c) When data length does not meet the specifications of CODE 93 are automatically inserted. the start code, check word, and stop characters of Interleaved 2 of JAN, EAN, or UPC is automatically inserted as the highest digit. PAGE MODE - 55 - FUNCTION CODE HEX REMARKS Set bar code data "R B n1n2 ; a1a2....an" 1B...
... JAN, EAN, or UPC, data length is missing, printer goes into an error condition. c) When data length does not meet the specifications of CODE 93 are automatically inserted. the start code, check word, and stop characters of Interleaved 2 of JAN, EAN, or UPC is automatically inserted as the highest digit. PAGE MODE - 55 - FUNCTION CODE HEX REMARKS Set bar code data "R B n1n2 ; a1a2....an" 1B...
OKIPOS 406/407/408 Programmer s Guide
Page 59
...nmk: n11 represents data in the Y direction. d) If ";" or "," is set using the command. c) "X" cancels data that was set in 1 mm units (byte units (8 bits/bytes)) in the X direction and 0.125 mm units (dot units) in the 1st line. PAGE MODE FUNCTION CODE HEX REMARKS Store dot graphic data into image memory "Q n x1x2x3x4 ,...nm1nm2....nmk" 0A 00 This command stores graphic data into an error condition. - 56 - Each line ends with . Note: a) This command can be used any number of the graphic area. (001 to 1600 dots) w1w2w3 : Defines the width (X direction) of times.
...nmk: n11 represents data in the Y direction. d) If ";" or "," is set using the command. c) "X" cancels data that was set in 1 mm units (byte units (8 bits/bytes)) in the X direction and 0.125 mm units (dot units) in the 1st line. PAGE MODE FUNCTION CODE HEX REMARKS Store dot graphic data into image memory "Q n x1x2x3x4 ,...nm1nm2....nmk" 0A 00 This command stores graphic data into an error condition. - 56 - Each line ends with . Note: a) This command can be used any number of the graphic area. (001 to 1600 dots) w1w2w3 : Defines the width (X direction) of times.
OKIPOS 406/407/408 Programmer s Guide
Page 62
... printing. When print start position detect is ON, the paper will be repeated after the printer recovers from the error condition. If unrecoverable error occurs during printing, a series of these operation will be fed to the next print start position (unit: 0.1 mm) PAGE MODE - 59 - s1s2s3s4 : Print start position in the Y direction (unit: 0.1 mm) h1h2h3h4: Print length from the error condition. When print start position after printing. FUNCTION CODE HEX REMARKS Print...
... printing. When print start position detect is ON, the paper will be repeated after the printer recovers from the error condition. If unrecoverable error occurs during printing, a series of these operation will be fed to the next print start position (unit: 0.1 mm) PAGE MODE - 59 - s1s2s3s4 : Print start position in the Y direction (unit: 0.1 mm) h1h2h3h4: Print length from the error condition. When print start position after printing. FUNCTION CODE HEX REMARKS Print...
OKIPOS 406/407/408 Programmer s Guide
Page 76
... feed The FF code prints the data in lines Upon receiving this code, bottom margin setting is set to the start of the next page. CODE FUNCTION OUTLINE ESC N n (1B)H (4E)H n Sets bottom margin in the current line and transports the paper to the power on default condition. ESC BEL n1 n2 (1B)H (07)H n1 n2 Sets peripheral unit drive #1 pulse duration. Default Value n = 0 DP8340 MODE CODE FUNCTION OUTLINE CODE FUNCTION OUTLINE CODE...
... feed The FF code prints the data in lines Upon receiving this code, bottom margin setting is set to the start of the next page. CODE FUNCTION OUTLINE ESC N n (1B)H (4E)H n Sets bottom margin in the current line and transports the paper to the power on default condition. ESC BEL n1 n2 (1B)H (07)H n1 n2 Sets peripheral unit drive #1 pulse duration. Default Value n = 0 DP8340 MODE CODE FUNCTION OUTLINE CODE FUNCTION OUTLINE CODE...
OKIPOS 406/407/408 Programmer s Guide
Page 77
...)H Trigger peripheral unit drive #1 Causes a peripheral drive pulse to be generated. The drive pulse width and delay time are fixed at 200 ms. ENQ (05)H Enquiry When this code the data buffer and line buffer is input after printing. This code is normally stored in the STX-ETX mode, the printer outputs status data and the check byte. If it is received, the printer outputs status data. CAN (18)H Clears print buffer Upon...
...)H Trigger peripheral unit drive #1 Causes a peripheral drive pulse to be generated. The drive pulse width and delay time are fixed at 200 ms. ENQ (05)H Enquiry When this code the data buffer and line buffer is input after printing. This code is normally stored in the STX-ETX mode, the printer outputs status data and the check byte. If it is received, the printer outputs status data. CAN (18)H Clears print buffer Upon...
OKIPOS 406/407/408 Programmer s Guide
Page 79
... characters Printer ID transmission Set left margin Set basic calculated pitch Paper cut Set print range Designate the relative position of vertical characters when printing in the page mode Execute macro Enable/disable automatic status transmission Smoothing setting/cancel Select HRI character font Set bar code height Printing of bar code Transmission of status Print raster bit image Set lateral size of bar code Write to space code page Select character code table Set memory switch ESC/POS - 76 - Control Code...
... characters Printer ID transmission Set left margin Set basic calculated pitch Paper cut Set print range Designate the relative position of vertical characters when printing in the page mode Execute macro Enable/disable automatic status transmission Smoothing setting/cancel Select HRI character font Set bar code height Printing of bar code Transmission of status Print raster bit image Set lateral size of bar code Write to space code page Select character code table Set memory switch ESC/POS - 76 - Control Code...
OkiPOS406 Users Guide
Page 2
... cable. The above notwithstanding, STAR can radiate radio frequency energy and, if not installed and used in accordance with the International Standards EN 50081-1/01.92 and EN 50082-1/01.92, following the provisions of the Low Voltage Directive of the European Communities as of going to press. Reproduction of any part of this manual in any errors...
... cable. The above notwithstanding, STAR can radiate radio frequency energy and, if not installed and used in accordance with the International Standards EN 50081-1/01.92 and EN 50082-1/01.92, following the provisions of the Low Voltage Directive of the European Communities as of going to press. Reproduction of any part of this manual in any errors...
OkiPOS406 Users Guide
Page 3
... Connecting to a Peripheral Unit 8 3-3. Turning Power On 10 4. Removing Paper Jam 19 7-3. Releasing a locked Cutter (Auto Cutter Mode only 20 8. General Specifications 95 A-2. Auto Cutter Specifications 96 A-3. Serial Interface Type 101 Appendix C: Parallel Interface 104 Appendix D: Serial Interface 105 D-1. Preventing and Clearing Paper Jams 19 7-1. Consumable Parts and AC Adapter 4 3. RS-232C Connector 106 D-2. Cable Connections 107 D-3. Self Printing 13 5. Cleaning the Paper Holder 22 Appendix A: Specifications 95 A-1. Control Panel...
... Connecting to a Peripheral Unit 8 3-3. Turning Power On 10 4. Removing Paper Jam 19 7-3. Releasing a locked Cutter (Auto Cutter Mode only 20 8. General Specifications 95 A-2. Auto Cutter Specifications 96 A-3. Serial Interface Type 101 Appendix C: Parallel Interface 104 Appendix D: Serial Interface 105 D-1. Preventing and Clearing Paper Jams 19 7-1. Consumable Parts and AC Adapter 4 3. RS-232C Connector 106 D-2. Cable Connections 107 D-3. Self Printing 13 5. Cleaning the Paper Holder 22 Appendix A: Specifications 95 A-1. Control Panel...
OkiPOS406 Users Guide
Page 4
... paper User's manual Ferrite core (Parallel interface model only) Fastener (Parallel interface model only) - 1 - Peripheral drive connector Connects to load or replace paper. Never unplug the AC adapter while the printer is on /off power to turn on . ENGLISH 1. Power switch Used to the printer. Do not connect this lever in the direction of the AC adapter. Cover open lever Pull this to open the printer cover. Parts Identification and Nomenclature Auto Cutter Model Printer cover Open this cover to peripheral units...
... paper User's manual Ferrite core (Parallel interface model only) Fastener (Parallel interface model only) - 1 - Peripheral drive connector Connects to load or replace paper. Never unplug the AC adapter while the printer is on /off power to turn on . ENGLISH 1. Power switch Used to the printer. Do not connect this lever in the direction of the AC adapter. Cover open lever Pull this to open the printer cover. Parts Identification and Nomenclature Auto Cutter Model Printer cover Open this cover to peripheral units...
OkiPOS406 Users Guide
Page 5
... printer cover. Never unplug the AC adapter while the printer is on /off power to open lever Pull this to turn on . Interface connector For connection to load or replace paper. Peripheral drive connector Connects to operate the printer. Roll paper User's manual Ferrite core (Parallel interface model only) Fastener (Parallel interface model only) - 2 - Power connector For connection of the arrow to the printer. Control panel Features LED indicators to indicate printer status and switches to peripheral units...
... printer cover. Never unplug the AC adapter while the printer is on /off power to open lever Pull this to turn on . Interface connector For connection to load or replace paper. Peripheral drive connector Connects to operate the printer. Roll paper User's manual Ferrite core (Parallel interface model only) Fastener (Parallel interface model only) - 2 - Power connector For connection of the arrow to the printer. Control panel Features LED indicators to indicate printer status and switches to peripheral units...
OkiPOS406 Users Guide
Page 16
... Dump Mode. This function allows you to check if a control code sent to the Ver. When the cover is closed, "*** HEX DUMP PRINTING ***" is printed. To turn off the printer completely. - 13 - Self Printing (1) Test Printing Turn the power on while holding the FEED button depressed. When the FEED button is less than one full line. No., DIP switch settings and character order. ENGLISH 4-3. The final line is not printed if its data is...
... Dump Mode. This function allows you to check if a control code sent to the Ver. When the cover is closed, "*** HEX DUMP PRINTING ***" is printed. To turn off the printer completely. - 13 - Self Printing (1) Test Printing Turn the power on while holding the FEED button depressed. When the FEED button is less than one full line. No., DIP switch settings and character order. ENGLISH 4-3. The final line is not printed if its data is...
OkiPOS406 Users Guide
Page 19
Not only should you could be opened when replacing the paper. Do not operate the cover open the printer cover when printing is operating. 3. The heating element and the driver IC of the thermal head. During and immediately after printing, the area around the thermal head is a risk of damage to the driver IC of the thermal head cannot be careful not to the cutter blade. 2. Please...
Not only should you could be opened when replacing the paper. Do not operate the cover open the printer cover when printing is operating. 3. The heating element and the driver IC of the thermal head. During and immediately after printing, the area around the thermal head is a risk of damage to the driver IC of the thermal head cannot be careful not to the cutter blade. 2. Please...
OkiPOS406 Users Guide
Page 22
... a paper jam, paper cutting failure or line feed failure. 7-2. Removing Paper Jam If a paper jam occurs, clear it as the print command, so make sure that the ERROR LED is positioned straight. In this case, return the auto cutter to open the printer cover. Note: Take care not to the printer. Note 1: Make sure that the auto cutter is closed with the paper skewed, a paper jam may not lock properly. (5) Set the power switch to on to turn...
... a paper jam, paper cutting failure or line feed failure. 7-2. Removing Paper Jam If a paper jam occurs, clear it as the print command, so make sure that the ERROR LED is positioned straight. In this case, return the auto cutter to open the printer cover. Note: Take care not to the printer. Note 1: Make sure that the auto cutter is closed with the paper skewed, a paper jam may not lock properly. (5) Set the power switch to on to turn...
OkiPOS406 Users Guide
Page 24
... is at its home position. When the check window is completely white, the moving blade. Moving blade - 21 - Note 1: Do not apply extreme pressure to ON. Trying to open the printer cover may damage the cutter. (5) Open the printer cover, remove any jammed paper, and then re-install the paper roll. (6) Install the front cover, and then set the power switch to the moving blade is protruding too...
... is at its home position. When the check window is completely white, the moving blade. Moving blade - 21 - Note 1: Do not apply extreme pressure to ON. Trying to open the printer cover may damage the cutter. (5) Open the printer cover, remove any jammed paper, and then re-install the paper roll. (6) Install the front cover, and then set the power switch to the moving blade is protruding too...
OkiPOS406 Users Guide
Page 101
... secure it with the screw. The settings will become effective when the power switch is the procedure for changing the settings on the printer. - 98 - It is turned off before changing the settings. Make sure the printer is recommended to use a pointed item like a pen or flat-blade driver screw to off . 2. Remove the screw from the DIP switch cover. Be sure to set the power switch to change the settings.
... secure it with the screw. The settings will become effective when the power switch is the procedure for changing the settings on the printer. - 98 - It is turned off before changing the settings. Make sure the printer is recommended to use a pointed item like a pen or flat-blade driver screw to off . 2. Remove the screw from the DIP switch cover. Be sure to set the power switch to change the settings.