The term " includes " of description and claims of this specification and " having " and their any deformation, it is intended that
Be to cover it is non-exclusive include, for example, the device of the process or structure that contain series of steps is not necessarily limited to clearly arrange
Those of out structure or step but may include other steps being not clearly listed or intrinsic for 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 executes, as shown in Figure 1, this method comprises:
Step S101, according to the preset sampling interval, encoder is acquired in the output signal of two neighboring sampling instant.
In practical application, the angle that encoder often turns over unit issues a pulse signal, usually A phase signals, B phase
Signal, Z phase signals, wherein A phase signals and B phase signals export for the pulse in mutually 1/4 period of delay;Z phase signals are individual pen arteries and veins
Punching, i.e., every circle issue a pulse.The judgement to printing platform moving direction is realized 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 seldom limits 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 period of encoder swing circle.I.e. encoder, which is often rotated by 90 °, samples one to the output signal of encoder
It is secondary.Once due in printing equipment encoder and its installing mechanism Selection and Design complete, the coded pulse of encoder output letter
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 period 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, be not to unique restriction of the invention,.
Step S102, determine whether the output sequence between two output signals meets preset signal output sequence, if
It is not then to stop printing, otherwise continues to print.
In normal work due to printing equipment, the output signal of the encoder obtained according to particular sample interval is in solid
Fixed is periodically variable, and therefore, the sequence of the output signal between two neighboring sampling instant should also be changeless.
The sequence of the A phase signals of encoder output i.e. in two neighboring sampling instant, and the sequence of output B phase signals should also be
Changeless, this sequence fixed (i.e. preset A phase signals output sequence, preset B phase signals output sequence) 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 preset signal output sequence simultaneously with B phase signals, then illustrates that printing platform moving direction is normal, otherwise illustrate to print
Platform is fallen back.For the still above example, when the A phase signals and B phase signals of encoder output are combined with 10 → 00 →
When 01 → 11 → 10 cycle of states, then the output signal of a upper sampling instant for the corresponding sampling instant of output signal " 00 " is just
Should be " 10 ", the output signal of latter sampling instant just should be " 01 ", therefore, by the two neighboring sampling instant of determination it
Between output signal output sequence, so that it may judge whether printing platform mobile according to method of advance, if it is not, then illustrating to print
Platform is fallen back, and to avoid print result from malfunctioning, should stop printing at this time.For example, if the 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 sequence whether meet preset signal output sequence, if it is not, then illustrate that printing platform is fallen back, printing work
In abnormal condition, stop printing at this time, even if rather than as the prior art when printing platform is fallen back, still
Continue to print, therefore, can be avoided the problem of print result caused by being fallen back by printing platform malfunctions.
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 embodiment
On the basis of, after step s 102 can with the following steps are included:
Step S201, the output sequence between two output signals that acquisition obtains is unsatisfactory for preset signal output sequence
Number carry out first count.
In practical application, it is defeated for being unsatisfactory for preset signals to encoder output to preset a counter
The number of sequence is counted (i.e. first counts) out.Since at the unit sampling interval, the mobile distance of printing platform is solid
Fixed.Therefore, the moving distance of the numerical value and unit sampling interval duration printing platform that are counted according to first, so that it may calculate
Obtain the distance that printing platform is fallen back.And then it can be by retroversion distance as when reopening the reference of printing.
Step S202, according to the preset sampling interval, encoder is acquired in the output signal of two neighboring sampling instant.
Step S203, determine whether the output sequence between two output signals meets preset signal output sequence, if
It is not to then follow the steps S201, otherwise, executes step S204- step S205.
Step S204, second is carried out to the number for meeting the preset signal output sequence 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 whether distance that printing platform currently advances reaches the distance of retroversion, need
Under the premise of printing platform has occurred and that retroversion, the number for meeting preset signals output sequence to encoder output is counted
Number (i.e. second counts).To determine the distance of printing platform advance.
Step S205, it determines described second counts whether be equal to first counting, if being equal to, starts printing, and 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 counting, 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 impacts subsequent printing control, need by
First counts and the second counting clearing.Otherwise, when second, which counts, counts less than first, then illustrate the distance that printing platform advances
Less than the distance fallen back, it is still unable to open printing at this time.
On the basis of Fig. 1 embodiment, it is monitored by retroversion distance to printing platform and forward travel distance, works as advance
Distance be equal to fall back apart from when reopen printing, can be realized the automatic recovery of printing, realization seamless printing.
Fig. 3 is the structural schematic 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 acquiring encoder in the output of two neighboring sampling instant according to the preset sampling interval
Signal;
First determining module 12, for determining it is defeated whether the sequence of the output between two output signals meets preset signal
Sequence out;
It is suitable to be unsatisfactory for preset signal output for the output sequence between described two output signals for execution module 13
When 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
It is suitable that the output sequence whether B phase signals meet A phase signals simultaneously meets preset A phase signals output sequence, the output of B phase signals
Sequence meets preset B phase signals output sequence.
Printing equipment provided in this embodiment can be used in executing method shown in FIG. 1, executive mode and beneficial effect
It is similar, it repeats no more herein.
Fig. 4 is the structural schematic diagram for the printing equipment that further embodiment of this invention provides, as shown in figure 4, knot shown in Fig. 3
On the basis of structure, the printing equipment further include:
First counting module 14, the output between two output signals for obtaining to acquisition are sequentially unsatisfactory for preset
The number of signal output sequence carries out first and counts, and triggers and execute described according to the preset sampling interval, acquires encoder and exists
The step of output signal of two neighboring sampling instant;
Second counting module 15 meets preset letter for the output sequence between two output signals that acquisition obtains
When number output sequence, second is carried out to the number for meeting the preset signal output sequence and is counted;
Second determining module 16, for determining described second counts whether be equal to first counting;
The execution module 13 is also used to the starting printing, if small when described first counts and be equal to the described second counting
In then triggering executing described according to the preset sampling interval, acquire encoder in the output signal of two neighboring sampling instant
Step.
After execution module starting printing, first counting module and second counting module are reset.
Printing equipment provided in this embodiment can be used in executing method shown in Fig. 2, executive mode and beneficial effect
It is similar, it repeats no more herein.
Finally, it should be noted that those of ordinary skill in the art will appreciate that whole in above-described embodiment method or
Part process 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 when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, 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 integrate in a processing module, be also possible to each unit
It is individually physically present, can also be integrated in two or more units in a module.Above-mentioned integrated module both can be with
Using formal implementation of hardware, can also be realized in the form of software function module.If the integrated module is with software
The form of functional module realizes, and when sold or used as an independent product, also can store and computer-readable deposits at one
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 referring to aforementioned each reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified, or equivalent substitution of some or all of the technical features;And
These are modified or replaceed, the range for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.