Specific embodiment
Structure diagrams of the Fig. 3 for ink-providing control system of the present invention, the ink supply controlling party that various embodiments of the present invention are provided
Method is suitable for ink-providing control system as shown in Figure 3, which includes a main control unit and multiple secondary
Control unit, such as secondary control unit 1, the secondary control unit 2 ... in Fig. 3, secondary control unit n.Main control unit and each
Secondary control unit is connected by controlling bus, i.e. main control unit and each secondary control unit is connect respectively with controlling bus.
Wherein, controlling bus can be differential type RS485 buses as shown in Figure 3, be made of two buses of A, B, main control unit
With the connection mode of each secondary control unit and controlling bus as shown in Figure 3.Wherein, each secondary control unit passes through confession respectively
Black pipeline connects a nozzle, and each nozzle has the print range of one fixed width.For example secondary control unit 1 corresponds in Fig. 3
Meet and discuss 1, secondary control unit 2 corresponds to nozzle 2 ..., and secondary control unit n corresponds to nozzle n.
Fig. 1 is the flow chart of ink supply control method embodiment one of the present invention, as shown in Figure 1, this method comprises the following steps:
Step 101, main control unit receive ink supply control instruction, and the ink supply control instruction includes controlled nozzle mark
Know.
Step 102, main control unit are identified according to each nozzle and the correspondence of the node address of each secondary control unit,
Determine the node address of secondary control unit corresponding with the controlled nozzle mark.
Step 103, main control unit are according to the node address of the secondary control unit, by controlling bus to described time
Grade control unit sends the ink supply control instruction, so that the secondary control unit performs the ink supply control instruction.
In the present embodiment, when starting to print, in print procedure and maintenance process, control platform can all be carried out with ink feeding system
Interaction, ink feeding system to be controlled to complete the operations such as inking, cleaning sprayer, to ensure being normally carried out for printing, which can
To be not understood as a host computer.
User needs controlled nozzle to identify according to actual demand to host computer input, so as to which host computer is to ink feeding system
The ink supply that the i.e. controlled nozzle mark of the above-mentioned nozzle mark by control nozzle is specifically carried to main control unit transmission controls
Instruction.Wherein, which is such as the control instruction that instruction carries out the operations such as inking, cleaning sprayer.
Main control unit in ink feeding system is interacted with control system, to receive the ink supply control instruction.
Due to main control unit for being managed concentratedly to ink feeding system, the work of each secondary control unit of control,
State of each secondary control unit etc. is inquired, therefore, in main control unit can safeguard the node address of each secondary control unit
Correspondence between each nozzle mark.Wherein, the node address of each secondary control unit can simply be expressed as each secondary
The number-mark of control unit.The correspondence can be written in main control unit, also, in reality when dispatching from the factory and producing
During use, if increase new nozzle and secondary control unit according to actual needs, it will can also increase newly at this moment
Nozzle is identified in write-in main control unit corresponding with the node address of newly-increased secondary control unit, and main control unit is specifically written
In storage unit in.
So as to after main control unit receives above-mentioned ink supply control instruction, first according to each nozzle mark and each time
The correspondence of the node address of grade control unit is determined corresponding to being identified with the controlled nozzle carried in ink supply control instruction
The node address of secondary control unit, and then, according to the node address of the secondary control unit, by controlling bus to the secondary
Control unit sends above-mentioned ink supply control instruction.The secondary control unit and then the ink supply control instruction is performed, to complete such as
The operations such as inking, cleaning sprayer.
What deserves to be explained is according to actual demand, the possible more than one of quantity of above-mentioned controlled nozzle, for comprising multiple
The situation of controlled nozzle, main control unit is in a manner of multicast to the corresponding secondary control unit of multiple controlled nozzle institute
Above-mentioned ink supply control instruction is sent, so as to which multiple secondary control units perform the ink supply control instruction, completes corresponding operation.
In addition, what deserves to be explained is, main control unit is retouched with the course of work of each secondary control unit by above-mentioned
It states it is found that main control unit is as each secondary control unit of centralized Control and the main body interacted with control platform, relative to
For each secondary control unit, no matter functionally or from hardware forming for upper, function can more be enriched, hardware
Forming can be more complicated.And each secondary control unit is the various controls in response to main control unit, completes corresponding action
, it is all fairly simple in function and hardware realization.
Therefore, in the present embodiment, by establishing the ink feeding system of primary and secondary Two-level Control unit, by main control unit and outside
Portion interacts, and addresses, secondary control unit is controlled to complete corresponding operation, only needs expanded function simple when that need to expand print range
Single secondary control unit is completed unified external interaction by main control unit, so as to reduce to ink feeding system space
Occupancy, improve scalability.
Fig. 2 is the flow chart of ink supply control method embodiment two of the present invention, as shown in Fig. 2, this method comprises the following steps:
Step 201, main control unit receive ink supply control instruction, and the ink supply control instruction includes controlled nozzle mark
Know.
Step 202, main control unit are identified according to each nozzle and the correspondence of the node address of each secondary control unit,
Determine the node address of secondary control unit corresponding with the controlled nozzle mark.
It is consistent that the two steps correspond to step with embodiment illustrated in fig. 1, repeats no more.
Step 203, main control unit send enabled instruction by the controlling bus to the secondary control unit, so that
The secondary control unit starts according to the enabled instruction.
In the present embodiment, in order to avoid when main control unit receives ink supply control instruction, in the ink supply control instruction
The corresponding secondary control unit of controlled nozzle mark may be due to closing without work before, it is therefore desirable to first to controlled
Secondary control unit corresponding to nozzle sends enabled instruction, so that the secondary control unit starts according to enabled instruction.
Step 204, main control unit send status query instruction by the controlling bus to the secondary control unit.
Step 205, main control unit determine first state corresponding with the status query instruction letter of main control unit
Breath receives the second state corresponding with the status query instruction that the secondary control unit is fed back by the controlling bus
Information.
In the present embodiment, in order to ensure the normal work of ink feeding system, main control unit needs to realize accurately to each time
The control of grade control unit.For this purpose, main control unit needs to understand in time the operating status of itself and each secondary control unit
The status information of i.e. each secondary control unit, i.e., above-mentioned first state information and the second status information.On the one hand, main control unit
Inquiry instruction can be issued to each secondary control unit periodically by the mode of broadcast, it is single to obtain each secondary control with inquiry
Second status information of member, if it find that it is abnormal, make corresponding processing.So as in the present embodiment, when main control unit exists
It is main when need to inquire the second status information of secondary control unit corresponding with controlled nozzle after receiving ink supply control instruction
Control unit can receive each secondary control unit obtained in time in the shortest period of ink supply control instruction from distance
The second status information in, find the second status information of secondary control unit corresponding with controlled nozzle.
Accurate in order to improve real-time, main control unit can also be after ink supply control instruction be received, in real time to controlled
The corresponding secondary control unit of nozzle sends status query instruction, is fed back so as to receive the secondary control unit by controlling bus
The status information of itself.
Wherein, the first state information of itself that main control unit obtains includes the work state information of main control unit,
For example it is in starting state, halted state etc..Correspondingly, the second status information of secondary control unit includes secondary control
The work state information of unit processed, for example it is in starting state, halted state etc..Moreover, the second shape of secondary control unit
Ink tank states information is further included in state information, such as including pressure information and liquid level information.
Step 206, main control unit determine whether to malfunction according to the first state information and second status information,
If not malfunctioning, step 207 is performed, otherwise, if error, main control unit send out miscue message.
Specifically, main control unit determines whether to malfunction according to the first state information and second status information,
Including:
Main control unit determines that the work state information of main control unit and the work state information of secondary control unit are
It is no consistent, and determine whether the ink tank states information of the secondary control unit meets corresponding normal work threshold value.For example, master control
Whether unit processed and secondary control unit are at opening, and whether the corresponding print cartridge pressure value of secondary control unit is less than
Whether certain threshold value, liquid level are higher than certain altitude threshold value.
If the work state information of main control unit is consistent with the work state information of the secondary control unit, and the secondary
The ink tank states information of control unit meets corresponding normal work threshold value, it is determined that does not malfunction, otherwise, it determines error.
What deserves to be explained is if main control unit determines error, it can also be according to type of error, to corresponding time
Grade control unit sends corresponding instruction, so that secondary control unit adjusts the working condition of itself.
Step 207, main control unit determine pre- before the ink supply control instruction is received according to instruction transmission record
If in the time, if the ink supply control instruction identical with the ink supply control instruction has been transmitted across, if not being transmitted across institute also
Ink supply control instruction is stated, then performs step 208, otherwise, is terminated.
Described instruction, which is sent, records each ink supply control instruction for having the main control unit to be transmitted across and each confession in record
The sending time of black control instruction.
In the present embodiment, in order to avoid control platform may be repeated to send out same ink supply by the triggering repeatedly of user
The situation of control instruction in main control unit before secondary control unit sends ink supply control instruction, needs to carry out duplicate checking processing.
Specifically, main control unit can record ink supply control instruction that it is sent to each secondary control unit every time and
Sending time sends record so as to form instruction.Main control unit is after above-mentioned ink supply control instruction is received, main control unit
From the instruction send record in inquiry in the preset time before receiving the ink supply control instruction, if be transmitted across with
The identical ink supply control instruction of the ink supply control instruction.Whether within a short period before this has been transmitted across it
Ink supply control instruction.If be transmitted across, illustrate that corresponding secondary control unit is performed according to the ink supply control instruction
Corresponding operation, without sending the ink supply control instruction again.
Step 208, main control unit are according to the node address of the secondary control unit, by controlling bus to described time
Grade control unit sends the ink supply control instruction, so that the secondary control unit performs the ink supply control instruction.
In the present embodiment, the status inquiry of secondary control unit, comparison, duplicate checking ink supply control are referred to by main control unit
The processing of order ensure that the accurate operation of ink feeding system.
Fig. 3 is the structure diagram of ink-providing control system of the present invention, and based on Fig. 3, Fig. 4 is a kind of Fig. 3 provided by the invention
The structure diagram of middle main control unit, as shown in figure 4, the main control unit includes:
Receiving module 11, for receiving ink supply control instruction, the ink supply control instruction includes controlled nozzle mark.
First determining module 12, for the corresponding pass according to each nozzle mark with the node address of each secondary control unit
System determines the node address of secondary control unit corresponding with the controlled nozzle mark.
Sending module 13, for the node address according to the secondary control unit, by controlling bus to the secondary
Control unit sends the ink supply control instruction, so that the secondary control unit performs the ink supply control instruction, the master
Control unit and each secondary control unit are connected in the controlling bus.
The ink-providing control system of the present embodiment can be used for performing the technical solution of embodiment of the method shown in Fig. 1, realize
Principle is similar with technique effect, and details are not described herein again.
Fig. 5 is the structure diagram of main control unit in another kind Fig. 3 provided by the invention, as shown in figure 5, in Fig. 4 institutes
On the basis of showing embodiment, the sending module 13 is additionally operable to:It is sent by the controlling bus to the secondary control unit
Enabled instruction, so that the secondary control unit starts according to the enabled instruction.
Further, the sending module 13 is additionally operable to:It is sent by the controlling bus to the secondary control unit
Status query instruction.
The main control unit further includes:
Second determining module 21, for determining the first shape corresponding with the status query instruction of the main control unit
State information.
Correspondingly, the receiving module 11 is additionally operable to;The secondary control unit is received to feed back by the controlling bus
The second status information corresponding with the status query instruction.
The main control unit further includes:
Third determining module 22, for determining whether according to the first state information and second status information
It is wrong.
When third determining module 22 determines not malfunction, third determining module 22 trigger the sending module 13 perform it is described
According to the node address of the secondary control unit, the ink supply is sent to the secondary control unit by controlling bus and is controlled
The step of instruction.
The main control unit further includes:
Reminding module 23 for determining to stagger the time in third determining module, sends out miscue message.
Wherein, the first state information includes the work state information of the main control unit;The second state letter
Breath includes the work state information of ink tank states information and secondary control unit, and the ink tank states information includes pressure information
And liquid level information.
Wherein, the third determining module 22 is specifically used for:
Determine the work state information of the main control unit and the secondary control unit work state information whether
Unanimously, and determine whether the ink tank states information of the secondary control unit meets corresponding normal work threshold value;In the master
The work state information of control unit is consistent with the work state information of the secondary control unit, and the secondary control unit
Ink tank states information meet it is corresponding normal work threshold value when, determine do not malfunction, otherwise, it determines error.
Further, the main control unit further includes:
4th determining module 24, it is pre- before the ink supply control instruction is received for being determined according to instruction transmission record
If in the time, if be transmitted across the ink supply control instruction identical with the ink supply control instruction, described instruction sends note
The sending time of each ink supply control instruction for having the main control unit to be transmitted across and each ink supply control instruction is recorded in record.
If the 4th determining module 24 determines not being transmitted across the ink supply control instruction also, the sending module 13 performs root
According to the node address of the secondary control unit, the ink supply control is sent to the secondary control unit by controlling bus and is referred to
The step of enabling.
The ink-providing control system of the present embodiment can be used for performing the technical solution of embodiment of the method shown in Fig. 2, realize
Principle is similar with technique effect, and details are not described herein again.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
The relevant hardware of program instruction is completed, and aforementioned program can be stored in a computer read/write memory medium, the program
When being executed, step including the steps of the foregoing method embodiments is performed;And aforementioned storage medium includes:ROM, RAM, magnetic disc or light
The various media that can store program code such as disk.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe is described in detail the present invention with reference to foregoing embodiments, it will be understood by those of ordinary skill in the art that:Its according to
Can so modify to the technical solution recorded in foregoing embodiments either to which part or all technical features into
Row equivalent replacement;And these modifications or replacement, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.