[go: up one dir, main page]

CN104077088A - Printing system and printing method - Google Patents

Printing system and printing method Download PDF

Info

Publication number
CN104077088A
CN104077088A CN201410321543.3A CN201410321543A CN104077088A CN 104077088 A CN104077088 A CN 104077088A CN 201410321543 A CN201410321543 A CN 201410321543A CN 104077088 A CN104077088 A CN 104077088A
Authority
CN
China
Prior art keywords
data
printer
printing
controller
plc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410321543.3A
Other languages
Chinese (zh)
Inventor
张冰
谢赵霞
周建芳
王其鳌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZHANGJIAGANG HUALING MEDICAL EQUIPMENT MANUFACTURING Co Ltd
Original Assignee
ZHANGJIAGANG HUALING MEDICAL EQUIPMENT MANUFACTURING Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZHANGJIAGANG HUALING MEDICAL EQUIPMENT MANUFACTURING Co Ltd filed Critical ZHANGJIAGANG HUALING MEDICAL EQUIPMENT MANUFACTURING Co Ltd
Priority to CN201410321543.3A priority Critical patent/CN104077088A/en
Publication of CN104077088A publication Critical patent/CN104077088A/en
Pending legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The invention discloses a printing system. The printing system comprises a printer, a controller which is connected with the printer through an RS232 interface, and a touch screen which is connected with the controller through the RS422 interface. A printing method is further disclosed. The method comprises the following steps: transmitting a printing request command to the printer by using an M8402 command in a Mitsubishi FX-series PLC (Programmable Logical Controller), wherein M8401 is taken as a mutex; if M8401 is OFF, transmitting data through M8402. By adopting the printing system, the instantaneity of data and the absolute accuracy of data can be ensured.

Description

A kind of print system and Method of printing
Technical field
The invention belongs to automation control area, particularly relate to the write method of a kind of print system, Method of printing and data layout.
Background technology
Mitsubishi's automation control system platform slave computer adopts the FX of Mitsubishi series of PLC at present, host computer adopts Mitsubishi's touch-screen, by RS232 interface, mini-printer is connected with touch-screen, the data that touch-screen adopts macro instruction that PLC is read send to mini-printer, by data-printing out.Data communication and operational process are as shown in Figure 1.
As seen in Figure 1, plc data need to send to printer to print by touch-screen (HMI).Cannot ensure the real-time of data and the absolutely accurate of data.Simultaneously the function of touch-screen macro instruction relatively a little less than, cannot complete complex calculations and control.
Summary of the invention
The object of the present invention is to provide the write method of a kind of print system, Method of printing and data layout, to overcome deficiency of the prior art.
For achieving the above object, the invention provides following technical scheme:
The embodiment of the invention discloses a kind of print system, comprising:
Printer;
Controller, is connected with described printer by RS232 interface;
Touch-screen, is connected with described controller by RS422 interface.
Preferably, in above-mentioned print system, described controller is PLC.
Preferably, in above-mentioned print system, described controller is the FX of Mitsubishi series of PLC.
Correspondingly, inventive embodiments also discloses a kind of Method of printing, and in the FX of Mitsubishi series of PLC, M8402 instruction sends request print command to printer, using M8401 as mutex, if when M8401 is OFF, send data by M8402.
Correspondingly, the invention also discloses a kind of write method of data layout, comprising:
S1, definition data variable;
S2, write printing data format;
S3, the data layout of writing is sent to printer;
S4, by FB function, printing function is all packaged in FB functional block.
Compared with prior art, the invention has the advantages that: print system of the present invention, can ensure the real-time of data and the absolutely accurate of data.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, the accompanying drawing the following describes is only some embodiment that record in the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Figure 1 shows that the schematic diagram of data communication and operation in prior art;
Figure 2 shows that the schematic diagram of data communication and operation in the specific embodiment of the invention;
Figure 3 shows that the data variable defining in the specific embodiment of the invention;
Figure 4 shows that the printing data format of writing in the specific embodiment of the invention;
Figure 5 shows that the schematic diagram of in the specific embodiment of the invention, the printing data format of writing being issued to printer.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, the specific embodiment of the present invention is elaborated.The example of these preferred implementations illustrates in the accompanying drawings.The embodiments of the present invention of describing shown in accompanying drawing and are with reference to the accompanying drawings only exemplary, and the present invention is not limited to these embodiments.
At this, also it should be noted that, for fear of the details because of unnecessary fuzzy the present invention, only show in the accompanying drawings with according to the closely-related structure of the solution of the present invention and/or treatment step, and omitted other details little with relation of the present invention.
Shown in ginseng Fig. 2, print system comprises printer, controller and touch-screen.Controller is connected with printer by RS232 interface, and touch-screen connects by RS422 Interface and Controler.
Controller can comprise microprocessor (MCU), this MCU can comprise CPU (central processing unit) (Central Processing Unit, CPU), read-only memory module (read-only memory, ROM), random memory module (random access memory, RAM), time block, digital-to-analogue conversion module (A/D converter) and plural I/O port.Certainly, controller also can adopt the integrated circuit of other form, as: application-specific IC (Application Specific Integrated Circuit, or on-the-spot programmable gate array (Field Programmable Gate Array, FPGA) etc. ASIC).
In embodiments of the present invention, controller is preferably the FX of Mitsubishi series of PLC (programmable logic controller (PLC)), and FX series Programmable logic Controller (PLC) is made up of elementary cell, expanding element, expansion module and special function unit.Elementary cell (Basic Unit) comprises CPU, storer, input and output and power supply, is PLC major part.Expanding element (Extension Unit) is the device of counting for increasing Programmable Logic Controller I/O, and inside is provided with power supply.Expansion module (Extension Module) is counted for increasing Programmable Logic Controller I/O and is changed the Programmable Logic Controller I/O ratio of counting, inner non-transformer, and power supply used is supplied with by elementary cell or expanding element.Because expanding element and expansion module are without CPU, must use together with elementary cell.Special function unit (Special Function Unit) is the device of some special purposes.
There are many devices with difference in functionality Mitsubishi's FX series of PLC inside: input relay X, output relay Y, timer T, counter C, auxiliary relay M, status register S etc.
The FX of Mitsubishi series increases RS232 communication port, is connected with printer.PLC and touch-screen are by the RS422 communication port communication carrying.Use M8402 instruction in the FX of Mitsubishi series of PLC to send request print command to mini-printer, using M8401 as mutex (idle signal).If when the printer free time (M8401 is OFF), send data by M8402.Real-time and the accuracy of data are ensured.
The data layout that will print adopts the senior statement of ST to write, and comprises the steps:
S1, definition data variable, shown in ginseng Fig. 3.
S2, write printing data format (ST statement), shown in ginseng Fig. 4.
S3, the data layout of writing is sent to printer.
S4, by FB function, printing function is all packaged in FB functional block.The relevant printing that only need to draw FB functional block and can realize data in program, facilitates program maintenance.
In sum, print system of the present invention, can ensure the real-time of data and the absolutely accurate of data.
Finally, also it should be noted that, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.

Claims (5)

1. a print system, is characterized in that, comprising:
Printer;
Controller, is connected with described printer by RS232 interface;
Touch-screen, is connected with described controller by RS422 interface.
2. print system according to claim 1, is characterized in that: described controller is PLC.
3. print system according to claim 2, is characterized in that: described controller is the FX of Mitsubishi series of PLC.
4. the Method of printing of print system claimed in claim 3, is characterized in that: in the FX of Mitsubishi series of PLC, M8402 instruction sends request print command to printer, using M8401 as mutex, if when M8401 is OFF, send data by M8402.
5. the write method of data layout in print system described in claim 3, is characterized in that, comprising:
S1, definition data variable;
S2, write printing data format;
S3, the data layout of writing is sent to printer;
S4, by FB function, printing function is all packaged in FB functional block.
CN201410321543.3A 2014-07-08 2014-07-08 Printing system and printing method Pending CN104077088A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410321543.3A CN104077088A (en) 2014-07-08 2014-07-08 Printing system and printing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410321543.3A CN104077088A (en) 2014-07-08 2014-07-08 Printing system and printing method

Publications (1)

Publication Number Publication Date
CN104077088A true CN104077088A (en) 2014-10-01

Family

ID=51598374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410321543.3A Pending CN104077088A (en) 2014-07-08 2014-07-08 Printing system and printing method

Country Status (1)

Country Link
CN (1) CN104077088A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070229886A1 (en) * 2006-03-31 2007-10-04 Canon Kabushiki Kaisha Device-managing system, managing apparatus, information-processing apparatus, image-processing apparatus, and control method thereof
CN101246066A (en) * 2007-02-14 2008-08-20 中国船舶重工集团公司第七○四研究所 On-site torsion calibration device
CN101567113A (en) * 2009-05-25 2009-10-28 厦门敏讯信息技术股份有限公司 Communication service terminal, integrated circuit and method thereof
CN102999306A (en) * 2012-10-19 2013-03-27 青岛英特沃克网络科技有限公司 Internet printing system and internet printing method
CN204166523U (en) * 2014-07-08 2015-02-18 张家港市华菱医疗设备制造有限公司 A kind of print system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070229886A1 (en) * 2006-03-31 2007-10-04 Canon Kabushiki Kaisha Device-managing system, managing apparatus, information-processing apparatus, image-processing apparatus, and control method thereof
CN101246066A (en) * 2007-02-14 2008-08-20 中国船舶重工集团公司第七○四研究所 On-site torsion calibration device
CN101567113A (en) * 2009-05-25 2009-10-28 厦门敏讯信息技术股份有限公司 Communication service terminal, integrated circuit and method thereof
CN102999306A (en) * 2012-10-19 2013-03-27 青岛英特沃克网络科技有限公司 Internet printing system and internet printing method
CN204166523U (en) * 2014-07-08 2015-02-18 张家港市华菱医疗设备制造有限公司 A kind of print system

Similar Documents

Publication Publication Date Title
US8255095B2 (en) Modular avionics system of an aircraft
CN107942797A (en) Embedded dual core servo controller and its design method based on SOPC
CN103941648A (en) Multi-axis motion control system and control method thereof
CN103310861A (en) Functional analysis method of general operation control display of nuclear power plant adopting digital man-machine interface
Jónasdóttir et al. Upgrading legacy equipment to industry 4.0 through a cyber-physical interface
US20080147206A1 (en) Control system for Real Time Applications for Cooperative Industrial Robots
CN204166523U (en) A kind of print system
CN101795085A (en) Real-time controller of universal frequency converter
CN102650862A (en) Electronic cam control system of programmable logic controller and electronic cam control method
CN203133592U (en) Remote control system
CN104077088A (en) Printing system and printing method
CN103163820A (en) Programmable logic controller (PLC) enabling program debugging to be convenient and implementing method
CN203084500U (en) Programmable logic controller (PLC) application equipment based on bus form
EP3657277A1 (en) Extension device for an automation device
JP2004221852A (en) Opc communication station and opc communication system
CN204536861U (en) For the digital control system of numerically-controlled machine
KR20160130560A (en) Human-machine interface system
CN204595522U (en) The membrane keyboard system of opertaing device
CN200997076Y (en) Network controlling system of injection moulding machine
CN102540967A (en) Numerical control (NC) machine control system
CN206684563U (en) A kind of control of intelligent terminal based on PLC and man-machine interface
CN106144802A (en) Novel elevator master controller based on FPGA device
CN200997071Y (en) Bus protocol analytic chip for servo control
KR20080001111U (en) Analog module device based on PL
CN115509170A (en) Internet of things intelligent water treatment process controller

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20141001