The term " comprising " and " having " of description and claims of this specification and their any deformation, it is intended that
Be to cover it is non-exclusive include, for example, the device for the process or structure for containing series of steps is not necessarily limited to clearly arrange
It is that those structures or step for going out but may include are not listed clearly or for the intrinsic other steps of these processes or device
Rapid or structure.
Fig. 1 is the flow diagram for the printing process that one embodiment of the invention provides, and this method can be by a printing equipment
It performs, as shown in Figure 1, this method includes:
Step S101, according to the default sampling interval, acquisition encoder is in the output signal of two neighboring sampling instant.
In practical application, the angle that encoder often turns over unit is issued by a pulse signal, is usually A phase signals, B phases
Signal, Z phase signals, wherein, A phase signals and B phase signals export for the pulse in mutually 1/4 cycle of delay;Z phase signals are individual pen arteries and veins
Punching, i.e., often circle sends a pulse.In order to realize the judgement to printing platform moving direction in the present embodiment, mainly to encoder
The A phase signals and B phase signals of output are sampled, in practical application can simultaneously to A phase signals, B phase signals and Z phase signals into
Row samples, and is seldom limited in the present embodiment.
Further, in the present embodiment, the sampling interval can specifically set according to specific needs.It can will preferably sample
It is set to 1/4 cycle of encoder swing circle.I.e. encoder is often rotated by 90 ° the output signal sampling one to encoder
It is secondary.Since once the encoder in printing equipment and its installing mechanism Selection and Design are completed, the coded pulse letter of encoder output
It number is just fixed up, when printing equipment is in stable working condition, the output signal of encoder is periodically variable.Than
Such as, if if being sampled according to 1/4 cycle of encoder swing circle to the A phase signals and B phase signals of encoder output, and
A phase signals and B phase signals are combined into together, then can regard the output signal of encoder as satisfaction 10 → 00 → 01 → 11 → 10
Cycle of states.Certain explanation merely illustrative herein is not unique restriction to the present invention,.
Step S102, determine whether the output order between two output signals meets default signal output order, if
It is not then to stop printing, otherwise continues to print.
Since printing equipment is in normal work, the output signal of the encoder obtained according to particular sample interval is in solid
Fixed is periodically variable, and therefore, the order of the output signal between two neighboring sampling instant should also be changeless.
The order of the order of the A phase signals of encoder output and output B phase signals should also be i.e. in two neighboring sampling instant
Changeless, this fixed order (i.e. default A phase signals output order, default B phase signals output order) can be with
It is pre-stored in printing equipment.A phase signals between two output signals that two neighboring sampling instant sampling obtains
When meeting default signal output order simultaneously with B phase signals, then illustrate that printing platform moving direction is normal, otherwise illustrate to print
Platform is fallen back.Still exemplified by Yi Shang example, when the A phase signals and B phase signals of encoder output are combined with 10 → 00 →
During 01 → 11 → 10 cycle of states, then the output signal of a upper sampling instant of the corresponding sampling instant of signal " 00 " is exported just
Should be " 10 " that the output signal of latter sampling instant should be just " 01 ", therefore, by determine two neighboring sampling instant it
Between export signal output order, it is possible to judge whether printing platform moves according to method of advance, if it is not, then illustrating to print
Platform is fallen back, and for print result is avoided to malfunction, should stop printing at this time.If for example, output of current sample time
Signal is " 00 ", and the output signal of previous sampling instant is " 01 " or the output signal of next sampling instant is " 10 ", then illustrates
Printing platform is fallen back, and should stop printing at this time.
The present embodiment is sampled by the output signal to encoder, determines the output letter of two neighboring sampling instant
Number output order whether meet default signal output order, if it is not, then illustrate that printing platform is fallen back, printing work
In abnormal condition, even if stopping printing at this time rather than as the prior art when printing platform is fallen back, still
Continue to print, therefore, it is possible to avoid the problem that the print result error caused by printing platform is fallen back.
Fig. 2 is the flow diagram for the printing process that further embodiment of this invention provides, as shown in Fig. 2, in Fig. 1 embodiments
On the basis of, it can also comprise the following steps after step s 102:
Step S201, the output order between two output signals that acquisition obtains is unsatisfactory for default signal output order
Number carry out first count.
In practical application, it is defeated for being unsatisfactory for preset signals to encoder output to pre-set a counter
The number for going out order is counted (i.e. first counts).Since at the unit sampling interval, the distance of printing platform movement is solid
Fixed.Therefore, the numerical value and the displacement distance of unit sampling interval duration printing platform counted according to first, it is possible to calculate
Obtain the distance that printing platform is fallen back.It and then can be using retroversion distance as when reopening the reference of printing.
Step S202, according to the default sampling interval, acquisition encoder is in the output signal of two neighboring sampling instant.
Step S203, determine whether the output order between two output signals meets default signal output order, if
It is not then to perform step S201, otherwise, performs step S204- steps S205.
Step S204, second is carried out to the number for meeting the default signal output order to count.
Sampling instant printing platform before the scene of this step is current sample time is fallen back, and current time
Printing platform is advanced again.In order to judge distance that printing platform currently advances whether reach the distance of retroversion, it is necessary to
On the premise of printing platform has occurred and that retroversion, the number that preset signals output order is met to encoder output is counted
Number (i.e. second counts).To determine the distance of printing platform advance.
Step S205, determine described second counts whether be equal to the described first counting, if being equal to, start printing, and it is clear
Empty first counting and described second counts, if being less than, jumps to step S202.
In practical application, when first, which counts, is equal to the second technology, then illustrate that the distance that printing platform advances is equal to have fallen
The distance moved back can reopen printing at this time, and in order to avoid current count is impacted to subsequently printing control, it is necessary to will
First counts and the second counting clearing.Otherwise, when second, which counts, is less than the first counting, then the distance that printing platform advances is illustrated
Less than the distance fallen back, open printing is still unable at this time.
On the basis of Fig. 1 embodiments, it is monitored by the retroversion distance and forward travel distance to printing platform, works as advance
Distance be equal to fall back apart from when reopen printing, can realize the automatic recovery of printing, realization seamless printing.
Fig. 3 is the structure diagram for the printing equipment that one embodiment of the invention provides, as shown in figure 3, the present embodiment provides
Printing equipment include:
Sampling module 11, for according to the default sampling interval, acquisition encoder to be in the output of two neighboring sampling instant
Signal;
First determining module 12, it is defeated whether the output order for determining between two output signals meets default signal
Go out order;
It is suitable to be unsatisfactory for default signal output for the output order between described two output signals for execution module 13
During sequence, stop printing.
Wherein, the output signal of the encoder includes A phase signals and B phase signals;
First determining module 12, is specifically used for:Determine sampling obtain two output signals between A phase signals and
Whether B phase signals meet the output orders of A phase signals simultaneously, and to meet default A phase signals output order, the output of B phase signals suitable
Sequence meets default B phase signals output order.
Printing equipment provided in this embodiment can be used in performing method shown in FIG. 1, executive mode and advantageous effect
It is similar, it repeats no more herein.
Fig. 4 is the structure diagram for the printing equipment that further embodiment of this invention provides, as shown in figure 4, in knot shown in Fig. 3
On the basis of structure, the printing equipment further includes:
First counting module 14, two for being obtained to the acquisition output orders exported between signals are unsatisfactory for default
The number of signal output order carries out first and counts, and triggers and perform described according to the default sampling interval, and acquisition encoder exists
The step of output signal of two neighboring sampling instant;
Second counting module 15, two for being obtained in the acquisition output orders exported between signals meet default letter
During number output order, second is carried out to the number for meeting the default signal output order and is counted;
Second determining module 16, for determining described second counts whether be equal to the described first counting;
The execution module 13 is additionally operable to, when described first counts and be equal to the described second counting, start printing, if small
In then triggering performing described according to the default sampling interval, acquisition encoder is in the output signal of two neighboring sampling instant
Step.
After the execution module starts printing, first counting module and second counting module are reset.
Printing equipment provided in this embodiment can be used in performing method shown in Fig. 2, executive mode and advantageous effect
It is similar, it repeats no more herein.
It is last it should be noted that one of ordinary skill in the art will appreciate that whole in above-described embodiment method or
Part flow is that relevant hardware can be instructed to complete by computer program, and the program can be stored in a computer
In readable storage medium storing program for executing, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, it is described to deposit
Storage media can be disk, CD, read-only memory (ROM) or random access memory (RAM) etc..
Each functional unit in the embodiment of the present invention can be integrated in a processing module or unit
Individually be physically present, can also two or more units be integrated in a module.Above-mentioned integrated module both can be with
It is realized, can also be realized in the form of software function module in the form of hardware.If the integrated module is with software
The form of function module realizes, and is independent production marketing or computer-readable is deposited in use, one can also be stored in
In storage media.Storage medium mentioned above can be read-only memory, disk or CD etc..
The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;Although with reference to foregoing each reality
Example is applied the present invention is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to foregoing each
Technical solution recorded in embodiment modifies and either carries out equivalent substitution to which part or all technical characteristic;And
These modifications are replaced, and the essence of appropriate technical solution is not made to depart from the scope of various embodiments of the present invention technical solution.