CN112757767A - Full-automatic thermoprinting machine control system based on finite-state machine model - Google Patents

Full-automatic thermoprinting machine control system based on finite-state machine model Download PDF

Info

Publication number
CN112757767A
CN112757767A CN202110323487.7A CN202110323487A CN112757767A CN 112757767 A CN112757767 A CN 112757767A CN 202110323487 A CN202110323487 A CN 202110323487A CN 112757767 A CN112757767 A CN 112757767A
Authority
CN
China
Prior art keywords
hot stamping
support
plc
printing
motor
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.)
Granted
Application number
CN202110323487.7A
Other languages
Chinese (zh)
Other versions
CN112757767B (en
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.)
Sanming University
Original Assignee
Sanming University
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 Sanming University filed Critical Sanming University
Publication of CN112757767A publication Critical patent/CN112757767A/en
Application granted granted Critical
Publication of CN112757767B publication Critical patent/CN112757767B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41FPRINTING MACHINES OR PRESSES
    • B41F19/00Apparatus or machines for carrying out printing operations combined with other operations
    • B41F19/02Apparatus or machines for carrying out printing operations combined with other operations with embossing
    • B41F19/06Printing and embossing between a negative and a positive forme after inking and wiping the negative forme; Printing from an ink band treated with colour or "gold"
    • B41F19/062Presses of the rotary type
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41FPRINTING MACHINES OR PRESSES
    • B41F33/00Indicating, counting, warning, control or safety devices
    • B41F33/16Programming systems for automatic control of sequence of operations
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/054Input/output

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Printing Methods (AREA)

Abstract

The invention provides a full-automatic thermoprinting machine control system based on a finite-state machine model, which comprises an information management layer and a field device layer, wherein the information management layer and the field device layer are in wireless communication through an Ethernet, the information management layer comprises an engineer terminal, an administrator terminal and a server terminal, the engineer terminal builds an upper computer monitoring system through general system software in a monitoring and control terminal to drive a thermoprinting machine, the administrator terminal can count data in the engineer terminal through the action of enterprise resource planning software and perform production management on the thermoprinting quantity of the thermoprinting machine, and the server terminal can realize the connection between an enterprise local area network and a network cloud; the field device layer comprises a plurality of hot stamping machines, and each hot stamping machine comprises a PLC (programmable logic controller) and a touch screen; the invention can improve the development efficiency and the configuration programming level, effectively reduce the maintenance cost of the control program and ensure that the sequential actions of the cylinder and the motor cannot interfere and cross.

Description

Full-automatic thermoprinting machine control system based on finite-state machine model
Technical Field
The invention relates to the technical field of thermoprinting machine control, in particular to a full-automatic thermoprinting machine control system based on a finite-state machine model.
Background
The thermoprinting machine is used as important printing and processing equipment, and the unique thermoprinting process is widely applied to the surface decoration fields of high-end gift packaging, modern home, building decoration and the like[1-2]. At present, the automation level of traditional thermoprinting machine, information level are lower, mainly show in: the whole hot stamping process is completed manually by means of the cooperation of the clamp, and the semi-automatic operation mode causes high labor cost and low working efficiency; the human-computer interface of the current mainstream control system mostly adopts a thin film touch panel, and has inherent defects of poor human-computer interaction (monotonous display, small information amount, incapability of complex parameter configuration) and the like[3]. More prominently, the current production of the hot stamping machine tends to a characteristic customized small batch mode, the hot stamping process flow is complex and various, the Logic action is flexible and changeable, and a traditional Programmable Logic Controller (PLC) -based fixed path sequence instruction programming mode[4-5]The challenge is presented: the hot stamping action time sequence control algorithm needs to be frequently updated by an engineer along with process change in a short construction period, the test time cannot be guaranteed, the unoptimized algorithm defects easily cause interference and cross faults of actions of actuating mechanisms such as cylinders and the like, and the reliability of the system is reduced. Recently, FSM[6-7]The Finite State Machine (Finite State Machine) can effectively support the advantage of complex logic dynamic behavior modeling, and becomes a graphical design tool with good prospect in the design of hardware and control algorithms in the industrial control field. Document [8]Real-time finite state machine modeling studies of microfabricated numerical control systems were conducted. Document [9 ]]On the basis of simulation analysis of dynamic characteristics of the moving cylinder, the FSM model design of the moving time sequence of the chip crystal oscillator packaging base transfer device is realized on the basis of Stateflow. FSM is also in intelligent boiler controller design[10]Rendezvous and docking flight mission planning[11]Design of control system of pipe bender[12]Motor Hall sensor fault diagnosis and compensation[13]And the like, exploratory research is carried out.
The command programming mode development efficiency and the configuration programming level of the hot stamping machine in the prior art are low, the maintenance cost of a control program is greatly improved, interference and intersection can be generated when a cylinder and a motor in the hot stamping machine act, the problems of low automation level and poor man-machine interface interactivity of the existing hot stamping equipment are solved, and the problem that a traditional fixed path sequence command programming mode cannot deal with a small-batch customized production mode is solved.
Disclosure of Invention
In view of this, the present invention provides a full-automatic hot stamping machine control system based on a finite-state machine model, which can improve development efficiency and configuration programming level, effectively reduce maintenance cost of control programs, and ensure that timing actions of an air cylinder and a motor do not interfere and intersect.
The invention is realized by adopting the following method: full-automatic thermoprinting machine control system based on finite-state machine model, including information management layer and field device layer, its characterized in that: the information management layer and the field device layer are in wireless communication through an Ethernet, the information management layer comprises an engineer terminal, an administrator terminal and a server end, the engineer terminal builds an upper computer monitoring system through general system software in a monitoring and control terminal to drive the thermoprinting machine, the administrator terminal can count data in the engineer terminal and perform production management on the thermoprinting quantity of the thermoprinting machine under the action of enterprise resource planning software, and the server end can realize the connection between an enterprise local area network and a network cloud; the field device layer comprises a plurality of hot stamping machines, each hot stamping machine comprises a PLC (programmable logic controller) and a touch screen, the PLC is in data communication with the touch screen and the servo driving module through an RS485 serial bus, the hot stamping temperature of each hot stamping machine is transmitted into the PLC through a temperature measuring module, a hot stamping station of each hot stamping machine is sensed through a photoelectric switch, the PLC drives the servo driving module and a relay based on a logic control algorithm, the servo driving module is used for driving a servo motor in each hot stamping machine, the relay is used for driving an air cylinder in each hot stamping machine, and the hot stamping machines are communicated with the information management layer through an Ethernet communication interface built in the PLC on the basis of Ethernet.
Furthermore, an input signal X0 of the PLC is connected with a start button of the hot stamping machine, an input signal X1 of the PLC is connected with a pause button of the hot stamping machine, an input signal X2 of the PLC is connected with a stop button of the hot stamping machine, when the PLC inputs a signal X0, the PLC outputs a signal Y0, a printing feeding cylinder is started, the printing feeding cylinder can drive the printing sliding table to reciprocate back and forth on the conveying belt along the Y-axis direction to complete printing feeding action, and input signals X3 and X4 of the PLC can limit the back and forth of the printing sliding table to prevent the printing sliding table from separating from the conveying belt; signals X5 and X6 are input into the PLC, the shuttle sliding table is limited left and right, meanwhile, the PLC outputs a signal Y15, a shuttle motor is started, the shuttle motor can drive the shuttle sliding table to reciprocate left and right horizontally along the X-axis direction, and the shuttle hot stamping effect is achieved on the conveyor belt; the PLC inputs signals X7 and X10, the upper and lower of the hot stamping rubber wheel can be limited, meanwhile, the PLC outputs signals Y1, Y4 and Y6, a hot stamping cylinder, a hot stamping wheel motor and a heating rod can be started, the heating rod can heat the hot stamping rubber wheel, the hot stamping cylinder can drive the hot stamping rubber wheel to reciprocate up and down along the Z-axis direction, hot stamping action is completed, the hot stamping wheel motor can drive the hot stamping rubber wheel to roll, and uniform heating of the hot stamping rubber wheel is guaranteed; the PLC inputs a signal X11, a photoelectric switch can be turned on, and the position of a hot stamping station needing to be subjected to hot stamping of a product is sensed; signals X12 and X13 are input into the PLC, the PLC can perform left and right limiting action on the material conveying device, meanwhile, the PLC outputs a signal Y2, the material conveying cylinder is started, the material conveying cylinder can drive the material conveying device to horizontally reciprocate along the X-axis direction, and a material conveying link of feeding and discharging is completed under the action of the two suckers; the PLC inputs signals X14 and X15, the sucking disc can be limited up and down, meanwhile, the PLC outputs signals Y5, Y7 and Y10, a sucking disc cylinder, a feeding motor and a discharging motor are started, the sucking disc cylinder can drive the sucking disc to reciprocate up and down on a conveying belt along the Z-axis direction, the action of grabbing printed materials is completed, the feeding motor can drive a feeding part of the conveying belt, and the discharging motor can drive a discharging part of the conveying belt; the PLC inputs a signal X16, and can sense the position of a printing stock; the serial port 1 of the PLC is connected with a servo driver, the servo driver is used for driving a foil rolling motor and a shuttle motor, the foil rolling motor can control a material receiving roller to roll the floral foil, and the PLC outputs a signal Y3 and can drive a tension roller to tighten the floral foil; the serial port 2 of the PLC is connected with the touch screen, a co-controller is arranged in the touch screen, the co-controller is connected with a thermocouple temperature measuring circuit through a temperature fuzzy control algorithm, and the co-controller controls the touch screen through a display and touch control algorithm; a COM4 pin of the PLC is connected with the negative electrode of a DC power supply, the PLC outputs a signal Y11, is connected with an automatic operation indicator light of the hot stamping machine, the PLC controller outputs a signal Y12, is connected with a fault indicator lamp of the hot stamping machine, the PLC outputs a signal Y13, is connected with a stop indicator lamp of the hot stamping machine, the PLC outputs a signal Y14, is connected with a buzzer and can give an alarm when the thermoprinting machine has a fault, the automatic operation indicator light, the fault indicator light, the stop indicator light and the buzzer are all connected with the anode of the DC power supply, the negative pole of the DC power supply is connected with the N pin of the PLC controller through a relay, the positive pole of the DC power supply is connected with the L pin of the PLC controller through the relay, the negative pole of DC power is connected with AC power one end through circuit breaker one end, the positive pole of DC power is connected with the AC power other end through the circuit breaker other end.
Furthermore, the hot stamping machine comprises a base, wherein support frames are arranged at the left end and the right end of the front side of the upper surface of the base, a first conveying belt is arranged on the support frame at the left end, a second conveying belt is arranged on the support frame at the right end, a feeding motor for driving the first conveying belt is arranged at the right end of the lower surface of the first conveying belt, a discharging motor for driving the second conveying belt is arranged at the left end of the lower surface of the second conveying belt, a feeding mechanism for placing a printing stock on the first conveying belt is arranged at the left end of the first conveying belt, and a discharging mechanism for taking the printing stock off the second conveying belt is arranged at the right end of the second conveying belt; the printing device comprises a base, a first conveying belt, a second conveying belt, a first support, a printing sliding table, a first guide rail groove, a printing conveying cylinder and a second support, wherein the first support is arranged on the upper surface of the base and is arranged between the first conveying belt and the second conveying belt; the rear end of the upper surface of the base is provided with a fixed base, the fixed base is arranged behind the first support and is perpendicular to the first support, second guide rails are arranged at the front end and the rear end of the upper surface of the fixed base, a shuttle sliding table is erected on the second guide rails, a second guide rail groove matched with the second guide rails is formed in the lower surface of the shuttle sliding table, a hollow box body with an open front surface is arranged on the upper surface of the shuttle sliding table, a shuttle motor used for driving the shuttle sliding table to move left and right is arranged at the left end of the upper surface of the fixed base, the shuttle motor is arranged between the second guide rails at the front end and the rear end, the output end of the shuttle motor is connected with a shuttle lead screw, and the shuttle lead screw spirally; a screw rod is arranged between the upper surface and the lower surface in the hollow box body, the upper end of the screw rod penetrates through the upper surface of the hollow box body and extends out of the hollow box body, an adjusting hand wheel is sleeved at the upper end of the screw rod, a lifting table is sleeved on the screw rod, a fixed table is arranged on the front surface of the lifting table, a hot stamping cylinder used for driving the fixed table to lift up and down is arranged on the upper surface of the fixed table, a second support is arranged on the lower surface of the fixed table, a protective shell is arranged on the lower surface of the second support, a hot stamping rubber wheel used for hot stamping a floral foil on a printing stock is arranged in the protective shell, a first supporting plate is arranged on the right side surface of the protective shell, and a hot stamping; conveying mechanisms for conveying the patterned foils are arranged at the left end and the right end of the upper surface of the base, and the conveying mechanisms are arranged between the printing sliding table and the hot stamping rubber wheel; a transfer mechanism for transferring printing stocks is arranged at the front end of the upper surface of the base, and the transfer mechanism is arranged in front of the first support; the base upper surface upper left corner is provided with the support column, be provided with the touch-sensitive screen housing on the support column, be provided with the touch-sensitive screen on the touch-sensitive screen housing.
Furthermore, both ends all are provided with and are used for spacing the spacing post of undertaking the printing slip table around the first support upper surface.
Further, the feeding mechanism is the same as the blanking mechanism in structure, the feeding mechanism comprises a U-shaped support, the U-shaped support is sleeved and fixed on the first conveying belt, a second support plate extends from the rear surface of a transverse plate of the U-shaped support, a first sucking disc cylinder is arranged on the upper surface of the second support plate, a first support seat is arranged at the tail end of a telescopic rod of the first sucking disc cylinder, a rotary disc is hinged to the middle of the upper surface of the first support seat, a first support rod is arranged on the rotary disc and rotates with the rotary disc, a second support rod is arranged at the tail end of the first support rod and is perpendicular to the first support rod, and a first sucking disc used for sucking up printing materials and placing the printing materials on the first conveying belt is arranged on the lower end face of the second support rod.
Further, the conveying mechanism comprises a third support, third support rods are arranged on the front side and the rear side of the left end of the third support, the third support rods are perpendicular to the third support, a tension roller is arranged between the front third support rod and the rear third support rod, the rear end of the tension roller penetrates through the rear third support rod and extends to the rear of the third support rod, a first gear is sleeved at the rear end of the tension roller, a third support plate is arranged on the rear surface of the third support, a tension motor for driving the tension roller to rotate and tighten the flower foils is arranged on the third support plate, the tail end of an output shaft of the tension motor penetrates through the third support plate and extends to the front of the third support plate, a second gear is sleeved at the tail end of the output shaft of the tension motor, the first gear and the second gear are connected through a toothed belt, and fourth support plates are arranged on the front side and the rear side of the third support in a downward, the fourth supporting plate is vertical to the third bracket, a fourth supporting rod is arranged at the lower end of the inner side surface of the fourth supporting plate, the fourth supporting plate is vertical to the fourth supporting rod, a discharging roller is arranged at the upper end between the front and the rear fourth supporting rods, guide rollers for guiding the flower foil are arranged at the left and the right ends between the front and the rear fourth supporting rods, the guide rollers are arranged at the left end and the right end of the hot stamping rubber wheel, the guide rollers are arranged between the hot stamping rubber wheel and the printing sliding table, two rollers are arranged at the right end between the front and the rear fourth support rods, the two rollers are arranged in bilateral symmetry, a fifth supporting plate is arranged at the right end of the rear surface of the rear fourth supporting rod, the lower end of the rear surface of the fifth supporting plate is provided with a foil coiling motor for driving the left roller to rotate, and a material receiving roller is arranged at the upper end of the fifth supporting plate, and a left side roller is connected with the material receiving roller through a synchronous belt.
Furthermore, a mounting box is arranged on the front face of the front fourth supporting plate, and a photoelectric switch is arranged on the mounting box.
Further, the transfer mechanism comprises a support table, a third guide rail is arranged on the upper surface of the support table, a moving seat is erected on the third guide rail, a third guide rail groove matched with the third guide rail is formed in the lower surface of the moving seat, a first support block is arranged on the upper surface of the support table, the first support block is arranged in front of the third guide rail, a material conveying cylinder is arranged on the right side surface of the first support block, a sliding block is arranged at the tail end of a telescopic rod of the material conveying cylinder, a moving plate is arranged on the moving seat and is connected with the upper surface of the sliding block, a second sucker cylinder is arranged at the rear end of the upper surface of the moving plate, a second support block is arranged at the tail end of the telescopic rod of the second sucker cylinder, a support frame is arranged on the second support block, and third support blocks are arranged at the rear ends of the left side surface and, a fifth support rod is arranged at the tail end of the third support block and is perpendicular to the third support block, the tail end of the fifth support rod penetrates through the third support block and extends to the position below the third support block, and a second sucking disc for sucking up a printing stock is arranged on the tail end face of the fifth support rod; the supporting table is characterized in that limiting rods used for limiting the moving seat are arranged on the left side surface and the right side surface of the supporting table, and limiting devices are arranged at the upper ends of the limiting rods.
Further, in the design process of the control algorithm of the hot stamping machine, firstly, a state transition diagram is designed: determining the number and functions of thermoprinting actions and conversion conditions between other states based on the distribution, the number and the logical relationship between the thermoprinting process and the movement stations of the thermoprinting machine, abstracting the logical relationship between the thermoprinting actions into a state diagram, and establishing a finite-state machine model; secondly, variable address planning is carried out: planning a variable address for storing thermoprinting action state transition diagram information in a user data storage space of the T5L smart screen; third configuration adjacency list: in order to save storage space, the hot stamping action state transition diagram information is stored in a dynamic adjacent linked list mode, the adjacent linked list is dynamically updated and configured before operation according to a hot stamping process customized by a customer, and S and R type data elements in the PLC are synchronously updated.
Further, the thermoprinting machine provides a finite-state machine model based on the action state of the working principle, and the finite-state machine model of the thermoprinting machine is as follows:
Figure BDA0002993687600000061
wherein: s ═ S1,…,SnIs a set of n states; a ═ A1,…,AnIs the action set of the state; p ═ P1,…,PnIs a set of parameters for the state; c ═ C1,…,CnThe conversion condition set is n states; the set of relationships is
Si={Ai,Pi,Ci,i=1,…,n} (2)
To facilitate analysis and description of the state transition flow, the following directed graph G is defined based on equation (1):
Figure BDA0002993687600000062
wherein: abstracting a thermoprinting machine state set S defined in the formula (1) as a vertex of a graph; the set of edges of the graph is defined as:
Figure BDA0002993687600000063
wherein: ciE C represents the set of conditions for the transition of the ith state (the vertices of the graph) to other states, CijRepresents the state Si→SjIs an edge (S)i,Sj) The right of (1); c. C ij0 indicates that the condition is not satisfied, c ij1 indicates that the condition is satisfied, cij-1 indicates that the condition is absent;
definition of SiM neighbor vertices of
Figure BDA0002993687600000071
Wherein:
Figure BDA0002993687600000072
the invention has the beneficial effects that: the automatic printing auxiliary mechanical arm device module is parameterized and designed by three-dimensional software, synchronous execution of automatic feeding and blanking is realized through reasonable layout, and the automatic printing auxiliary mechanical arm device module is matched with a hot stamping mechanism module and a conveyor belt module for use, so that a single-machine full-automatic hot stamping process can be realized, and a multi-machine automatic multi-station hot stamping production line can be built; the human-computer interaction interface adopts a touch screen to replace a traditional film light touch interaction panel, so that the human-computer interaction experience is improved, compared with a traditional instruction development mode, the development mode of the full-automatic thermoprinting machine control system design method based on the finite-state machine model improves the display and touch functions of the touch screen and the configuration and development efficiency of the embedded adjacent linked list, and simultaneously synchronously configures a lower PLC storage element through a serial port transparent transmission mode, so that a system-level variable configuration mode is realized; based on a finite state machine theory, a hierarchical thermoprint action logic time sequence control model is established, the correctness of the time sequence of the air cylinder and the motor is verified through simulation, the action is ensured not to interfere and intersect, and the algorithm reliability is improved; the invention not only promotes the development efficiency and the configuration programming level, effectively reduces the maintenance cost of the control program, but also ensures that the sequential actions of the cylinder and the motor cannot interfere and cross, improves the algorithm reliability and has wide engineering application prospect; provides an effective solution for solving small-batch, multi-variety and individual hot stamping production.
Drawings
FIG. 1 is a diagram of a field bus architecture according to the present invention.
Fig. 2 is a schematic diagram of field device layer control circuitry of the present invention.
Fig. 3 is a schematic structural diagram of the first state of the hot stamping machine.
Fig. 4 is a schematic structural view of the hot stamping machine in a second state.
FIG. 5 is a top view of the hot stamping machine.
FIG. 6 is a left side view of the stamping machine.
Fig. 7 is a schematic structural diagram of the third state of the hot stamping machine.
Fig. 8 is a transition diagram of the stamping operation state of the stamping machine.
FIG. 9 is a dynamic adjacency linked list of thermoprinting machine state transition diagram information.
FIG. 10 is a table of the operating modes of the stamping machine.
Fig. 11 is a thermoprinting machine state information table.
FIG. 12 is a state transition diagram in an adjacency linked list.
FIG. 13 is a diagram of a logic sequential control model of a stamping operation of a stamping machine.
FIG. 14 is a first-level state diagram of a stamping operation logic sequential control model.
FIG. 15 is a simulation diagram of the logic timing sequence of the stamping operation.
Detailed Description
The invention is further described below with reference to the accompanying drawings.
Referring to fig. 1, the present invention provides an embodiment: the full-automatic thermoprinting machine control system based on the finite-state machine model comprises an information management layer and a field device layer, wherein the information management layer and the field device layer are in wireless communication through an Ethernet, the information management layer comprises an engineer terminal, an administrator terminal and a server end, the engineer terminal builds an upper computer monitoring system through general system software in a monitoring and control terminal to drive a thermoprinting machine, the administrator terminal can count data in the engineer terminal through the action of enterprise resource planning software and perform production management on the thermoprinting quantity of the thermoprinting machine, and the server end can realize the connection between an enterprise local area network and a network cloud; the field device layer comprises a plurality of hot stamping machines, each hot stamping machine comprises a PLC (programmable logic controller) and a touch screen, the PLC is in data communication with the touch screen and the servo driving module through an RS485 serial bus, the hot stamping temperature of each hot stamping machine is transmitted into the PLC through a temperature measuring module, a hot stamping station of each hot stamping machine is sensed through a photoelectric switch, the PLC drives the servo driving module and a relay based on a logic control algorithm, the servo driving module is used for driving a servo motor in each hot stamping machine, the relay is used for driving an air cylinder in each hot stamping machine, and the hot stamping machines are communicated with the information management layer through an Ethernet communication interface built in the PLC on the basis of Ethernet. An engineer station builds an upper computer monitoring System through Monitoring and Control General System (MCGS) software, wherein the upper computer monitoring System comprises attribute setting of a main monitoring window, equipment driving, a user animation interface, configuration of a real-time database and the like, an administrator station completes functions of production management, data report and statistics and the like through Enterprise Resource Planning (ERP) software, and a server realizes connection between an Enterprise local area network and a network cloud and realizes remote webpage browsing and remote Control; on a field device layer, a single automatic hot stamping machine takes a PLC as a main controller, a touch screen is taken as a co-controller and a client man-machine interface, the PLC is in data communication with the touch screen and a servo driving module through an RS485 serial bus, a station is sensed through a photoelectric switch, a cylinder and a servo motor are driven based on a logic control algorithm, a plurality of hot stamping machines arranged in a hot stamping workshop are in communication with an information management layer based on industrial Ethernet through Ethernet communication interfaces built in the PLC, and the touch screen can be a T5L intelligent touch screen, but is not limited to the above.
Referring to fig. 2, in an embodiment of the present invention, an input signal X0 of the PLC controller is connected to a start button of the hot stamping machine, an input signal X1 of the PLC controller is connected to a pause button of the hot stamping machine, an input signal X2 of the PLC controller is connected to a stop button of the hot stamping machine, when the PLC controller inputs the signal X0, the PLC controller outputs a signal Y0, and starts a print feeding cylinder, and the print feeding cylinder can drive the printing table to reciprocate back and forth on the conveyor belt along the Y-axis direction to complete a print feeding operation, and input signals X3 and X4 of the PLC controller can limit the back and forth of the printing table to prevent the printing table from separating from the conveyor belt; signals X5 and X6 are input into the PLC, the shuttle sliding table is limited left and right, meanwhile, the PLC outputs a signal Y15, a shuttle motor is started, the shuttle motor can drive the shuttle sliding table to reciprocate left and right horizontally along the X-axis direction, and the shuttle hot stamping effect is achieved on the conveyor belt; the PLC inputs signals X7 and X10, the upper and lower of the hot stamping rubber wheel can be limited, meanwhile, the PLC outputs signals Y1, Y4 and Y6, a hot stamping cylinder, a hot stamping wheel motor and a heating rod can be started, the heating rod can heat the hot stamping rubber wheel, the hot stamping cylinder can drive the hot stamping rubber wheel to reciprocate up and down along the Z-axis direction, hot stamping action is completed, the hot stamping wheel motor can drive the hot stamping rubber wheel to roll, and uniform heating of the hot stamping rubber wheel is guaranteed; the PLC inputs a signal X11, a photoelectric switch can be turned on, and the position of a hot stamping station needing to be subjected to hot stamping of a product is sensed; signals X12 and X13 are input into the PLC, the PLC can perform left and right limiting action on the material conveying device, meanwhile, the PLC outputs a signal Y2, the material conveying cylinder is started, the material conveying cylinder can drive the material conveying device to horizontally reciprocate along the X-axis direction, and a material conveying link of feeding and discharging is completed under the action of the two suckers; the PLC inputs signals X14 and X15, the sucking disc can be limited up and down, meanwhile, the PLC outputs signals Y5, Y7 and Y10, a sucking disc cylinder, a feeding motor and a discharging motor are started, the sucking disc cylinder can drive the sucking disc to reciprocate up and down on a conveying belt along the Z-axis direction, the action of grabbing printed materials is completed, the feeding motor can drive a feeding part of the conveying belt, and the discharging motor can drive a discharging part of the conveying belt; the PLC inputs a signal X16, and can sense the position of a printing stock; the serial port 1 of the PLC is connected with a servo driver, the servo driver is used for driving a foil rolling motor and a shuttle motor, the foil rolling motor can control a material receiving roller to roll the floral foil, and the PLC outputs a signal Y3 and can drive a tension roller to tighten the floral foil; the serial port 2 of the PLC is connected with the touch screen, a co-controller is arranged in the touch screen, the co-controller is connected with a thermocouple temperature measuring circuit through a temperature fuzzy control algorithm, and the co-controller controls the touch screen through a display and touch control algorithm; a COM4 pin of the PLC is connected with the negative electrode of a DC power supply, the PLC outputs a signal Y11, is connected with an automatic operation indicator light of the hot stamping machine, the PLC controller outputs a signal Y12, is connected with a fault indicator lamp of the hot stamping machine, the PLC outputs a signal Y13, is connected with a stop indicator lamp of the hot stamping machine, the PLC outputs a signal Y14, is connected with a buzzer and can give an alarm when the thermoprinting machine has a fault, the automatic operation indicator light, the fault indicator light, the stop indicator light and the buzzer are all connected with the anode of the DC power supply, the negative pole of the DC power supply is connected with the N pin of the PLC controller through a relay, the positive pole of the DC power supply is connected with the L pin of the PLC controller through the relay, the negative pole of DC power is connected with AC power one end through circuit breaker one end, the positive pole of DC power is connected with the AC power other end through the circuit breaker other end. The executing mechanism of the control system of the hot stamping machine mainly comprises a cylinder for finishing printing feeding action and translation movement of a manipulator, a servo motor for finishing coiling of the flower foil, tension control, driving of a conveying belt, shuttling and rolling printing of a hot stamping wheel and a hot stamping rubber wheel heating device.
The PLC controller of the present invention is conventional and may be, but is not limited to, FX3GE-40 MR.
Referring to fig. 3 to 7, in an embodiment of the present invention, the hot stamping machine includes a base 1, a support frame 11 is disposed at each of left and right ends of a front side of an upper surface of the base 1, a first conveyor belt 12 is disposed on a left end support frame 11, a second conveyor belt 13 is disposed on a right end support frame 11, a feeding motor 14 for driving the first conveyor belt 12 is disposed at a right end of a lower surface of the first conveyor belt 12, a discharging motor 15 for driving the second conveyor belt 13 is disposed at a left end of a lower surface of the second conveyor belt 13, a feeding mechanism 2 for placing a printing material on the first conveyor belt 12 is disposed at a left end of the first conveyor belt 12, a discharging mechanism 3 for taking off the printing material from the second conveyor belt 13 is disposed at a right end of the second conveyor belt 13, so that the printing material which is not printed can be taken onto the first conveyor belt 12 by the action of the feeding mechanism 2, the printed materials which are already printed can be taken down from the second conveying belt 13 through the action of the blanking mechanism 3; the upper surface of the base 1 is provided with a first bracket 4, the first bracket 4 is arranged between the first conveying belt 12 and the second conveying belt 13, the left end and the right end of the upper surface of the first bracket 4 are respectively provided with a first guide rail 41, a printing slide table 42 for placing printing stocks is erected on the first guide rail 41, the left and right ends of the lower surface of the printing sliding table 42 are both provided with first guide rail grooves (not shown) matched with the first guide rails 41, the rear end of the upper surface of the first bracket 4 is provided with a printing feeding cylinder 43 for driving the printing sliding table 42 to move back and forth, the telescopic end of the printing feeding cylinder 43 is connected with the printing sliding table 42, so that the printing sliding table 42 with the printing stock placed thereon can be driven to move back and forth under the action of the first guide rail 41 under the action of the printing feeding cylinder 43, and the printing stock is conveyed to the lower part of the patterned foil, thereby facilitating printing; the rear end of the upper surface of the base 1 is provided with a fixed base 5, the fixed base 5 is arranged behind the first support 4 and is perpendicular to the first support 4, the front end and the rear end of the upper surface of the fixed base 5 are both provided with second guide rails 51, a shuttle sliding table 52 is erected on the second guide rails 51, a second guide rail groove (not shown) matched with the second guide rails 51 is formed in the lower surface of the shuttle sliding table 52, a hollow box body 53 with an open front surface is arranged on the upper surface of the shuttle sliding table 52, a shuttle motor 54 for driving the shuttle sliding table 52 to move left and right is arranged at the left end of the upper surface of the fixed base 5, the shuttle motor 54 is arranged between the second guide rails 51 at the front end and the rear end, the output end of the shuttle motor 54 is connected with a shuttle lead screw 55, and the shuttle lead screw 55 spirally passes through the; a screw 56 is arranged between the upper surface and the lower surface in the hollow box body 53, the upper end of the screw 56 penetrates through the upper surface of the hollow box body 53 and extends out of the hollow box body 53, an adjusting hand wheel 57 is sleeved at the upper end of the screw 56, a lifting table 58 is sleeved on the screw 56, a fixed table 59 is arranged on the front surface of the lifting table 58, a hot stamping cylinder 6 used for driving the fixed table 59 to lift up and down is arranged on the upper surface of the fixed table 59, a second support 61 is arranged on the lower surface of the fixed table 59, a protective shell 62 is arranged on the lower surface of the second support 61, a hot stamping rubber wheel 63 used for hot stamping a foil on a printing stock is arranged in the protective shell 62, a first support plate 64 is arranged on the right side surface of the protective shell 62, and a hot stamping wheel motor 65 used for driving the; the left end and the right end of the upper surface of the base 1 are respectively provided with a conveying mechanism 7 for conveying the flower foils, and the conveying mechanisms 7 are arranged between the printing sliding table 42 and the hot stamping rubber wheel 63; a transfer mechanism 8 for transferring printing stocks is arranged at the front end of the upper surface of the base 1, and the transfer mechanism 8 is arranged in front of the first bracket 4; a supporting column 16 is arranged at the upper left corner of the upper surface of the base 1, a touch screen housing 17 is arranged on the supporting column 16, and a touch screen 18 is arranged on the touch screen housing 17. Make the staff open shuttle motor 54, shuttle motor 54 can drive shuttle lead screw 55 and rotate, because second guide rail 51's effect, shuttle lead screw 55 rotates and to drive shuttle slip table 52 and remove, thereby realize moving about of thermoprint cylinder 6, move directly over the stock, then rotate adjusting hand wheel 57, adjusting hand wheel 57 can drive elevating platform 58 through the screw rod 56 effect and carry out the oscilaltion, thereby drive thermoprint rubber tyer 63 with the flower foil seal to the stock, can drive thermoprint rubber tyer 63 through scalding a round motor 65 and rotate, make and to bear the seal to the stock more even with the stamp on, accomplish the process of undertaking the seal.
Referring to fig. 3 to 5, in an embodiment of the invention, the front end and the rear end of the upper surface of the first support 4 are respectively provided with a limiting column 44 for limiting the printing slide table 42. The printing sliding table 42 can be prevented from being separated from the first support 4 when moving back and forth through the action of the limiting column 44, and the printing sliding table 42 is limited.
Referring to fig. 3 to 5, in an embodiment of the present invention, the feeding mechanism 2 and the discharging mechanism 3 have the same structure, the feeding mechanism 2 includes a U-shaped bracket 21, the U-shaped bracket 21 is sleeved and fixed on the first conveyor belt 12, a second support plate (not shown) extends from a rear surface of a transverse plate of the U-shaped bracket 21, a first suction cup cylinder 22 is disposed on an upper surface of the second support plate, a first support seat 23 is disposed at a tail end of a telescopic rod of the first suction cup cylinder 22, a rotary plate 24 is hinged to a middle position of an upper surface of the first support seat 23, a first support rod 25 is disposed on the rotary plate 24, the first support rod 25 and the rotary plate 24 are rotatably disposed, a second support rod 26 is disposed at a tail end of the first support rod 25, the second support rod 26 is disposed perpendicular to the first support rod 25, the lower end face of the second support rod 26 is provided with a first suction disc 27 for sucking up the printing materials and placing the printing materials on the first conveyor belt 12. The worker can drive the first sucking disc 27 to ascend and descend up and down through the first sucking disc cylinder 22, so that the printing stock is sucked up or put down, and then the first sucking disc 27 can rotate by 90 degrees under the action of the rotary disc 24, so that the printing stock can be sucked up and down conveniently.
The gear articulation in the present invention is an articulation in the prior art, which is well understood by those skilled in the art and will not be described in detail herein.
Referring to fig. 3 to 7, in an embodiment of the present invention, the conveying mechanism 7 includes a third bracket 71, third support rods 72 are disposed at front and rear sides of a left end of the third bracket 71, the third support rods 72 are perpendicular to the third bracket 71, a tension roller 73 is disposed between the front and rear third support rods 72, a rear end of the tension roller 73 passes through the rear third support rod 72 and extends to a rear side of the third support rod 72, a first gear 74 is sleeved at a rear end of the tension roller 73, a third support plate 75 is disposed on a rear surface of the third bracket 71, a tension motor 76 for driving the tension roller 73 to rotate and tighten the flowers is disposed on the third support plate 75, a tail end of an output shaft of the tension motor 76 passes through the third support plate 75 and extends to a front side of the third support plate 75, a second gear 77 is sleeved at a tail end of an output shaft of the tension motor 76, and the first gear 74 and the second gear 77 are connected by a toothed belt 78, the front and rear sides of the third support 71 are both provided with fourth support plates 79 extending downward, the fourth support plates 79 are perpendicular to the third support 71, the lower ends of the inner side surfaces of the fourth support plates 79 are provided with fourth support rods 9, the fourth support plates 79 are perpendicular to the fourth support rods 9, the upper end between the front and rear fourth support rods 9 is provided with a discharging roller 91, the left and right ends between the front and rear fourth support rods 9 are both provided with guide rollers 92 for guiding the foil, the guide rollers 92 are arranged at the left and right ends of the hot stamping rubber wheel 63, the guide rollers 92 are arranged between the hot stamping rubber wheel 63 and the printing slide table 42, the right ends between the front and rear fourth support rods 9 are provided with two rollers 93, the two rollers 93 are arranged in bilateral symmetry, the right end of the rear surface of the rear fourth support rod 9 is provided with a fifth support plate 94, the lower end of the rear surface of the fifth supporting plate 94 is provided with a foil coiling motor 95 for driving the left roller 93 to rotate, the upper end of the fifth supporting plate 94 is provided with a material receiving roller 96, and the left roller 93 is connected with the material receiving roller 96 through a synchronous belt 97. The utility model discloses a thermoprint rubber wheel 63, including material discharging roller 91, tension roller 73, guide roller 92 and receipts material roller 96, make the staff can wind the flower paper tinsel in proper order on material discharging roller 91, tension roller 73, guide roller 92 and receipts material roller 96, through opening tension motor 76, can drive first gear 74 through toothed belt 78 and rotate, first gear 74 rotates and can drive tension roller 73 and rotate, tension roller 73 rotates and can tighten the flower paper tinsel, set up in thermoprint rubber wheel 63 both ends about through guide roller 92, can be convenient for stamp better undertaking on the stock, then through opening roll paper tinsel motor 95, can drive receipts material roller 96 after undertaking the printing and rotate, batch the flower paper tinsel.
Referring to fig. 3 to fig. 5, in an embodiment of the present invention, a mounting box 98 is disposed on the front surface of the front fourth supporting plate 79, and a photoelectric switch (not shown) is disposed on the mounting box 98. The position of the placing station of the printing stock can be sensed through the action of the photoelectric switch.
Referring to fig. 3 to 5, in an embodiment of the present invention, the transfer mechanism 8 includes a support table 81, a third guide rail 82 is disposed on an upper surface of the support table 81, a moving seat 83 is disposed on the third guide rail 82, a third guide rail groove (not shown) matched with the third guide rail 82 is disposed on a lower surface of the moving seat 83, a first support block 84 is disposed on the upper surface of the support table 81, the first support block 84 is disposed in front of the third guide rail 82, a material conveying cylinder 85 is disposed on a right side surface of the first support block 84, a sliding block 86 is disposed at an end of an expansion link of the material conveying cylinder 85, a moving plate 87 is disposed on the moving seat 83, the sliding block 87 is connected with an upper surface of the moving plate 86, a second suction cup cylinder 88 is disposed at a rear end of an upper surface of the moving plate 87, a second support block 89 is disposed at an end of an expansion link of the second, the printing material sucking device is characterized in that a supporting frame 80 is arranged on the second supporting block 89, the rear ends of the left side surface and the right side surface of the supporting frame 80 extend outwards to form a third supporting block 10, a fifth supporting rod 90 is arranged at the tail end of the third supporting block 10, the fifth supporting rod 90 is perpendicular to the third supporting block 10, the tail end of the fifth supporting rod 90 penetrates through the third supporting block 10 and extends to the position below the third supporting block 10, and a second sucking disc 70 used for sucking up a printing material is arranged on the tail end surface of the fifth supporting rod 90. The material conveying cylinder 85 is started by an operator, the sliding block 86 can be driven to move left and right, the sliding block 86 moves left and right to drive the moving plate 87 to move left and right, the moving plate 87 moves left and right to drive the moving seat 83 to move left and right on the third guide rail 82, the second suction cup cylinder 88 drives the second supporting block 89 to lift up and down, the second suction cup 70 is driven to lift up and down, the printing stocks which are not printed on the first conveying belt 12 can be conveniently placed on the printing sliding table 42 under the action of the second suction cup 70, and then the printed stocks which are printed on the printing sliding table 42 are placed on the second conveying belt 13.
Referring to fig. 3 to 5, in an embodiment of the invention, the support platform 81 is provided with a limiting rod 19 for limiting the moving seat 83 on both left and right sides thereof, and the upper end of the limiting rod 19 is provided with a limiter 20. The movement base 83 can be restricted at the left and right ends by the stopper 20, and the movement base 83 is prevented from being separated from the support base 81.
The stopper of the present invention is a conventional stopper, and the type of the stopper may be, but is not limited to, an E3JK-LX5M infrared crash stopper, and it will be apparent to those skilled in the art that the detailed description thereof will not be provided herein.
Referring to fig. 8 and fig. 9, in an embodiment of the present invention, a state transition diagram is first designed in a process of designing a control algorithm of the hot stamping machine: determining the number and functions of thermoprinting actions and conversion conditions between other states based on the distribution, the number and the logical relationship between the thermoprinting process and the movement stations of the thermoprinting machine, abstracting the logical relationship between the thermoprinting actions into a state diagram, and establishing a finite-state machine model; secondly, variable address planning is carried out: planning a variable address for storing thermoprinting action state transition diagram information in a user data storage space of the T5L smart screen; third configuration adjacency list: in order to save storage space, the hot stamping action state transition diagram information is stored in a dynamic adjacent linked list mode, the adjacent linked list is dynamically updated and configured before operation according to a hot stamping process customized by a customer, and S and R type data elements in the PLC are synchronously updated.
The thermoprinting machine provided by the invention provides a finite-state machine model based on the action state of the working principle, and the finite-state machine model of the thermoprinting machine is as follows:
Figure BDA0002993687600000141
wherein: s ═ S1,…,SnIs a set of n states; a ═ A1,…,AnIs the action set of the state; p ═ P1,…,PnIs a set of parameters for the state; c ═ C1,…,CnIs nA set of transition conditions for each state. The set of relationships is
Si={Ai,Pi,Ci,i=1,…,n} (2)
To facilitate analysis and description of the state transition flow, the following directed graph G is defined based on equation (1)
Figure BDA0002993687600000142
Wherein: abstracting a thermoprinting machine state set S defined in the formula (1) as a vertex of a graph; the set of edges of the graph is defined as
Figure BDA0002993687600000143
Wherein: ciE C represents the set of conditions for the transition of the ith state (the vertices of the graph) to other states, CijRepresents the state Si→SjIs an edge (S)i,Sj) The right of (1); c. C ij0 indicates that the condition is not satisfied, c ij1 indicates that the condition is satisfied, cij-1 indicates that the condition is absent.
Definition of SiM neighbor vertices of
Figure BDA0002993687600000151
Wherein:
Figure BDA0002993687600000152
the finite state machine of the hot stamping machine can analyze the conversion of the hot stamping action state, the displacement between the first conveying belt and the printing sliding table is 400mm, the stroke displacement of the printing conveying cylinder is 300mm, the stroke displacement of the shuttle motor is 150mm, the stroke displacement of the hot stamping cylinder is 100mm, and the stroke of the sucker cylinder is consistent with that of the hot stamping cylinder.
In order to complete the hot stamping process flow reliably, at high speed and orderly, the logic control base of each motion state is designed as follows:
and step S1, designing a state transition diagram. Based on the distribution, number and logical relationship of the thermoprinting process and the moving stations of the thermoprinting machine, the number and function of thermoprinting actions and the conversion conditions between other states are determined, and the logical relationship between the thermoprinting actions is abstracted into a state diagram, as shown in fig. 8.
And step S2, planning variable addresses. And planning variable addresses for storing stamping action state transition diagram information in a user data storage space of the T5L smart screen.
And step S3, configuring an adjacency linked list. In order to save the storage space, the information of the hot stamping action state transition diagram is stored in a dynamic adjacent linked list mode, as shown in fig. 9. And dynamically updating and configuring the adjacency linked list before operation according to the customized hot stamping process, and synchronously updating S and R type data elements in the PLC.
The specific process of designing the T5L smart touch screen is given by the above algorithm, and is embodied by the following embodiments:
step S10, determining a working mode of the hot stamping machine according to the plurality of hot stamping processes, as shown in fig. 10. The thermoprinting machine status information is shown in figure 11. Wherein: timeri(i-1, …,4) represents the timing duration parameter value of 4 timers, the boolean variable TiA flag bit indicating the arrival of the timing time; count represents the counter and the argument C represents the cycle Count flag. Speed1And Speed2Respectively representing high-speed and low-speed parameter values of a foil coiling motor; speed3And Position3Respectively representing the speed control parameter value and the position control parameter value of the shuttle motor; the boolean variable L indicates that the shuttle motor position reaches the semaphore bit.
S11, T5L intelligent screen user data space 0x0000 ~ 0x000F and 0x1000 ~ 0x4FFF address plan respectively for system variable and curve variable address, therefore the operation mode parameter (figure 10), the state information (figure 11) and according to figure 10 and figure 11 formed dynamic adjacent link list adopt the address range 0x5000 ~ 0xFFFF space storage. Step S12, assume configuration M0~M5If the values of (1) are all 0, the adjacent device is actually operated after the start-upThe process of transferring the state in the linked list is shown in fig. 12.
The operating speed V of the printing feeding cylinder is set in balance with the stability of the thermoprinting efficiency and the thermoprinting machine control system0200mm/s, the operating speed V of the material conveying cylinder2150mm/s, thermoprinting and suction cup cylinder operating speed V5200mm/s, the running speed V of the shuttle motor15The corresponding displacement and time calculated in connection with fig. 8 is 100 mm/s.
The stamping operation logic time sequence control model designed by adopting Stateflow simulation is shown in FIG. 13. The designed model comprises three layers, wherein a state diagram of the first layer is shown in fig. 14 and comprises five states of estop (emergency stop), stop (normal stop), reset, pause and run (automatic running).
In fig. 13, the input events E _ on and E _ off respectively simulate a power-on key (power-on) and a power-off key (power-off) of the hot stamping machine control system; e _ estop, E _ stop, E _ reset, E _ pause, and E _ run respectively simulate keys on a touch screen in a hot stamping machine control system, and are used for controlling conversion conditions among 5 states in a first-layer state diagram of a hot stamping action logic sequential control model shown in fig. 14. Simulating the states of sensor input variables X3-X15 by using a Constant module in a Simulink library, and operating a mode M0~M5It needs to be set in the "run" status module before simulation. As shown in fig. 14, an internal transfer mode is adopted for five states of the first layer of the stamping operation logic timing control model, so that the complexity of the Stateflow block diagram is simplified, the execution efficiency of the Stateflow is improved, and the generated code can be shortened.
The second layer and the third layer of the stamping action logic sequential control model are in a state diagram principle as shown in fig. 8. Wherein, the second level is towards functional design, including 6 state modules: initialization, positioning before printing, automatic feeding/blanking, hot stamping/shuttling, positioning after printing and circular setting. The third layer is realized by further refining 6 functional states of the second layer, for example, an automatic feeding/discharging module comprises S4~S10These 7 action states.
Setting an operating mode parameter M0~M5If the values are all 1, the result of simulating and operating the stamping action logic time sequence control model built by Stateflow is shown in FIG. 15.
In a word, the invention establishes a hierarchical thermoprint action logic time sequence control model by using MATLAB \ Stateflow software based on the finite state machine theory, verifies the correctness of the time sequence of the air cylinder and the motor through simulation, ensures that actions cannot interfere and cross, and improves the algorithm reliability.
The above description is only a preferred embodiment of the present invention, and all equivalent changes and modifications made in accordance with the claims of the present invention should be covered by the present invention.

Claims (10)

1. Full-automatic thermoprinting machine control system based on finite-state machine model, including information management layer and field device layer, its characterized in that: the information management layer and the field device layer are in wireless communication through an Ethernet, the information management layer comprises an engineer terminal, an administrator terminal and a server end, the engineer terminal builds an upper computer monitoring system through general system software in a monitoring and control terminal to drive the thermoprinting machine, the administrator terminal can count data in the engineer terminal and perform production management on the thermoprinting quantity of the thermoprinting machine under the action of enterprise resource planning software, and the server end can realize the connection between an enterprise local area network and a network cloud; the field device layer comprises a plurality of hot stamping machines, each hot stamping machine comprises a PLC (programmable logic controller) and a touch screen, the PLC is in data communication with the touch screen and the servo driving module through an RS485 serial bus, the hot stamping temperature of each hot stamping machine is transmitted into the PLC through a temperature measuring module, a hot stamping station of each hot stamping machine is sensed through a photoelectric switch, the PLC drives the servo driving module and a relay based on a logic control algorithm, the servo driving module is used for driving a servo motor in each hot stamping machine, the relay is used for driving an air cylinder in each hot stamping machine, and the hot stamping machines are communicated with the information management layer through an Ethernet communication interface built in the PLC on the basis of Ethernet.
2. The full-automatic hot stamping machine control system based on the finite-state machine model as claimed in claim 1, wherein: an input signal X0 of the PLC is connected with a start button of the hot stamping machine, an input signal X1 of the PLC is connected with a pause button of the hot stamping machine, an input signal X2 of the PLC is connected with a stop button of the hot stamping machine, when the PLC inputs a signal X0, the PLC outputs a signal Y0, a printing feeding cylinder is started, the printing feeding cylinder can drive the printing sliding table to reciprocate back and forth on the conveying belt along the Y-axis direction to complete printing feeding action, and input signals X3 and X4 of the PLC can limit the back and forth of the printing sliding table to prevent the printing sliding table from separating from the conveying belt; signals X5 and X6 are input into the PLC, the shuttle sliding table is limited left and right, meanwhile, the PLC outputs a signal Y15, a shuttle motor is started, the shuttle motor can drive the shuttle sliding table to reciprocate left and right horizontally along the X-axis direction, and the shuttle hot stamping effect is achieved on the conveyor belt; the PLC inputs signals X7 and X10, the upper and lower of the hot stamping rubber wheel can be limited, meanwhile, the PLC outputs signals Y1, Y4 and Y6, a hot stamping cylinder, a hot stamping wheel motor and a heating rod can be started, the heating rod can heat the hot stamping rubber wheel, the hot stamping cylinder can drive the hot stamping rubber wheel to reciprocate up and down along the Z-axis direction, hot stamping action is completed, the hot stamping wheel motor can drive the hot stamping rubber wheel to roll, and uniform heating of the hot stamping rubber wheel is guaranteed; the PLC inputs a signal X11, a photoelectric switch can be turned on, and the position of a hot stamping station needing to be subjected to hot stamping of a product is sensed; signals X12 and X13 are input into the PLC, the PLC can perform left and right limiting action on the material conveying device, meanwhile, the PLC outputs a signal Y2, the material conveying cylinder is started, the material conveying cylinder can drive the material conveying device to horizontally reciprocate along the X-axis direction, and a material conveying link of feeding and discharging is completed under the action of the two suckers; the PLC inputs signals X14 and X15, the sucking disc can be limited up and down, meanwhile, the PLC outputs signals Y5, Y7 and Y10, a sucking disc cylinder, a feeding motor and a discharging motor are started, the sucking disc cylinder can drive the sucking disc to reciprocate up and down on a conveying belt along the Z-axis direction, the action of grabbing printed materials is completed, the feeding motor can drive a feeding part of the conveying belt, and the discharging motor can drive a discharging part of the conveying belt; the PLC inputs a signal X16, and can sense the position of a printing stock; the serial port 1 of the PLC is connected with a servo driver, the servo driver is used for driving a foil rolling motor and a shuttle motor, the foil rolling motor can control a material receiving roller to roll the floral foil, and the PLC outputs a signal Y3 and can drive a tension roller to tighten the floral foil; the serial port 2 of the PLC is connected with the touch screen, a co-controller is arranged in the touch screen, the co-controller is connected with a thermocouple temperature measuring circuit through a temperature fuzzy control algorithm, and the co-controller controls the touch screen through a display and touch control algorithm; a COM4 pin of the PLC is connected with the negative electrode of a DC power supply, the PLC outputs a signal Y11, is connected with an automatic operation indicator light of the hot stamping machine, the PLC controller outputs a signal Y12, is connected with a fault indicator lamp of the hot stamping machine, the PLC outputs a signal Y13, is connected with a stop indicator lamp of the hot stamping machine, the PLC outputs a signal Y14, is connected with a buzzer and can give an alarm when the thermoprinting machine has a fault, the automatic operation indicator light, the fault indicator light, the stop indicator light and the buzzer are all connected with the anode of the DC power supply, the negative pole of the DC power supply is connected with the N pin of the PLC controller through a relay, the positive pole of the DC power supply is connected with the L pin of the PLC controller through the relay, the negative pole of DC power is connected with AC power one end through circuit breaker one end, the positive pole of DC power is connected with the AC power other end through the circuit breaker other end.
3. The full-automatic hot stamping machine control system based on the finite-state machine model as claimed in claim 1, wherein: the hot stamping machine comprises a base, wherein support frames are arranged at the left end and the right end of the front side of the upper surface of the base, a first conveying belt is arranged on a left end support frame, a second conveying belt is arranged on a right end support frame, a feeding motor used for driving the first conveying belt is arranged at the right end of the lower surface of the first conveying belt, a discharging motor used for driving the second conveying belt is arranged at the left end of the lower surface of the second conveying belt, a feeding mechanism used for placing a printing stock on the first conveying belt is arranged at the left end of the first conveying belt, and a discharging mechanism used for taking the printing stock off the second conveying belt is arranged at the right end of the second conveying belt; the printing device comprises a base, a first conveying belt, a second conveying belt, a first support, a printing sliding table, a first guide rail groove, a printing conveying cylinder and a second support, wherein the first support is arranged on the upper surface of the base and is arranged between the first conveying belt and the second conveying belt; the rear end of the upper surface of the base is provided with a fixed base, the fixed base is arranged behind the first support and is perpendicular to the first support, second guide rails are arranged at the front end and the rear end of the upper surface of the fixed base, a shuttle sliding table is erected on the second guide rails, a second guide rail groove matched with the second guide rails is formed in the lower surface of the shuttle sliding table, a hollow box body with an open front surface is arranged on the upper surface of the shuttle sliding table, a shuttle motor used for driving the shuttle sliding table to move left and right is arranged at the left end of the upper surface of the fixed base, the shuttle motor is arranged between the second guide rails at the front end and the rear end, the output end of the shuttle motor is connected with a shuttle lead screw, and the shuttle lead screw spirally; a screw rod is arranged between the upper surface and the lower surface in the hollow box body, the upper end of the screw rod penetrates through the upper surface of the hollow box body and extends out of the hollow box body, an adjusting hand wheel is sleeved at the upper end of the screw rod, a lifting table is sleeved on the screw rod, a fixed table is arranged on the front surface of the lifting table, a hot stamping cylinder used for driving the fixed table to lift up and down is arranged on the upper surface of the fixed table, a second support is arranged on the lower surface of the fixed table, a protective shell is arranged on the lower surface of the second support, a hot stamping rubber wheel used for hot stamping a floral foil on a printing stock is arranged in the protective shell, a first supporting plate is arranged on the right side surface of the protective shell, and a hot stamping; conveying mechanisms for conveying the patterned foils are arranged at the left end and the right end of the upper surface of the base, and the conveying mechanisms are arranged between the printing sliding table and the hot stamping rubber wheel; a transfer mechanism for transferring printing stocks is arranged at the front end of the upper surface of the base, and the transfer mechanism is arranged in front of the first support; the base upper surface upper left corner is provided with the support column, be provided with the touch-sensitive screen housing on the support column, be provided with the touch-sensitive screen on the touch-sensitive screen housing.
4. The full-automatic hot stamping machine control system based on the finite-state machine model as claimed in claim 3, wherein: and the front end and the rear end of the upper surface of the first support are provided with limiting columns used for limiting the printing sliding table.
5. The full-automatic hot stamping machine control system based on the finite-state machine model as claimed in claim 3, wherein: the feeding mechanism and the blanking mechanism are identical in structure, the feeding mechanism comprises a U-shaped support, the U-shaped support is sleeved and fixed on a first conveying belt, a second supporting plate is arranged on the rear surface of a transverse plate of the U-shaped support in an extending mode, a first sucking disc cylinder is arranged on the upper surface of the second supporting plate, a first supporting seat is arranged at the tail end of a telescopic rod of the first sucking disc cylinder, a rotary disc is hinged to the middle of the upper surface of the first supporting seat, a first supporting rod is arranged on the rotary disc, the first supporting rod and the rotary disc are rotatably arranged, a second supporting rod is arranged at the tail end of the first supporting rod, the second supporting rod is perpendicular to the first supporting rod, and a first sucking disc used for sucking printing stocks to be placed on the first conveying belt is arranged on the lower end face of the second supporting rod.
6. The full-automatic hot stamping machine control system based on the finite-state machine model as claimed in claim 3, wherein: the conveying mechanism comprises a third support, third support rods are arranged on the front side and the rear side of the left end of the third support, the third support rods are perpendicular to the third support, a tension roller is arranged between the front third support rod and the rear third support rod, the rear end of the tension roller penetrates through the rear third support rod and extends to the rear of the third support rod, a first gear is sleeved at the rear end of the tension roller, a third support plate is arranged on the rear surface of the third support, a tension motor for driving the tension roller to rotate and tighten the patterned foil is arranged on the third support plate, the tail end of an output shaft of the tension motor penetrates through the third support plate and extends to the front of the third support plate, a second gear is sleeved at the tail end of the output shaft of the tension motor, the first gear and the second gear are connected through a toothed belt, and fourth support plates are arranged on the front side and the rear side of the third support in, the fourth supporting plate is vertical to the third bracket, a fourth supporting rod is arranged at the lower end of the inner side surface of the fourth supporting plate, the fourth supporting plate is vertical to the fourth supporting rod, a discharging roller is arranged at the upper end between the front and the rear fourth supporting rods, guide rollers for guiding the flower foil are arranged at the left and the right ends between the front and the rear fourth supporting rods, the guide rollers are arranged at the left end and the right end of the hot stamping rubber wheel, the guide rollers are arranged between the hot stamping rubber wheel and the printing sliding table, two rollers are arranged at the right end between the front and the rear fourth support rods, the two rollers are arranged in bilateral symmetry, a fifth supporting plate is arranged at the right end of the rear surface of the rear fourth supporting rod, the lower end of the rear surface of the fifth supporting plate is provided with a foil coiling motor for driving the left roller to rotate, and a material receiving roller is arranged at the upper end of the fifth supporting plate, and a left side roller is connected with the material receiving roller through a synchronous belt.
7. The full-automatic hot stamping machine control system based on the finite-state machine model as claimed in claim 6, wherein: the front side of the fourth supporting plate at the front side is provided with a mounting box, and a photoelectric switch is arranged on the mounting box.
8. The full-automatic hot stamping machine control system based on the finite-state machine model as claimed in claim 3, wherein: the transfer mechanism comprises a supporting table, a third guide rail is arranged on the upper surface of the supporting table, a moving seat is erected on the third guide rail, a third guide rail groove matched with the third guide rail is formed in the lower surface of the moving seat, a first supporting block is arranged on the upper surface of the supporting table and is arranged in front of the third guide rail, a material conveying cylinder is arranged on the right side surface of the first supporting block, a sliding block is arranged at the tail end of a telescopic rod of the material conveying cylinder, a moving plate is arranged on the moving seat and is connected with the upper surface of the sliding block, a second sucker cylinder is arranged at the rear end of the upper surface of the moving plate, a second supporting block is arranged at the tail end of a telescopic rod of the second sucker cylinder, a supporting frame is arranged on the second supporting block, and a third supporting block extends outwards from the rear ends of the left side surface and the, a fifth support rod is arranged at the tail end of the third support block and is perpendicular to the third support block, the tail end of the fifth support rod penetrates through the third support block and extends to the position below the third support block, and a second sucking disc for sucking up a printing stock is arranged on the tail end face of the fifth support rod; the supporting table is characterized in that limiting rods used for limiting the moving seat are arranged on the left side surface and the right side surface of the supporting table, and limiting devices are arranged at the upper ends of the limiting rods.
9. The full-automatic hot stamping machine control system based on the finite-state machine model as claimed in claim 1, wherein: in the design process of the control algorithm of the hot stamping machine, firstly, a state transition diagram is designed: determining the number and functions of thermoprinting actions and conversion conditions between other states based on the distribution, the number and the logical relationship between the thermoprinting process and the movement stations of the thermoprinting machine, abstracting the logical relationship between the thermoprinting actions into a state diagram, and establishing a finite-state machine model; secondly, variable address planning is carried out: planning a variable address for storing thermoprinting action state transition diagram information in a user data storage space of the T5L smart screen; third configuration adjacency list: in order to save storage space, the hot stamping action state transition diagram information is stored in a dynamic adjacent linked list mode, the adjacent linked list is dynamically updated and configured before operation according to a hot stamping process customized by a customer, and S and R type data elements in the PLC are synchronously updated.
10. The full-automatic hot stamping machine control system based on the finite-state machine model as claimed in claim 1, wherein: the thermoprinting machine provides a finite-state machine model based on the action state of the working principle, and the finite-state machine model of the thermoprinting machine is as follows:
Figure FDA0002993687590000051
wherein: s ═ S1,…,SnIs a set of n states; a ═ A1,…,AnIs the action set of the state; p ═ P1,…,PnIs a set of parameters for the state; c ═ C1,…,CnThe conversion condition set is n states; the set of relationships is
Si={Ai,Pi,Ci,i=1,…,n} (2)
To facilitate analysis and description of the state transition flow, the following directed graph G is defined based on equation (1):
Figure FDA0002993687590000052
wherein: abstracting a thermoprinting machine state set S defined in the formula (1) as a vertex of a graph; the set of edges of the graph is defined as:
Figure FDA0002993687590000061
wherein: ciE C represents the set of conditions for the transition of the ith state (the vertices of the graph) to other states, CijRepresents the state Si→SjIs an edge (S)i,Sj) The right of (1); c. Cij0 indicates that the condition is not satisfied, cij1 indicates that the condition is satisfied, cij-1 indicates that the condition is absent;
definition of SiM neighbor vertices of
Figure FDA0002993687590000062
Wherein:
Figure FDA0002993687590000063
CN202110323487.7A 2020-12-24 2021-03-26 Full-automatic thermoprinting machine control system based on finite-state machine model Active CN112757767B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011544829X 2020-12-24
CN202011544829 2020-12-24

Publications (2)

Publication Number Publication Date
CN112757767A true CN112757767A (en) 2021-05-07
CN112757767B CN112757767B (en) 2022-08-05

Family

ID=75691127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110323487.7A Active CN112757767B (en) 2020-12-24 2021-03-26 Full-automatic thermoprinting machine control system based on finite-state machine model

Country Status (1)

Country Link
CN (1) CN112757767B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117893638A (en) * 2024-03-18 2024-04-16 上海朋熙半导体有限公司 Timing diagram generation method, device and equipment of fusion state machine and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2675403Y (en) * 2004-02-20 2005-02-02 天津市英克瑞电子技术有限公司 Automatic control equipment of hot stamping machine
CN204431946U (en) * 2014-12-09 2015-07-01 深圳市共进电子股份有限公司 Automatic thermoprinting machine
CN110865612A (en) * 2018-08-28 2020-03-06 安徽创宇机械有限公司 Automatic control redundancy sensing system aluminizes
CN111158327A (en) * 2020-01-10 2020-05-15 深圳市芭田生态工程股份有限公司 Production monitoring system of production equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2675403Y (en) * 2004-02-20 2005-02-02 天津市英克瑞电子技术有限公司 Automatic control equipment of hot stamping machine
CN204431946U (en) * 2014-12-09 2015-07-01 深圳市共进电子股份有限公司 Automatic thermoprinting machine
CN110865612A (en) * 2018-08-28 2020-03-06 安徽创宇机械有限公司 Automatic control redundancy sensing system aluminizes
CN111158327A (en) * 2020-01-10 2020-05-15 深圳市芭田生态工程股份有限公司 Production monitoring system of production equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
任雯等: "基于气压传动和触摸屏的智能烫印机研发", 《自动化仪表》, vol. 41, no. 5, 20 May 2020 (2020-05-20), pages 79 - 83 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117893638A (en) * 2024-03-18 2024-04-16 上海朋熙半导体有限公司 Timing diagram generation method, device and equipment of fusion state machine and storage medium
CN117893638B (en) * 2024-03-18 2024-06-11 上海朋熙半导体有限公司 Timing diagram generation method, device and equipment of fusion state machine and storage medium

Also Published As

Publication number Publication date
CN112757767B (en) 2022-08-05

Similar Documents

Publication Publication Date Title
CN104699122B (en) A kind of robot movement-control system
CN103384268B (en) A kind of network embedded integration manufaturing data acquisition terminal
CN112757767B (en) Full-automatic thermoprinting machine control system based on finite-state machine model
CN101559846B (en) System and method for controlling continuous auto-packing machine
CN102662349B (en) Cross-platform numerical control system
CN105739477A (en) Intelligent cutting production line system and control method thereof
CN106647614A (en) PLC-based (programmable logic controller-based) spraying robot control system
CN201837883U (en) Centralized monitoring system for production shops
CN106873526A (en) A kind of aluminium parting bead bender control system with remote wireless monitoring function
CN105965511A (en) Five-shaft manipulator control system for injection molding machine
CN103640332B (en) For control system and the method for ROTARY SCREAM PRINTING
CN108181878A (en) A kind of kinetic control system for the equipment containing vision system
CN117176763A (en) Modeling method and remote monitoring system for machining production line based on digital twin
CN103513634B (en) Edge machine complex control system
CN102193523A (en) Controller for bending and forming wire rod
CN206162645U (en) A counter and mould for monitoring reciprocal instrument
CN206179344U (en) Portable PLC controls real standard system
KR100749902B1 (en) Programmable Motion Controller Using Universal Programmable Controller
CN103576649B (en) A kind of dynamic screen system and control method thereof
CN102622937A (en) Robot demonstrator
Hu et al. The scheme and system architecture of product quality inspection based on software-defined edge intelligent controller (SD-EIC) in industrial internet of things
CN217707915U (en) Sucking disc type five-axis glass carrying manipulator and control system thereof
CN203573151U (en) Automatic production line system
CN201990608U (en) Basic detonator filling automatic production line based on bus control
CN207027522U (en) A kind of multi-axis control system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant