PIStudio Manual
  • 1. Welcome
  • 2. Installation
  • 3. Getting Started
    • 3.1 Creating a project
    • 3.2 Configuring communication
    • 3.3 Configuring the Screens
    • 3.4 Compiling project
    • 3.5 Simulation
    • 3.6 Download project
  • 4. Software Menu
    • 4.1 Home Menu
      • 4.1.1 Project
      • 4.1.2 Edit
      • 4.1.3 Screen
      • 4.1.4 Appearance
      • 4.1.5 Tool
      • 4.1.6 Help
    • 4.2 Project menu
    • 4.3 Project screens menu
  • 5. Project Settings
    • 5.1 Project Settings
    • 5.2 HMI IP
    • 5.3 Installment
    • 5.4 Extend
    • 5.5 Security
  • 6. Object
    • 6.1 Buttons/Switchs
      • 6.1.1 Bit switch
      • 6.1.2 Bit lamp
      • 6.1.3 Word switch
      • 6.1.4 Word lamp
      • 6.1.5 Keypad switch
      • 6.1.6 Function switch
      • 6.1.7 Combination switch
      • 6.1.8 Slider Switch
    • 6.2 Input/Display
      • 6.2.1 Numeric Input/Display
      • 6.2.2 Character Input/Display
    • 6.3 Charts
      • 6.3.1 Common settings in Chart objects
      • 6.3.2 Alarm Record Display
      • 6.3.3 Data Record Display
      • 6.3.4 Recipe display
      • 6.3.5 File list
      • 6.3.6 History Trend Chart
      • 6.3.7 Trend Chart
      • 6.3.8 XY Plot
      • 6.3.9 History XY Plot
    • 6.4 Meters
      • 6.4.1 Pointer Meter
      • 6.4.2 Clock
      • 6.4.3 Bar
      • 6.4.4 Runbar
    • 6.5 Display
      • 6.5.1 Indirect window
      • 6.5.2 QR code
      • 6.5.3 Drop-Down list
      • 6.5.4 Flow component
      • 6.5.5 Picture
      • 6.5.6 Rotation picture
      • 6.5.7 Camera display
      • 6.5.8 Camera Control
      • 6.5.9 Printer
    • 6.6 Draw
      • 6.6.1 Date
      • 6.6.2 Time
      • 6.6.3 Text
      • 6.6.4 Table
      • 6.6.5 Line
      • 6.6.6 Polygon
      • 6.6.7 Cycle/ Ellipse
      • 6.6.8 Arc
      • 6.6.9 Rectangle
      • 6.6.10 Broken line
      • 6.6.11 Linear scale
      • 6.6.12 Arc scale
    • 6.7 Custom Object
    • 6.8 Common Settings
      • 6.8.1 General window
      • 6.8.2 Text
      • 6.8.3 Graphic
      • 6.8.4 Security
      • 6.8.5 Animation
  • 7. Library
    • 7.1 Shape
    • 7.2 Address Library
    • 7.3 Text library
    • 7.4 Font Library
    • 7.5 Address Mapping
  • 8. Basic Functions
    • 8.1 Address Editor
    • 8.2 Installment
    • 8.3 Data Record
    • 8.4 Alarm
      • 8.4.1 Bit alarm
      • 8.4.2 Word alarm
    • 8.5 Recipe
    • 8.6 Trend Chart
    • 8.7 History XY Plot
    • 8.8 User Permission
    • 8.9 MessagePrompt
  • 9. Scripts
    • General script
      • 9.1 Script type
      • 9.2 Script usage
      • 9.3 Script Functions List
      • 9.4 Function Description
    • Lua script
      • 9.5 Lua Editor
      • 9.6 Lua Script Interfaces
      • 9.7 Lua Shortcut Hotkey
  • 10. Advanced Functions
    • 10.1 Remote Access
    • 10.2 Camera
    • 10.3 Email
    • 10.4 Video Player
    • 10.5 Audio Player
    • 10.6 LAN Monitoring
    • 10.7 USB keyboard
  • 11. PLC Protocols
    • 11.1Allen-Bradley FreeTag Ethernet/IP (CompactLogix)
    • 11.2 Allen-Bradley MicroLogix
    • 11.3 Barcode Scanner
    • 11.4 EPSON-TM-T82II/TM-XXX
    • 11.5 Hitachi EHV Series (Ethernet)
    • 11.6 IEC60870-5 104 Client
    • 11.7 LG XGK FEnet Ethernet
    • 11.8 Mitsubishi FX1S, 1N, 2N series
    • 11.9 Mitsubishi FX5U Ethernet
    • 11.10 Mitsubishi FX5U serial port
    • 11.11 Mitsubishi L02 MELSEC (Ethernet)
    • 11.12 Mitsubishi QJ71E71 Ethernet
    • 11.13 MODBUS RTU Master
    • 11.14 MODBUS RTU Slave (All function)/(All function OneBaseAddress)
    • 11.15 MODBUS TCP Slave (All function)
    • 11.16 Omron EC55
    • 11.17 Omron NX Ethernet/IP
    • 11.18 OpenCAN
    • 11.19 SHIMADEN FP23 protocol
    • 11.20 SHIMADEN SR90 protocol
    • 11.21 SHIMADEN Standard protocol
    • 11.22 Siemens S7-200 Smart (Ethernet)
    • 11.23 Siemens S7-300
    • 11.24 Siemens S7-1200 Ethernet
    • 11.25 Siemens Logo
    • 11.26 Siemens S7-XXX Ethernet
    • 11.27 User defined protocol
    • 11.28 WECON PLC LX2V/ LX2E/ LX3V/LX3VP/LX3VE/LX3VM
    • TSPL printer protocol user manual
  • 12. HMI internal registers
    • 12.1 System special address (HUW/HUX)
    • 12.2 System special address (HSW/HSX)
  • 13.Tools
    • 13.1 Off-line
    • 13.2 On-line
    • 13.3 USB flash disk download
    • 13.4 Font Pack
    • 13.5 Address List
    • 13.6 Decompile
    • 13.7 Password Tool
    • 13.8 Download Tool
  • 14. Others
    • 14.1 Setup Menu
    • 14.2 Touch Screen Calibration
    • 14.3 Levi2PI
Powered by GitBook
On this page
  • I.Introduction
  • II. Setting step

Was this helpful?

  1. 11. PLC Protocols

TSPL printer protocol user manual

Previous11.28 WECON PLC LX2V/ LX2E/ LX3V/LX3VP/LX3VE/LX3VMNext12. HMI internal registers

Last updated 4 years ago

Was this helpful?

I.Introduction

TSPL label printer protocol supports DL-888D, SPRT TL21 series printers

II. Setting step

1.Select protocol

Create a new project, select the TSPL label printer protocol as shown below.

2.Set parameters

The connection between the TSPL label printer and the HMI is via the USB-A interface, no need to configure serial port parameters.

3.Printer register

Register

System

Range

Function

TSPL_SP

decimal

0 - 1

Set the paper size

TSPL_PT

decimal

0 - 1999

Print text

TSPL_PQ

decimal

0 - 999

Print QR code

TSPL_PB

decimal

0 - 999

Print barcode

TSPL_PR

decimal

0 - 1

Print offset

TSPL_PN

decimal

0 - 0

Trigger printing

TSPL_PS

decimal

0 - 0

Print status

(1) Set paper size:

TSPL_SP0: width of paper, unit: mm.

TSPL_SP1: height of paper, unit: mm.

(2) Print text:

TSPL_PT can print up to 20 texts. TSPL_PT0-TSPL_PT99 is the first text; TSPL_PT100-TSPL_PT199 is the second text; … TSPL_PT1000-TSPL_PT1999 is the 20th text.

Detailed parameter settings of each text is shown as below table.for example,first text,TSPL_PT0-TSPL_PT99.

Register

Function

Description

TSPL_PT0

X coordinate

Unit: dot

TSPL_PT1

Y coordinate

Unit: dot

TSPL_PT2

Rotation angle

0: 0 degrees

1: 90 degrees

2: 180 degrees

3: 270 degrees

TSPL_PT3

Size

Range: 0-3

TSPL_PT4 - TSPL_PT99

QR code content(text content)

Use character input device to configure

By analogy, we can know the text information configuration of the 2nd to 20th QR codes

(3) Print QR code:

TSPL_PQ can print up to 10 QR codes. TSPL_PQ0-TSPL_PQ99 is the first QR code; TSPL_PQ100-TSPL_PQ199 is the second QR code; ...., TSPL_PQ900-TSPL_PQ999 is the tenth QR code.

Specific parameter description of each item: for example, the first QR code, TSPL_PQ0-TSPL_PQ99:

Register

Function

Description

TSPL_PQ0

X coordinate

Unit: dot

TSPL_PQ1

Y coordinate

Unit: dot

TSPL_PQ2

Rotation angle

0: 0 degrees

1: 90 degrees

2: 180 degrees

3: 270 degrees

TSPL_PQ3

Size

Range: 0-5

TSPL_PQ4 - TSPL_PQ99

QR code content

Use character input device to configure

By analogy, we can know the text information configuration of the 2nd to 20th QR codes.

(4) Print bar code:

TSPL_PB can print up to 10 barcodes. TSPL_PB0-TSPL_PB99 is the first bar code; TSPL_PB100-TSPL_PB199 is the second bar code; ..., TSPL_PB900-TSPL_PB999 is the tenth bar code.

Specific parameter description of each item: for example, the first barcode, TSPL_PB0-TSPL_PB99:

Register

Function

Description

TSPL_PB0

X coordinate

Unit: dot

TSPL_PB1

Y coordinate

Unit: dot

TSPL_PB2

Rotation angle

0: 0 degrees

1: 90 degrees

2: 180 degrees

3: 270 degrees

TSPL_PB3

height

Unit: dot

TSPL_PB4

width

Range:0-2

TSPL_PB5- TSPL_PB99

Bar code content

Use character input device to configure

By analogy, we can know the text information configuration of the 2nd to 20th bar codes.

(5) Print offset:

TSPL_PR0: X coordinate offset, unit: mm;

TSPL_PR1: Y coordinate offset, unit: mm.

(6) Trigger printing:

TSPL_PN0 = 1: trigger the printer to start printing.

(7) Printing status:

TSPL_PS0 = 1: The printing is normal.

TSPL_PS0 = 1: The printing is abnormal.

4. Print picture

For the function of printing pictures, please refer to the configuration of [Printer object].

5. Conversion between dot and mm

Dot is the meaning of pixels. For the conversion between dot and mm, please refer to the printer manual or consult the customer service of the corresponding printer manufacturer. For example, SPRT TL21: 8 dots / mm, that is, 1mm = 8 dot.