Page 2
THIS PAGE INTENTIONALLY LEFT BLANK EPT052026 Issue 1 February 2019...
Page 3
DOMINO G20i RS485 GUIDE This Guide, Domino Part No. EPT052026, describes how to send commands via RS485 to Domino G20i printers. Users of this printer are warned that it is essential to read, understand and act according to the information given in the G20i Product Manual and User Guide.
Page 4
THIS PAGE INTENTIONALLY LEFT BLANK EPT052026 Issue 1 February 2019...
CONTENTS Page AMENDMENT RECORD ......................RS485 WIRING CONNECTION ....................Extended Port Connection ....................Connecting Multiple Printers to a PC ................... Connecting Multiple Printers to a PLC ................. PRINTER SETTINGS ......................... COMMUNICATION COMMANDS ..................... Create Message and Start Printing Via RS485 ..............Update Message While Printing ...................
The diagram below illustrates how to connect more than 1 printer to a PC via RS485. RS485+ RS485- USB to RS485 Converter G20i 1 G20i 2 G20i 3 RS485 Connection Diagram - Multiple Printers to PC Connecting Multiple Printers to a PLC The diagram below illustrates how to connect more than 1 printer to a PLC via RS485.
PRINTER SETTINGS Notes: (1) A USB keyboard is required to setup the printer. (2) Ensure the printer’s RS485 settings and the PLC or PC’s com port settings are set to the same values. To configure the printer for RS485 communication: (1) From the main menu, highlight Settings.
COMMUNICATION COMMANDS Create Message and Start Printing Via RS485 The example below illustrates how to send the commands to set the font type, font size, message data and start/stop printing. Notes: (1) The printer’s address is sent in a hexadecimal format. is printer 11.
Update Message While Printing During printing, users can send a new message to replace the current message that is being printed. The message can take between 3 and 5 seconds to update. Note: Add 000s to the end of the command to make it 150 bytes in length. Command: 00:0b01^1M03CS`@0`ABC`@1`XYZ`@2`IHG`@3`WER`@4`TUV`@5` OPQ<NUL>0000000000000000000000000000000000000000000...
COMMUNICATION PROTOCOL TABLES There are two protocol tables. The list of protocols for PC to printer communication begins on this page. The list of protocols for PLC to printer communication begins on page PC to Printer The table below lists RS485 communication commands for PC to printer connection. Table 1: PC to Printer Operation Command...
Page 12
Table 1: PC to Printer Operation Command Parameter Examples UDP Port Set print direction ^1V01CS*x\0 *x=0: Left to right normal. ^1V01CS0\0 = Left to right 8080 *x=1: Right to left normal. normal. *x=2: Left to right inverted *x=3: Right to left inverted ^1V01CS1\0 = Right to left normal.
Page 13
Set the printer ^1n01CS*x\0 *x: Name of the printer ^1n01CSG20i\0 = Set the name (15 characters maximum). printer’s name to G20i. Set screen ^1e01CS*x\0 *x=1: Set screen to ^1e01CS5 = Set the screen to rotation horizontal, side of menu auto rotate.
Page 14
Table 1: PC to Printer Operation Command Parameter Examples UDP Port Set roll over hour ^1T01CS*x*y00 *x=0: Disable roll over ^1T01CS10900\0 = Set the roll 8080 hour. over hour to 09:00 AM. *x=1: Enable roll over hour. *y: Set value for roll over hour.
Page 15
Table 1: PC to Printer Operation Command Parameter Examples UDP Port Set message ^1M01CS`@0`*x *x: Message string for line Note: Stop printing 8080 `@1`*y`@2`*z`@3` 1. Range = 0-100 before sending the *p`@4`*r`@5`*q\0 characters. message. *y: Message string for line ^1M01CS`@0`ABC`@1`XYZ`@2`I 2.
Page 16
Table 1: PC to Printer Operation Command Parameter Examples UDP Port Set message ^1M03CS`@0`*x *x: Message string for line Note: It can take between 8080 while printing `@1`*y`@2`*z`@3` 1. Range = 0-100 3 and 5 seconds *p`@4`*r`@5`*q\0 characters. for the message to update.
Page 17
Table 1: PC to Printer Operation Command Parameter Examples UDP Port Set counter ^1C01CS*x*y*z* *x: Counter number. 1C01CS0010010000000001000 8080 a*b*c*d*e\0 Range = 0-5. This is the 00000010000000999\0 name of the counter that will be stored on the printer. Counter number: 0 *y=0: Count upwards.
Page 18
Table 1: PC to Printer Operation Command Parameter Examples UDP Port Set Box/Lot ^1k01CS*x*y*z* *x: Counter number. Note: A pair of counters Counter a*b*c*d\0 Range = 00-03. This is is required for a the name of the counter box/lot. The that will be stored on the command will need printer.
Page 19
Table 1: PC to Printer Operation Command Parameter Examples UDP Port Set expire date ^1Z*x1CS*y*`z* the number of the ^1Z01CS0012`1dd-mm-yy\0 = 8080 abc\0 expire date item. Value: 0- Set the expiry date at 12 4. The printer supports up months. Set the date format as to 5 expire dates.
Page 20
Table 1: PC to Printer Operation Command Parameter Examples UDP Port Static barcode ^1g01CS*x*y*z* *x=0: Set the barcode ^1g01CS0331BARCODE39\0 8080 setup w*p\0 type to Code39. *x=1: Set the barcode Set barcode type as Code39. type to Code2of5. Set barcode width to 3. *x=2: Set the barcode Set barcode height to 3.
Page 21
Table 1: PC to Printer Operation Command Parameter Examples UDP Port Dynamic barcode ^1h01CS*x*y*z* *x: Set the barcode type. 1h01CS0131010020000000000 8080 setup a*b*c*d*e*f*g##* 0=Code39, 1=Code2of5, 00000000020000010000AB##\ 2=Code128, 3=Code93, 4=CodeUPC-A, 5=CodeEAN, 6=CodaBar, 7=Code11. Set barcode type as Code39. Set the barcode width, Set barcode width to 1.
Page 22
Table 1: PC to Printer Operation Command Parameter Examples UDP Port Set repeat ^1q01CS*x*y*z\ *x: Position, value is 1 Note: The repeat value counter, spacing (mandatory 1 character). applies to single barcode. counters and *y: Repeat dynamic dynamic barcodes. counter. Maximum value The spacing value is 10000000 times, applies to static...
PLC to Printer The table below lists RS485 communication commands for PC to printer connection. Table 2: PLC to Printer Operation Command Parameter Examples Start/Stop Print ^1R01CS1\0 = Start printing. ^1R01CS =1: Start print *x=0: Stop print ^1R01CS0\0 = Stop printing. Set Print Speed ^1S01CS*x*y\0 *x=1: Use encoder...
Page 24
Table 2: PLC to Printer Operation Command Parameter Examples Set print direction ^1V01CS*x\0 *x=0: Left to right normal. ^1V01CS0\0 = Left to right *x=1: Right to left normal. normal. *x=2: Left to right inverted *x=3: Right to left inverted ^1V01CS1\0 = Right to left normal.
Page 25
Set the printer ^1n01CS*x\0 *x: Name of the printer (15 ^1n01CSG20i\0 = Set the name characters maximum). printer’s name to G20i. Set screen ^1e01CS*x\0 *x=1: Set screen to ^1e01CS5 = Set the screen to rotation horizontal, side of menu auto rotate.
Page 26
Table 2: PLC to Printer Operation Command Parameter Examples Set random jet ^1P01CS*x*y\0 *x=0: Disable random jet. ^1P01CS100060\0 = Enable *x=1: Enable random jet. random jet. Purge the print head every 60 seconds. *y: Set the delay time in seconds. Range = 00001- 36000 (mandatory 5 characters).
Page 27
Table 2: PLC to Printer Operation Command Parameter Examples Set message ^1M01CS`@0`*x *x: Message string for line 1. Notes: (1) Stop printing `@1`*y`@2`*z`@3` Range = 0-100 characters. before sending the *p`@4`*r`@5`*q\0 message. *y: Message string for line 2. Ensure the Range = 0-100 characters.
Page 28
Table 2: PLC to Printer Operation Command Parameter Examples Set message ^1M03CS`@0`*x *x: Message string for line 1. Note: It can take between while printing `@1`*y`@2`*z`@3` Range = 0-100 characters. 3 and 5 seconds *p`@4`*r`@5`*q\0 for the message to *y: Message string for line 2. update.
Page 29
Table 2: PLC to Printer Operation Command Parameter Examples Set counter ^1C01CS*x*y*z* *x: Counter number. Range = 1C01CS0010010000000001000 a*b*c*d*e\0 0-5. This is the name of the 00000010000000999\0 counter that will be stored on the printer. *y=0: Count upwards. Counter number: 0 *y=1: Count downwards.
Page 30
Table 2: PLC to Printer Operation Command Parameter Examples Set BoxLot ^1k01CS*x*y*z* *x: Counter number. Range = Note: A pair of counters a*b*c*d\0 00-03. This is the name of is required for a the counter that will be boxlot. The stored on the printer.
Page 31
Table 2: PLC to Printer Operation Command Parameter Examples Set expire date ^1Z*x1CS*y*`z* the number of expire date ^1Z01CS0012`1dd-mm-yy\0 = abc\0 item. Value: 0-4. The printer Set the expiry date at 12 supports up to 5 expire months. Set the date format as dates.
Page 32
Table 2: PLC to Printer Operation Command Parameter Examples Static barcode ^1g01CS*x*y*z* *x=0: Set the barcode type to ^1g01CS0331BARCODE39\0 setup w*p\0 Code39. *x=1: Set the barcode type to Set barcode type as Code39. Code2of5. Set barcode width to 3. *x=2: Set the barcode type to Set barcode height to 3.
Page 33
Table 2: PLC to Printer Operation Command Parameter Examples Dynamic barcode ^1h01CS*x*y*z* *x: Set the barcode type. 1h01CS0131010020000000000 setup a*b*c*d*e*f*g##* 0=Code39, 1=Code2of5, 00000000020000010000AB##\ 2=Code128, 3=Code93, 4=CodeUPC-A, 5=CodeEAN, 6=CodaBar, 7=Code11. Set barcode type as Code39. Set the barcode width, Set barcode width to 1. range 1-4.
Page 34
Table 2: PLC to Printer Operation Command Parameter Examples Set repeat ^1q01CS*x*y*z\ *x: Position, value is 1 Note: The repeat value counter, spacing (mandatory 1 character). applies to single barcode. counters and *y: Repeat dynamic counter. dynamic barcodes. Maximum value is 10000000 The spacing value times, (mandatory 10 applies to static...
Need help?
Do you have a question about the G20i and is the answer not in the manual?
Questions and answers