CN204166523U - A kind of print system - Google Patents
A kind of print system Download PDFInfo
- Publication number
- CN204166523U CN204166523U CN201420373292.9U CN201420373292U CN204166523U CN 204166523 U CN204166523 U CN 204166523U CN 201420373292 U CN201420373292 U CN 201420373292U CN 204166523 U CN204166523 U CN 204166523U
- Authority
- CN
- China
- Prior art keywords
- utility
- data
- model
- printer
- print system
- 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.)
- Expired - Lifetime
Links
- 238000007639 printing Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 8
- 238000000034 method Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 241000208340 Araliaceae Species 0.000 description 3
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 3
- 235000003140 Panax quinquefolius Nutrition 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 235000008434 ginseng Nutrition 0.000 description 3
- 238000003491 array Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000000916 dilatatory effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
The utility model 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.Print system of the present utility model, can ensure the real-time of data and the absolute accuracy of data.
Description
Technical field
The utility model belongs to automation control area, particularly relates to a kind of print system.
Background technology
Current Mitsubishi automation control system platform slave computer adopts Mitsubishi FX series of PLC, host computer adopts Mitsubishi's touch-screen, be connected with touch-screen by mini-printer by RS232 interface, touch-screen adopts macro instruction that the data that PLC reads are sent 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 needs to send to printer to print by touch-screen (HMI).The real-time of data and the absolute accuracy of data cannot be ensured.The function of touch-screen macro instruction is relatively weak simultaneously, cannot complete complex calculations and control.
Utility model content
The purpose of this utility model is to provide a kind of print system, to overcome deficiency of the prior art.
For achieving the above object, the utility model provides following technical scheme:
The utility model embodiment 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 Mitsubishi FX series of PLC.
Correspondingly, utility model embodiment also discloses a kind of Method of printing, and in Mitsubishi FX 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 write is sent to printer;
S4, by FB function, printing function to be all packaged in FB functional block.
Compared with prior art, the utility model has the advantage of: print system of the present utility model, the real-time of data and the absolute accuracy of data can be ensured.
Accompanying drawing explanation
In order to be illustrated more clearly in the utility model embodiment or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, the accompanying drawing that the following describes is only some embodiments recorded in the utility model, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
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 utility model specific embodiment;
Figure 3 shows that the data variable defined in the utility model specific embodiment;
Figure 4 shows that the printing data format of writing in the utility model specific embodiment;
Figure 5 shows that the schematic diagram in the utility model specific embodiment, the printing data format of writing being issued printer.
Embodiment
For making the purpose of this utility model, technical scheme and advantage clearly, below in conjunction with accompanying drawing, embodiment of the present utility model is described in detail.The example of these preferred implementations illustrates in the accompanying drawings.Shown in accompanying drawing and the embodiment of the present utility model described with reference to the accompanying drawings be only exemplary, and the utility model is not limited to these embodiments.
At this, also it should be noted that, in order to avoid the utility model fuzzy because of unnecessary details, illustrate only in the accompanying drawings with according to the closely-related structure of scheme of the present utility model and/or treatment step, and eliminate other details little with the utility model relation.
Shown in ginseng Fig. 2, print system comprises printer, controller and touch-screen.Controller is connected with printer by RS232 interface, and touch-screen is connected 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 field programmable gate arrays (Field Programmable Gate Array, FPGA) etc. ASIC).
In the utility model embodiment, controller is preferably Mitsubishi FX 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 Programmable Logic Controller I/O and to count ratio, inner non-transformer, and power supply used is supplied 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 FX series of PLC inside: input relay X, output relay Y, timer T, counter C, auxiliary relay M, status register S etc.
Mitsubishi FX series increases RS232 communication port, is connected with printer.PLC and the RS422 communication port communication of touch-screen by carrying.M8402 instruction in Mitsubishi FX series of PLC is used to send request print command to mini-printer, using M8401 as mutex (idle signal).If time printer free time (M8401 is OFF), send data by M8402.Ensure that real-time and the accuracy of data.
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 write is sent to printer.
S4, by FB function, printing function to be all packaged in FB functional block.Only need dilatory FB functional block can realize the relevant printing of data in a program, facilitate program maintenance.
In sum, print system of the present utility model, can ensure the real-time of data and the absolute accuracy of data.
Finally, also it should be noted that, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.
Claims (1)
1. a print system, is characterized in that, comprising:
Printer;
Controller, is connected with described printer by RS232 interface, and described controller is Mitsubishi FX series of PLC;
Touch-screen, is connected with described controller by RS422 interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201420373292.9U CN204166523U (en) | 2014-07-08 | 2014-07-08 | A kind of print system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201420373292.9U CN204166523U (en) | 2014-07-08 | 2014-07-08 | A kind of print system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN204166523U true CN204166523U (en) | 2015-02-18 |
Family
ID=52540189
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201420373292.9U Expired - Lifetime CN204166523U (en) | 2014-07-08 | 2014-07-08 | A kind of print system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN204166523U (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104077088A (en) * | 2014-07-08 | 2014-10-01 | 张家港市华菱医疗设备制造有限公司 | Printing system and printing method |
-
2014
- 2014-07-08 CN CN201420373292.9U patent/CN204166523U/en not_active Expired - Lifetime
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104077088A (en) * | 2014-07-08 | 2014-10-01 | 张家港市华菱医疗设备制造有限公司 | Printing system and printing method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN204166523U (en) | A kind of print system | |
CN205353630U (en) | Servo drive control integrated device | |
CN202120300U (en) | Counter device composed of ARM and FPGA | |
CN101795085A (en) | Real-time controller of universal frequency converter | |
CN204807988U (en) | Motion control ware | |
CN103342056B (en) | A kind of high-speed digital printing method based on polycaryon processor and DMA technology | |
CN200997076Y (en) | Network controlling system of injection moulding machine | |
CN103645887B (en) | Two instruction many floating-points operand plus/minus, multiplication and division operation control device | |
CN104750029A (en) | Five-axis motion controller and control method thereof | |
CN205750394U (en) | A kind of frequency converter control system | |
CN104077088A (en) | Printing system and printing method | |
CN205992868U (en) | A kind of motor driver based on CPLD | |
CN201749350U (en) | Human-machine interface device for miniature PLC | |
CN205490137U (en) | Low -cost power sequential circuit | |
CN204536861U (en) | For the digital control system of numerically-controlled machine | |
CN113359643A (en) | Intelligent environment-friendly island energy-saving automatic optimization control system | |
CN204595522U (en) | The membrane keyboard system of opertaing device | |
CN202794918U (en) | Intelligent supercharging water supply control system | |
CN203959561U (en) | Apparatus for controlling elevator | |
CN204650210U (en) | Embedded scm control system | |
CN204566137U (en) | The robot control system of the multiple driver of a kind of compatibility | |
CN202617057U (en) | Two-way step motor controller | |
CN105137924A (en) | PLC industrial automatic control system | |
CN105068496A (en) | Circuit monitoring-type industrial automatic control system | |
CN204790504U (en) | Based on embedded AC servo controlling means of CPCI bus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: Suzhou City, Jiangsu province 215600 gold town Zhangjiagang city Nansha sanlijia Road, Zhangjiagang Hualing Medical Equipment Co Ltd Patentee after: Zhangjiagang Hualing Medical Equipment Co Ltd Address before: Suzhou City, Jiangsu province 215600 gold town Zhangjiagang city Nansha sanlijia Road, Zhangjiagang Hualing medical equipment manufacturing Co. Ltd. Patentee before: Zhangjiagang Hualing Medical Equipment Manufacturing Co., Ltd. |