Hitachi UX2 User Manual
Hide thumbs Also See for UX2:
Table of Contents

Advertisement

Quick Links

HITACHI
Communication User's Manual
(Serial Communication)
● Before using the printer, thoroughly read this communication user's manual for
optimum printer use.
● After reading this communication user's manual, properly keep it for future
reference.
Model UX2
Printer

Advertisement

Table of Contents
loading

Summary of Contents for Hitachi UX2

  • Page 1 HITACHI Printer Model UX2 Communication User’s Manual (Serial Communication) ● Before using the printer, thoroughly read this communication user's manual for optimum printer use. ● After reading this communication user's manual, properly keep it for future reference.
  • Page 2 August 2022 (rev. C) ● No part of this manual may be copied or reproduced without permission. ● The contents of this manual are subject to change without notice for improvement. All Rights Reserved, Copyright © 2022, Hitachi Industrial Equipment Systems Co., Ltd...
  • Page 3: Table Of Contents

    Contents 1.1 Overview ................................... 4 1.2 Setting Communication Environment ......................... 6 1.2.1 Transmission Specifications ..........................6 1.3 Transmission Sequences .............................. 8 1.3.1 Common Transmission Sequences ........................8 1.3.2 Printings Transmission ............................10 1.3.2-1 Text .................................. 10 1.3.2-2 Item number ..............................11 1.3.2-3 Printings ................................
  • Page 4 1.3.9 Remote Operation Transmission ........................32 1.3.9-1 Text .................................. 32 1.3.9-2 Types of control ............................32 1.3.10 Free Layout Transmission ..........................33 1.3.10-1 Overview ..............................33 1.3.10-2 Text................................33 1.3.10-3 Example of Free layout transmission ....................35 1.3.11 Calendar Conditions Transmission, Count Conditions Transmission ............ 37 1.3.11-1 Text................................
  • Page 5: Overview

    1. Serial Communication 1.1 Overview The functions described in this document are used to transmit printings and their registration numbers and enter them into the IJ printer with an external device connected to the IJ printer via an RS-232C serial communication line. Please connect a USB serial converter to the USB port of the IJ printer and use RS-232C serial communication via USB serial converter.
  • Page 6 (9) Free layout transmission ・An ''item number'' and ''amount of move'' are transmitted from the external device to the IJ printer. ・The IJ printer receives the ''item number'' and ''amount of move'', and then moves the item specified to the specified position. (10) Communication buffer ・The print contents received through print content transmission will not be reflected in printing immediately, but will be temporarily held in buffer.
  • Page 7: Setting Communication Environment

    1.2 Setting Communication Environment 1.2.1 Transmission Specifications (1) Communication method :Half duplex (2) Startup method:Started up by host (3) Synchronization method :Asynchronous (4) Transmission method :Bit serial transmission (5) Baud rate:150, 300, 600, 1,200, 2,400, 4,800, 9,600, 19,200, 38,400, 57,600, 115,200(bps) (6) Codes transmitted : Alphabet, Numbers, Symbols, Special characters, Registered characters, Half-width characters (7) Data format : Formats A through J are selectable (see the table below).
  • Page 8 (8) Bit configurations Format A and B Start Parity Stop Stop Format C and D Start Parity Stop Format E Stop Start Stop Format F Start Stop Format G and H Start Parity Stop Format I and J Start Parity Stop Stop Order of code transmission: Transmission occurs beginning with the least significant bit (b0).
  • Page 9: Transmission Sequences

    1.3 Transmission Sequences 1.3.1 Common Transmission Sequences (1) Basic transmission operation. ① When ENQ and ACK are present: External device TEXT IJ printer ② When ENQ is omitted: External device TEXT IJ printer (2) When DC2 (retransmission) code is used (When no response is received though ENQ has been issued and yet the contents of print area switched) External device...
  • Page 10 (7) The printings, print specifications, print format, and user pattern data can be consecutively transmitted in the following order in a single session. ① Print format ② Print specifications ③ Printings (Example) Print Print Print Print Print Print format format format specification specification...
  • Page 11: Printings Transmission

    1.3.2 Printings Transmission 1.3.2-1 Text (1) When printings are to be changed Item number Printings (2) If deleting character string within print item Item number (3) When multiple printings are to be designated Item number Printings Item number Printings change Printings erasure ●...
  • Page 12: Item Number

    1.3.2-2 Item number Item number Code 31H 32H 33H 34H 35H 36H 37H 38H 39H 3AH Item number Code 3BH 3CH 3DH 3EH 3FH 40H 41H 42H 43H 44H Item number Code 45H 46H 47H 48H 49H 4AH 4BH 4CH 4DH 4EH Item number Code 4FH 50H 51H 52H 53H 54H 55H 56H 57H 58H...
  • Page 13: Character Codes

    1.3.2-4 Character codes (1) 2-byte code (number of communication bytes: 1-byte mode) ● For 1-byte mode, 2-byte codes are sandwiched between "SI" and "SO". ● One character High-order Low-order byte byte ● Two or more characters High-order Low-order High-order Low-order High-order Low-order byte...
  • Page 14: Print Data Recall Transmission

    1.3.3 Print Data Recall Transmission 1.3.3-1 Text Classification ESC2 Header 20H 1000s place 100s place 10s place Unit place Print data message number (0001 to 2000) 1.3.3-2 Print data message number ● An already saved print data number is to be designated as the print data message number. ●...
  • Page 15: Print Data Registration Transmission

    1.3.4 Print data registration transmission 1.3.4-1 Text ● Specifies message number Unit ESC2 Header 21H Classification 31H 1000s place 100s place 10s place place Print data message number (0001 to 2000) ● Specifies registration No. and message name. Unit (Contd.) ESC2 Header 21H Classification 31H 1000s place 100s place...
  • Page 16: Supplement

    1.3.4-3 Supplement ● When transmitting print data together with the print contents, send the print contents last. 1.3.4-4 Example of print data registration transmission (1) Example of registering by specifying message name 12 ESC2 Header, classification Print data message number [Transmission Result] Current print data is registered under message number 12.
  • Page 17 (3) Configuration of print format text ● Print items is not specified Print format text If item No. is not specified, it is set for all items. To transmit print format and print specs. consecutively, transmit in the order of ① print format and ②...
  • Page 18 (4) Print format text ● Line count and Line spacing Character size Classification ESC2 Header 22H Line count Line spacing 30H: 4 x 5 31H: 5 x 5 32H: 5 x 8(5 x 7) Line count Line spacing 33H: 9 x 8(9 x 7) (1 to 6) (0 to 4) 34H: 7 x 10...
  • Page 19 (5) Print specifications ● Character height Classification ESC2 Header 25H 10s place Units place ● Ink drop use Character height (00 to 99) Classification ESC2 Header 25H 10s place Units place Ink drop use(01 to 16) ● High-speed print Classification ESC2 Header 25H Mode...
  • Page 20 ● Repeat count Classification ESC2 Header 25H 1000s place 100s place 10s place Units place Repeat count(0000 to 9999) ● Repeat intervals Classification 10000s 1000s 100s Units ESC2 Header 25H place place place place place Repeat intervals(00000 to 99999) ● Target sensor timer Classification ESC2 Header 25H...
  • Page 21: Text Setup Rules

    ● The total number of vertical dots cannot exceed the limit. Machine type Maximum number of vertical dots UX2-D 48 dots ● Some characters cannot be entered depending on the character size. If a print item contains an unavailable character after a character size change, its contents are changed to a space.
  • Page 22: Caution For Format Type "Free Layout

    (4) Bar code use and bar code type ● Two or more bar code types can coexist. ● When bar code set up is completed for a print item, its inter-character space can’t be changed. (The inter-character space need not be transmitted in this case.) ●...
  • Page 23: Example Of Print Conditions Transmission

    1.3.5-4 Example of print conditions transmission (1) Example where print item is not specified 30H 31H 32H “ STX ESC2 ESC2 Header, Header, Write position 123 Line count 1 classification classification line spacing 0 [Transmission results] All print items are set as 1 stage, write position is changed to 0123. (2) Example where print item is specified 70H 31H 23H 31H 34H 30H 30H...
  • Page 24: Time Control

    1.3.6 Time Control 1.3.6-1 Text (1) Date/time setup transmission ● Current time Header Classification 1000s 100s Units Units ESC2 place place place place place place (Contd.) Year Month Units Units Units Units place place place place place place place place Hour Minutes Second...
  • Page 25: Date/Time Setup

    1.3.6-2 Date/Time Setup (1) This function allows operator to set each item on "Date/time setup screen" for Maintenance menu. Setting items Setting Contents Current date time displayed across the very top of Current time screen(year/month/day/hour/minute/second) Calendar time control Same as current time, clock stopped Time reflected in calendar characters of print Calendar time contents when the clock is stopped...
  • Page 26: User Pattern Character Transmission

    1.3.7 User Pattern Character Transmission 1.3.7-1 Text ● When the number of communication bytes is set to "1" for communication environment setup purposes ESC2 Header 32H Classification Character code Pattern data array Character size ● When the number of communication bytes is set to "2" for communication environment setup purposes High-order Low-order ESC2...
  • Page 27 (2) Pattern data structure The pattern data structure and data creation rules are explained below. a)Rules ● Each pattern data unit consists of 8 bits. For each bit, dot presence is indicated by the value 1 (dot present) or 0 (dot not present). ●...
  • Page 29 ● For pattern data composition purposes, the data is arranged in successive order, beginning from the bottom left, from bottom to top and from left to right. b)Pattern data example [For a character size of 5×5]...
  • Page 31: Character Codes

    1.3.7-4 Character Codes For character code designation, either ASCII codes or 2-byte codes are used. (1) ASCII code(When the number of communication bytes is "1 byte") Applicable to cases where the number of user pattern characters does not exceed 48 (user pattern characters 00 through 47).
  • Page 32: On-Line / Off-Line Transmission Procedure

    1.3.8 On-line / Off-line Transmission Procedure 1.3.8-1 Text (1) Change to On-line ESC2 Header 73H (2) Change to Off-line ESC2 Header 74H ● On-line/Off-line transmissions cannot be sent in the following cases, NAK code is returned. ① During input of set values. ②...
  • Page 33: Remote Operation Transmission

    1.3.9 Remote Operation Transmission 1.3.9-1 Text ESC2 Header 72H Type Type 30H: Operation start 31H: Operation stop 32H: Deflection voltage control (ON) 33H: Deflection voltage control (OFF) 34H: Fault clear 1.3.9-2 Types of control Types of control for operation Type Content Function enabled status Starts to jet ink and shifts from stop status to...
  • Page 34: Free Layout Transmission

    1.3.10 Free Layout Transmission 1.3.10-1 Overview ● When Format setup is "Free layout", the selected print item can be moved individually. ● Free layout transmission shall be made independently. Free layout transmission can NOT be transmitted with Print format or Print specification or Print description. ●...
  • Page 35 (2) Specify Horizontal/Vertical directions and move ● Specify the number of dots for moving and the print item will be moved. ● Horizontal and Vertical move (Contd.) ESC2 Header 24H Classification 41H Item number Item number (1 to 100) (Contd.) Horizontal sign 10000s place 1000s place 100s place 10s place Unit place...
  • Page 36: Example Of Free Layout Transmission

    1.3.10-3 Example of Free layout transmission (1) Specify Horizontal/Vertical coordinate and move...
  • Page 37 (2) Specify Horizontal/Vertical directions and move...
  • Page 38: Calendar Conditions Transmission, Count Conditions Transmission

    1.3.11 Calendar Conditions Transmission, Count Conditions Transmission 1.3.11-1 Text (1) Calendar Conditions Transmission ● Substitution rules No. Header Classifica- Calendar block ESC2 10s place Units place tion 31H Substitution rules No. Calendar block No. (01 to 99) (1 to 8) ●...
  • Page 39 (2) Count Conditions Transmission Count ESC2 Header 2CH Classification Setting value block No. Count block No. (1 to 8) Classification Item name Setting value Initial value Character code Range 1 Character code Range 2 Character code Update setting range (In progress) 000000 to 999998 Update setting range (Unit) 000001 to 999999...
  • Page 40: Example Of Calendar Conditions Transmission

    1.3.11-2 Example of calendar conditions transmission (1) Example of offset ESC2 Header, Calendar Offset 12 days classification block No. [Transmission results] Defines offset 12 days for calendar block 2. 1.3.11-3 Example of count conditions transmission (1) Example of reset ESC2 Header, Reset value 00000 Count...
  • Page 41: Code Table

    1.4 Code Table 1.4.1 Code Table Transmission Control ASCII Name Description STX (start) Code that is transmitted immediately before text. ETX (end) Code that is transmitted immediately after text. This enquiry code is used when the external device checks whether the IJ printer is ready for signal reception. This code must be transmitted before data transmission to the IJ printer.
  • Page 42 (2) ASCII Codes support : Unusable :Dedicated character consisting of multiple codes ↑ :User pattern character number ① As regards a print item for which a bar code is set up, the text must be created in such a manner that the employed character codes are within the range applicable to the bar code (3) Dedicated characters (2-byte codes) Not support...
  • Page 43 (4) User pattern characters (2-byte codes) Fixed size User pattern character 2-byte code F140 F141 F142 F143 F144 F145 F146 F147 F148 F149 F14A F14B F14C F14D F14E F14F User pattern character 2-byte code F150 F151 F152 F153 F154 F155 F156 F157 F158 F159 F15A F15B F15C F15D F15E F15F User pattern character 2-byte code...
  • Page 44 (5) Punctuation characters (2-byte codes) Punctuati o n . : , ; ! ‛ Space character 2-byte code F240 F241 F242 F243 F244 F245 F246 (6) Katakana (when KANA and dedicated characters can be input) ① Available character sizes 7x10 10x12 12x16 18x24...
  • Page 45 (7) Calendar character code ● Set "calendar block starting character" as the first character and set "calendar block ending character" as the last character. ● In "Month 3-digit code handling" on the User environment setup screen, select the content to be printed when transmitting the Month 3-digit code.
  • Page 46 Example of when performing printings transmission of calendar character (Example 1) Example of when setting a calendar block to print item 1 (Example 2) Example of when setting 2 calendar blocks to print item 1 YYMMDD ABC DDHH...
  • Page 47 (8) Count character code ● Set "count block starting character" as the first character and set "count block ending character as the last character. Example of when performing printings transmission of count character (Example 1) Example of when setting a count block to print item 1 (Example 2) Example of when setting 2 count blocks to print item 1 Control code (For Bar code) ●...
  • Page 48: Header Table

    1.4.2 Header Table ESC2 Header Classification data Data Type Header Classification Data number Recall Message number 0001 to 2000 Message number 0001 to 2000 Registration Message name 1 to 12 Message name: Max 12 digits Line count, print format uniformity Line count:1 to 6 Line count, Line spacing:0 to 4...
  • Page 49 Data Type Header Classification Data number Calendar block : 1 to 8 Substitution rules No. Substitution rules No. : 01 to 99 Calendar block : 1 to 8 Type : 0 to 4 Offset Offset : Year 0000 to 0099 (Year / month / day / hour / Month 0000 to 0099 minute)
  • Page 50 Data Type Header Classification Data number Used together with print format - Item No. specification Item No. message - Remote operation 30H to 34H − − On-line No STX/ETX − − No STX/ETX Off-line − − No STX/ETX; Inquiry Current time inquiry 75H...
  • Page 51: Communication Timing

    1.5 Communication Timing 1.5.1 Signal Timing (1) In overwrite-protected mode (a) When the IJ printer is off-line ● The NAK code is transmitted in response to an ENQ code reception from the outside. (b) When the IJ printer is on-line ①...
  • Page 52 When a data transmission is aborted (When transmission to the ETX code is not completed) ● The IJ printer printings remain unchanged. For data retransmission, perform either of the following procedures. ① Transmit the DC2 (retransmission) code to the IJ printer. ②...
  • Page 53: Response Time

    1.5.2 Response Time 1.5.2-1 Time interval (T1) between external device communication and IJ printer response Baud rate (bps) T0 Maximum time (ms) 150 to 1200 2400 to 115200 (1) When Print format is set to "Individual" Time interval (T1) between external device communication and IJ printer response T1 Maximum Time(ms) No.
  • Page 54 Time T1 when there is a data matrix, QR code, Micro QR, GS1 Data Bar and Dotcode setting T1 Maximum time ( ms ) Bar code type Character size Within 24 items 25 items or more 5×8, 10×12 8×N+20 Data matrix 12×16,18×24 15×N+40 QR(21×21)...
  • Page 55 Time T1 when there is a data matrix, QR code, Micro QR, GS1 Data Bar and Dotcode setting T1 Maximum time ( ms ) Bar code type Character size Within 24 items 25 items or more 5×8, 10×12 Data matrix 12×16,18×24 QR(21×21)...
  • Page 56: Time Interval (T2) Between Ij Printer Response And Printing Start

    1.5.2-2 Time interval (T2) between IJ printer response and printing start (1) When Print format is set to "Individual" Time interval (T2) between IJ printer response and printing start T2 Minimum Time(ms) Transmission type Conditions Remarks Within 24 items 25 items or more M...
  • Page 57 Time T2 when there is a data matrix, QR code, Micro QR, GS1 DataBar and Dotcode setting T2 Minimum Time ( ms ) Bar code type Character size Within 24 items 25 items or more 5×8, 10×12 8×N+20 Data matrix 12×16,18×24 15×N+40 QR(21×21)...
  • Page 58: On-Line/Off-Line Transmission

    Time T2 when there is a data matrix, QR code, Micro QR, GS1 Data Bar and Dotcode setting T2 Minimum Time ( ms ) Bar code type Character size Within 24 items 25 items or more 5×8, 10×12 Data matrix 12×16,18×24 QR(21×21)...
  • Page 59: Communication Buffer

    1.6 Communication Buffer 1.6.1 Overview (1) Print content transmission ● The print contents received through print content transmission will not be reflected in printing immediately, but will be temporarily held in buffer. ● The print contents are fetched from the buffer one by one for each printing, and reflected in subsequent printing.
  • Page 60: Description Of Functions

    1.6.2 Description of Functions (1) Application procedure ● Prepare the following in advance: Preliminary Preparation Items Procedure Specify "overwrite-enabled" for communication mode on the communication environment screen. In addition, specify "t=fixed" for print message transfer ACK. Set the buffer function on the second page of the communication environment setting screen to "enable."...
  • Page 61 (2)Buffer ● The print content receive buffer has a queue structure (beginning with oldest data, in sequence). ● Print content is fetched from the buffer for each printing. ● Once the Ready status is set, the first print content will be fetched from the buffer. ●...
  • Page 62 (Example 3) When offline is restored during normal operation, and printing is subsequently performed in standard mode: (Example 4) Buffer repeat count is 2. (Example 5) Timing of Fault : Print completed, Data count when error occurs : 2 (Example 6) Timing of Fault : Print started, Data count when error occurs : 0...
  • Page 63: External Communications

    1.6.3 External Communications 1.6.3-1 Transmitting print contents (1) Function ● The received print content will not be reflected in printing immediately, but temporarily held in buffer. ● To facilitate operation, first input fixed characters that do not need to be changed, and then transmit only the print items to be changed.
  • Page 64: Errors

    1.6.4 Errors (1) Errors during external communications Errors during print content transmission and print data call-up Condition Type of error NAK is returned. Not all received print contents could be held in However, this will not cause any buffer because its capacity was exceeded external communication error.
  • Page 65: External Communication Error List

    1.7 External communication error list ● If there is an incorrect communication, an alarm or abnormal message is displayed to the right of the status display area. ● Please check the details of the error and take the action corresponding to the error code. Warning ●...
  • Page 66 Error Code Table (1/2) Error Name Description Check Code ● The transmitted code was not defined Transmission code for communication use. Check the baud rate and transmission code. ● error The transmitted message had an illegal structure. Print specifications The print specifications data value was Check the print specifications code error illegal.
  • Page 67 Error Code Table (2/2) Error Name Description Check code ● Transmitted to block where calendar/count characters were not present. ● Calendar/count Set value was outside specifications. Check calendar/count condition ● conditions error Zero suppression transmission, Substitution rules trans- communication text. mission, Range 1 or 2 transmission was performed to print item for which bar code had been set.
  • Page 68: Tunnel Communication

    2. Tunnel communication 2.1 Overview Tunnel communication is a function that employs a LAN environment to input communication from external unit of the same contents as RS-232C serial communication to an IJ Printer connected to a network. The transmission contents as the same as RS-232C serial communication. Please refer to “1.1 Overview”...
  • Page 69: Optional Support

    2.3 Optional support Following chart shows the list of optional functions which can be used with Tunnel communication. Soft option SOP-08 "barcode reader connection" are not supported by Ethernet. Supported options Can/cannot Option name Function be used 〇 Printing contents output 〇...

Table of Contents