Communication User's Manual (EtherNetIP) (B)
Communication User's Manual (EtherNetIP) (B)
Model UX2
Communication User’s Manual
(EtherNet/IP)
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
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.
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”.
There are three types of access codes, “Set”, “Get”, and “Service”.
№
1 2 3 4 5 6 7
Designated code: 0x32 0x67 0x71 0x41 0x42 0x43 0x00
6
3.2. Class code
№
1 2 3
Designated code: 0x33 0x68 0x64
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.
8
Example) When specifying the first column.
№
1 2 3 4
Designated code: 0x32 0x7A 0x67 0x03
9
3.4. Print data management function (Class code = 0x66)
The print data management function includes functions such as calling and deleting print data.
10
Example) When deleting print data. (Message No.300)
№
1 2 3 4 5
Designated code: 0x34 0x66 0x67 0x01 0x2c
11
3.5. Print format function (Class code = 0x67)
The print format function includes functions such as column and step settings.
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
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
№
1 2 3 4
Designated code: 0x32 0x67 0x6D 0x02
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)
14
List of Print Specification Functions (2/2)
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).
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)
17
List of Calendar Functions (3/3)
18
Example) When getting leading calendar block number
№
1 2 3
Designated code: 0x33 0x69 0x66
19
3.8. User pattern function (Class code = 0x6B)
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
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.
21
List of Substitution Rules Functions(2/2)
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)
№
1 2 3 4 5 6 7
Designated code: 0x32 0x6C 0x67 0x00 0x41 0x42 0x00
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.
№
1 2 3
Designated code: 0x33 0x71 0x65
23
3.11. Unit information function (Class code = 0x73)
The unit information acquisition function includes functions such as model name and ink name
acquisition.
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
24
Example) When getting serial number of IJ Printer
№
1 2 3
Designated code: 0x33 0x73 0x6C
25
3.12. Operation management function (Class code = 0x74)
The operation management function includes functions such as operation time and alarm time
acquisition.
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
№
1 2 3
Designated code: 0x33 0x74 0x65
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
№
1 2 3
Designated code: 0x34 0x75 0x6E
27
3.14. Index function (Class code = 0x79)
The count function includes functions such as count condition range specification and update unit
specification.
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
28
List of Count Functions (2/2)
№
1 2 3 4 5 6 7
Designated code: 0x32 0x79 0x67 0x41 0x41 0x41 0x00
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
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
■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.
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.
■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
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
[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
33
4.2.1. O->T Communication Transmission Procedure
34
(2) Editing print data
When changing print contents using O-> T communication, data transmission will be as follows.
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.
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.
37
5. IJ Printer detail code
5.1. Automatic reflection of Index function (Explicit message communication)
5.1.1. Instruction
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.
5.1.2. Examples
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.
39
5.2. Message editing (Explicit message communication)
5.2.1. Instruction
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
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))
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.
● Example
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.
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.
● 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
“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”
44
5.4. Dot matrix code (Explicit message communication)
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
46
5.6. External communication error code
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