0% found this document useful (0 votes)
27 views48 pages

Communication User's Manual (EtherNetIP) (B)

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views48 pages

Communication User's Manual (EtherNetIP) (B)

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 48

HITACHI Printer

Model UX2
Communication User’s Manual
(EtherNet/IP)

● 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.
To export the product, check the export control-related regulations,
such as the Foreign Exchange and Foreign Trade Law and the
Export Administration Regulations, and follow the necessary
procedures.
If you have any questions, contact your Hitachi sales representative.

August 2022 (rev.B)

● 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

1
■Note

・For details of EtherNet/IP and notes, please refer to EtherNet/IP related equipment manual etc.
・IJ Printer software is certified with EtherNet/IP authentication Composite test revision: CT18.
Please note that the revision contents released from ODVA after CT19 are not verified for
operation.

■Trademark
"Ethernet" is a registered trademark of Xerox Corporation, USA.
"EtherNet/IP" is the product name of ODVA (Open DeviceNet Vendor Association).

2
Table of Contents

1. EtherNet/IP function ................................................................................................................... 5


1.1. Overview .................................................................................................................................. 5
1.2. Usage precautions .................................................................................................................. 5
2. EDS File ....................................................................................................................................... 5
3. Explicit message communication specification ..................................................................... 6
3.1. Access code ............................................................................................................................ 6
3.2. Class code ............................................................................................................................... 7
3.3. Index function (Class code = 0x7A) ...................................................................................... 8
3.4. Print data management function (Class code = 0x66)...................................................... 10
3.5. Print format function (Class code = 0x67) ......................................................................... 12
3.6. Print specification function (Class code = 0x68) .............................................................. 14
3.7. Calendar function (Class code = 0x69) .............................................................................. 16
3.8. User pattern function (Class code = 0x6B) ........................................................................ 20
3.9. Substitution Rules function (Class code = 0x6C) ............................................................. 21
3.10. Environment setting function (Class code = 0x71) ....................................................... 23
3.11. Unit information function (Class code = 0x73) .............................................................. 24
3.12. Operation management function (Class code = 0x74).................................................. 26
3.13. IJ Printer operation function (Class code = 0x75) ......................................................... 27
3.14. Index function (Class code = 0x7A) ................................................................................ 28
4. Implicit message communication specification (Cyclic communication) ......................... 30
4.1. T->O communication (Transmission from the IJ Printer to the external device) .......... 30
4.2. O->T communication (Transmission from the external device to the IJ Printer) .......... 32
4.2.1. O->T Communication Transmission Procedure ............................................................ 34
5. IJ Printer detail code ................................................................................................................ 38
5.1. Automatic reflection of Index function (Explicit message communication) ...................................... 38
5.1.1. Instruction .......................................................................................................................... 38
5.1.2. Examples............................................................................................................................ 38
5.2. Message editing (Explicit message communication) ........................................................................... 40
5.2.1. Instruction .......................................................................................................................... 40
5.2.2. Examples............................................................................................................................ 40
5.3. Special characters (Explicit message communication / Implicit message communication (Cyclic communication)) ... 41
5.3.1. Calendar characters.......................................................................................................... 41
5.3.2. Count characters............................................................................................................... 41
5.3.3. Fixed user pattern characters.......................................................................................... 42
5.3.4. Free user pattern characters ........................................................................................... 43
5.3.5. Special keys for barcode .................................................................................................. 44

3
5.4. Dot matrix code (Explicit message communication) ............................................................................ 45
5.5. Barcode (Explicit message communication) ......................................................................................... 46
5.6. External communication error code ................................................................................... 47

4
1. EtherNet/IP function
1.1. Overview
It is a function to communicate with an IJ Printer via Ethernet from an external device using the
network environment.
EtherNet/IP is an industrial multi-vendor network using Ethernet, and its communication specification
is adopted as an open standard in various industrial equipment.
EtherNet/IP communication has two communication functions: “Message communication (Explicit
communication)” that communicates at a fixed cycle.
For the EtherNet/IP communication, it is necessary to develop a communication program on the
external device side.

1.2. Usage precautions


(1) Functions listed below are not operational during the use of this function.

No. Function Items Remarks


The setting is fixed to [Disable]. It is possible to confirm the
1 Buffer function
setting on “Communication environment setup 2/2”
The setting is fixed to [Reflect at once]. This function is
available when using External Signal Function A (SOP-05).
2 Data exchange
It is possible to confirm the setting on “Communication
environment setup 2/2”
3 Special communication (SOP-04) Not available with the left option
4 External signal (SOP-05) Not available with the left option
5 Barcode reader connection (SOP-08) Not available with the left option
6 Special features (SOP-15-nn) Not available with the left option
7 User pattern 500 characters (SOP-25) Not available with the left option

2. EDS File
If you need EDS file, please contact your nearest local distributor.

5
3. Explicit message communication specification
Specify the following Access code, Class code, and attribute to control the operation of the IJ Printer.
Instance is fixed to “1”.

3.1. Access code

There are three types of access codes, “Set”, “Get”, and “Service”.

List of Access Code

No. Access Code Detail


1 0x32 (Set) Set the information specified for the IJ Printer.
2 0x33 (Get) Acquire information set in the IJ Printer.
3 0x34 (Service) Executes the function of the IJ Printer.
(1) 0x32(Set)
The address of the target item and the setting content are transmitted from the external device to
the IJ Printer. The IJ Printer updates the setting contents of the specified address.
(2) 0x33(Get)
The target address is transmitted from the external device to the IJ Printer. The IJ Printer notifies
the content of the specified address.
(3) 0x34(Service)
The target address is transmitted from the external device to the IJ Printer. The IJ Printer
performs the specified function.
(4) Other Code
When setting values other than 0x32 (Set), 0x33 (Get), 0x34 (Service), unsupported "0x2e" is
transmitted.

Example) When setting the character string to "ABC".


1 2 3 4 5 6 7
Designated code: 0x32 0x67 0x71 0x41 0x42 0x43 0x00

№ Designated code and content Code type


1 0x32 = Set Access code
2 0x67 = Print format function Class code
3 0x71 = Print character string setting Attribute
4 0x41 = Character string "A" ASCII code(Hexadecimal)
5 0x42 = Character string "B" ASCII code(Hexadecimal)
6 0x43 = Character string "C" ASCII code(Hexadecimal)
7 0x00 = Termination code Termination code

6
3.2. Class code

The class code has the following settings.

List of Class Code

Class Code Function Detail


0x7A Index func. Set/Get IJ Printer item information
0x66 Print data management func. Set/Get value of print data management
0x67 Print format func. Set/Get value of print format
0x68 Print specification func. Set/Get value of print specification function
0x69 Calendar func. Set/Get value of calendar function
0x6B User pattern func. Set/Get user pattern
0x6C Substitution rules func. Set/Get substitution rules
0x71 Environment setting func. Set/Get environment setting value
0x73 Unit Information func. Set/Get unit information
0x74 Operation management func. Set/Get operation management information
0x75 IJ Printer operation func. Set value of IJ Printer operation function
0x79 Count func. Set/Get value of count function

Example) When getting the character height.


1 2 3
Designated code: 0x33 0x68 0x64

№ Designated code and content Code type


1 0x33 = Get Access code
2 0x68 = Printing specification function Class code
3 0x64 = Getting of character height Attribute

7
3.3. Index function (Class code = 0x7A)

The index function is a management function of EtherNet/IP communication. There are functions
such as specifying columns and lines.
For the initial value of index function, refer to index function list below.
By turning off the power of the IJ Printer, it returns to the initial value of index function.
* Please note that the data range in the following table is written as decimal numbers, but the actual
I/O data is in hexadecimal number, and when data type is character the I/O data shall be UTF-8
codes. "Data Range" means the range of input data.

List of Index Functions

Address Input data


Data Initial Data
Function Name Data Notes
Attribute Access Range Value Data Length
Type
(byte)

Set Start/Stop 2 2 2 1 int 2: Confirmation


0x64 management
flag 0: no un-reflected data
Get 0 to 1 0 Null Null Null
1: has un-reflected data
Set Automatic 0/1 1 int 0: Automatic reflect
0x65 0 to 1 0
Get reflection Null Null Null 1: non-automatic reflects

Set Item No. 1 int


0x66 Item count 1 to 100 1
Get Null Null Null
Set Colum No. 1 int
0x67 Column 1 to 100 1
Get Null Null Null
Set Line No. 1 int
0x68 Line 1 to 6 1
Get Null Null Null
Character Character
Set position 2 int
0x69 1 to 1000 1 position
(For Inter-
Get character space) Null Null Null

Print data Message


Set 2 int
0x6A message 1 to 2000 1 number
number
Get Null Null Null
Set Print data group Group No. 1 int
0x6B 1 to 99 1
Get data Null Null Null
Set Substitution Rule No. 1 int
0x6C 1 to 99 1
Get rules setting Null Null Null
Set User pattern Size 1 int
0x6D 1 to 19 1
Get size Null Null Null
Set Block No. 1 int
0x6E Count block 1 to 8 1
Get Null Null Null
Set Block No. 1 int
0x6F Calendar block 1 to 8 1
Get Null Null Null

8
Example) When specifying the first column.


1 2 3 4
Designated code: 0x32 0x7A 0x67 0x03

№ Designated code and content Code type


1 0x32 = Set Access code
2 0x7A = Index function Class code
3 0x67 = column Attribute
4 0x03 = column number Data

9
3.4. Print data management function (Class code = 0x66)

The print data management function includes functions such as calling and deleting print data.

List of Print Data Management Functions

Address Input Data


Function Name Data Range Data Notes
Data
Attribute Access Data Length
Type
(Byte)
1 to 2000 2000:with Upgrade key
0x64 Service Select message Message No. 2 short
(1 to 300) 300: without Upgrade key
Group:
1 short
0 to 99 2000:with Upgrade key
Message 300: without Upgrade key
Group No +
0x65 name: If there is the same
Service Store print data Message
*1 Max 12 char. message name, it will be
name 1 to 48 char
(Numeral, overwritten regardless of
alphabetic, message No.
Kanji, Kana)
1 to 2000 2000:with Upgrade key
0x67 Service Delete print data Message No. 2 short
(1 to 300) 300: without Upgrade key
Message No.
1 to 2000 2 short
(1 to 300)
Message No.
Message
0x69 Stting of print data + 2000: with Upgrade key
Service name:
*1 name Message 300: without Upgrade key
Max 12 char. name 1 to 48 char
(Numeral,
alphabetic,
Kanji, Kana)
Getting list of 10
messages 0 to 2000 Specified 2000:with Upgrade key
0x6A Get 2 int
from the specified (1 to 300) message No 300: without Upgrade key
message
Before
changing
Message No.
0x6B 1 to 2000 2000:with Upgrade key
Service Setting of Message No. + 2 short
*1 (1 to 300) 300: without Upgrade key
After
changing
Message No.
Group:
1 short
1 to 99
0x6C Change/Create Group name: Group No.+
Service Max 12 char.
*1 group name Group Name
(Numeral, 1 to 48 char
alphabetic,
Kanji, Kana)
0x6D Service Group deletion 1 to 99 Group No. 1 int
Getting list of 10
message Groups Specified
0X6F Get 1 to 99 1 int
from the specified Group No
group No.
Before
changing
Group No.+
0x70 Service Change group number 1 to 99 After 1 int
changing
Group name
No

*1: Currently unsupported function

10
Example) When deleting print data. (Message No.300)


1 2 3 4 5
Designated code: 0x34 0x66 0x67 0x01 0x2c

№ Designated code and content Code type


1 0x34 = Service Access code
2 0x66 = Print data management function Class code
3 0x67 = Deletion of print data Attribute
4 0x01 = Message number 16 Hex Data
5 0x2C = Message number 16 Hex Data
※300(Decimal)=012C(Hexadecimal)

11
3.5. Print format function (Class code = 0x67)

The print format function includes functions such as column and step settings.

List of Print Format Functions (1/2)

Address Input
Data Data
Function Name Data Notes
Attribute Access Range Data Length
Type
(Byte)
0x64 Get Get message name - Null Null Null
0x65 Get Get print Item - Null Null Null
Get number of
0x66 Get - Null Null Null
columns
0x67 Set Set format type 1 Null Null Null 1: Individual setup
*1 Get Get format type - Null Null Null
Set item number in "Column" of
0x69 Service Insert column - Null Null Null
index function.
Set item number in "Column" of
0x6A Service Delete column - Null Null Null
index function.
0x6B Service Add column - Null Null Null
Set To overall Setting 1 int
0x6C 0: Non uniformity mode
Get line count / print 0 to 1
*1 Get Null Null Null 1: Uniformity mode
format uniformity
Format number
Format
0x6D Set Format setup 1 or 3 1 int 1: Individual setup
number
3: Free layout
0x6E Service Adding print items - Null Null Null
Deletion of print Set item number in "Item Count" of
0x6F Service - Null Null Null
items index function.
Setting of print Up to 750 Print 1 to
Set char
character string digits contents 751
(Unicode) Set item number in "Item Count" of
0x71
Getting of print + index function.
Get Null Null Null
character string Terminatio
n code
Set Setting of line count Line count 1 short Set item number in "Column" of
0x72 1 to 6
Get Getting of line count Null Null Null index function.
Setting of line 0 to 4
Set Line spacing 1 int
spacing (When line Set item number in "Column" of
0x73
Getting of line is 5 or 6, 0 index function.
Get Null Null Null
spacing to 2)
Set Setting of dot matrix Dot matrix 1 int Set item number in "Item Count" of
index function. Please refer to "5.4
0x74 1 to 16
Get Getting of dot matrix Null Null Null Dot matrix Code (Explicit message
communication)" for dot matrix.
Inter-
Setting of Inter-
Set character 1 char
character space Set item number in "Item Count" of
0x75 0 to 28 space
index function.
Getting of Inter-
Get Null Null Null
character space
Setting of character
Set Bold 1 int
bold
0x76 1 to 9
Getting of character
Get Null Null Null
bold
Setting of barcode Barcode Set item number in "Item Count" of
Set 1 int
type Number index function. Please refer to "5.5
0x77 0 to 34
Getting of barcode Barcode (Explicit message
Get Null Null Null
type communication)" for barcode.
Readable Set item number in "Item Count" of
Setting of readable
Set code 1 int index function.
code
0x78 number* *Readable code number
0 to 2
*1 0: No identification code
Getting of readable
Get Null Null Null 1: Size 5 x 5
code
2: Size 5 x 7

*1: Currently unsupported function

12
List of Print Format Functions (2/2)

Address Input
Function Name Data Range Data Notes
Data
Attribute Access Data Length
Type
(Byte)
Setting of prefix
Set Prefix code 1 int Set item number in
0x79 code
0 to 99 "Item Count" of
*1 Getting of prefix
Get Null Null Null index function.
code
Setting of the X and
Coordinate X:2
Set Y coordinate values short Set item number in
X+Y Y:1
of free layout X: 0 to 31999 "Item Count" of
0x7A
Getting of the X and Y: 0 to 29 index function.
Get Y coordinate values Null Null Null The order is X, Y
of free layout
Setting of adjust
“Character count”
Set inter-character Character count: 3 int Set item number in
+ “Adjust value”
space count 1 to 1000 "Character
0x7B
Getting of adjust Adjust value: position" of index
Get inter-character 0 to 99 Character count 2 int function.
space count
Set item number in
Add character at the Up to 750 digits String to be
0x8A Set Max 750 int "Item Count" of
end of current string (Unicode) added Unicode
index function.
Setting of calendar
Set
offset
Calendar offset 1 char 0: Offset from
0x8D 0 to 1 yesterday
Getting of calendar
Get Null Null Null 1: From today
offset
0x8E Get Getting of DIN print Null Null 0: Disable
0 to 1 DIN print
*1 Set Setting of DIN print 1 char 1: Enable

Set Setting of EAN prefix EAN prefix 1 char


0x8F 0: Edit message
Getting of EAN 0 to 1
*1 Get Null Null Null 1: Print format
prefix
Setting of barcode
Set Barcode printing 1 char
printing 0: Normal
0x90 0 to 1
Getting of barcode 1: Reverse
Get Null Null Null
printing
Setting of QR error QR error
Set 1 char
correction level correction level 0: M (15%)
0x91 0 to 1
Getting of QR error 1: Q (25%)
Get Null Null Null
correction level

*1: Currently unsupported function

Example) When Line spacing setting format.


1 2 3 4
Designated code: 0x32 0x67 0x6D 0x02

№ Designated code and content Code type


1 0x32 = Set Access code
2 0x67 = Print data format function Class code
3 0x6D = Format setting Attribute
4 0x02 = Format number (16 Hex) Data

13
3.6. Print specification function (Class code = 0x68)

The print specification function includes functions such as character height and particle usage rate
settings.
List of Print Specification Functions (1/2)

Address Input Data


Data Data
Function Name Data Notes
Attribute Access Range Data Length
type
(Byte)
Getting of character
Get Null Null Null
height 0 to
0x64
Setting of character 99 unsigned
Set Character height 1
height short
Getting of Ink drop
Get Null Null Null
use 1 to
0x65
Setting of Ink drop 16 unsigned
Set Ink drop use 1
use char
Getting of High-
Get Null Null Null
Speed print
0x66
0 to 4
*1 High-Speed print mode
Setting of High- High-Speed unsigned
Set 1 0:HM, 1: NM, 2: QM,
Speed print print Mode * char
3:SM, 4: D1
Getting of character
Get Null Null Null
width 0 to
0x67
Setting of character 3999 unsigned
Set character width 2
width char
Getting of character
Get Null Null Null
orientation
Character orientation
0x68 0 to 3 0: Normal/Forward
Setting of character unsigned
Set Character orientation 1 1: Normal/Reverse
orientation int
2: Inverted/Forward
3: Inverted/Reverse
Getting of print start
Get Null Null Null
delay count 0 to
0x69
Setting of print start 9999 Print start
Set 2 short
delay count delay count
Getting of print start
Get delay (Reverse) Null Null Null
count 0 to
0x6A
Setting of print start 9999
Print start
Set delay (Reverse) 2 short
delay count
count
Getting of product
Get Null Null Null
speed matching
Product speed matching
0x6B 0 to 2 Mode
Setting of product Product speed unsigned
Set 1 0: None
speed matching matching Mode char
1: Encoder
2: Auto
Getting of pulse rate
Get Null Null Null
division factor 0 to
0x6C
Setting of pulse rate 999 Pulse rate unsigned
Set 2
division factor division Factor short
Getting of speed Setting of Print star
Get Null Null Null
compensation delay
0x6D 0 to 1
Setting of speed Speed compensation unsigned 0: Enable
Set 1 1: Disable
compensation Number int
Get Getting of line speed Null Null Null
0x6E 0 to
*1 9999 unsigned
Set Setting of line speed Line Speed 2
short

*1: Currently unsupported function

14
List of Print Specification Functions (2/2)

Address Input Data


Data Data
Function Name Data Notes
Attribute Access Range Data Length
type
(Byte)
Getting the distance
Get between the print head Null Null Null
and the print object
0x6F 0 to 99
Setting the distance
unsigned
Set between the print head distance 1
int
and the print object
Getting of print target
Get Null Null Null
width
0x70 0 to 9999
Setting of print target unsigned
Set width 2
width int
Getting of actual print
Get Null Null Null
width
0x71 0 to 9999
Setting of actual print unsigned
Set width 2
width int
Getting of repeat printing
Get Null Null Null
0x72 count 0:Non
0 to 9999
*1 Setting of repeat printing unsigned 9999: No limitation
Set printing count 2
count int
Getting of repeat printing
Get Null Null Null
0x73 intervals
0 to 99999
*1 Setting of repeats unsigned
Set printing intervals 3
printing intervals int
Getting of target sensor
Get Null Null Null
timer
0x74 0 to 999
Setting of target sensor unsigned
Set sensor timer 2
timer char
Getting of target sensor
Get Null Null Null
filter
0x75 0 to 1 sensor filter
Setting of target sensor
Set sensor filter 1 1 0: Time setup
filter
1: Until end of print
Getting of target sensor
Get Null Null Null
filter setting value
0x76 0 to 9999
Setting of target sensor unsigned
Set setting value 2
filter setting value short
Getting of ink drop 0: Standard
Get Null Null Null
charge rule (Single scan/interlaced)
0x77
0 to 2 1: Mixed single scan and
*1 Setting of ink drop Ink drops
Set 1 1 interlaced
charge rule charge rule
2: Dot mixed interlaced
Getting of print start
Get position adjustment 0 to 50 Null Null Null
value
0x78
Setting of print start
Set position adjustment Adjust value 2 short
value
*1: Currently unsupported function

Example) When setting character height.



1 2 3 4
Designated code: 0x32 0x68 0x64 0x15

№ Designated code and content Code type


1 0x32 = Set Access code
2 0x68 = Printing specification function Class code
3 0x64 = Character height setting Attribute
4 0x15 = Character height 21(10 Hex) Data

15
3.7. Calendar function (Class code = 0x69)

The calendar function includes necessary functions such as setting of offsets (year) and acquisition
of zero suppression (year).

List of Calendar Functions (1/3)

Address Input data


Function Name Data Range Data Notes
Attribute Access Data Digit
Type
Getting of shift code Set item number in "Item
0x65 Get 1 to 48 block number Null Null
condition Count" of index function.
Getting of first calendar Set item number in "Item
0x66 Get 1 to 8 Null Null Null
block number Count" of index function.
Getting of calendar Set item number in "Item
0x67 Get 1 to 8 Null Null Null
block number in item Count" of index function.
Getting of offset value
Get Null Null Null Set item number in
(Year)
0x68 0 to 99 "Calendar block" of index
Setting of offset value Offset value Unsigned
Set 1 function.
(Year) (Year) short
Getting of offset value
Get Null Null Null Set item number in
(Month)
0x69 0 to 99 "Calendar block" of index
Setting of offset value Offset value unsigned
Set 1 function.
(Month) (Month) short
Getting of offset value
Get Null Null Null Set item number in
(Day)
0x6A 0 to 1999 "Calendar block" of index
Setting of offset value Offset value unsigned
Set 2 function.
(Day) (Day) short
Getting of offset value
Get Null Null Null Set item number in
(Hour)
0x6B -23 to 99 "Calendar block" of index
Setting of offset value Offset value
Set 2 short function.
(Hour) (Hour)
Getting of offset value
Get Null Null Null Set item number in
(Minute)
0x6C -59 to 99 "Calendar block" of index
Setting of offset value Offset value
Set 1 short function.
(Minute) (Minute)
Set item number in
Getting of Zero- "Calendar block" of index
Get suppression value Null Null Null function.
(Year) Mode No.
0x6D 0 to 2 0: Zero-suppression
Setting of Zero- disabled
unsigned 1: Enable (space)
Set suppression value Mode No. 1
char 2: Enable (character
(Year)
justification)
Set item number in
Getting of Zero- "Calendar block" of index
Get suppression value Null Null Null function.
(Month) Mode No.
0x6E 0 to 2 0: Zero-suppression
Setting of Zero- disabled
unsigned 1: Enable (space)
Set suppression value Mode No. 1
char 2: Enable (character
(Month)
justification)
Set item number in
Getting of Zero- "Calendar block" of index
Get suppression value 0 to 2 Null Null Null function.
(Day) Mode No.
0x6F 0: Zero-suppression
disabled
Setting of Zero- 1: Enable (space)
unsigned
Set suppression value Mode No. 1 2: Enable (character
char
(Day) justification)

16
List of Calendar Functions(2/3)
Address Input data
Function Name Data Range Data Notes
Attribute Access Data Digit
Type
Set item number in
Getting of Zero- "Calendar block" of index
Get Null Null Null function.
suppression value (Hour)
Mode No.
0x70 0 to 2 0: Zero-suppression
disabled
Setting of Zero- unsigned 1: Enable (space)
Set Mode No. 2
suppression value (Hour) char 2: Enable (character
justification)

Set item number in


Getting of Zero- "Calendar block" of index
Get Null Null Null function.
suppression value (Minute)
Mode No.
0x71 0 to 2 0: Zero-suppression
disabled
Setting of Zero- 1: Enable (space)
Set Mode No. 1 short 2: Enable (character
suppression value (Minute)
justification)

Set item number in


Getting of Zero- "Calendar block" of index
Get Null Null Null function.
suppression value (Weeks)
Mode No.
0x72 0 to 2 0: Zero-suppression
disabled
Setting of Zero- 1: Enable (space)
Set Mode No. 1 short 2: Enable (character
suppression value (Weeks)
justification)

Set item number in


Getting of Zero- "Calendar block" of index
Get suppression value Null Null Null function.
(Day of Week) Mode No.
0x73 0 to 2 0: Zero-suppression
disabled
Setting of Zero- 1: Enable (space)
Set suppression value Mode No. 1 short 2: Enable (character
(Day of Week) justification)
Set item number in
Getting of Substitution rules
Get Null Null Null "Calendar block" of index
(Year)
function.
0x74 0 to 1
Mode No.
Setting of Substitution rules unsigned 0: Disable
Set Mode No. 1
(Year) char 1: Enable
Set item number in “Item
Getting of Substitution rules
Get Null Null Null Count” and "Calendar
(Month)
block" of index function.
0x75 0 to 1
Mode No.
Setting of Substitution rules unsigned
Set Mode No. 1 0 : Disable
(Month) char
1: Enable
Getting of Substitution rules Set item number in
Get Null Null Null
(Day) "Calendar block" of index
0x76 0 to 1 function.
Setting of Substitution rules unsigned Mode No.
Set Mode No. 1 0: Disable, 1: Enable
(Day) char
Set item number in
Getting of Substitution rules
Get Null Null Null "Calendar block" of index
(Hour)
function.
0x77 0 to 1
Mode No.
Setting of Substitution rules unsigned
Set Mode No. 1 0: Disable
(Hour) char 1: Enable

17
List of Calendar Functions (3/3)

Address Input data


Function Name Data Range Notes
Data
Attribute Access Data Digit
Type

Getting of Substitution Set item number in


Get Null Null Null "Calendar block" of
rules (Minute)
index function.
0x78 0 to 1
Mode No.
Setting of Substitution unsigned
Set Mode No. 1 0: Disable
rules (Minute) char 1: Enable
Getting of Substitution Set item number in
Get Null Null Null "Calendar block" of
rules (Weeks)
index function.
0x79 0 to 1
Mode No.
Setting of Substitution unsigned
Set Mode No. 1 0: Disable
rules (Weeks) short 1: Enable
Getting of Substitution Set item number in
Get Null Null Null "Calendar block" of
rules (Day of week)
index function.
0x7A 0 to 1
Mode No.
Setting of Substitution unsigned
Set Mode No. 1 0: Disable
rules (Day of week) short 1: Enable
Getting of the time count
Get Null Null Null Numeral, alphabetic,
start value Max
0x7B symbols, User
Setting of the time count 3 digits unsigned
Set start value 1 to 21 pattern (Fixed size)
start value char
Getting of the time count
Get Null Null Null Numeral, alphabetic,
end value Max
0x7C symbols, User
Setting of the time count 3 digits unsigned
Set end value 1 to 21 pattern (Fixed size)
end value char
Getting of reset value of
Get Null Null Null Numeral, alphabetic,
the time count. Max
0x7D symbols, User
Setting of reset value of 3 digits unsigned
Set reset value 1 to 21 pattern (Fixed size)
the time count. char
Get Getting of reset time value Null Null Null
0x7E 0 to 23 Reset unsigned
Set Setting of reset time value 1
Time char
Getting of the update
Get interval value of the time Null Null Null 1:5min, 2: 6min
count
0x7F 1 to 6 3:10min, 4:15min
Setting of the update renewal
unsigned 5:20min, 6:30min
Set interval value of the time period 1
char
count value
Getting of shift start time block
Get Null Null
(Hour) value number
1 to 48
block
0x80 (start time:
Setting of shift start time number + unsigned
Set 0 to 23) 1
(Hour) value string char
value
Getting of shift start time block
Get Null Null
(Minute) value number
1 to 48
block
0x81 (start time:
Setting of shift start time number + unsigned
Set 0 to 59) 1
(Minute) value string char
value
Getting of shift end time block
0x82 Get 1 to 48 Null Null
(Hour) value number
Getting of shift end time block
0x83 Get 1 to 48 Null Null
(Minute) value number
block
Get Getting of shift string value String:Max Null Null
number
10 digits block
block
0x84 block
number + number:1 unsigned
Set Setting of shift string value number:
string String: char
1 to 48
value 1 to 70

18
Example) When getting leading calendar block number


1 2 3
Designated code: 0x33 0x69 0x66

№ Designated code and content Code type


1 0x33 = Get Access code
2 0x69 = Calendar function Class code
3 0x66 = Get first calendar block number Attribute

19
3.8. User pattern function (Class code = 0x6B)

User pattern function sets and acquires user pattern data.

List of User Pattern Functions

Address Input Data Notes


Function Name Data Range
Data Length Data
Attribute Access Data
(Byte) Type
Getting of user Dot Matrix +
Get 2
pattern (Fixed) Position No. unsigned
Dot Matrix: Refer to Communication
short
1 to 19 Dot Matrix:1 to 19 User's Manual (Serial)
0x64 Dot Matrix + +
Setting of user Position No.: Position No.:0 to 199 "1.3.7 User Pattern
Set Position No. + unsigned
pattern (Fixed) 0 to 199 Pattern: Max 998 Character Transmission".
Pattern char
bytes

Getting of user
Get Vertical size: Position No 0 to 49
pattern (Free)
1 to 32 unsigned
Refer to Communication
Horizontal Vertical size: 1 short
Vert. size + User's Manual (Serial)
0x65 size: Horizontal size: 2 +
Setting of user Hori. size + "1.3.7 User Pattern
Set 1 to 320 Position No.: 1 unsigned
pattern (Free) Position No. + Character Transmission".
Position No.: Pattern: Max 996 char
0 to 49 Pattern
bytes

Example) When getting user pattern (Fixed) (Dot Matrix 4x5, pattern number 0)


1 2 3 4 5
Designated code: 0x33 0x6B 0x64 0x01 0x00

№ Designated code and content Code type


1 0x33 = Get Access code
2 0x6B = User pattern function Class code
3 0x64 = Get user pattern (fixed) content Attribute
4 0x01 = Dot Matrix 4x5 Data(Character size code)
5 0x00 = register pattern number Data

20
3.9. Substitution Rules function (Class code = 0x6C)

The calendar function includes functions such as obtaining the substitution rule number and the
substitution rule name.

List of Substitution Rules Functions(1/2)

Address Input data


Data
Function Name Data Notes
Range Data
Attribute Access Data Length
Type
(Byte)
substitution Set item
Setting of substitution number in
Set rules 1 unsigned char
0x64 rules number "Substitution
1 to 99 number
*1 rules setting"
Getting of substitution of index
Get Null Null Null
rules number function.
substitution Set item
Setting of substitution number in
Set rules 1 to 48 unsigned char
0x65 rules name "Substitution
Max 12 number
*1 rules setting"
Getting of substitution of index
Get Null Null Null
rules name function.
Setting of the start Set item
Set start year 2 unsigned char number in
year
0x66 2000 to "Substitution
*1 Getting of the start 2099 rules setting"
Get Null Null Null of index
year
function.
Setting the character Number:
Number:1
string of the Number+ unsigned short Set item
Set Character:
substitution rules Number: Character Character: number in
0x67 value (Year) 0 to 23 1 to 14 "Substitution
unsigned char
*1 Getting the character Character: rules setting"
string of the Max 2 of index
Get Null Null Null function.
substitution rules
value (Year)
Setting the character Number:
Number:1
string of the Number+ unsigned short Set item
Set Character:
substitution rules Number: Character Character: number in
0x68 value (Month) 1 to 12 1 to 21 "Substitution
unsigned char
*1 Getting the character Character: rules setting"
string of the Max 3 of index
Get Null Null Null function.
substitution rules
value (Month)
Setting the character Number:
Number:1
string of the Number+ unsigned short Set item
Set Character:
substitution rules Number: Character Character: number in
0x69 value (Day) 1 to 31 1 to 21 "Substitution
unsigned char
*1 Getting the character Character: rules setting"
string of the Max 3 of index
Get Null Null Null function.
substitution rules
value (Day)
Setting the character Number:
Number:1
string of the Number+ unsigned short Set item
Set Character:
substitution rules Number: Character Character: number in
0x6A value (Hour) 0 to 23 1 to 14 "Substitution
unsigned char
*1 Getting the character Character: rules setting"
string of the Max 2 of index
Get Null Null Null function.
substitution rules
value (Hour)

21
List of Substitution Rules Functions(2/2)

Address Input data


Data
Function Name Data Notes
Range Data
Attribute Access Data Length
Type
(Byte)

Number:
Setting the character Number:1
Number+ unsigned short
Set string of the substitution Number: Character: Set item number in
Character Character:
0x6B rules value (Minute) 0 to 59 1 to 14 "Substitution rules
unsigned char
*1 Character: setting" of index
Setting the character Max 2 function.
Get string of the substitution Null Null Null
rules value (Minute)

Setting the character Number:


Number:1
string of the substitution Number+ unsigned short
Set Character:
rules value (Week Number: Character Character: Set item number in
Number) 1 to 21
0x6C 1 to 53 unsigned char "Substitution rules
*1 Character: setting" of index
Getting the character function.
Max 3
string of the substitution
Get Null Null Null
rules value (Week
Number)

Setting the character Number:


Number:1
string of the substitution Number+ unsigned short
Set Character:
rules value Character Character:
(The day of the week) Number: 1 to 21 Set item number in
unsigned char
0x6D 1 to 7 "Substitution rules
*1 Character: setting" of index
Getting the character function.
Max 3
string of the substitution
Get Null Null Null
rules value
(The day of the week)

*1: Currently unsupported function

Example) When setting substitution rules value (Year)


1 2 3 4 5 6 7
Designated code: 0x32 0x6C 0x67 0x00 0x41 0x42 0x00

№ Designated code and content Code type


1 0x32 = Set Access code
2 0x6C = Substitution rules function Class code
3 0x67 = Substitution rules value (Year) setting Attribute
4 0x00 = Year number Data (Number)
5 0x41 = Unicode of character “A” Data (Character)
6 0x42 = Unicode of character “B” Data (Character)
7 0x00 = Termination code Termination code

22
3.10. Environment setting function (Class code = 0x71)

The environment setting function includes functions such as acquiring current time setting and the
setting value of the circulation control.

List of Environment Setting Functions

Address Input Data


Function Name Data Range Data Notes
Data
Attribute Access Data Length
Type
(Byte)

Get Getting of current time - - -


Year:
0x65
(2000 to 2037)
Set Setting of current time Month:(1 to 12) - 7 struct
Day: (1 to 31)
Getting of calendar date Hour: (0 to 23)
Get - - -
and time Minute:(0 to 59)
0x66
Setting of calendar date S e c: (0 to 59)
Set - 7 struct
and time
Getting of calendar date
and time availability
Get - - -
(Getting of current time
availability.) Setting value
0x67 1 to 2 1: Same as current time
Setting of calendar date 2.clock stop
and time availability Setting Unsigned
Set 1
(Getting of current time Value char
availability.)

Get Getting of clock system - - - Setting value


0x68 1 to 2 1:24-hour clock
Setting Unsigned 2.12-hour clock
Set Setting of clock system 11
Value char
Getting of user
0x69 Get - Null Null Null
environment information
Getting of circulation
0x6A Get - Null Null Null
control setting value
Filter Number
Filter number: Filter 1: Ink filter
Setting of usage time of 1 to 5 number Unsigned 2: Recovery filter
0x6B Service the circulation control +Usage
2
char 3: Circulation filter
Usage time:
0 to 65099 time 4: Makeup filter
5: Air filter

Example) When getting current time


1 2 3
Designated code: 0x33 0x71 0x65

№ Designated code and content Code type


1 0x33 = Get Access code
2 0x71 = Environment setting function Class code
3 0x65 = Getting of current time Attribute

23
3.11. Unit information function (Class code = 0x73)

The unit information acquisition function includes functions such as model name and ink name
acquisition.

List of Unit Information Functions

Address Input Data


Function Name Data Range Data
Attribute Access Data Length Data Type
(Byte)

0x64 Get Getting of unit information Up to 32 bytes - 64 unsigned char

0x6B Get Getting of model name information Up to 32 bytes Model 32 unsigned char

0x6C Get Getting of serial number 0 to 99999999 serial number 4 unsigned char

0x6D Get Getting of ink name Up to 28 digits Ink + makeup name 28 unsigned char

0x6E Get Getting of input mode information 1 to 2 input mode 2 unsigned char

Getting of maximum character maximum character


0x6F Get 240 to 1000 2 unsigned short
count count
Getting of maximum registered maximum registered
0x70 Get 300 to 2000 2 unsigned short
message count message count
Presence or absence
0x71 Get Getting of barcode information 0 to 1 2 unsigned short
2D barcode
Getting of usable character size
0x72 Get 0 to 7 usable character size 2 unsigned char
information
Getting of the maximum calendar maximum calendar and
0x73 Get 3,8 2 unsigned char
and count number count number
Getting of maximum substitution maximum substitution
0x74 Get 48,99 2 unsigned char
rule count rule count
Presence or absence
Getting of shift code and time
0x75 Get 0 to 1 shift code and time 2 unsigned char
count information
count
Getting of chimney and DIN print Presence or absence
0x76 Get 0 to 1 2 unsigned char
information chimney and DIN print
Getting of maximum number of maximum number of
0x77 Get 2 to 6 2 unsigned char
input line count input line count
Getting of basic software version - -
0x78 Get - unsigned char
information
Getting of controller software - -
0x79 Get - unsigned char
version information
0x7A Getting of engine M software - -
Get - unsigned char
*1 version information
0x7B Getting of engine S software - -
Get - unsigned char
*1 version information
0x7C Getting of first language version - -
Get - unsigned char
*1 information
0x7D Getting of second language - -
Get - unsigned char
*1 version information
0x7E Getting of software option version - -
Get - unsigned char
*1 information
*1: Only node view, this is a non-supported node on this model.

24
Example) When getting serial number of IJ Printer


1 2 3
Designated code: 0x33 0x73 0x6C

№ Designated code and content Code type


1 0x33 = Get Access code
2 0x73 = Unit information function Class code
3 0x6C = Get serial number Attribute

25
3.12. Operation management function (Class code = 0x74)

The operation management function includes functions such as operation time and alarm time
acquisition.

List of Operation Management Functions

Address Input Data


Function Name Data Range Data
Attribute Access Data Length Data Type
(Byte)
Getting of operating management
0x64 Get - - - -
information
operating
Get Getting of ink operating time 2 unsigned short
time
0x65 0 to 9999
Set Setting Getting of ink operating time Null Null Null

alarm
Get Getting of alarm time 2 unsigned short
time
0x66 0 to 9999
Set Setting of alarm time Null Null Null

print
Get Getting of print count 4 unsigned short
0 to count
0x67
999999999
Set Setting of print count Null Null Null

Getting of communication
0x68 Get - - - unsigned short
environment information

0x69 Get Getting of cumulative operation time - - - unsigned short

0x6A Get Getting of ink and makeup name - - - unsigned short

0x6B Get Getting of ink viscosity - - - unsigned short

0x6C Get Getting of ink pressure - - - unsigned short

0x6D Get Getting of ambient temperature - - - unsigned short

0x6E Get Getting of deflection voltage - - - unsigned short

Getting of "Excitation V-ref." setup


0x6F Get - - - unsigned short
value

0x70 Get Getting of excitation frequency - - - unsigned short

Example) When getting ink operation time of IJ Printer


1 2 3
Designated code: 0x33 0x74 0x65

№ Designated code and content Code type


1 0x33 = Get Access code
2 0x74 = Operation management function Class code
3 0x65 = Get ink operation time Attribute

26
3.13. IJ Printer operation function (Class code = 0x75)

The IJ Printer operation function includes functions such as remote operation and deflection voltage
control.
List of IJ Printer Operation Functions
Address Input data
Data Data
Function Name Notes
Attribute Access Range Data Length Data Type
(Byte)
Getting of remote operation
0x64 Get - Null Null Null
information
Getting of fault and warning 1 to 90 Start No
0x66 Get 2 const int
history 1 to 10 + count
1: Stop
2: Standby
3: Ready
4: Starting
5: Stopping
0x67 Get Getting of operating condition 1 to 10 Null Null Null
6: Warming up
7: Cover open
8: Service
9: Error
10: Ink warming up
0: No warning
0x68 Get Getting of warning condition 0 to 1 Null Null Null
1: On warning condition
Getting of date and time const
Error
0x6A Get information on occurrence of - 1 unsigned
No.
an fault or warning. int

0x6B Get Getting of error code - Null Null Null

0x6C Service Start Remote Operation - Null Null Null

0x6D Service Stop Remote Operation - Null Null Null

0x6E Service Deflection voltage control - Null Null Null

Set Setting of online/offline state state 1 int


0: Off-line
0x6F 0 to 1
1: On-line
Get Getting of online/offline state Null Null Null

Example) When controlling deflection voltage


1 2 3
Designated code: 0x34 0x75 0x6E

№ Designated code and content Code type


1 0x34 = Service Access code
2 0x75 = IJ Printer operation function Class code
3 0x6E = Deflection voltage control Attribute

27
3.14. Index function (Class code = 0x79)

The count function includes functions such as count condition range specification and update unit
specification.

List of Count Functions (1/2)

Address Input data


Data
Function Name Data Notes
Range Data
Attribute Access Data Length
Type
(Byte)
Getting of the number of count Set item number in "Item
0x66 Get 1 to 8 Null Null Null
blocks in the item Count" of index function.
Get Getting of the initial value Null Null Null Set item number in
0x67 String
"Count block" of index
*1 20 digits Initial unsigned
Set Setting of the initial value 0 to 140 function.
value char
Get Getting of count condition range 1 Null Null Null Set item number in
0x68 String
"Count block" of index
*1 20 digits Setting unsigned
Set Setting of count condition range 1 0 to 140 function.
value char
Get Getting of count condition range 2 Null Null Null Set item number in
0x69 String
"Count block" of index
*1 20 digits Setting unsigned
Set Setting of count condition range 2 0 to 140 function.
value char
Get Getting of update unit (Halfway) Null Null Null Set item number in
0 to
0x6A "Count block" of index
999998 update unsigned
Set Setting of update unit (Halfway) 1 to 6 function.
unit char
Get Getting of update unit (Unit) Null Null Null Set item number in
1 to
0x6B "Count block" of index
999999 update unsigned
Set Setting of update unit (Unit) 1 to 6 function.
unit char
Get Getting of increment value Null Null Null Set item number in
0x6C 1 to 99 "Count block" of index
Increment unsigned function.
Set Setting of increment value 1
value char
Set item number in
Get Getting of direction value Null Null Null "Count block" of index
function.
0x6D 1 to 2
direction value
direction 1 : Up
Set Setting of direction value 1 1
value 2 : Down

Get Getting of the value of jump from Null Null Null Set item number in
0x6E String
"Count block" of index
*1 20 digits Setting unsigned
Set Setting of the value of jump from 1 to 140 function.
value char
Get Getting of the value of jump to Null Null Null Set item number in
0x6F String
"Count block" of index
*1 20 digits Setting unsigned
Set Setting of the value of jump to 1 to 140 function.
value char
Get Getting of reset value Null Null Null Set item number in
0x70 String
"Count block" of index
*1 20 digits Setting unsigned
Set Setting of reset value 1 to 140 function.
value char
Set item number in
Getting of the type of reset signal "Count block" of index
Get Null Null Null
(Option) function.
0x71
0 to 2 Signal value
*1 type of
Setting of the type of reset signal unsigned 0 : None
Set reset 1 1 : Signal 1
(Option) char
signal 2 : Signal 2

*1: Currently unsupported function

28
List of Count Functions (2/2)

Address Input data


Data
Function Name Data Notes
Range Data
Attribute Access Data Length
Type
(Byte)

Getting of availability of Set item number in


Get Null Null Null "Count block" of index
external count (Option)
0x72 function.
0 to 1
*1 external count 設定
Setting of availability of external unsigned 0: Disable
Set 1
external count (Option) count 設定 char 1: Enable

Getting of availability of Set item number in


Get Null Null Null "Count block" of index
Zero-suppression
function.
0x73 0 to 1
Zero- Zero-suppression
Setting of availability of unsigned 0: Disable
Set suppression 1
Zero-suppression char 1: Enable
設定

Getting of the count


Get Null Null Null
multiplier Set item number in
0 to
0x74 "Count block" of index
9999999999
Setting of the count count unsigned function.
Set 10
multiplier multiplier char

Get Getting of count skip Null Null Null


Set item number in
String 5
0x75 "Count block" of index
digits
Count Skip unsigned function.
Set Setting of count skip 1 to 7
Characters char

*1: Currently unsupported function

Example) When setting initial value to “AAA”


1 2 3 4 5 6 7
Designated code: 0x32 0x79 0x67 0x41 0x41 0x41 0x00

№ Designated code and content Code type


1 0x32 = Set Access code
2 0x79 = Count function Class code
3 0x67 = Getting of the Initial value Attribute
4 0x41 = Character(Unicode) "A" 0041 Data(Character)
5 0x41 = Character(Unicode) "A" 0041 Data(Character)
6 0x41 = Character(Unicode) "A" 0041 Data(Character)
7 0x00 = Termination code Termination code

29
4. Implicit message communication specification (Cyclic communication)
Data communication is performed at the communication cycle set in PRI (Requested Packet
Interval) using cyclic communication specified by EtherNet/IP. As IJ Printer supports the connection
type “Exclusive Owner”, by connecting to the external device, transmission from the IJ Printer
(target) to the external device (originator) (T->O communication) and transmission from the
external device to the IJ Printer (O->T communication) is possible. Please set RPI to 200ms or
more.

4.1. T->O communication (Transmission from the IJ Printer to the external device)

The IJ Printer setting value is periodically sent to the external device. The data size is 400 bytes.
Refer to the table “T ->O communication data map” for the data contents. The endian used in cyclic
communication can be changed using O->T communication (the initial value is little endian).
T->O Communication Data Map (1/2)
Data Size Data
No. Function Name Content Value
Type (byte) Update
0=Offline
1 TO_Online_Status Connection status WORD 2 Target
1=Online
1bit: Stop
2bit: Standby
3bit: Ready
4bit: Starting
5bit: Stopping
2 TO_CCPU_Status IJ Printer status WORD 2 Target
6bit: Drop adjust
7bit: Cover open
8bit: Service
9bit: Fault
10bit: Ink heating
0=No warning Non-
3 TO_Warning_Flag Warning state WORD 2
1=Warning target
0x0000=Not able to send Non-
4 TO_EIP_OT_CanSend_Flag CanSend_Flag WORD 2
0xFFFF=Able to send target
TO_EIP_OT_ 0x0000=Changing Non-
5 change flag WORD 2
ChangeCompleted_Flag 0xFFFF=Changed target
T->O communication 0x0000=Update data Non-
6 TO_DataUpdate WORD 2
data update 0xFFFF=Not update data target
0x0000=Little endian Non-
7 TO_Endianness_Flag Endian state WORD 2
0xFFFF=Big endian target

8 TO_DriveTime Driving time WORD 2 0 to 9999 Target

Printed content character


9 TO_PrintString Print content WORD 200 Target
encoding:UTF8

10 TO_PrintCount Print count DWORD 4 0 to 999999999 Target

11 TO_padding0 (Registration) WORD 2 Target

12 TO_padding1 (Registration) WORD 100 Target

Error information Error code of the occurring


13 TO_ErrInfo1 WORD 2 Target
Latest 1st error
Error information Error code of the occurring
14 TO_ErrInfo2 WORD 2 Target
Latest 2nd error
Error information Error code of the occurring
15 TO_ErrInfo3 WORD 2 Target
Latest 3rd error
Error information Error code of the occurring
16 TO_ErrInfo4 WORD 2 Target
Latest 4th error
Error information Error code of the occurring
17 TO_ErrInfo5 WORD 2 Target
Latest 5th error

30
T->O Communication Data Map(2/2)
Data Size Data
No. Function Name Content Value
Type (byte) Update
Warning information Warning code of the occurring
18 TO_WarInfo1 WORD 2 Target
Latest 1st warning
Warning information Warning code of the occurring
19 TO_WarInfo2 WORD 2 Target
Latest 2nd warning
Warning information Warning code of the occurring
20 TO_WarInfo3 WORD 2 Target
Latest 3rd warning
Warning information Warning code of the occurring
21 TO_WarInfo4 WORD 2 Target
Latest 4th warning
Warning information Warning code of the occurring
22 TO_WarInfo5 WORD 2 Target
Latest 5th warning

23 TO_padding2 (Registration) WORD 2 Target

Message name number of


24 TO_NickNameNo Message name number WORD 4 print data being displayed 0 to Target
2000

25 TO_CurrentTimeYear CurrentTimeYear WORD 2 2000 to 2037 Target

26 TO_CurrentTimeMonth CurrentTimeMonth WORD 2 1 to 12 Target

27 TO_CurrentTimeDay CurrentTimeDay WORD 2 1 to 31 Target

28 TO_CurrentTimeHour CurrentTimeHour WORD 2 0 to 24 Target

29 TO_CurrentTimeMinute CurrentTimeMinute WORD 2 0 to 59 Target

30 TO_CurrentTimeSecond _CurrentTimeSecond WORD 2 0 to 59 Target

31 TO_padding3 (Registration) WORD 40 Target

■Note
When transferring data of 2 bytes or more, it is necessary to specify the order (endian) of the
data when viewed in bytes. The method of arranging data from the last byte (in order of low-
order byte, high-order byte) is called little endian, and the method of arranging data from the first
byte (in order of high-order byte, low-order byte) is called big endian.

* In case of setting "03h"(16 Hex)

● In case Little endian

high-order byte low-order byte

● In case Big endian

high-order byte low-order byte

31
4.2. O->T communication (Transmission from the external device to the IJ Printer)

According to the procedure determined from the external device, the following functions can be used to
transmit data.

(1) Calling the print data


Specify the message number and then call the registered print data.

(2) Edit the print content


Specify the item number and then edit the print content.

(3) Switching the T->O communication print contents


Change the number of print items that will be sent to an external device via the T->O
communication.

(4) Update setting of the T->O communication data


Switch update/stop state of the data to be transmitted via T->O communication. The data that
can be switched is the data which “Data Update” in “T->O Communication Data Map” is
“Target”.

■Note
When using cyclic communication and message communication at the same time, please use this
function to stop cyclic communication data update and use message communication.
Item No. 9 on following table “O->T Communication Data Map” show how to select ON or OFF of
data update.

For the data map to be sent to IJ Printer, please refer to the following table “O->T Communication
Data Map”. Besides, for the transmission procedure of each function, please refer to “4.2.1 O->T
communication transmission procedure”.
Processes (1) to (4) are executed by starting the target bit in the data map “operation number
(OT_OpeNo)”. Multiple operations cannot be specified at the same time.
By entering 0x0000 or 0xFFFF in the data map “Endian switching setting value
(OT_Set_Endianness)”, the endian that cyclic communication handles can be switched. Operation
number for endian switching can be changed simultaneously with operations (1) to (4). The initial
value of endian is little endian.
O->T communication data is cleared by switching the LAN function item on the communication
environment setting screen or turning off the IJ Printer power.

32
O->T Communication Data Map

Data Size
No. Function Name Content Value
Type (byte)
0bit (=1): calling print data
1bit (=2): editing print data
2bit (=4): T->O print content switching
1 OT_OpeNo Operation Number WORD 2
3bit (=8): T->O communication data
update setting
4bit (=16): change current time
0x0000=Little endian
2 OT_Set_Endianness endian switching WORD 2
0xFFFF=Big endian

3 OT_padding0 (Registration) WORD 2

4 OT_padding1 (Registration) WORD 2

OT_ChagePrintData [OT_OpeNo=1]
5 DWORD 4 0 to 2000
_MessageNumber MessageNumber
OT_InputPrintData
6 [OT_OpeNo=2] IndexItemNo DWORD 4 1 to 100
_IndexItemNo
Character encoding: UTF8
7 OT_InputData [OT_OpeNo=2] InputData WORD 200
Maximum number of characters:100
OT_TO_PrintString
8 [OT_OpeNo=4] IndexItemNo DWORD 4 1 to 100
_IndexItemNo
[OT_OpeNo=8] ON/OFF setting 0x0000 = Update data
9 OT_TO_DataUpdate WORD 2
value 0xFFFF= Not update data

10 OT_padding2 (Registration) WORD 2

11 OT_padding3 (Registration) WORD 2

[OT_OpeNo=16]
12 OT_CurrentTimeYear WORD 2 2000 to 2037
CurrentTimeYear
[OT_OpeNo=16]
13 OT_CurrentTimeMonth WORD 2 1 to 12
CurrentTimeMonth
[OT_OpeNo=16]
14 OT_CurrentTimeDay WORD 2 1 to 31
CurrentTimeDay
[OT_OpeNo=16]
15 OT_CurrentTimeHour WORD 2 0 to23
CurrentTimeHour
[OT_OpeNo=16]
16 OT_CurrentTimeMinute WORD 2 0 to 59
CurrentTimeMinute
[OT_OpeNo=16]
17 OT_CurrentTimeSecond WORD 2 0 to 59
CurrentTimeSecond

18 OT_padding4 (Registration) WORD 2

19 OT_padding5 (Registration) WORD 40

33
4.2.1. O->T Communication Transmission Procedure

(1) Calling print data


When calling the print contents by using O->T communication, data transmission will follow the
following procedure.

External device IJ Printer


(Originator) (Target)

T->O Communication data

Clear operation number OT_OpeNo = 0

Specify the registration number of the wanted


nickname.
OT_ChagePrintData_MessageNumber = Message
name registration number

T->O Communication data


① Confirm the value of “EtherNet/IP
transmission enable flag” is (=0xFFFF).
② Confirm the value of “EtherNet/IP
change completed flag'' is (=0xFFFF)

Specify operation number "0bit" (print data call


operation). OT_OpeNo = 1

Print data is being switching


① Set the value of “Ethernet/IP transmission
enable flag” to unable (=0x0000).
②Set the value of “EtherNet/IP change completed
flag'' to changing (=0x000).

T->O Communication data

Print data was switched


① Set the value of “Ethernet/IP transmission
enable flag” to enable (0xFFFF).
② Set the value of “EtherNet/IP change completed
flag'' to changed (=0xFFFF).

T->O Communication data

34
(2) Editing print data
When changing print contents using O-> T communication, data transmission will be as follows.

External device IJ Printer


(Originator) (Target)

T->O Communication data

Clear operation number OT_OpeNo = 0

Specify the number of items to be changed and the


contents to be printed.
OT_InputPrintData_IndexItemNo = item number
OT_InputPrintData_String = print content (UTF8)

T->O Communication data


① Confirm the value of “Ethernet/IP
transmission enable flag” is (=0xFFFF).
② Confirm the value of “EtherNet/IP
change completed flag'' is (=0xFFFF)

Specify operation number "1bit" (print data call


operation). OT_OpeNo = 2

Print data is being switching


① Set the value of “Ethernet/IP transmission enable
flag” to unable (=0x0000).
② Set the value of “EtherNet/IP change completed flag''
to changing (=0x000).

T->O Communication data

Print data was switched


① Set the value of “Ethernet/IP transmission enable
flag” to enable (0xFFFF).
② Set the value of “EtherNet/IP change completed flag''
to changed (=0xFFFF).

T->O Communication data

35
(3) Switch the print content by T->O communication
When using O->T communication to switch the print contents acquired by T->O communication,
data transmission will be as follows.

External device IJ Printer


(Originator) (Target)

T->O Communication data

Clear operation number OT_OpeNo = 0

Specify the number of items to be sent via T->O


communication
OT_TO_PrintString_IndexItemNo = item number

T->O Communication data


① Confirm the value of “Ethernet/IP transmission
enable flag” is (=0xFFFF).
② Confirm the value of “EtherNet/IP change
completed flag'' is (=0xFFFF)

Specify operation number “2bit” (T->O print content


switching operation).
OT_OpeNo = 4

Print data is being switching


① Set the value of “Ethernet/IP transmission
enable flag” to unable (=0x0000).
② Set the value of “EtherNet/IP change
completed flag'' to changing (=0x000).

T->O Communication data

Print data was switched


① Set the value of “Ethernet/IP transmission
enable flag” to enable (0xFFFF).
② Set the value of “EtherNet/IP change
completed flag'' to changed (=0xFFFF).

T->O Communication data

36
(4) T->O communication data update setting
When changing the T->O communication data update setting via O->T communication, data
transmission will be as follows.

External device IJ Printer


(Originator) (Target)

T->O Communication data

Clear operation number OT_OpeNo = 0

Specify data update status


OT_TO_DataUpdate = Data update ON / OFF

T->O Communication data


① Confirm the value of “Ethernet/IP
transmission enable flag” is (=0xFFFF).
② Confirm the value of “EtherNet/IP
change completed flag'' is (=0xFFFF)

Specify operation number “3bit” (T-> O


communication
data update setting operation)
OT_OpeNo = 8

Print data is being switching


① Set the value of “Ethernet/IP transmission enable
flag” to unable (=0x0000).
②Set the value of “EtherNet/IP change completed
flag'' to changing (=0x000).
completed flag'' to changing (=0x000)

T->O Communication data

Print data was switched


① Set the value of “Ethernet/IP transmission enable
flag” to enable (0xFFFF).
② Set the value of “EtherNet/IP change completed
flag'' to changed (=0xFFFF).

T->O Communication data

37
5. IJ Printer detail code
5.1. Automatic reflection of Index function (Explicit message communication)

5.1.1. Instruction

Automatic reflect can be set to 2 values: 0 or 1.

The default value of automatic reflection is 0, the automatic reflex will return to default value once IJ
Printer is turned off. Also, the setting values which are not reflected on IJ Printer will be cleared
automatically once IJ Printer is turned off.

Value Automatic reflect setting Contents


0 Enable The setting value which is sent from external device through
EtherNet/IP will be reflected on IJ Printer directly after IJ Printer
receives it.
1 Disable The setting value which is sent from external device through
EtherNet/IP will be reflected on IJ Printer after IJ Printer receives
“Start/Stop management flag = 2”. This function makes possible
to change multiple IJ Printer’s setting at the same time.

5.1.2. Examples

Case 1) Automatic reflection value is 0.


● Original setting of the IJ Pinter is as follows:
Character height of IJ Printer is “90”. Character width of IJ Printer is “2”.
LAN function is set as EtherNet/IP communication. IJ Printer is in online state.

Step 1: Send command “change character height to 16” to IJ Printer.


(Sending command: “0x32” “0x68” “0x64” “0x10”)
↓ Setting value
The character height of IJ Printer changes to 16(0x10)

Step 2: Send command “change character width to 50” to IJ Printer
(Sending command: “0x32” “0x68” “0x67” “0x32”)
↓ Setting value
The character width of IJ Printer changes to 50(0x32).

38
Case 2) Automatic reflection value is 1.
● Original setting of the IJ Pinter is as follows:
Character height of IJ Printer is “90”. Character width of IJ Printer is “2”.
LAN function is set as EtherNet/IP communication. IJ Printer is in online state.

Step 1: Send command “disable automatic reflection” to IJ Printer.


(Sending command: “0x32” “0x7A” “0x65” “0x01”)
↓ Setting value
Step 2: Send command “change character height to 16” to IJ Printer.
(Sending command: “0x32” “0x68” “0x64” “0x10”)
↓ Setting value
Character height of IJ Printer doesn’t change.

Step 3: Send command “change character width to 50” to IJ Printer.
(Sending command: “0x32” “0x68” “0x67” “0x32”)
↓ Setting value
Character width of IJ Printer doesn’t change.

Step 4: Send confirmation command start/stop management flag = 2 to IJ Printer.
(Sending command: “0x32” “0x7A” “0x64” “0x02”)
↓ Setting value
The character height of IJ Printer changes to 16(0x10) and character width of IJ
Printer changes to 50(0x32).

39
5.2. Message editing (Explicit message communication)

5.2.1. Instruction

There are 2 message editing function:


1. Set print character string. (0x32 0x67 0x71)
2. Add characters at the end of current print string. (0x32 0x67 0x8A)

You can edit print message from the first character by using “Set print character string” function. Also,
you can use “Add characters to the end of current print message” function to add characters to current
print message without changing the current existing characters.

5.2.2. Examples

Case 1) Edit message from the first character


Original setting of the IJ Pinter is as follows:
Current print message is “ABC123”

Step 1: Send command “change current message to Test1” to IJ Printer.


(Sending command: “0x32” “0x67” “0x71” “0x54” “0x65” “0x72” “0x73” “0x31” “0x00”)
↓ Setting value
Current print message changes to “Test1”

Step 2: Send command “change current message to Test2” to IJ Printer.
(Sending command: “0x32” “0x67” “0x71” “0x54” “0x65” “0x72” “0x73” “0x32” “0x00”)
↓ Setting value
Current print message changes to “Test2”

Case 2) Add characters to current print message


Original setting of the IJ Pinter is as follows:
Current print message is “ABC123”

Step 1: Send command “Add Test1 to current message” to IJ Printer.


(Sending command: “0x32” “0x67” “0x8A” “0x54” “0x65” “0x72” “0x73” “0x31” “0x00”)
↓ Setting value
Current print message change to “ABC123Test1”

Step 2: Send command “Add Test2 to current message” to IJ Printer.
(Sending command: “0x32” “0x67” “0x8A” “0x54” “0x65” “0x72” “0x73” “0x31” “0x00”)
↓ Setting value
Current print message change to “ABC123Test1Test2”

The function "Set print character string" has length limitation of setting value, with "Add characters
at the end of current print string" function, users can edit messages of up to 1000 characters.

40
5.3. Special characters (Explicit message communication / Implicit message communication (Cyclic communication))

5.3.1. Calendar characters

Calendar characters are supported by function “Set print character string” and “Add characters at
the end of current message”. To distinguish from the general characters, calendar characters need
to be stored in “{}" as follows.

YYYYMMDDhhmm is expressed as {{YYYYMMDDhhmm}}.


YYYY/MM/DD/hh:mm is expressed as {{YY}/{MM}/{DD}/{hh}:{mm}}.

● Example

Case 1) Edit message which contains calendar characters


Original setting of the IJ Printer is as follows:
Current print message is “ABC123”

Step 1: Send command “change current message to calendar characters YYMMDDhh” to


IJ Printer.
(Sending command: “0x32” “0x67” “0x71” “0x7B” “0x7B” “0x59” “0x59” “0x4D”
“0x4D” “0x44” “0x44” “0x68” “0x68” “0x7D” “0x7D” “0x00”)
↓ Setting value
Current print message changes to “YYMMDDhh” (Calendar characters)

Step 2: Send command “add current message with calendar characters mm” to IJ Printer.
(Sending command: “0x32” “0x67” “0x8A” “0x7B” “0x7B” “0x6D” “0x6D” “0x7D”
“0x7D” “0x00”) Setting value

Current print message changes to “YYMMDDhhmm” (Calendar characters)

5.3.2. Count characters

Count characters are supported by function “Set print character string” and “Add characters at the
end of current message”. To distinguish from the general characters, count characters need to be
stored in “{}” as follows.

CCCC is expressed as {{CCCC}}.


C/C/C/C is expressed as {{C}/{C}/{C}/{C}}.
● Example
Case 1) Edit message which contains count characters
Original setting of the IJ Printer is as follows:
Current print message is ABC123
Step 1: Send command “change current message to count characters CCCC” IJ Printer.
(Sending command: “0x32” “0x67” “0x71” “0x7B” “0x7B” “0x43” “0x43” “0x43”
“0x43” “0x7D” “0x7D” “0x00”) Setting value

Current print message changes to “CCCC” (Count characters)

Step 2: Send command “Add current message with count characters CC” IJ Printer.
(Sending command: “0x32” “0x67” “0x8A” “0x7B” “0x7B” “0x43” “0x43” “0x7D”
“0x7D” “0x00”) Setting value

Current print message changes to “CCCCCC” (Count characters)

41
5.3.3. Fixed user pattern characters

Fixed user patterns are supported by function “Set print character string” and “Add characters at
the end of current message”. To distinguish from the general characters, fixed user pattern
characters are represented as {X/pattern number} as follows.
{X/0} {X/1} {X/2} … {X/197}{X/198}
● Example
Case 1) Edit message which contains fixed user pattern characters
Original setting of the IJ Printer is as follows:
Current print message is “ABC123”
Step1: Save “User pattern(Fixed pattern)”

00 01 02 03

Step2: Send command “change current message with fixed user pattern characters to 00
01 02 03 User” to IJ Printer.
(Sending command: “0x32” “0x67” “0x71” “0x7B” “0x58” “0x2F” “0x30” “0x7D”
“0x7B” “0x58” “0x2F” “0x32” “0x7D” “0x7B” “0x58” “0x2F” “0x30” “0x7D” “0x55”
“0x73” “0x65” “0x72” “0x00”) Setting value
Current print message changes to:

“{X/0}{X/1}{X/2}{X/3}User”

00 01 02 03

42
5.3.4. Free user pattern characters

Free user patterns are supported by function “Set print character string” and “Add characters at the
end of current message”. To distinguish from the general characters, free user pattern characters
are written as “{Z/pattern number}” as follows.

{Z/0} {Z/1} {Z/2} … {Z/197}{Z/198}

● Example
Case 1) Edit message which contains free user pattern characters
Original setting of the IJ Printer is as follows:
Current print message is “ABC123”
Step1: Save “user pattern(Free)size”

00 01 02 03 04 05 06 07 08 09

Step2: Send command “change current message with free user pattern characters to Free00 02
04” to IJ Printer.
(Sending command: “0x32” “0x67” “0x71” “0x46” “0x72” “0x65” “0x65” “0x7B” “0x5A”
“0x2F” “0x30” “0x7D” “0x7B” “0x5A” “0x2F” “0x32” “0x7D” “0x7B” “0x5A” “0x2F”
“0x34” “0x7D” “0x00”) Setting value

Current print message changes to:

“Free {Z/0}{Z/2}{Z/4} ”

43
5.3.5. Special keys for barcode

Special keys for barcode are supported by function “Set print character string” and “Add characters at
the end of current message”.

{codeb}{codec}{fnc1}{rs} {eot}
{CODEB}{CODEC}{FNC1}{RS}{EOT}.

※ In case Code128(CodeB)

※ In case QR33

● Example
Case 1) Edit message which contains barcode
Original setting of the IJ Printer is as follows:
Current print message is “QR (33x33) YYCCEEF”

Step 1 : Send command “set barcode characters as *ABCR246E” to IJ Printer.


(Sending command: “0x32” “0x67” “0x71” “0x7B” “0x66” “0x6E” “0x63” “0x31”
“0x7D” “0x41” “0x42” “0x43” “0x7B” “0x72” “0x73” “0x7D” “0x32” “0x34” “0x36”
“0x7B” “0x65” ”0x6F” ”0x74” “0x7D” “0x00”) Setting value
Current print message changes to:

44
5.4. Dot matrix code (Explicit message communication)

List of Dot Matrix

Dot Matrix Code Dot Matrix Dot Matrix Code Dot Matrix

1 Size4x5

2 Size5x5

3 Size5x7

4 Size9x7

5 Size7x10

6 Size10x12

7 Size12x16

8 Size18x24

9 Size24x32

10 Size11x11 *1

11 Size48x48(QR33)

12 Size30x40

13 Size36x48

14 Size5x3_Chimney

15 Size5x5_Chimney

16 Size7x5_Chimney
*1: This can be set when "Kana" or "Kanji" is selected as the input mode.

45
5.5. Barcode (Explicit message communication)

List of Barcode

Barcode No. Barcode Type Barcode Attribute


0 None -
1 Code39 -
2 ITF -
3 NW-7 -
No identification code
4 EAN-13(JAN-13) Identification Code (5x5)
Identification Code (5x7)
5 (8x32)
6 (16x16)
7 (16x36)
8 (16x48)
DM
9 (18x18)
10 (20x20)
11 (22x22)
12 (24x24)
13 Code set B
Code128
14 Code set C
No identification code
15 UPC-A Identification Code (5x5)
Identification Code (5x7)
No identification code
16 UPC-E Identification Code (5x5)
Identification Code (5x7)
No identification code
17 EAN-8(JAN-8) Identification Code (5x5)
Identification Code (5x7)
18 (21x21)
19 (25x25)
QR
20 (29x29)
21 (33x33)
EAN-13add-on5 Identification Code (5x5)
22
(JAN-13add-on5) Identification Code (5x7)
23 Micro QR (15x15) -
No identification code
24 GS1DataBarLimited. Identification Code (5x5)
Identification Code (5x7)
25 GS1DataBarOmniderec. -
No identification code
26 GS1DataBarStacked. Identification Code (5x5)
Identification Code (5x7)
27 DM (14x14) (14x14)
28 (7/8 dot)
29 (10 dot)
30 DotCode (12 dot)
31 (14 dot)
32 (16 dot)
33 DM (12x12) (12x12)
34 DM (12x26) (12x26)

46
5.6. External communication error code

List of External Communication Error Codes

Error
Content Confirm item
Code
The data length of the attached data or the
101 Check the message format
transmission data is invalid.
The value of the transmitted data exceeds the Check whether the data length is within the
102
specification range. specification range.
Execute the function while the IJ printer status is
111 Check the state of IJ Printer.
invalid.
112 The sent data cannot be reflected. Check the state of IJ Printer.
Check the procedure of operation and print data
201 The sent print format is invalid.
information of Set/Get.
Execute the function while the IJ printer status is
202 Check the state of IJ Printer.
invalid.

47

You might also like