Specific embodiment
Fig. 3 is the structural representation of ink-providing control system of the present invention, the confession provided by various embodiments of the present invention
Black control method is applied to ink-providing control system as shown in Figure 3, and the ink-providing control system includes one
Main control unit and multiple secondary control units, the secondary control unit 1, secondary control in such as Fig. 3 are single
Unit 2 ..., secondary control unit n.Main control unit and each secondary control unit are connected by controlling bus,
I.e. main control unit and each secondary control unit are connected with controlling bus respectively.Wherein, controlling bus can be with
It is differential type RS485 buses as shown in Figure 3, is made up of two buses of A, B, main control unit
With the connected mode of each secondary control unit and controlling bus as shown in Figure 3.Wherein, each secondary control
Unit connects a shower nozzle by ink supply pipeline respectively, and each shower nozzle has the print range of one fixed width.
In such as Fig. 3, the secondary correspondence of control unit 1 meets and discusses 1, and the correspondence shower nozzle 2 ... of secondary control unit 2 is secondary
Level control unit n correspondence shower nozzle n.
Fig. 1 is the flow chart of ink supply control method embodiment of the present invention, as shown in figure 1, the method bag
Include following steps:
Step 101, main control unit receive ink supply control instruction, and the ink supply control instruction includes receiving
Control shower nozzle mark.
Step 102, main control unit are identified and the node address of each secondary control unit according to each shower nozzle
Corresponding relation, it is determined that the node address of secondary control unit corresponding with the controlled shower nozzle mark.
The node address of step 103, main control unit according to the secondary control unit, it is total by control
Line sends the ink supply control instruction to the secondary control unit, so that the secondary control unit is performed
The ink supply control instruction.
In the present embodiment, in printing, print procedure and maintenance process is started, control platform all can be with confession
Ink system is interacted, and completes the operation such as inking, cleaning sprayer to control ink feeding system, to ensure to print
Be normally carried out, the control platform can be understood as a host computer.
User needs controlled shower nozzle mark to host computer input according to the actual requirements, so as to host computer to
It is i.e. controlled that ink feeding system specifically carries the above-mentioned shower nozzle mark by control shower nozzle to main control unit transmission
The ink supply control instruction of shower nozzle mark.Wherein, the ink supply control instruction is such as to indicate to carry out inking, clear
Wash the control instruction of the operations such as shower nozzle.
Main control unit in ink feeding system is interacted with control system, receives the ink supply control instruction.
As main control unit is for managing concentratedly to ink feeding system, its each secondary control unit of control
Work, inquire about state of each secondary control unit etc., therefore, can safeguard in main control unit each time
Corresponding relation between the node address of level control unit and each shower nozzle mark.Wherein, each secondary control unit
Node address can simply be expressed as the number-mark of each secondary control unit.The corresponding relation can be with
It is to write in main control unit, also, in actual use when production is dispatched from the factory, if according to
It is actually needed when increased new shower nozzle and secondary control unit, it is also possible at this moment newly-increased shower nozzle is identified
In write main control unit corresponding with the node address of newly-increased secondary control unit, main control is specifically write
In memory unit in unit.
So as to, after main control unit receives above-mentioned ink supply control instruction, which is first according to each shower nozzle mark
Know and the corresponding relation of the node address of each secondary control unit, it is determined that with ink supply control instruction in carry receive
The node address of the corresponding secondary control unit of control shower nozzle mark, and then, according to the secondary control unit
Node address, sends above-mentioned ink supply control instruction by controlling bus to the secondary control unit.The secondary is controlled
Unit processed further performs the ink supply control instruction, to complete the such as operation such as inking, cleaning sprayer.
What deserves to be explained is, according to the actual requirements, the possible more than one of quantity of above-mentioned controlled shower nozzle is right
In the situation comprising multiple controlled shower nozzles, main control unit is in the way of multicast to the plurality of controlled shower nozzle institute
The corresponding secondary control unit of difference sends above-mentioned ink supply control instruction, so as to multiple secondary control units are held
The capable ink supply control instruction, completes corresponding operation.
In addition, what deserves to be explained is, by it is above-mentioned to main control unit and each secondary control unit work
The description of process understands that main control unit is used as each secondary control unit of centralized Control and and control platform
Interactive main body, its for each secondary control unit, no matter functionally, or from hard
For part is constituted above, function more can be enriched, hardware is constituted can be more complicated.And each secondary control unit
Simply in response to the various controls of main control unit, corresponding action is completed, its function and hardware reality
Now go up all fairly simple.
Therefore, in the present embodiment, by setting up the ink feeding system of primary and secondary Two-level Control unit, by master control
Unit processed is interacted with outside, and is addressed, controlled secondary control unit and complete corresponding operation, is needing to expand
Expanded function simple secondary control unit is only needed during print range, and unification is completed by main control unit
External interaction, so as to reduce the occupancy to ink feeding system space, improve extensibility.
Fig. 2 is the flow chart of ink supply control method embodiment of the present invention two, as shown in Fig. 2 the method bag
Include following steps:
Step 201, main control unit receive ink supply control instruction, and the ink supply control instruction includes receiving
Control shower nozzle mark.
Step 202, main control unit are identified and the node address of each secondary control unit according to each shower nozzle
Corresponding relation, it is determined that the node address of secondary control unit corresponding with the controlled shower nozzle mark.
The two steps are consistent with correspondence step in embodiment illustrated in fig. 1, repeat no more.
Step 203, main control unit are sent to the secondary control unit by the controlling bus and are started
Instruction, 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, the ink supply control
In system instruction, the corresponding secondary control unit of controlled shower nozzle mark is closed because of not working before
Close, it is therefore desirable to send enabled instruction to the secondary control unit corresponding to controlled shower nozzle first, so that should
Secondary control unit starts according to enabled instruction.
Step 204, main control unit send state by the controlling bus to the secondary control unit
Query statement.
Step 205, main control unit determine corresponding with the status inquiry instruction the of main control unit
One status information, what the reception secondary control unit was fed back by the controlling bus are looked into the state
Ask corresponding second status information of instruction.
In the present embodiment, in order to ensure the normal work of ink feeding system, main control unit needs to realize accurately
Control of the ground to each secondary control unit.For this purpose, main control unit needs to understand itself and each time in time
Level control unit running status be each secondary control unit status information, i.e., above-mentioned first state information
With the second status information.On the one hand, main control unit can be periodically by the mode of broadcast to each time
Level control unit issues query statement, to inquire about the second status information for obtaining each secondary control unit, such as
Fruit notes abnormalities, and makes corresponding process.So as in the present embodiment, when main control unit is being received
To after ink supply control instruction, the second state letter of secondary control unit corresponding with controlled shower nozzle need to be inquired about
During breath, main control unit can have been obtained within most short cycle time that distance receives ink supply control instruction
In second status information of each secondary control unit for obtaining, secondary control corresponding with controlled shower nozzle is found
Second status information of unit.
Accurate in order to improve real-time, main control unit can also be real after ink supply control instruction is received
When send status inquiry instruction to the corresponding secondary control unit of controlled shower nozzle, so as to receive secondary control
The status information of itself that unit is fed back by controlling bus.
Wherein, the first state information of itself that main control unit is obtained includes the work shape of main control unit
State information, such as which is in starting state, halted state etc..Accordingly, the second of secondary control unit
Status information includes the work state information of the secondary control unit, and such as which is in starting state, stops
Only state etc..And, also include ink tank states information in the second status information of secondary control unit, than
Such as include pressure information and liquid level information.
Step 206, main control unit are determined according to the first state information and second status information
Whether malfunction, if not malfunctioning, execution step 207, otherwise, if error, main control unit sends
Miscue message.
Specifically, main control unit is determined according to the first state information and second status information is
No error, including:
Main control unit determines the work state information of main control unit and the working condition of secondary control unit
Whether information is consistent, and determines whether the ink tank states information of the secondary control unit meets corresponding normal
Operation threshold.Such as, whether main control unit and secondary control unit are at opening, secondary
Whether the corresponding print cartridge pressure value of control unit is less than certain threshold value, and whether liquid level is 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 ink tank states information of the secondary control unit meets corresponding normal work threshold value, it is determined that do not malfunction,
Otherwise, it determines error.
What deserves to be explained is, if main control unit determines malfunctioned, its can with according to type of error,
Corresponding instruction is sent to corresponding secondary control unit, so that secondary control unit adjusts the work of itself
State.
Step 207, main control unit send record according to instruction and determine and refer to receiving ink supply control
In Preset Time before order, if be transmitted across controlling with the ink supply control instruction identical ink supply
Instruction, if not also being transmitted across the ink supply control instruction, execution step 208 otherwise, terminates.
It is described instruction send record in record have the main control unit to be transmitted across each ink supply control instruction and
The transmission time of each ink supply control instruction.
In the present embodiment, in order to avoid control platform may be subject to the triggering repeatedly of user, repetition sends same
The situation of one ink supply control instruction, sends ink supply control instruction in main control unit to secondary control unit
Before, need to carry out duplicate checking process.
Specifically, main control unit can record the ink supply control which is sent to each secondary control unit every time
Instruction and transmission time, record are sent so as to form instruction.Main control unit is receiving above-mentioned ink supply
After control instruction, main control unit sends to inquire about in record from the instruction and is receiving the ink supply control instruction
In front Preset Time, if be transmitted across and the ink supply control instruction identical ink supply control instruction.
Whether this ink supply control instruction has been transmitted across within a short period before.If sent
Cross, illustrate that corresponding secondary control unit performs corresponding operation according to the ink supply control instruction,
Without the need for sending the ink supply control instruction again.
The node address of step 208, main control unit according to the secondary control unit, it is total by control
Line sends the ink supply control instruction to the secondary control unit, so that the secondary control unit is performed
The ink supply control instruction.
In the present embodiment, by main control unit to the status poll of secondary control unit, comparison, duplicate checking
The process of ink supply control instruction, it is ensured that the accurate operation of ink feeding system.
Fig. 3 is the structural representation of ink-providing control system of the present invention, and based on Fig. 3, Fig. 4 is carried for the present invention
For a kind of Fig. 3 in main control unit structural representation, as shown in figure 4, the main control unit bag
Include:
Receiver module 11, for receiving ink supply control instruction, the ink supply control instruction includes controlled spray
Leader is known.
First determining module 12, for identifying and the node address of each secondary control unit according to each shower nozzle
Corresponding relation, it is determined that the node address of secondary control unit corresponding with the controlled shower 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 execution is described
Ink supply control instruction, the main control unit and each secondary control unit are connected to the control
In bus.
The ink-providing control system of the present embodiment can be used for the technical side for performing embodiment of the method shown in Fig. 1
Case, which realizes that principle is similar with technique effect, and here is omitted.
The structural representation of main control unit in another kind of Fig. 3 that Fig. 5 is provided for the present invention, such as Fig. 5 institutes
Show, on the basis of embodiment illustrated in fig. 4, the sending module 13 is additionally operable to:It is total by the control
Line sends enabled instruction to the secondary control unit, so that the secondary control unit is according to the startup
Instruction starts.
Further, the sending module 13 is additionally operable to:By the controlling bus to the secondary control
Unit sends status inquiry instruction.
The main control unit also includes:
Second determining module 21, for determining the corresponding with the status inquiry instruction of the main control unit
First state information.
Accordingly, the receiver module 11 is additionally operable to;The secondary control unit is received by the control
Second status information corresponding with the status inquiry instruction of bus feedback.
The main control unit also includes:
3rd determining module 22, for determining according to the first state information and second status information
Whether malfunction.
When the 3rd determining module 22 determines and do not malfunction, the 3rd determining module 22 triggers the sending module
13 perform the node address according to the secondary control unit, by controlling bus to the secondary control
The step of unit processed sends the ink supply control instruction.
The main control unit also includes:
Reminding module 23, staggers the time for determining in the 3rd determining module, sends miscue message.
Wherein, the first state information includes the work state information of the main control unit;Described
Two-state information includes the work state information of ink tank states information and secondary control unit, the print cartridge
Status information includes pressure information and liquid level information.
Wherein, the 3rd determining module 22 specifically for:
Determine that the work state information of the main control unit is believed with the working condition of the secondary control unit
Whether breath is consistent, and determines whether the ink tank states information of the secondary control unit meets corresponding normal
Operation threshold;In the work shape of work state information and the secondary control unit of the main control unit
State information is consistent, and the ink tank states information of the secondary control unit meets corresponding normal work threshold value
When, it is determined that do not malfunction, otherwise, it determines error.
Further, the main control unit also includes:
4th determining module 24, refer to receiving ink supply control for sending record according to instruction and determining
In Preset Time before order, if be transmitted across controlling with the ink supply control instruction identical ink supply
Instruction, it is described instruction send record in record have the main control unit to be transmitted across each ink supply control instruction with
And the transmission time of each ink supply control instruction.
If the 4th determining module 24 determines also be not transmitted across the ink supply control instruction, the sending module
13 perform the node address according to the secondary control unit, single to the secondary control by controlling bus
The step of unit sends the ink supply control instruction.
The ink-providing control system of the present embodiment can be used for the technical side for performing embodiment of the method shown in Fig. 2
Case, which realizes that principle is similar with technique effect, and here is omitted.
One of ordinary skill in the art will appreciate that:Realize all or part of step of said method embodiment
Can be completed by the related hardware of programmed instruction, aforesaid program can be stored in a computer-readable
Take in storage medium, the program upon execution, performs the step of including said method embodiment;And it is aforementioned
Storage medium include:ROM, RAM, magnetic disc or CD etc. are various can be with Jie of store program codes
Matter.
Finally it should be noted that:Various embodiments above is only illustrating technical scheme rather than right
Its restriction;Although being described in detail to the present invention with reference to foregoing embodiments, this area it is common
Technical staff should be understood:Which still can be modified to the technical scheme described in foregoing embodiments,
Or equivalent is carried out to which part or all technical characteristic;And these modifications or replacement, and
The scope of the essence disengaging various embodiments of the present invention technical scheme of appropriate technical solution is not made.