0% found this document useful (0 votes)
158 views28 pages

As 130013 MK-G Um B57GB WW GB 2102 2

Uploaded by

Mike Arias
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)
158 views28 pages

As 130013 MK-G Um B57GB WW GB 2102 2

Uploaded by

Mike Arias
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/ 28

B57GB

Inkjet Printer

MK-G1000 Series 1 Getting Started

Communication Interface 2 Controlling the


Main Unit
User's Manual
3 Setting the Print
Contents

4 Print Common
Settings

5 Running the
MK-G1000

Environment
6 Settings

A Appendices

Read this manual before using the product in order to achieve maximum
performance.
Keep this manual in a safe place after reading it so that it can be used at
any time.

Symbols
The following symbols alert you to important messages. Be sure to read
these messages carefully.

Indicates a hazardous situation which, if not avoided, will


DANGER
result in death or serious injury.
Indicates a hazardous situation which, if not avoided, could
WARNING
result in death or serious injury.
Indicates a hazardous situation which, if not avoided, could
CAUTION
result in minor or moderate injury.
Indicates a situation which, if not avoided, could result in
NOTICE
product damage as well as property damage.

Important Indicates cautions and limitations that must be followed


during operation.

Point
Indicates additional information on proper operation.

Reference Indicates tips for better understanding or useful information.

Indicates the reference pages and items in this manual.


How This Manual Is Organized Contents
Symbols
How This Manual Is Organized
Contents
Chapter P.2
Getting Started List of MK-G1000 Series Identification Codes
1
This chapter explains the preparations that must be performed
1 Getting Started ......................................................... 2
before communicating with the printer. 1-1 Communication Specifications......................................................2
Setting the header and delimiter...................................................2
1-1 Communication Specifications How to read command structures.................................................2
Checksum .....................................................................................2
1-2 Communication Settings Variable-length parameters...........................................................2
1-3 Connecting to External Devices 1-2 Communication Settings ...............................................................3
Communication priority .................................................................3
1-4 Communication Buffer Function
USB communication......................................................................3
Communication competition .........................................................3
Communication log .......................................................................3
1-3 Connecting to External Devices....................................................3
RS-232C cable ..............................................................................3
Chapter USB cable .....................................................................................3
Controlling the Main Unit P.5 LAN cable .....................................................................................4
2 1-4 Communication Buffer Function....................................................4
This chapter explains how to control the product by way of Communication buffer...................................................................4
external communication.
2 Controlling the Main Unit ........................................ 5
2-1 Error Responses 2-1 Error Responses............................................................................5
2-2 System Status 2-2 System Status................................................................................5
Requesting and canceling the system error status ......................5
2-3 Operation Flow through External Communication System status ................................................................................6
2-3 Operation Flow through External Communication ........................7
Startup and Shutdown...................................................................7

3 Setting the Print Contents....................................... 8


Chapter
Setting the Print Contents P.8 3-1 Summary of Print Content Settings ...............................................8
3 Setting parameter composition .....................................................8
Flow of the creation of print settings .............................................8
This chapter explains print content setting commands. 3-2 Setting the Printing Conditions......................................................8
Line settings and print adjustment................................................8
3-1 Summary of Print Content Settings Message conditions ....................................................................10
3-2 Setting the Printing Conditions Setting the print character string.................................................11
Counter........................................................................................12
Current counter value..................................................................13
Setting barcodes and 2D codes .................................................14

4 Print Common Settings ......................................... 16


Chapter
Print Common Settings P.16 4-1 Expiration Period .........................................................................16
4 4-2 Encoded Characters ...................................................................16
This chapter explains setting commands that are common to all
programs. 5 Running the MK-G1000.......................................... 20
5-1 Switching Programs ....................................................................20
4-1 Expiration Period Switching the program number...................................................20
Group printing .............................................................................20
4-2 Encoded Characters
Communication buffer.................................................................20
5-2 Other ...........................................................................................20
Test printing ................................................................................20
Suspending printing and resuming printing ...............................21
Guide LED...................................................................................21
Chapter Printed counters ..........................................................................21
Running the MK-G1000 P.20
5
6 Environment Settings ............................................ 22
This chapter explains the operations when the product is running.
6-1 Time.............................................................................................22
Current date and time and hold date and time...........................22
5-1 Switching Programs Shift time......................................................................................22
5-2 Other 6-2 Barcode Link ...............................................................................22
Barcode link setting and switching .............................................22

Appendices ................................................................. 23
A-1 Default value lists..................................................................23
A-2 ASCII code table ..................................................................23
Chapter
Environment Settings P.22
6 A-3 Index.....................................................................................24
Revision History ......................................................................................25
This chapter explains the device's environment settings. WARRANTIES AND DISCLAIMERS ......................................................26

6-1 Time
6-2 Barcode Link
List of MK-G1000 Series Identification Codes
Function Identification code

System status Set Request Initialize Page Remarks

Resetting errors/requesting error status EZ EV 5

System status SB 6

Startup/Shutdown Set Request Initialize Page Remarks

Startup SS 7

Shutdown ST 7

Deep Clean SU 7

Start Smart Startup SO 7

Start the Smart Recovery SV 7

Setting the printing conditions Set Request Initialize Page Remarks

Line settings FM FL FZ 8

Message F1 F6 FY 10

Setting the print contents, character string Set Request Initialize Page Remarks

ASCII, S-JIS, Latin-9, GB2312,


FS FT FX 11
UTF-8

Print character ASCII only (alphanumeric only) H2 FX 11 You can set character strings for multiple sections.
string
This command can be used with the communication buffer. It is a
Setting in operation BK FX 12 character string setting (up to 240 bytes) that specifies the section
number and character code.

Requesting the print result UZ 12 Requests the last character string that was printed.

Initializing the print settings FI 12 Initializes the character string with the specified setting number.

Setting the print contents, counter Set Request Initialize Page Remarks

Counter condition CO CP CZ 12

Current counter value CM CN DR 13

Current counter repeat count CQ CR DS 13

Setting the print contents, barcode/2D code Set Request Initialize Page Remarks

Barcode character Specified setting (S-JIS) BE BF BX 14


string
2D code character Setting in operation (S-JIS) BH 14
string

Barcode conditions B0 B1 14

2D code conditions B2 B3 15

Print common settings, expiration period Set Request Initialize Page Remarks

Setting the expiration period RU RV RY 16

Print common settings, replacement characters Set Request Initialize Page Remarks

Year encoded characters RA RB RX 16

Month encoded characters RC RD RX 16


Day encoded characters RE RF RX 17

Hour encoded characters RG RH RX 17

Minute encoded characters RI RJ RX 17

Second encoded characters RK RL RX 17

Day of the week encoded characters RM RN RX 17

Week encoded characters RO RP RX 18

Counter encoded characters RQ RR RX 18

Shift code RS RT RX 18

Operation Set Request Initialize Page Remarks

Switching the Program number FW FR 20 This command can be used with the communication buffer.

Group printing FF FG FH 20

Communication buffer KV KW KX 20

Test printing TW 20

Suspending printing SR 21

Resuming printing SQ 21

Guide LED GL GM 21 * This is only supported by the MK-G1000/SA/MF/SF/PY/PW.

Printed counter KG KH 21

Environment settings Set Request Initialize Page Remarks

Current date and time DA DB 22

Hold date and time DH DI 22

Time type for hold date and time DT DU 22

Shift time DW DX 22

Barcode link setting and switching BR 22

B57GB 1
Checksum
1 Getting Started By using the checksum, you can check for data errors.
Append a comma (,) and the checksum data (two bytes, explained later) at
the end of the send data. Use the console to set whether checksums are
1-1 Communication Specifications present in responses. For details, see "Communication Setting" of "MK-
G1000 Series User's Manual".
The MK-G1000 can be controlled by way of communication commands that
it receives from three interfaces: RS-232C, Ethernet, and USB (an HID-type
barcode reader). Reference • We recommend that you perform communication with a
The communication method uses commands and responses, so multiple checksum.

1 commands cannot be sent at the same time. Be sure to receive a response • If the setting for the presence or absence of the checksum is
before sending the subsequent command. different between the MK-G1000 and the external device, it will
Command and response data consists of combinations of comma-separated not be possible to establish communication.
Getting Started

parameters.
 How to calculate a checksum
Setting the header and delimiter Checksum data is formed by calculating the XOR (exclusive OR) of the
sequential data, which is to be sent, immediately after the header (from
The following two types of settings are available for the header and delimiter. the beginning of the data if there is no header), and then converting the
Set the header and delimiter to match the format of the external device. result (one byte) into two ASCII code characters.
Format 1 Example:
Header: None, Delimiter: CR (0Dh) For the "FW" command, which switches the setting number to be printed,
the method used in calculating the checksum is shown below.
Command/response data Comma Check- C
(2-2500 byte) , sum R
The send data (for protocol 2) is as follows.

S E
T F W , 0 0 1 , Checksum T
When the checksum is not being used, commas are not necessary. X X

Format 2
Calculate the XOR of this range.
Header: STX (02h), Delimiter: ETX (03h)
S
T
Command/response data
(2-2500 byte)
Comma Check-
, sum
E
T 1 Calculate the XOR
Character Code
X X from "FW" to ","
F 46h 0100 0110b
(comma). XOR
When the checksum is not being used, commas are not necessary. W 57h 0101 0111b
XOR
, 2ch 0010 1100b
2 Convert the result
Data
0 30h
XOR
0011 0000b
XOR
How to read command structures into two ASCII code 0 30h 0011 0000b
XOR
characters. 1 31h 0011 0001b
XOR
Data
 Setting the time slot replacement characters delimiting , 2ch 0010 1100b
XOR
3
code
Command Add the characters 0010 0000b
ab··Parameters (setting data) as the checksum ASCII coding
data. Checksum 2 0
This pattern can be repeated for a total of up to
25 instances of the pattern.
Header RS ,a,b,c,d,e Delimiter S
T
X F W , 0 0 1 , 2 0
E
T
X

Comma (data separator) Square borders indicate


the parameters that are
specified the necessary Variable-length parameters
Command (identification code) number of times as a set.
Response You can specify all setting values with variable lengths.
(Setting example) For the "FW" command, which switches the setting
Header RS Delimiter
number,
A response is sent to indicate that the command has been FW,001
received. The response indicates that the command has been FW,1
received correctly or that an error has occurred—see "2-1 Error both of the above commands will switch the setting
Responses" (page 5). number to "1."

Detailed parameter explanation

Setting Maximum
Parameter Quantity Remarks
value bytes
Shift code encoded
a 01 to 64 2 1
character
0: ASCII (8 bits)
1: SHIFT-JIS
2: Latin-9
3: GB2312
b Character code 0 to 3, 5, 9 1 1 5: UTF-8
9: Only for the
command to request
the character code
at the time of setting
Number of characters
c 0 to 10 2 1
to replace
00:00 to 23:59.
Parameters ",d" and ",e"
0000 to are a set that is
d Division start time 4 Max. 25
2359 repeated for a total of
up to 25 instances of
the set.
Division encoded Character
e 20 Max. 25 Up to 10 characters
character string string

2 - MK-G1000 Series Communication Interface User’s Manual -


1-2 Communication Settings 1-3 Connecting to External Devices
 RS-232C setting contents
RS-232C cable
Item Setting Default value

2400, 4800, 9600, 19200, 38400, The connector on the controller is a D-sub 9-pin (male) type. Connect the
Baud rate 38400 bps
115200 bps controller to an external device using an RS-232C straight cable. The wiring
Bit length 8 bits (fixed) 8 bits (fixed) for the controller side and the external device side is shown below.
Parity check None, odd, even None

Stop bit 1 bit, 2 bits 1 bit Cable connection diagram


9-pin to 9-pin, fully hard wired with a straight cable
9-pin female 9-pin female
1
 Ethernet setting contents 1 1

Getting Started
Item Setting Default value Send 2 2 Receive
Port number Port number 9004 Receive 3 3 Send
MK-G side 4 4 External device
Signal GND 5 5 Signal GND (such as a PC)
 Common settings side
6 6
Item Setting Default value
7 7
Delimiter CR, ETX CR
8 8
Checksum Not present, present Not present
9 9
Communication OFF, switch Program number, change
OFF Connector hood Connector hood
buffer character string
Shield

Communication priority
Point
• OP-29859 is an optional 9-pin to 9-pin straight cable.
When external devices (for RS-232C, Ethernet, and USB communication)
• OP-26486 is an optional DB9 to RJ-11 connector for use
are connected, there will be competition for communication with the MK- with an RJ-11 cable.
G1000, so the following communication priorities have been set. • OP-26487 is an optional RJ-11 cable.

While settings are saved from console, the console has priority.
In this situation, setting commands and initialization commands from an Important • Use shielded cables for the communication cables.
external source will result in errors. • Use #4-40 (inch type) screws to fix the connector to the
Request commands will be received. controller.
In all other situations, commands will be processed according to the order
that they are received.
If multiple commands change the same setting, the change made by the
last command received will be valid.

Point
If a setting that is being edited is changed by external
communication, the setting displayed on the screen and the RS-232c cable
saved setting may be different. PC
or

USB communication
The communication command input by way of the USB interface supports Controller PLC
HID-type barcode readers.
No response is returned.

Communication competition USB cable


We do not recommend that you use multiple interfaces—RS-232C, Ethernet, You can connect a USB-HID type barcode reader to the controller.
and USB—to perform communication at the same time. Commands are pro-
Controller USB-HID type
cessed in the order that data is received (according to the received delimit-
barcode reader
ers).

Communication log
All communication data is written to the log.
You can change the way that the communication log is displayed so that
items are displayed grouped according to communication path or in date and
time order.
All the data up to a delimiter is handled as a single command. If a command
does not end in a delimiter, the subsequent command will be concatenated
to it in the log.

For power supply /


barcode reader
(Sealed when shipped)

For Operation Assist


Camera

- MK-G1000 Series Communication Interface User’s Manual - 3


LAN cable If commands cannot be executed, for reasons such as an abnormality level
error occurring, when an attempt is made to execute a command within the
Use a LAN cable to perform communication through the Ethernet interface. buffer, the buffer will be cleared of all the commands it contains. No response
is returned.
 The communication buffer is cleared of all the commands it contains
when:
• The communication buffer clear command ("KX") is received.
LAN cable
• The communication setting condition is changed (RS-232C or Ether-
net).
PC
• Test printing is performed.
or
• The power is turned off.

1 • An abnormality level error occurs when a command within the buffer is


executed.
Getting Started

Controller
PLC

Reference The controller automatically determines whether a crossover


cable or straight cable is connected, so you can use either type
of cable for the LAN cable.

Point
OP-66843 is an optional LAN Ethernet Cable.

1-4 Communication Buffer Function

Communication buffer
The communication buffer is a function that temporarily stores the com-
mands that are received during printing until these commands can be exe-
cuted.
When the current print operation is completed, the leading command among
those that are stored is executed. Also, only one command is executed
between print operations.
The buffer can hold up to 100 commands. If the buffer is full and a command
is inserted into it, the last command will be overwritten.
 The communication buffer function can be used with the following two
commands.
• BK: Changes the set character string in operation
• FW: Switches the Program number

Buffer Head

cmd E Cmd E is not


executed until Print
cmd D
D is complete.
cmd C
cmd B

Print A Print B Print C Print D Print E

Each time that printing is complete, Line direction


a buffered command is executed.

 When the communication buffer function is OFF


When a command for changing character strings is received during
printing, the normal response is returned and the command is executed
after printing is complete. When a command for switching the Program
number is received during printing, the busy error (01) is issued.

 When the communication buffer function is ON


• If a command is received after the printing of the current Program con-
tents is complete,
a response is returned and the command is executed immediately.
• If a command is received while the current Program contents are being
printed or are not being printed,
the buffer response is returned and the command is stored.
When printing is complete, the leading stored command is executed.
• If multiple commands are stored,
the second command from the front will be executed when the next print
operation is complete.

4 - MK-G1000 Series Communication Interface User’s Manual -


2-2 System Status
2 Controlling the Main Unit
Requesting and canceling the system error status
2-1 Error Responses There are two types of system errors: abnormality level and caution level
errors. You can use the status request command to check the error contents.
When a command is processed normally, a normal response that corre-
sponds to the command is sent. (For normal responses, see the explanation
Abnormality level errors
for each command.)
These are errors that indicate that the MK-G1000 has a printing disabled
If the command was not received or processed normally, an error response
status, such as the nozzle being clogged.
is sent.
These errors cause the controller's CAUTION LED (orange) to turn ON.
Handle the cause of the error appropriately, and then reset the error.
Command

Header Identification
code Parameters (data) Delimiter Caution level errors
These are errors that indicate that the MK-G1000 has a printing enabled
2
Error response status but in which maintenance is required, such as the ink or solvent

Controlling the Main Unit


cartridge being empty.
Header ER ,a,b Delimiter These errors cause the controller's CAUTION LED (orange) to flash. If you
continue printing in this state, the error may change to an abnormality
Parameter Bytes Remarks level error, so perform maintenance, and then reset the error.

Received identification The identification code that was not


a 2
code processed normally  Requesting the error status
b Error code 2 See the list of error codes. Command

 List of error codes Header EV Delimiter

Response
Error
Error name Error description Countermeasures This pattern can be repeated for a total of up to 198
code
instances of the pattern.
Command Check the data contents,
0 Unrecognizable
An undefined identification
and then send the correct
Header EV ,a Delimiter
code was sent.
error data.

Because the MK-G1000 is


busy printing or performing After printing or another  Resetting errors
1 Busy error another operation, the command has finished,
command cannot be resend the command. Command
executed.

Because an abnormal or
Header EZ Delimiter
caution level error has
occurred, the command After confirming the error Response
cannot be executed. contents using the "EV"

2 Status error
Additionally, this error is command and removing the Header EZ Delimiter
returned as a response if a cause of the error, cancel
smart operation start the error and change the
command is received when MK-G1000 to RUN status.
Reference The currently occurring errors and warnings (cautions) are all
smart operation cannot be acquired in a single batch. "EV<delimiter>" is the response when
started. no errors are occurring.
A setting or initialize Switch the console to the Setting Maximum
3 Priority error command was sent while Main screen, and then Parameter Quantity Remarks
value bytes
the console had priority. resend the command.
Number of the
1 to 99,
Check the data contents, a error or caution 3 Max. 198
The data length of the 101 to 199
20 Data length error and then send the correct that is occurring
command is invalid.
data.

Check the data contents,


Data out of the setting
22 Data range error and then send the correct
range was received.
data.

The command data Reduce the number of


Memory over exceeds the number of characters to 4,000 bytes or
31
error characters that can be less, and then resend the
stored in a single setting. command.

The MK-G1000 is in a state


Time-out such that it cannot process Resend the command
40
error the response within 3 (Ethernet only).
seconds.

Check the data and


Invalid checksum The checksum value is
90 checksum contents, and
error invalid.
then send the correct data.

* Time-out error: This error occurs when the delimiter is not received within
20 seconds of receiving the leading data or when the
delimiter is different from the settings.
* An external communication error occurs when the data is corrupted due to
invalid communication settings, noise, or similar causes.
* When the checksum is invalid, an error code (90) is sent. The error is not
included in the error history.
* If the delimiter of an empty command is received, the data up to and
including the delimiter is discarded.
The error is not included in the error history. The reception of the delimiter
is written to the communication log.

- MK-G1000 Series Communication Interface User’s Manual - 5


 Abnormality level errors Code System status Code System status
145 Illegal Power Disconnect Detected 182 CV-X/IV Inspection Setting Switch
Code System status Code System status Warning 2
01 Main Tank Empty Error 46 Cannot Adjust Viscosity Error 146 Unusable Solvent Cartridge Detected 183 CV-X/IV Send Judgment Character
02 Main Tank Full Error 47 Cartridge Holder Open Error String Warning 2
03 Conditioning Tank Full Error 48 Internal Communication Error 147 • Ink Cartridge Expired 184 CV-X/IV Send Judgment Character
04 Main Tank Level Gauge Error 49 Dirt In Print Head Error • Left Side Ink Cartridge Expired String Warning 3
05 Conditioning Tank Level Gauge Error 50 Insufficient Charging Data Error (PY/PW)
06 Viscometer Level Error 51 Charging Offset Error 148 • Solvent Cartridge Expired 185 Low Main Tank Level
07 Ink Pressure (Low) Error 52 Solenoid Valve No. 6 Error • Right Side Solvent Cartridge Expired
(PY/PW)
08 Ink Pressure (High) Error 53 Solenoid Valve No. 12 Error
149 • Ink Cartridge Not Inserted for 1 Hour 186 Left Cartridge Replacement Timing
09 Controller Temp High Error 54 Solenoid Valve No. 14 Error
or More
10 Controller Temp Low Error 55 Solenoid Valve No. 15 Error • Left Side Cartridge Not Inserted for 1
11 Head Temp High Error 56 Heater Error Hour or More (PY/PW)
12 Head Temp Low Error 57 Solvent Shaft Check Error 150 • Solvent Cartridge Not Inserted for 1 187 Ink Cartridge Settling Warning
Deflector Voltage Leak Error Hour or More
13 Trigger On Time Over Error 58
(5 Minutes Elapsed) • Right Side Solvent Cartridge Not

2
14 Voltage Leak Error 59 Head Cover Open Error 2 Inserted for 1 Hour or More (PY/PW)
15 Head Cover Open Error 60 Ink Path Unit Lifespan Error 151 Cleaning Inside Path Required Error 188 Momentary Stop Detection Warning
16 Gutter Sensor Error 1 61 Cleaning Inside Path Recommendation Error 152 RS-232 Communication Error 189 Backup Module Lifespan Warning
17 Nozzle Clogging Error 62 Ink Shaft Check Error 153 Air Intake Fan Locked Warning 190 Backup Module Unit OFF
Controlling the Main Unit

18 Encoder Speed Over Error 63 Path Hardening Check Error 154 Internal Fan Locked Warning 191 MK Dock Bottle Full Warning
19 Print Trigger Overlap Error 64 Maitenance Not Complete Error 155 CV-X/IV Trigger Tracking Count Over 192 MK Dock Bottle Not Detected Warning
20 Short Print Interval Error 65 Power Outage Detection Error Warning
21 Tracking Count Over Error 66 Main Tank Supply Abnormal Error 156 Pump priming not complete 195 Inexecutable System Recording Warning
22 Short Trigger Delay Error 67 Drain Error 157 Air Pump Error 196 Momentary Stop Detection Warning 2
23 Short Continuous Print Trigger Error 68 Pressure Error 158 Ink Path Unit Replacement Warning 197 Internal Memory No Free Space
24 System Memory Error 69 CV-X/IV Send Judgment Character String Error 1 Warning
25 Pump Lifespan Error 70 CV-X/IV Trigger Delay Error 159 Main Tank Full Warning 198 USB Memory Low Free Space Warning
26 Pump Control Error 71 CV-X/IV Trigger Tracking Count Over Error 160 CV-X/IV Send Judgment Character 199 USB Memory No Free Space Warning
String Warning 1
27 Replacing Pump 72 Trigger Delay Over Error
181 CV-X/IV Inspection Setting Switch
28 Hard Error 1 73 Viscometer Count Error 1
Warning 1
29 Hard Error 2 74 Viscometer Count Error 2
30 Hard Error 3 75 Viscometer Count Error 3
31 Soft Error 1 76 Viscometer Count Error 4 System status
32 Filter A Lifespan Error 77 MK Dock Head Not Detected Error
33
Phase Alignment Error
(5 Minutes Elapsed)
78 MK Dock Bottle Full Error  Requesting the system status—acquiring the current
34 Filter B Lifespan Error 79 MK Dock Bottle Not Detected Error system status
35 Air Intake Fan Locked Error 80 MK Dock Connection Error
Command
36 Internal Fan Locked Error 81 MK Dock Mount Error
37 Heater Control Error 91 Ethernet Communication Disconnect Error
38 Piezo FB Error 92 CV-X/IV Linked Communication Disconnect Error Header SB Delimiter
39 Dirty Charging Sensor Error 93 Internal Communication Timeout Error
40 Phase Alignment Error 94 Soft Error 2 Response
41 RS232C Communication Error 95 SNTP Time Misalignment Detected
42 Font Data Error 96 CV-X/IV Inspection Setting Switch Error 1
43 Printing Stop Input ON (Terminal) 97 CV-X/IV Inspection Setting Switch Error 2 Header SB ,a Delimiter
44 Ink Particles Forming 98 CV-X/IV Send Judgment Character String Error 2
45 Gutter Sensor Error 2 99 CV-X/IV Send Judgment Character String Error 3
Setting
Parameter Bytes Quantity Remarks
 Caution level errors value

a Current state change ID 00 to 99 2 1


Code System status Code System status
101 Ink Cartridge Empty Warning 122 SNTP Time Misalignment Detected
102 • Solvent Cartridge Empty Warning 123 Tracking Count Over Warning  System status codes
• Right Side Solvent Cartridge Empty
Warning (PY/PW)
Code System status Code System status
103 Cartridge Holder Open 124 Ethernet Communication Disconnect
Warning 00 Stopped 27 Pre storage cleaning
104 Ink Viscosity (Thick) 125 CV-X/IV Linked Communication
Disconnect Warning 01 Printable 28 Filter A Replacing (Preparation)
105 Ink Viscosity (Thin) 126 Print Trigger Detected During Ready 02 Startup complete 1 29 Filter B Replacing (Preparation)
OFF
106 Controller Temperature High Warning 127 Ink Path Unit Lifespan Warning 03 Startup complete 2 30 Replacing pump (Preparation)
107 Controller Temperature Low Warning 128 Solenoid Valve Simultaneous Drive
04 Suspended 31 Path recovering (Post)
108 Head Temperature High Warning 129 Filter A Lifespan Warning
109 Head Temperature Low Warning 131 Filter B Lifespan Warning 05 Starting 32 Sleep mode (shutdown)
110 Viscometer Count Warning 1 132 • Ink Cartridge Unrecognizable
06 Shutting Down 33 Sleep mode (waiting)
• Left Side Cartridge Unrecognizable
(PY/PW) 07 Charge adjusting 34 Sleep mode (operating)
111 Viscometer Count Warning 2 133 • Solvent Cartridge Unrecognizable
• Right Side Solvent Cartridge Stopped (viewing cleaning and
08 Ink particle adjusting 35
Unrecognizable (PY/PW) shutdown confirming screen)
112 Viscometer Count Warning 3 134 • Ink Cartridge Not Inserted
• Left Side Cartridge Not Inserted Stopped (viewing automatic circulation
09 Cleaning before long term storage 36
confirming screen)(PY/PW)
(PY/PW)
113 Viscometer Count Warning 4 135 • Solvent Cartridge Not Inserted 10 Path recovering 37 Cancel maintenance
• Right Side Solvent Cartridge Not
Inserted (PY/PW) 11 Paused 38 Restart Maintenance
114 Filter A Replacement Warning 136 • Ink Cartridge Type Mismatch
12 Emergency Stopping 39 Pausing Maintenance
• Left Side Cartridge Type Mismatch
(PY/PW) 13 Collecting Ink 1 40 Filter A Replacing (Confirming Remaining)
115 MK Dock Malfunction Detection Warning 137 • Solvent Cartridge Type Mismatch
• Right Side Solvent Cartridge Type 14 Nozzle sucking 41 Filter A Replacing (Post)
Mismatch (PY/PW)
15 Gutter sucking 42 Replacing pump (Post)
116 Filter B Replacement Warning 138 • Ink Cartridge Expiration Date Soon
• Left Side Ink Cartridge Expiration 16 Intermittent injecting(Solv) 43 Stopped (Replacing)
Date Soon (PY/PW)
117 Pump Lifespan Warning 139 • Solvent Cartridge Expiration Date 17 Axis adjusting (Solv) / Nozzle Replacing 44 Collecting Ink 2
Soon
• Right Side Solvent Cartridge 18 Axis adjusting (Ink) / Pressure adjusting 45 Pre storage cleaning (pump drying)
Expiration Date Soon (PY/PW)
19 Main tank draining 46 Auto-shower executing (Drying)
118 Pump Replacement Warning 140 Low Ink Cartridge Level
119 Short Continuous Print Trigger Warning 141 • Low Solvent Cartridge Level Conditioning tank draining
20 47 Nozzle cleaning
• Low Right Side Solvent Cartridge Drain path cleaning (PY/PW)
Level (PY/PW)
21 Draining all 48 Pre sleep cleaning
120 Encoder Speed Over Warning 142 Conditioning Tank Full Warning
121 Printing Stop ON (Terminal) 143 Long-term Stop Detected 22 Auto-shower executing 81 Ink Path Unit Replacing (Preparation)

23 Auto-shower (strong) executing 82 Ink Path Unit Replacing (Post)

24 Automatic circulation in operation (PY/PW) 84 Smart Startup

25 Pre storage cleaning (internal drying) 85 Smart Recovery

26 Sleep mode (startup)

6 - MK-G1000 Series Communication Interface User’s Manual -


 Execute Deep clean shutdown processing
2-3 Operation Flow through External Communication
Command
Startup:
Brings the MK-G1000 to a printing enabled status Header SU Delimiter
Shutdown:
Cleans the nozzle and brings the MK-G1000 to a status where the power Response
can be turned off
Deep clean shutdown processing:
Header SU Delimiter
Performs a Deep clean shutdown when the MK-G1000 will not be
operated for a long time (approximately 1 to 3 weeks).  Execute Smart Startup
For details, see the User's manual. Command
Important During startup and shutdown processing, ink may fly from
Header SO Delimiter

2
the head, so place the included beaker under the head prior
to executing these operations.
Response
After executing shutdown processing, confirm that the system
has finished shutting down, and then turn the power off.

Controlling the Main Unit


Header SO Delimiter

 Operation flow through external communication * Smart Startup can be executed with a communication command only when
Turn on the power. the print head is in position on the MK dock (MK-D1B) and the "Head detec-
tion input 1" and the "Head detection input 2" are ON.
If it cannot be executed, “ER,SO,02” is returned.
For details of the built-in MK dock and the head detection input, read
“Connecting and attaching the built-in MK Dock (sold separately)” and “Head
SS: Execute startup SO: Execute Smart
detection input 1/2” of “I/O terminal explanations” in “MK-G1000 Series
processing. Startup processing.
Specifications.”
 Execute Smart Recovery
Command
SB: Confirm whether startup processing has
completed. Header SV Delimiter

Startup processing is Response


being executed.
Header SV Delimiter
Set the line conditions, message conditions, and print
* Smart Recovery can be executed with a communication command only
contents.
when the print head is in position on the MK dock (MK-D1B) and the "Head
detection input 1" and the "Head detection input 2" are ON.
If it cannot be executed, “ER,SV,02” is returned.
Change the print contents and setting number. For details of the built-in MK dock and the head detection input, read
“Connecting and attaching the built-in MK Dock (sold separately)” and “Head
detection input 1/2” of “I/O terminal explanations” in “MK-G1000 Series
Acquire and check the printed contents. Specifications.”

ST: Shutdown SU: Deep clean


processing shutdown processing

SB: Confirm whether shutdown processing has


completed.

Shutdown processing
is being executed.

Turn off the power.

Startup and Shutdown

 Execute startup processing


Command

Header SS Delimiter

Response

Header SS Delimiter

 Execute shutdown processing


Command

Header ST Delimiter

Response

Header ST Delimiter

- MK-G1000 Series Communication Interface User’s Manual - 7


3-2 Setting the Printing Conditions
3 Setting the Print Contents
Line settings and print adjustment
3-1 Summary of Print Content Settings Configure settings for the line in which the MK-G1000 is installed such as the
printing direction, head distance, encoder pulse, and distance from sensor
timing to printing (the trigger delay).
Setting parameter composition
Setting parameters are composed of the elements shown in the following  Configuring line settings and print adjustment
table. Command
Each setting has the line conditions and 64 messages for use in adjusting
printing. Header FM ,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s Delimiter

Program message
Command Setting contents
Response
number number
Header FM Delimiter

3
Printing direction, line speed, size
*** FM Line settings
adjustment, etc.

Message
F1
conditions
Print position, character spacing  Requesting line settings and print adjustment
Setting the Print Contents

Print character Command


FS Print contents setting
string
Header FL ,a,b Delimiter
1 Initial value of second cycle, end
CO Counter condition
1 value, current value, timing, etc. Response
B0 Barcode conditions Barcode type, size, etc.
Header FL , a , b , c , d , e , f , g , h , i , j , k , l , m , n , o , p , q , r , s Delimiter
Barcode character
BE Barcode contents
string
Setting Maximum
2 ... Parameter Quantity Remarks
value bytes
... ... Program 001 to 500,
a 3 1 CMN: Common settings
number CMN
64 ...
0: ASCII (8 bits)
2 1 to 64 ... 1: SHIFT-JIS
2: Latin-9
... 1 to 64 ... Character 3: GB2312
b 0 to 3, 5, 9 1 1
code 5: UTF-8
500 1 to 64 ... 9: Only for the command to
request the character code at
the time of setting
Character
c Title 96 1 Up to 32 characters (96 bytes)
string
Flow of the creation of print settings
0: From the back of the head to
the front
There is no order in which the settings need to be made, but the following fig- d Head direction 00, 01, -1 2 1 1: The opposite of 0
-1: As specified by the common
ure shows the general settings flow. settings
0: Normal
1: Inverse
 Flow of print settings e Text direction 0 to 3 2 1
2: Up down inverse
3: Up down right left inverse
0: 15 mm, standard/
Line settings and print adjustment . . . FM 10 mm, lowercase
Head/Target 1: 35 mm, long distance/
f 0,1, -1 2 1
Distance 10 mm, lowercase
Message conditions . . . . . . . . . . . . . . . F1 -1: As specified by the common
settings
When setting 0: Constant once
Print contents . . . . . . . . . FS, CO, B0, BE 1: Constant continuous
multiple Message 2: Constant N times
3: Encoder once
4: Encoder continuous
g Print method 0 to 7, -1 2 1
5: Encoder N times
6: Constant loop printing
Settings complete 7: Encoder loop printing
-1: As specified by the common
settings
Print setting for the "Constant N
times" and "Encoder N times"
h Print count N 0 to 99, -1 2 1 print methods
-1: As specified by the common
settings
Number of pulses per 1 mm of
Number of
1 to 9999, line movement
i encoder 4 1
-1 -1: As specified by the common
pulses
settings
10 to Speed (unit: 0.1 mm/s)
j Line speed 99999, 5 1 -1: As specified by the common
-1 settings
The distance from the sensor to
Normal trigger 10 to the start of printing when the
k 5 1
delay 99999 printing direction d is set to 0
(Unit: 0.1 mm)
The distance from the sensor to
Reverse 10 to the start of printing when the
l 5 1
trigger delay 99999 printing direction d is set to 1
(Unit: 0.1 mm)
Distance between print
operations when the print method
Message 10 to is set to "Constant continuous,"
m 5 1
interval 99999 "Constant N times," "Encoder
continuous," or "Encoder N times"
(Unit: 0.1 mm)
Character Adjusts the height of characters
n height 50 to 200 3 1 For the setting range, see the
adjustment corresponding table.
Character
o width 70 to 500 3 1 Adjusts the width of characters
adjustment

8 - MK-G1000 Series Communication Interface User’s Manual -


Setting Maximum Print method Print image Description
Parameter Quantity Remarks
value bytes
Printing is performed in the same
Ignore triggers Chattering filter setting of the manner as continuous printing,
p 0 to 9999 4 1
less than sensor (unit: ms) Constant loop Sensor but it is possible to shorten the
signal
Trigger on Sets the triggers no-input time printing and message interval.
q 0 to 999 3 1 Workpiece ABC ABC ABC ABC
time limit (unit: 0.1 s) encoder loop Note: Compared to other print
r Print mode 0 2 1 0: Always 0 is set printing methods, it is easier for irregular
0: A phase, rising edge
Message interval printing to occur with this
1: A phase, both edges method.
2: 2 phases, both edges, normal
direction k, l: Trigger delay
3: 2 phases, both edges, reverse
direction The following illustration shows the printing start position when a printing
0 to 6,
s Encoder type 2 1 4: 2 phases, both edges, normal start signal is applied.
-1
direction, no subtraction
5: 2 phases, both edges, reverse
direction, no subtraction
6: 2 phases, both edges, addition Print head Printing start position
-1: As specified by the common
settings
Trigger delay
* When setting the parameters d, f-j and s to “-1” (setup values in common),
ABC
3
be sure to set all of them to “-1”. It is not allowed to set only part of them to
“-1”. Direction of line
Workpiece
movement
Center position of the ink jet Sensor
d: Printing direction

Setting the Print Contents


nozzle of the print head
Printing direction d = 0 Printing direction d = 1

m: Message interval
Set the distance between print operations.

The setting method has been changed from that of our


conventional models.

CAUTION
Workpiece
ABCD ABCD
m: Message interval

n: Character height adjustment


Relationship between the direction of movement of the
The range of adjustment values you can specify varies according to the
workpieces and the direction that the print head faces
character size and line speed.

e: Text direction MK-G1000


Character size
e=0 Normal (number of dots in Range of adjustment values (%)
vertical direction)
e=1 Inverse 5 or less 50 to 200 (when the line speed is 1819 mm/s or faster: 90 to 150)
e=2 Up down inverse 6 and 7 50 to 200 (when the line speed is 1378 mm/s or faster: 90 to 150)
e=3 Up down right left inverse 8 50 to 200

9 and 10 50 to 200 (when the line speed is 892 mm/s or faster: 90 to 150)
f: Head distance 11 to 16 50 to 200 (when the line speed is 607 mm/s or faster: 90 to 150)

17 to 24 50 to 100

25 to 32 50 to 100

o: Character width adjustment


This parameter is used to make minute adjustments to the character
widths.
15 mm
Example: When -30% and 30% are specified

ABCDE ABCDE ABCDE


-30% Character string length +30%
(Reduced by 30%) (Reference) (Enlarged by 30%)
* This value is fixed to 10 mm for the MK-G1100.

g: Print method
Print method Print image Description  Initializing line settings and print adjustment
Constant once Sensor Printing is performed once each Command
and encoder signal time that the printing start signal
once Workpiece ABC ABC ABC is applied.
Header FZ ,a Delimiter
Constant Sensor
signal Printing is performed repeatedly Response
continuous and
Workpiece ABC ABC ABC while the printing start signal is
constant encoder
ON.
continuous
Message interval
Header FZ Delimiter

Sensor
signal Printing is performed the
Constant N times Setting
specified N times each time that Parameter Bytes Quantity Remarks
and encoder N Workpiece ABC ABC ABC value
the printing start signal is
times
applied. Setting 1 to 500, ALL: All settings
Message interval a 3 1
number ALL, CMN CMN: Common settings

- MK-G1000 Series Communication Interface User’s Manual - 9


Message conditions  Initializing the message conditions
Command
 Setting the Message conditions
Command
Header FY ,a,b Delimiter

Response
Header F1 ,a,b,c,d,e,f,g,h,i,j,k,l Delimiter

Response
Header FY Delimiter

Header F1 Delimiter
Parameter
Setting Maximum
Quantity Remarks
value bytes

Program 001 to 500,


a 3 1 ALL: All Programs
 Requesting the Message conditions number ALL

Message
Command b 1 to 64, AL 2 1 AL: All messages
number

3 Header

Response
F6 ,a,b Delimiter
Setting the Print Contents

Header F6 ,a,b,c,d,e,f,g,h,i,j,k,l Delimiter

Reference If the "F1" command is received for the settings being printed, a
busy error (01) is returned.

Setting Maximum
Parameter Quantity Remarks
value bytes
Program
a 001 to 500 3 1
number
Message
b 01 to 64 2 1
number
c Lateral scaling 01 to 10 2 1 Unit: Multiples
d Font number 00 to 22 2 1
e Base X 0000 to 4095 4 1 Unit: Dots
f Base Y 00 to 31 2 1 Unit: Dots
Character
g 0000 to 4095 4 1 Unit: Dots
spacing
h Line spacing 00 to 31 2 1 Unit: Dots
0: Do not print
i Print 0 to 2 1 1 1: Print
2: Inverse
0: 0 degrees
1: 90 degrees
j Print angle 0 to 3 1 1
2: 180 degrees
3: 270 degrees
k Link number 00 2 1 Not used (fixed to 00)
l Lock 0 or 1 1 1 0: Do not lock, 1: Lock

 Font number table


Font number Size Type
0 5×5 Standard
1 7×5 Standard
2 7×9 Special Kanji
3 10 × 7 Standard
4 10 × 11 Special Kanji
5 16 × 12 Standard
6 24 × 18 Standard
7 24 × 18 Sans Serif
8 24 × 18 Serif
9 32 × 24 Standard
10 32 × 24 Sans Serif
11 32 × 24 Serif
12 16 × 16 Standard
13 32 × 16 Standard ×2, vertical
14 9×9 Simplified Chinese standard
15 Barcode, 2D code
16 Logotype
17 9×7 Standard
18 12 × 9 Standard
19 12 × 12 Simplified Chinese standard
20 14 × 10 Standard
21 16 × 16 Simplified Chinese standard
22 32 × 16 Simplified Chinese ×2, vertical

10 - MK-G1000 Series Communication Interface User’s Manual -


Setting the print character string Update characters (date and time)
Replace- Without expiration
Type With expiration period
Two types of commands for setting the character string are available. One is ment period
the "FS" command, which sets all characters including kanji using the set Year 4 No %4Y %4TY
character code. The other is the "H2" command, which only sets the
Year 2 No %2Y %02TY
characters in the ASCII code table (page 23).
No %1Y %1TY
Year 1
 Setting the print character string Yes %1PY %1TPY
No %02M %02TM
Command Month
Yes %02PM %02TPM
Header FS ,a,b,d,e Delimiter
Day
No %02D %02TD
Yes %2PD %2TPD
Response
No %1B %1TB
Day of week
Header FS Delimiter Yes %1PB %1TPB
No %02h %02Th
Hour
 Requesting the print character string Yes %2Ph %2TPh

Command Minute
Yes
No %02m
%2Pm
%02Tm
%2TPm
3
Header FT ,a,b,c,d Delimiter No %02s -

Setting the Print Contents


Second
Yes %2Ps -
Response
365 days No %03X %03TX
Header FT ,a,b,c,d,e Delimiter No %02W %02TW
Week
Yes %02PW %02TPW
Setting Maximum Quant
Parameter Remarks
value bytes ity No %0CC
Counter
Program Yes %PCC
a 001 to 500 3 1
number Shift code Yes %PS
Message Barcodes / 2D codes - %bb
b 01 to 64 2 1
number
Logotype - %LL
Update 0: Update characters
c
character format
0 to 1 1 1
1: Characters to actually print *  denotes replacement numbers 01 to 10.
*  denotes expiration period numbers 01 to 50, specific expiration period 00.
0: ASCII (8 bits) *  denotes the start of the week. F means January 1. M means Monday. S
1: SHIFT-JIS means Sunday. I means ISO compliant.
2: Latin-9
Character 3: GB2312
d 0 to 3, 5, 9 1 1 Update characters (counter)
code 5: UTF-8
9: Only for the command to Replace- Align Replacement
Type Remarks
request the character code at ment digits No Yes
the time of setting
 denotes replacement
Character No - %0CC %PCC
e Characters 3000 1 Up to 999 characters numbers 01 to 10.
string data
Counter - Right justify %CC -

First specify the character code for the character string on the lowest line of - Left justify %-CC -

the section, and then enter the line feed code "\n" to start a new line. When - Truncated %#CC -
printing is only performed on a single line, no line feed code is required. *  denotes counter numbers 1 to 9 and A to J.
When printing update characters, custom logotypes, or barcodes/2D codes, * If you want to use ASCII or Latin-9 to send a "%" or "\" enter "%%" or "\\" to
specify the setting codes for the subsequent update character, custom logo- escape the default functionality of these characters.
type, or barcode/2D code. Example: If you want to set ABC + counter number 1, send the following data.
A B C % C 1 C
Print contents Message 8260h 8261h 8262h 25h 43h 31h 43h

Third line Update characters (logotypes and barcodes/2D codes)


E F ¥ n
Type Code Remarks
Logotype %LL  denotes logotype numbers 01 to 256.
Second line
1 ¥ n Barcodes/2D codes %bb  denotes barcode numbers 1 to 4.

First line
A B C ¥ n  Setting the print character string with ASCII code
Command
Data to be sent This pattern can be repeated for a total of up to 64
Identification code + instances of the pattern.
setting number + Message 01 + Print contents
Header H2 ,a,b,c Delimiter

A B C ¥ n 1 ¥ n E F ¥ n Response
8260h 8261h 8262h 5Ch 6Eh 8250h 5Ch 6Eh 8264h 8265h 5Ch 6Eh

Header H2 Delimiter
First line Line feed code Second line Third line
Set the character string of the specified message number with ASCII code
(alphanumeric characters).
 Setting for update characters, custom logotypes, and
Setting Maximum
barcodes/2D codes Parameter
value bytes
Quantity Remarks

To set update characters, custom logotypes, and barcodes/2D codes, follow a Program number 001 to 500 3 1
the format in the table below. b Message number 01 to 64 2 Max. 64
Perform the setting using ASCII codes. Character string The character code is ASCII.
For the , , and  marks in the table, set a numeric value or character from c Characters 1000 Max. 64
data Maximum: 999 characters
outside of the column.

Set the printing conditions for custom logotypes and barcodes/2D codes Point
• The maximum for the total number of bytes for all the
separately. character string data in all the messages is 1,000 bytes.
For information on how to set the custom logotypes, see the "MK-G1000 • To specify characters other than alphanumeric characters,
Series User's Manual." To set barcodes/2D codes, use the commands listed use the "FS" command.
under "Barcode/2D code conditions" and "Barcode/2D code variables."

- MK-G1000 Series Communication Interface User’s Manual - 11


 Changing the current character string in operation Counter
Command
There are 9 specific counters for each setting and 10 counters that are com-
Header BK ,a,b,c Delimiter mon to all setting numbers.
Use a command for setting character strings ("FS" or "H2") to set counters
Response on sections.
 Setting the counter conditions
Header BK Delimiter
Command
Response when the command is stored in the communication buffer.
Header CO ,a,b,c,d,e,f,g,h,i,j,k, Delimiter
Header BK , BUF Delimiter
Response

Point
* This command can be used with the communication buffer.
Header CO Delimiter

When the command is registered in the communication


buffer, the character string "BUF" is returned in the response.  Requesting the counter conditions
Command

3 Parameter
Setting
value
Maximum
bytes
Quantity Remarks Header CP ,a,b Delimiter
Response
a Message number 1 to 64 2 1
Setting the Print Contents

0: ASCII (8 bits) Header CP ,a,b,c,d,e,f,g,h,i,j,k Delimiter


1: SHIFT-JIS
b Character code 0 to 3, 5 1 1 2: Latin-9
3: GB2312  Initializing the counter conditions
5: UTF-8
Command
For ASCII, Latin-9, up to 240
characters can be set. Header CZ ,a,b Delimiter
Character string For UTF-8, up to 80 characters
c Characters 240 1 Response
data can be set.
For the other character codes,
up to 120 characters can be set.
Header CZ Delimiter

Parameter Setting value Bytes Quantity Remarks


 Deleting the character string of the specified setting 000: Common counters
Program 000,
number a
number 001 to 500
3 1 ALL: All settings *Available for CZ
only
Command 1 to 9: Counters for one setting
number
Counter
Header FX ,a,b Delimiter b
number
1 to 9, A to J 1 1 A to J: Common counters
L: All counters *Available for
Response CZ only
Number of
c 01 to 10 2 1
Header FX Delimiter digits
Number
d 02 to 36 2 1
system
Setting Maximum
Parameter Quantity Remarks The value that is printed initially
value bytes
0000000000 to and after a reset
001 to 500, e Initial value 10 1
4294967295 Always set and acquire this value
a Program number 3 1 ALL: All Programs
ALL in decimal notation.
b Message number 1 to 64, AL 2 1 AL: All Message The end value in the counter's
0000000000 to range of operation
f Final value 10 1
4294967295 Always set and acquire this value
 Requesting the print result in decimal notation.
Initial value The start value in the counter's
Command
from 0000000000 to range of operation
g 10 1
second 4294967295 Always set and acquire this value
Header UZ ,a,b Delimiter cycle in decimal notation.
The value to change the counter
Response h Step 0000 to 9999 4 1
by for a single print operation
The counter value's repeat count
Header UZ ,a,b,c Delimiter 0: The counter value is changed
Number of 0000000000 to when input is applied to the
i 10 1
Acquire the data of the last actual character string printed. Data such as repetitions 4294967295 count UP/DOWN terminal.
Always set and acquire this
update characters is also acquired as the actual printed characters.
value in decimal notation.
Setting Used when the print method is set
Parameter Bytes Quantity Remarks to "Constant continuous,"
value
"Constant N times," "Encoder
a Message number 1 to 64 2 1 continuous," or "Encoder N times."
Count
j 0, 1 1 1 0: Per print (the N times counter is
0: ASCII (8 bits) timing
changed by a sequence of print
1: SHIFT-JIS operations)
b Character code 0 to 3, 5 1 1 2: Latin-9 1: Sensor (each time that a trigger
3: GB2312 occurs)
5: UTF-8 Used when the print method is set
Character string Max. 3000 byte to "Constant continuous,"
c Characters 1 Reset "Constant N times," "Encoder
data 3000 (Maximum: 999 characters) k 0, 1 1 1
timing continuous," or "Encoder N times."
0: None
 Initializing the print settings 1: Sensor

Command
Reference Example of setting the counter conditions
With the following settings, the counter operations are performed
Header FI ,a Delimiter
as shown in the figure.
Response Number of display Counter operation
digits: 3
Start End value
Header FI Delimiter Initial value from
second cycle: 200 100→100→200→200・
・・・
・・・
・・・
・・・
・・・
・・・
・・・→500→500
Delete all the setting contents of the specified setting number. End value: 500 Default value
Repeat counts: 2
Default value: 100
Setting Number of
Parameter Bytes Quantity Remarks 200→200→300→300→・
・・・
・・・
・・・
・・・
・・・
・・・
・→500→500
value repetitions: 2
Initial value
Program 001 to 500, Step: 100 from second cycle Counting between initial value from second cycle
a 3 1 ALL: All Programs Number system: 10 and the end values is repeated
number ALL

12 - MK-G1000 Series Communication Interface User’s Manual -


 Setting the current value for the counter's repeat Current counter value
count
Change (set) and request the current counter value and the current counter
Set and request the current value when the repeat count has been set. repeat counts.
Command
 Setting the current counter value
Header CQ ,a,b,c Delimiter Command

Response
Header CM ,a,b,c Delimiter

Header CQ Delimiter Response

Header CM Delimiter
 Requesting the counter's current repeat count
Command
 Requesting the current counter value
CR
3
Header ,a,b Delimiter Command

Response
Header CN ,a,b Delimiter

Setting the Print Contents


Header CR ,a,b,c Delimiter Response

Header CN ,a,b,c Delimiter


 Initializing the counter's current repeat count
Command
 Clearing the current counter value
Header DS ,a,b Delimiter Command

Response
Header DR ,a,b Delimiter

Header DS Delimiter Response

Setting Maximum
Header DR Delimiter
Parameter Quantity Remarks
value bytes

Program 000, Setting Maximum


a 3 1 000: Common counters Parameter Quantity Remarks
number 001 to 500 value bytes
1 to 9: Counters for one Program 000,
Counter a 3 1 000: Common counters
b 1 to 9, A to J 1 1 setting number number 001 to 500
number
A to J: Common counters
1 to 9: Specific counters for
Counter
Current repeat 0000000000 to b 1 to 9, A to J 1 1 one setting number
c 10 1 Fixed to decimal notation number
count value 4294967295 A to J: Common counters

This value is always set and


Current 0000000000 to acquired in decimal notation
c 10 1
counter value 4294967295 regardless of the counter's set
number system.

- MK-G1000 Series Communication Interface User’s Manual - 13


Setting barcodes and 2D codes  Setting the barcode conditions
Command
Up to four barcodes or 2D codes can be set for each setting.
For the condition settings, set the type, print type, and size.
Use the print character string data setting to set barcodes.
Header B0 ,a,b,c,d,e,f,g,h,i,j,k Delimiter

Response
 Setting the barcode or 2D code character string
Header B0 Delimiter
Command

Header BE ,a,b,c Delimiter  Requesting the barcode conditions


Response Command

Header BE Delimiter Header B1 ,a,b Delimiter

Response

3  Requesting the barcode or 2D code character string


Command
Header B1 ,a,b,c,d,e,f,g,h,i,j,k Delimiter
Setting the Print Contents

Setting Maximum
Parameter Quantity Remarks
Header BF ,a,b Delimiter value bytes
a Program number 1 to 500 3 1
Response
b Barcode number 1 to 4 1 1
0: ITF
Header BF ,a,b,c Delimiter 1: CODE39
2: 2of5
3: NW7 (CODABAR)
4: CODE128
Reference The requested character string is returned with the set character 5: ITF
code. 0 to 7, E to
(check digit on)
c Barcode type 1 1 6: CODE39
H
(check digit on)
 Setting the current barcode or 2D code character 7: NW7
(check digit on)
string in operation E: UPC-E
F: JAN8
Command G: UPC-A
H: JAN-13

Header BH ,b,c Delimiter 0: Normal


d Print type 0, 1 1 1
1: Inverse
Response e Barcode height 1 to 32 2 1 Unit: Dots
f Narrow bar width 1 to 4 1 1 Unit: Dots
Header BH Delimiter Narrow
g 1 to 4 1 1 Unit: Dots
space width
h Wide bar width 2 to 9 1 1 Unit: Dots
 Initializing the barcode or 2D code character string Wide bar
i 2 to 9 1 1 Unit: Dots
space width
Command
0: Off
j Human readable 0, 1, 2 1 1 1: On (5 × 5)
Header BX ,a,b Delimiter 2: On (7 × 5)
Value to multiply the narrow
Response k Quiet zone 0 to 99 2 1
bar width by

Header BX Delimiter Check digits


automatically
Barcode type Variables Notes
added to
Setting Maximum barcodes
Parameter Quantity Remarks
value bytes • Numbers (0 to 9) The number of
0: ITF • Update characters (date **
a Program number 001 to 500 3 1 digits must be even.
and time, counter): ASCII
b Code number 1 to 4 1 1 5: ITF Modulus
**
(check digit on) 10/3
Character • Letters (A to Z)
c Code contents 140 1 Fixed to S-JIS 1: CODE39 Start/stop
string • Numbers (0 to 9)
characters are
6: CODE39 • Symbols (-, ., $, /, +, %) Modulus 43
automatically
(check digit on) • Update characters (date
added.
and time, counter): ASCII
• Numbers (0 to 9)
2: 2of5 • Update characters (date ** **
and time, counter): ASCII
c 3: NW7 • Letters (A to D): Start/
(CODABAR) stop characters
Be sure to add
• Numbers (0 to 9)
Modulus 16 start/stop
7: NW7 • Symbols (-, ., $, +, :)
characters.
(check digit on) • Update characters (date
and time, counter): ASCII
All 128 ASCII code
characters
• Letters (A to Z, a to z)
• Numbers (0 to 9), Modulus
4: CODE128 **
symbols 10/3
• Control codes: ASCII
• Update characters (date
and time, counter): ASCII
* Use ASCII code to set the variables that are indicated by "ASCII" in this
table.
* Set update characters by using ASCII to specify the codes in the
character string setting ( page 23).

14 - MK-G1000 Series Communication Interface User’s Manual -


* CODE128  Requesting the 2D code conditions
You can use all 128 characters in the ASCII code table. Use Shift-JIS
Command
codes to set numbers, alphabetic characters, and symbols. Use ASCII
codes to set control codes (see the following table). The MK-G1000
automatically judges what start character—"CODE-A," "CODE-B," or
Header B3 ,a,b Delimiter

"CODE-C"—should be used, so you do not have to enter the start Response


character.
Header B3 ,a,b,c,d,e,f,g,h,i Delimiter
 List of control codes
Setting Maximum
Control code Setting code Control code Setting code Parameter Quantity Remarks
value bytes
NUL %000A DC3 %019A
a Program number 001 to 500 3 1
SOH %001A DC4 %020A
b Barcode number 1 to 4 1 1
STX %002A NAK %021A
8: QR mode 1 (AUTO)
ETX %003A SYN %022A 9: QR mode 1 (MANUAL)
A: QR mode 2 (AUTO)

3
EOT %004A ETB %023A c Barcode type 8 to D 1 1
B: QR mode 2 (MANUAL)
ENQ %005A CAN %024A C: Micro QR
D: DataMatrix
ACK %006A EM %025A

Setting the Print Contents


0: Normal
BEL %007A SUB %026A d Print type 0, 1 1 1
1: Inverse
BS %008A ESC %027A
0: Automatic
HT %009A FS %028A DataMatrix
01: 10 × 10 09: 26 × 26
LF %010A GS %029A
02: 12 × 12 10: 32 × 32
VT %011A RS %030A 03: 14 × 14 11: 8 × 18
04: 16 × 16 12: 8 × 32
FF %012A US %031A
05: 18 × 18 13: 12 × 26
CR %013A DEL %127A 06: 20 × 20 14: 12 × 36
e Symbol size 0 to 16 2 1 07: 22 × 22 15: 16 × 36
SO %014A FNC1 %901A
08: 24 × 24 16: 16 × 48
SI %015A FNC2 %902A QR Code Model 1/2
01: Fixed value
DLE %016A FNC3 %903A
Micro QR Code
DC1 %017A FNC4 %904A 01: Version 1
02: Version 2
DC2 %018A
03: Version 3
04: Version 4
Example of setting a counter
Example: When setting characters "ABC" and counter number 1 f Cell size 1, 2 1 1

QR
A B C % C 1 C 0: L (7%)
1: M (15%)
8260h 8261h 8262h 25h 43h 31h 43h 2: Q (25%)
Error correction
g 0 to 3 1 1 3: H (30%), Micro QR
level/06Macro
cannot be specified
Point
For CODE39, the start/stop character (*) is added DataMatrix
automatically. You do not have to send this character. 0: 06Macro not supported
1: 06Macro supported

QR
 Setting the 2D code conditions 0: Not to set
h Password on/off 0, 1 1 1 1: Set
Command
MicroQR/DataMatrix
0: Fixed value
Header B2 ,a,b,c,d,e,f,g,h,i Delimiter
Value to multiply the cell size
i Quiet zone 0 to 5 1 1
Response by

Header B2 Delimiter

- MK-G1000 Series Communication Interface User’s Manual - 15


4-2 Encoded Characters
4 Print Common Settings  Setting the year encoded characters
Command
4-1 Expiration Period This pattern can be repeated for a total of up to 10
instances of the pattern.
 Setting the expiration period Header RA ,a,b,c,d Delimiter
Command
Response
Header RU ,a,b,c,d,e,f,g Delimiter Header RA Delimiter
Response
 Requesting the year replacement characters
Header RU Delimiter
Command

 Requesting the expiration period


Header RB ,a,b Delimiter

Command Response

4
This pattern can be repeated for a total of up to 10
instances of the pattern.
Header RV ,a,b Delimiter
Header RB ,a,b,c,d Delimiter
Response
Print Common Settings

* Use a single command to set and request the 10 types of encoded


Header RV ,a,b,c,d,e,f,g Delimiter characters in order from year 0 to year 9.

Setting
Setting Maximum Parameter Bytes Quantity Remarks
Parameter Quantity Remarks value
value bytes
Year encoded
Program 000, a 01 to 10 2 1
a 3 1 000: Common expiration period characters
number 001 to 500
0: ASCII (8 bits)
Only the common expiration 1: SHIFT-JIS
Expiration 2: Latin-9
00, period is valid.
b period 2 1 3: GB2312
01 to 50 The specific expiration periods b Character code 0 to 3, 5, 9 1 1
number 5: UTF-8
are fixed to 0.
9: Only for the command to
c Year -99 to +99 3 1 To set this to 0, specify -00 or request the character
+00. code at the time of setting
d Month -99 to +99 3 1
Number of
-1999 to To set this to 0, specify -0000 or c characters to 1 to 10 2 1
e Day 5 1
+1999 +0000. replace
f Hour -99 to +99 3 1 Encoded Character Up to 10 characters (from
To set this to 0, specify -00 or d Max. 30 10
character string string year 0 to year 9 in order)
g Minute -99 to +99 3 1 +00.

 Setting the month encoded characters


 How expiration period dates and times are calculated
Command
The expiration period to be printed is determined by adding to or subtracting This pattern can be repeated for a total of up to 12
from the current date and time the specified number of years, months, days, instances of the pattern.
hours, minutes, and seconds. Header RC ,a,b,c,d Delimiter
If the day after the specified expiration period does not exist, the last day of
the specified month is used for the expiration period date and time. Response
In leap years, the last day of February is the 29th.
Header RC Delimiter
Example 1 Example 2 Example 3

Current date
and time
January 10, 2006 01:00 on January 10, 2006 January 31, 2006  Requesting the month encoded characters
Expiration +1 year, +1 month, 0 years, +1 month, -1 day, 0 years, +1 month, Command
period setting 0 days -02 hours, 00 minutes 0 days

Print
Header RD ,a,b Delimiter
February 2, 2007 23:00 on February 8, 2006 February 28, 2006
contents
Response
This pattern can be repeated for a total of up to 12
 Initializing the expiration period settings instances of the pattern.

Command
Header RD ,a,b,c,d Delimiter

* Use a single command to set and request the 12 types of encoded


Header RY ,a,b Delimiter
characters in order from January (month 1) to December (month 12).
Response
Setting
Parameter Bytes Quantity Remarks
value
Header RY Delimiter
Month encoded
a 01 to 10 2 1
characters
Set a to "ALL" to initialize all the specific settings. This command does not 0: ASCII (8 bits)
initialize the common expiration periods. 1: SHIFT-JIS
Set a to "000" and b to "AL" to initialize all the common settings. 2: Latin-9
3: GB2312
b Character code 0 to 3, 5, 9 1 1
5: UTF-8
Setting Maximum 9: Only for the command to
Parameter Quantity Remarks request the character
value bytes
code at the time of setting
Program 000, 001 to 000: Common expiration period
a 3 1 Number of
number 500, ALL ALL: All specific settings
c characters to 1 to 10 2 1
Only the common expiration replace
Expiration
00, 01 to 50, period is valid. Up to 10 characters (from
b period 2 1
AL 0: Specific expiration periods Encoded Character January [month 1] to
number d Max. 30 12
AL: Initialize all common settings. character string string December [month 12] in
order)

16 - MK-G1000 Series Communication Interface User’s Manual -


 Setting the day encoded characters  Setting the minute encoded characters
Command Command
This pattern can be repeated for a total of up to 31 This pattern can be repeated for a total of up to 60
instances of the pattern. instances of the pattern.
Header RE ,a,b,c,d Delimiter Header RI ,a,b,c,d Delimiter

Response Response

Header RE Delimiter Header RI Delimiter

 Requesting the day encoded characters  Requesting the minute encoded characters
Command Command

Header RF ,a,b Delimiter


Header RJ ,a,b Delimiter

Response
Response This pattern can be repeated for a total of up to 60
This pattern can be repeated for a total of up to 31 instances of the pattern.
instances of the pattern.
Header RJ ,a,b,c,d Delimiter
Header RF ,a,b,c,d Delimiter

* Use a single command to set and request the 31 types of encoded


* Use a single command to set and request the 60 types of encoded 4
characters in order from minute 0 to minute 59.
characters in order from day 1 to day 31.

Print Common Settings


Setting
Setting Parameter Bytes Quantity Remarks
Parameter Bytes Quantity Remarks value
value
Minute encoded
Day encoded a 01 to 10 2 1
a 01 to 10 2 1 number
number
0: ASCII (8 bits)
0: ASCII (8 bits) 1: SHIFT-JIS
1: SHIFT-JIS 2: Latin-9
2: Latin-9 3: GB2312
3: GB2312 b Character code 0 to 3, 5, 9 1 1
b Character code 0 to 3, 5, 9 1 1 5: UTF-8
5: UTF-8 9: Only for the command to
9: Only for the command to request the character
request the character code at the time of setting
code at the time of setting
Number of
Number of c characters to 1 to 10 2 1
c characters to 1 to 10 2 1 replace
replace
Up to 10 characters (from
Encoded Character Up to 10 characters (from Encoded Character
d Max. 30 31 d Max. 30 60 minute 0 to minute 59 in
character string string day 1 to day 31 in order) character string string
order)

 Setting the hour encoded characters  Setting the second encoded characters
Command Command
This pattern can be repeated for a total of up to 24 This pattern can be repeated for a total of up to 60
instances of the pattern. instances of the pattern.
Header RG ,a,b,c,d Delimiter Header RK ,a,b,c,d Delimiter
Response Response

Header RG Delimiter Header RK Delimiter

 Requesting the hour encoded characters  Requesting the second encoded characters
Command Command

Header RH ,a,b Delimiter Header RL ,a,b Delimiter

Response Response
This pattern can be repeated for a total of up to 24 This pattern can be repeated for a total of up to 60
instances of the pattern. instances of the pattern.
Header RH ,a,b,c,d Delimiter Header RL ,a,b,c,d Delimiter

* Use a single command to set and request the 24 types of encoded * Use a single command to set and request the 60 types of encoded
characters in order from hour 0 to hour 23. characters in order from second 0 to second 59.

Setting Setting
Parameter Bytes Quantity Remarks Parameter Bytes Quantity Remarks
value value
Hour encoded Second encoded
a 01 to 10 2 1 a 01 to 10 2 1
number number
0: ASCII (8 bits) 0: ASCII (8 bits)
1: SHIFT-JIS 1: SHIFT-JIS
2: Latin-9 2: Latin-9
3: GB2312 3: GB2312
b Character code 0 to 3, 5, 9 1 1 b Character code 0 to 3, 5, 9 1 1
5: UTF-8 5: UTF-8
9: Only for the command to 9: Only for the command to
request the character request the character
code at the time of setting code at the time of setting
Number of Number of
c characters to 1 to 10 2 1 c characters to 1 to 10 2 1
replace replace
Encoded Character Up to 10 characters (from Up to 10 characters (from
d Max. 30 24 Encoded Character
character string string hour 0 to hour 23 in order) d Max. 30 60 second 0 to second 59 in
character string string
order)

- MK-G1000 Series Communication Interface User’s Manual - 17


 Setting the day of the week encoded characters  Setting the counter encoded characters
Command Command
This pattern can be repeated for a total of up to 7 This pattern can be repeated for a total of up to 36
instances of the pattern. instances of the pattern.
Header RM ,a,b,c,d Delimiter Header RQ ,a,b,c,d Delimiter

Response Response

Header RM Delimiter Header RQ Delimiter

 Requesting the counter encoded characters


 Requesting the day of the week encoded characters
Command
Command
Header RR ,a,b Delimiter
Header RN ,a,b Delimiter
Response
Response This pattern can be repeated for a total of up to 36
This pattern can be repeated for a total of up to 7 instances of the pattern.
instances of the pattern. Header RR ,a,b,c,d Delimiter
Header RN ,a,b,c,d Delimiter
* Use a single command to set and request the 36 types of encoded

4 * Use a single command to set and request the 7 types of encoded


characters in order: Sunday, Monday, Tuesday, Wednesday, Thursday,
characters in order from 0 to 9 and A to Z.
Parameter Setting value Bytes Quantity Remarks

Friday, Saturday. Counter encoded


Print Common Settings

a 01 to 10 2 1
number
Setting 0: ASCII (8 bits)
Parameter Bytes Quantity Remarks 1: SHIFT-JIS
value
2: Latin-9
Day of the week 3: GB2312
a 01 to 10 2 1
encoded number b Character code 0 to 3, 5, 9 1 1 5: UTF-8
0: ASCII (8 bits) 9: Only for the command to
request the character
1: SHIFT-JIS
code at the time of
2: Latin-9 setting
3: GB2312
b Character code 0 to 3, 5, 9 1 1 Number of
5: UTF-8
9: Only for the command to c characters to 1 to 10 2 1
request the character replace
code at the time of setting Encoded Character Up to 10 characters (from 0
d Max. 30 36
character string string to 9 and A to Z in order)
Number of
c characters to 1 to 10 2 1
replace  Setting the time slot encoded characters
Up to 10 characters
Encoded Character (Sunday, Monday, Tuesday, Command
d Max. 30 7
character string string Wednesday, Thursday, This pattern can be repeated for a total of up to 25
Friday, Saturday in order) instances of the pattern.
Header RS ,a,b,c,d,e Delimiter
 Setting the week encoded characters
Response
Command
This pattern can be repeated for a total of up to 54 Header RS Delimiter
instances of the pattern.
 Requesting the time slot encoded characters
Header RO ,a,b,c,d Delimiter
Command
Response
Header RT ,a,b Delimiter
Header RO Delimiter
Response
This pattern can be repeated for a total of up to 25
 Requesting the week encoded characters instances of the pattern.

Command
Header RT ,a,b,c,d,e Delimiter

* Request and set the encoded characters only for the specified time
Header RP ,a,b Delimiter division (up to 25 divisions).
Response Setting Maximum
Parameter Quantity Remarks
This pattern can be repeated for a total of up to 54 value bytes
instances of the pattern. Shift code encoded
a 01 to 10 2 1
number
Header RP ,a,b,c,d Delimiter
0: ASCII (8 bits)
1: SHIFT-JIS
* Use a single command to set and request the 54 types of encoded 2: Latin-9
3: GB2312
characters in order from week 1 to week 54. b Character code 0 to 3, 5, 9 1 1 5: UTF-8
9: Only for the command
Setting to request the
Parameter Bytes Quantity Remarks character code
value
at the time of setting
Week encoded
a 01 to 10 2 1 Number of characters
number c 1 to 10 2 1
to replace
0: ASCII (8 bits)
1: SHIFT-JIS 00:00 to 23:59.
Parameters ",d" and ",e"
2: Latin-9 0000 to
d Division start time 4 Max. 25 are a set that is repeated
3: GB2312 2359
b Character code 0 to 3, 5, 9 1 1 for a total of up to 25
5: UTF-8 instances of the set.
9: Only for the command to
request the character Division encoded Character
e 30 Max. 25 Up to 10 characters
code at the time of setting character string string

Number of Reference Setting example) Use the command shown below to print in time
c characters to 1 to 10 2 1
slot number 01 the following character strings
replace
in three different time slots that the day has
Encoded Character Up to 10 characters (from been divided into.
d Max. 30 54
character string string week 1 to week 54 in order)
00:00 to 07:59 Print 1A
08:00 to 15:59 Print 1B

18 - MK-G1000 Series Communication Interface User’s Manual -


16:00 to 23:59 Print 1C

Header RS , 01 , 0 , 2 , 0000 , 1A , 0800 , 1B , 1600 , 1C Delimiter


ASCII 52h53h 2Ch 30h31h 2Ch 30h 2Ch 32h 2Ch 30h30h30h30h 2Ch 31h41h……
 Initializing the encoded characters
Command

Header RX ,a,b Delimiter

Response

Header RX Delimiter

Setting Maximum
Parameter Quantity Remarks
value bytes
0: Year encoded
1: Month encoded
2: Day encoded
3: Hour encoded
4: Minute encoded
a Encoded type 0 to 9, A 1 1 5: Second encoded

4
6: Day of the week encoded
7: Week encoded
8: Counter encoded
9: Shift code
A: All types including shift

Print Common Settings


Encoded
b 1 to 10, AL 2 1 AL: All encoded numbers
number

- MK-G1000 Series Communication Interface User’s Manual - 19


Communication buffer
5 Running the MK-G1000 Set the communication buffer. For details on the communication buffer, see
"1-4 Communication Buffer Function" (page 4).

5-1 Switching Programs


 Setting the communication buffer
Command
Switching the program number
Switch the program number that is currently being printed.
Header KV ,a Delimiter

Response
 Setting the current program number
Command Header KV Delimiter

Header FW ,a Delimiter

Response  Requesting the communication buffer


Command
Header FW Delimiter

Response when the command is stored in the communication buffer. Header KW Delimiter

Response
Header FW , BUF Delimiter
Header KW ,a Delimiter

5  Requesting the current program number


Command
 Clearing the communication buffer
Running the MK-G1000

Header FR Delimiter
Command
Response
Header KX Delimiter
Header FR ,a Delimiter
Response
If a command for switching the program number is received during printing,
the command is stored temporarily, a response is sent, and the command is Header KX Delimiter
executed after printing is complete.

Setting Setting
Parameter Bytes Quantity Remarks Parameter Bytes Quantity Remarks
value value
Program 0: OFF,
a 1 to 500 3 1
number a Buffer setting 0, 1, 2 1 1 1: Change program (FW)
2: Change character string (BK)

Group printing
Set the group settings to the current print settings. 5-2 Other
If the specified group setting is empty, an error is returned.
The "run setting" number will be "001" immediately after the group setting is
canceled by specifying "00."
Test printing

 Setting the group printing number Sending the test printing command causes printing to be performed once.

Command
 Starting test printing
Header FF ,a Delimiter
Command
Response
Header TW Delimiter
Header FF Delimiter
Response
 Requesting the group printing number
Header TW Delimiter
Command

Header FG Delimiter Point


• Even if the print method is set to "Constant continuous,"
Response "Encoder continuous," "Constant N times," or "Encoder N
times," printing is performed only once for test printing.
Header FG ,a Delimiter • Printing is performed with the timing of the sent command
regardless of the trigger delay.
 Resetting the group printing number • To perform printing according to the set line conditions,
Reset the current group printing setting to the original setting number. If the apply a trigger signal to the printing start input terminal.
current setting is not a group printing setting, nothing happens. • The test printing command is designed for use in
confirming printing. Be sure to use the printing start input
terminal on the I/O terminal block to apply the printing start
Command
signal when the MK-G1000 is in RUN mode.
Header FH Delimiter

Response

Header FH Delimiter

Setting
Parameter Bytes Quantity Remarks
value
FF command: 00: Cancels the
group printing setting
00,
a Group number 2 1 FG command: 00: A state other
01 to 10
than the group printing
setting

20 - MK-G1000 Series Communication Interface User’s Manual -


Suspending printing and resuming printing
Suspend printing during operation and resume printing that has been sus-
pended.

 Suspending printing
Command

Header SR Delimiter

Response

Header SR Delimiter

 Resuming printing
Command

Header SQ Delimiter

Response

Header SQ Delimiter

Guide LED
5

Running the MK-G1000


Change the LED guide laser method.

 Setting the guide LED


Command

Header GL ,a Delimiter

Response

Header GL Delimiter

 Requesting the guide LED status


Command

Header GM Delimiter

Response

Header GM ,a Delimiter

Setting Maximum
Parameter Quantity Remarks
value bytes
0: OFF
Guide LED
a 0 to 2 2 1 1: ON
status
2: Synchronous printing

Printed counters
You can set and request the printed counters.

 Setting the printed counters


Command

Header KG ,a,b Delimiter

Response

Header KG Delimiter

 Requesting the printed counters


Command

Header KH ,a Delimiter

Response

Header KH ,a,b Delimiter

Setting Maximum
Parameter Quantity Remarks
value bytes
Printed counter KG setting value: 1, 2
a 1 to 3 1 1
number KH setting value: 1 to 3
0 to
b Printed count 9 1
999999999

- MK-G1000 Series Communication Interface User’s Manual - 21


Shift time
6 Environment Settings This is a function for changing the date at the specified time.

6-1 Time  Setting the shift time


Command
Current date and time and hold date and time Header DW ,a,b,c Delimiter

Set the MK-G1000's internal clock. Response


When you set the hold date and time, this date and time is used instead of
the current date and time. Header DW Delimiter

 Setting the current date and time


 Requesting the shift time
Command
Command
Header DA ,a,b,c,d,e,f Delimiter
Header DX Delimiter
Response
Response
Header DA Delimiter
Header DX ,a,b,c Delimiter

 Requesting the current date and time If you set the shift condition to 1: "Enabled only once," the setting will be
Command changed to 0: "Disabled" after the shift time function is executed one time.

6 Header

Response
DB Delimiter
Parameter
Setting
value
Maximum
bytes
Quantity Remarks

0: Disabled
Shift
Environment Settings

a 0, 1, 2 1 1 1: Enabled only once


condition
Header DB ,a,b,c,d,e,f Delimiter 2: Always enabled

This can be set to a value


 Setting the hold date and time b Shift hour 18 to 32 2 1
between 18:00 and 32:00 (which
indicates 08:00 of the following
The hold date and time stores the set date and time. day).
Command
Shift
c 0 to 59 2 1
minute
Header DH ,a,b,c,d,e,f Delimiter

Response Setting example)


The day in question Up to 23:59 From 24:00 The following day
Header DH Delimiter Current
date and Setting range of the shift time:
time Up to 17:59 18:00 to 32:00 From 08:01
 Requesting the hold date and time (08:00 of the following day)
Command  When the shift time is set to 20:00
Up to 19:59, the date of the From 20:00, the date of the following day is
Header DI Delimiter Printing
current day is printed. printed.

Response  When the shift time is set to 28:00 (04:00 of the following day)
From 28:00 (04:00 of the
Up to 27:59 (03:59 of the following day),
Header DI ,a,b,c,d,e,f Delimiter Printing following day), the date of the
the date of the current day is printed.
following day is printed.
Setting Maximum
Parameter Quantity Remarks
value bytes
a Year 00 to 99 2 1 00: 2000 to 99: 2099
b Month 1 to 12 2 1 6-2 Barcode Link
c Day 1 to 31 2 1
d Hour 0 to 23 2 1
Barcode link setting and switching
e Minute 0 to 59 2 1
f Second 0 to 59 2 1 When this command is received in the barcode comparison registration
screen, the variable is registered as a check code. When this command is
 Hold date and time, setting the time type received in any other screen, the program number associated with a previ-
ously recorded check variable is loaded.
Command

Header DT ,a Delimiter  Barcode link setting and switching


Response Command

Header DT Delimiter Header BR ,a Delimiter

Response
 Hold date and time, requesting the time type
Command
Header BR Delimiter

Header DU Delimiter
Parameter
Setting Maximum
Quantity Remarks
value bytes
Response
ASCII
Character
a character 20 1
string
Header DU ,a Delimiter string

Setting Maximum
Parameter Quantity Remarks
value bytes
0: Current date and time
a Time type 0, 1 1 1
1: Hold date and time

22 - MK-G1000 Series Communication Interface User’s Manual -


Appendices
A-1 Default value lists

 Message conditions  Counter condition


Item Default value Item Default value
Lateral scaling 1 time Number of digits 1

Type/Size 7 × 5 dots Number system 10

Base position X 0 dots Default value 0000000000

Base position Y 0 dots End value 0000000009

Character spacing 1 dot Initial value from second cycle 0000000000

Line spacing 1 dot Step 00001

Print Print Repeat count 0000000001

Print angle 0 degrees Count timing Sensor

Lock Off Reset timing Off

 Line settings and print adjustment  Barcode conditions


Item Default value Item Default value
Head direction Normal Barcode type ITF

Text direction 0° Print type Normal

Standard: 15 mm/
Head/target distance Barcode height 16 dots

A
lowercase: 10 mm

Print method Constant Narrow bar width 1 dot

Print method (number of times) Once Narrow space width 1 dot

List of MK-G1000 Series Identification Codes


Encoder type 2 phases, both edges, addition Wide bar width 2 dots

Number of encoder pulses 20 pulse/mm Wide space width 2 dots

Line speed 300.0 mm/s

Maximum line speed 300.0 mm/s  2D code type


Trigger delay (normal) 30.0 mm Item Default value
Trigger delay (reverse) 30.0 mm Barcode type QR Model 2 (Auto)

Message interval 100.0 mm Symbol size 00

Character height adjustment 100% Cell size 1

Character width adjustment 100% Error correction rate H (30%)

Ignore triggers less than 15.0 ms Password on/off Off

Trigger on time limit 0.0 s Password 000000

Title No

A-2 ASCII code table

High-order 4 bits
0 1 2 3 4 5 6 7 8 9 A B C D E F
N D
0 U
L
L
E
S D
1 O
H
C
1
S D
2 T
X
C
2
E D
3 T
X
C
3
E D
4 O
T
C
4
E N
5
Low-order 4 bits

N A
Q K
A S
6 C
K
Y
N
B E
7 E
L
T
B
C
8 BS A
N
9 H T EM
S
A L F UB
E
B V T SC
C F F
F S
D C R GS
E SO RS
F S I US

- MK-G1000 Series Communication Interface User’s Manual - 23


A-3 Index

Numerics P
2D codes ..................................................................11, 14 Print adjustment ...........................................................8, 9
Print content settings ........................................................8
A Print method .....................................................................9
Abnormality level errors ....................................................6 Print result ......................................................................12
ASCII code table ............................................................23 Printed counters .............................................................21
Printing conditions ............................................................8
B Printing direction ..............................................................9
Barcode link ...................................................................22 R
Barcodes ..................................................................11, 14
Resuming printing ..........................................................21
C RS-232C cable .................................................................3
Caution level errors ..........................................................6 S
Character height adjustment ............................................9
Character width adjustment .............................................9 Second encoded characters .........................................17
Checksum ........................................................................2 Setting parameter composition ........................................8
Communication buffer ................................................4, 20 Setting the header and delimiter ......................................2
Communication competition .............................................3 Setting the print character string ....................................11
Communication log ..........................................................3 Shift time .........................................................................22
Communication priority ....................................................3 Shutdown .........................................................................7
Communication Settings ..................................................3 Startup ..............................................................................7
Communication Specifications .........................................2 Suspending printing .......................................................21
Counter ...........................................................................12 Switching the program number ......................................20

A Counter encoded characters .........................................18 System status ...............................................................5, 6


Current counter value .....................................................13 System status codes ........................................................6
Current date and time ....................................................22
T
List of MK-G1000 Series Identification Codes

Custom logotypes ..........................................................11


Test printing ...................................................................20
D Text direction ....................................................................9
Day encoded characters ................................................17 Time slot encoded characters .......................................18
Day of the week encoded characters ............................18 Trigger delay ....................................................................9
Default value lists ...........................................................23
U
E Update characters .........................................................11
Encoded Characters ......................................................16 USB communication .........................................................3
Error responses ................................................................5
V
Expiration period ............................................................16
External communication ...................................................7 Variable-length parameters ..............................................2

F W
Font number table ..........................................................10 Week encoded characters .............................................18

G Y
Group printing ................................................................20 Year encoded characters ..............................................16
Guide LED ......................................................................21

H
Head distance ..................................................................9
Hold date and time .........................................................22
Hour encoded characters ..............................................17
How expiration period dates and times are
calculated .......................................................................16
How to read command structures ....................................2

L
Line settings .................................................................8, 9
List of control codes .......................................................15
List of error codes ............................................................5

M
Message conditions .......................................................10
Message interval ..............................................................9
Minute encoded characters ...........................................17
Month encoded characters ............................................16

24 - MK-G1000 Series Communication Interface User’s Manual -


Revision History
Date of printing Version Revision contents

March 2020 Revised 1st edition


Revised
October 2020 Ver 2.3 is supported
2nd edition
2nd revision
October 2022 Ver 2.6 IV3 is supported
2nd edition
WARRANTIES AND DISCLAIMERS
(1) KEYENCE warrants the Products to be free of defects in materials and
workmanship for a period of one (1) year from the date of shipment. If
any models or samples were shown to Buyer, such models or samples
were used merely to illustrate the general type and quality of the
Products and not to represent that the Products would necessarily
conform to said models or samples. Any Products found to be defective
must be shipped to KEYENCE with all shipping costs paid by Buyer or
offered to KEYENCE for inspection and examination. Upon examination
by KEYENCE, KEYENCE, at its sole option, will refund the purchase
price of, or repair or replace at no charge any Products found to be
defective. This warranty does not apply to any defects resulting from any
action of Buyer, including but not limited to improper installation,
improper interfacing, improper repair, unauthorized modification,
misapplication and mishandling, such as exposure to excessive current,
heat, coldness, moisture, vibration or outdoors air. Components which
wear are not warranted.
(2) KEYENCE is pleased to offer suggestions on the use of its various
Products. They are only suggestions, and it is Buyer's responsibility to
ascertain the fitness of the Products for Buyer’s intended use. KEYENCE
will not be responsible for any damages that may result from the use of
the Products.
(3) The Products and any samples ("Products/Samples") supplied to Buyer
are not to be used internally in humans, for human transportation, as
safety devices or fail-safe systems, unless their written specifications
state otherwise. Should any Products/Samples be used in such a manner
or misused in any way, KEYENCE assumes no responsibility, and
additionally Buyer will indemnify KEYENCE and hold KEYENCE
harmless from any liability or damage whatsoever arising out of any
misuse of the Products/Samples.
(4) OTHER THAN AS STATED HEREIN, THE PRODUCTS/SAMPLES ARE
PROVIDED WITH NO OTHER WARRANTIES WHATSOEVER. ALL
EXPRESS, IMPLIED, AND STATUTORY WARRANTIES, INCLUDING,
WITHOUT LIMITATION, THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, AND NON-
INFRINGEMENT OF PROPRIETARY RIGHTS, ARE EXPRESSLY
DISCLAIMED.
IN NO EVENT SHALL KEYENCE AND ITS AFFILIATED ENTITIES BE
LIABLE TO ANY PERSON OR ENTITY FOR ANY DIRECT, INDIRECT,
INCIDENTAL, PUNITIVE, SPECIAL OR CONSEQUENTIAL DAMAGES
(INCLUDING, WITHOUT LIMITATION, ANY DAMAGES RESULTING
FROM LOSS OF USE, BUSINESS INTERRUPTION, LOSS OF
INFORMATION, LOSS OR INACCURACY OF DATA, LOSS OF
PROFITS, LOSS OF SAVINGS, THE COST OF PROCUREMENT OF
SUBSTITUTED GOODS, SERVICES OR TECHNOLOGIES, OR FOR
ANY MATTER ARISING OUT OF OR IN CONNECTION WITH THE
USE OR INABILITY TO USE THE PRODUCTS, EVEN IF KEYENCE
OR ONE OF ITS AFFILIATED ENTITIES WAS ADVISED OF A
POSSIBLE THIRD PARTY’S CLAIM FOR DAMAGES OR ANY OTHER
CLAIM AGAINST BUYER. In some jurisdictions, some of the foregoing
warranty disclaimers or damage limitations may not apply.

BUYER'S TRANSFER OBLIGATIONS:


If the Products/Samples purchased by Buyer are to be resold or delivered
to a third party, Buyer must provide such third party with a copy of this
document, all specifications, manuals, catalogs, leaflets and written
information provided to Buyer pertaining to the Products/Samples.
E 1101-3

Copyright (c) 2022 KEYENCE CORPORATION. All rights reserved.


129288GB 2102-2 B57GB Printed in Japan

You might also like