CN109416530A - A kind of input and output control method, main control device and digital control system from equipment - Google Patents

A kind of input and output control method, main control device and digital control system from equipment Download PDF

Info

Publication number
CN109416530A
CN109416530A CN201780037079.7A CN201780037079A CN109416530A CN 109416530 A CN109416530 A CN 109416530A CN 201780037079 A CN201780037079 A CN 201780037079A CN 109416530 A CN109416530 A CN 109416530A
Authority
CN
China
Prior art keywords
equipment
input
output interface
address
information
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
CN201780037079.7A
Other languages
Chinese (zh)
Other versions
CN109416530B (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.)
Shenzhen A&E Intelligent Technology Institute Co Ltd
Original Assignee
Shenzhen A&E Intelligent Technology Institute Co Ltd
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 Shenzhen A&E Intelligent Technology Institute Co Ltd filed Critical Shenzhen A&E Intelligent Technology Institute Co Ltd
Publication of CN109416530A publication Critical patent/CN109416530A/en
Application granted granted Critical
Publication of CN109416530B publication Critical patent/CN109416530B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/414Structure of the control system, e.g. common controller or multiprocessor systems, interface to servo, programmable interface controller
    • G05B19/4142Structure of the control system, e.g. common controller or multiprocessor systems, interface to servo, programmable interface controller characterised by the use of a microprocessor
    • 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/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/414Structure of the control system, e.g. common controller or multiprocessor systems, interface to servo, programmable interface controller
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/34Director, elements to supervisory
    • G05B2219/34013Servocontroller

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Programmable Controllers (AREA)

Abstract

The embodiment of the invention discloses a kind of input and output control methods, main control device and digital control system from equipment, the control method, to the control from equipment, specifically includes for main control device in digital control system: obtaining the input/output interface information of the slave equipment of connection;It is to distribute address from the input/output interface of equipment according to input/output interface information;It is controlled and is managed to from the input and/or output interface of equipment according to address.By the above-mentioned means, simplifying the master-slave equipment configuration flow of digital control system, the control efficiency in industrial application for sensor and switching value is improved.

Description

A kind of input and output control method, main control device and digital control system from equipment
Technical field
The present embodiments relate to numerical control fields, more particularly to a kind of input and output control method from equipment, master control Equipment and digital control system.
Background technique
In industry spot, a variety of production equipments can be used, the input and output of these production equipments are mostly switching value, are such as cut Coolant liquid in process equipment, portable lamp, safety door are cut, industrial flow-line controls start and stop, illumination in equipment, robot application In limit switch etc..These production equipments are all connected to master control equipment, are controlled by master control equipment and to complete one specific Production procedure.However, since the environment of industry spot is complicated and the input/output of other production equipments is various, main control After equipment is connect with other production equipments, all input/output of other production equipments can not be accurately differentiated, therefore very Difficulty reaches the input/output to the other equipment and accurately, timely control.
Summary of the invention
The embodiment of the present invention provides a kind of input and output control method, main control device and digital control system from equipment, with The configuration for solving master-slave equipment equipment in the digital control system of the prior art is cumbersome, and sensor and digital output modul low efficiency are asked Topic.
In order to solve the above technical problems, a technical solution used in the embodiment of the present invention is: providing a kind of from equipment Input and output control method, for main control device in digital control system to the control from equipment, this method comprises: obtain connection from The input/output interface information of equipment;It is to distribute address from the input/output interface of equipment according to input/output interface information; It is controlled and is managed to from the input and/or output interface of equipment according to address.
In order to solve the above technical problems, another technical solution used in the embodiment of the present invention is: providing a kind of master control and set Standby, for controlling from the input and output of equipment, which includes: memory, processor and is stored in memory Computer program that is upper and can running on a processor, performs the steps of acquisition and connects when computer program is executed by processor The input/output interface information of the slave equipment connect;It is from the input/output interface of equipment point according to input/output interface information With address;It is controlled and is managed to from the input and/or output interface of equipment according to address.
In order to solve the above technical problems, another technical solution used in the embodiment of the present invention is: providing a kind of numerical control system System, the system include main control device as provided above and are connect with main control device by bus multiple from equipment.
In order to solve the above technical problems, another technical solution used in the embodiment of the present invention is: providing a kind of computer Readable storage medium storing program for executing, which is characterized in that computer program is stored on computer readable storage medium, computer program is processed The step of input and output control method of slave equipment as provided above is realized when device executes.
The beneficial effect of the embodiment of the present invention is: from the input and output controlling party of equipment provided by the embodiment of the present invention Method includes: to obtain the input/output interface information of the slave equipment of connection;It is from the defeated of equipment according to input/output interface information Enter/output interface distribution address;It is controlled and is managed to from the input and/or output interface of equipment according to address.By upper Mode is stated, can be added by main control device from equipment, and can automatically be to distribute address from equipment after equipment in addition, Simplify the master-slave equipment configuration flow of digital control system, improves the control in industrial application for sensor and switching value and imitate Rate.
Detailed description of the invention
Fig. 1 is the flow diagram of input and output control method one embodiment provided by the invention from equipment;
Fig. 2 is the ladder diagram in input and output control method one embodiment provided by the invention from equipment;
Fig. 3 is the flow diagram of another embodiment of the input and output control method from equipment provided by the invention;
Fig. 4 is the flow diagram of the another embodiment of the input and output control method from equipment provided by the invention;
Fig. 5 is that the human-computer interaction interface in the another embodiment of the input and output control method from equipment provided by the invention shows It is intended to;
Fig. 6 is showing from equipment addition area in the another embodiment of the input and output control method from equipment provided by the invention It is intended to;
Fig. 7 is showing from facility information area in the another embodiment of the input and output control method from equipment provided by the invention It is intended to;
Fig. 8 is the structural schematic diagram of one embodiment of main control device provided by the invention;
Fig. 9 is the structural schematic diagram of another embodiment of main control device provided by the invention;
Figure 10 is the structural schematic diagram of one embodiment of digital control system provided by the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that the described embodiments are merely a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Refering to fig. 1, Fig. 1 is the process signal of input and output control method one embodiment provided by the invention from equipment Figure, this method is for main control device in digital control system to the control from equipment.
Digital control system (i.e. numerical control system, Numerical Control System) is according in computer storage The control program of storage, execution part or whole digital control function, and it is dedicated equipped with interface circuit and servo drive Computer system.Digital control system includes multiple with PLC (Programmable Logic Controller, programmable logic control Device processed) equipment, wherein defining an equipment is main control device, other equipment are from equipment.It is all to pass through serial communication from equipment Either the modes such as ethernet communication or fieldbus are communicated with each other with main control device, respectively complete respective task from equipment.Its In, the bus protocol that fieldbus can use includes but is not limited to that (Controller Area Network controls general ability to CAN Area network bus), ModBus, EtherCat (Ether Control Automation Technolog, Ethernet auto-control Technology), RTEX (Real Time Express, motion control agreement) etc..
The input and output control method of the slave equipment of the present embodiment includes:
S11: the input/output interface information of the slave equipment of connection is obtained.
Input/output interface is the connection circuit that information is exchanged between equipment and external equipment, abbreviation I/O interface. I/O interface is divided into two class of bus interface and communication interface.
Wherein, I/O interface message may include the type of I/O interface, the function of I/O interface, I/O interface pin quantity, From the type etc. of equipment.
S12: being described from the input/output interface of equipment distribution address according to the input/output interface information.
Optionally, in one embodiment, step S12 can be with specifically: defeated according to the input/output interface information acquisition Enter/the interface type of output interface, then in order to be described from described in equipment from the corresponding address of the interface type Input/output interface distributes address.
S13: it is controlled and is managed from the input and/or output interface of equipment to described according to the address.
In one embodiment, when the main control device and it is described between equipment use bus protocol communicated when, institute It states main control device and periodic communication is carried out using request/response mode from equipment with described.The main control device is under the address Give out a contract for a project the bus protocol frame of the packet containing output data groups, to reach the scanning of the switching value to the input and output from equipment, so The protocol frame comprising input data group packet is received from the address again afterwards, to know the switching value of the input and output from equipment Information.
Optionally, in one embodiment, the step S13 can be with: first ladder diagram editor is carried out to the address, with control The logical relation of the system input/output interface from equipment output and input, then further according to the logical relation to institute The reception and/or issue that address is instructed are stated, to reach to the switching value from the corresponding input/output interface of equipment Control and management.
Above-described embodiment is described in detail with an example specifically below:
After main control device is connect with from equipment, due to described being assisted when the main control device and from equipment room using bus View is communicated, therefore from the quantity of equipment no more than the upper limit required in bus protocol, i.e., no more than 32 from equipment, It can not be no more than 32 from the input and output pin external sensor or switching value of equipment.Therefore, BIO (block need to be adjusted Input output, block input and output) on band switch setting from equipment serial number.It specifically, can basis in industry spot Demand selection configure from the installation of equipment, and the setting of adjustment equipment band switch simplifies assembled in situ process from equipment serial number.
Next match in PDE (PLC Develop Environment, PLC program editing environment) to from equipment It sets, it is necessary first to obtain the information from equipment input/output interface, the information includes (connecing from the input and output type of equipment Mouthful type), how many a input and output pins etc..PDE is that should distribute automatically address from equipment according to these information.
It in the present embodiment, can also be according to described defeated from equipment progress after obtaining the input/output interface information Enter/definition of output interface from device type, for example, (Bus Digital Input/Output, bus-type number are defeated by BDIO Enter/export) equipment, it specifically includes as BDO (bus-type numeral output) equipment and BDI (bus-type numeral input) equipment.Therefore, When distributing address, address can be distributed from the input/output interface of equipment in order from the corresponding address of interface type. Assuming that PDE possesses X class address X10~X49, Y class address Y10~Y49.When needing to distribute address for BDIO, according to BDIO's Type is each address for distributing corresponding types automatically from equipment from the address possessed in order.
For example, first is BDI type from equipment, then address X10, X11 can be distributed for it, second is also from equipment BDI type can distribute address X12, X13 then for it, and third is BDO type from equipment, then can distribute address for it Y10, and so on.
Specifically, from equipment described in being controlled by the way of carrying out ladder diagram editor to address in the present embodiment Input/output interface the logical relation output and input.As shown in Fig. 2, the upload inputted from equipment is corresponded to The address X of logic control, the Y address issued corresponding to logic control that Xiang Suoshu is exported from equipment.The effect of PLC is to execute use The trapezoidal map file that family is write, and executed according to preset logic loops, X is input, and Y is output, the logic output and input Relationship indicates that ladder diagram can be understood as the transformational relation between X and Y with ladder diagram.
Such as Fig. 2, effect are Y1.0=~X1.0, in this way, when X1.0 is 0, Y1.0 1, otherwise X1.0 is 1, Y1.0 is 0.Therefore for PLC, external input output can be abstracted as its X, Y address completely.
After address is assigned, the main control device can be according to the address of distribution to the corresponding I/ from equipment The reception and/or issue that O Interface is instructed.
The present embodiment it is disclosed from the input and output control method of equipment include: obtain connection slave equipment input/it is defeated Outgoing interface information;It is to distribute address from the input/output interface of equipment according to input/output interface information;According to address to from The input and/or output interface of equipment is controlled and is managed.By the above-mentioned means, main control device addition can be certainly after equipment Moving simplifies the master-slave equipment configuration flow of digital control system to distribute address from equipment, improves in industrial application for sensing The control efficiency of device and switching value.
It is the process signal of another embodiment of the input and output control method from equipment provided by the invention refering to Fig. 3, Fig. 3 Figure, this method comprises:
S31: the type information from equipment is obtained.
S32: according to described from the type information of the equipment inquiry input/output interface information from equipment.
A plurality of types of I/O interfaces are frequently included from equipment, such as numerically-controlled machine tool needs the defeated of more than ten or even tens outsides Enter output, an automatic welding machine people may need a external trigger point switches up to a hundred, for another example in numerical control cutting processing Coolant liquid, portable lamp, safety door, start and stop, illumination in industrial flow-line, the limit switch etc. in robot application.Outside these Portion's input-output equipment needs to be connected to main control device by I/O interface.
Optionally, the type of I/O interface include but is not limited to simulation input, floating input, drop-down input, pull-up input, Open-drain output, push-pull output, multiplexing open-drain output, multiplexing push-pull output.
S33: the slave equipment for receiving user's input adds instruction.
Optionally, in one embodiment, main control device may include a display equipment, and the display equipment is for showing a people Machine interactive interface, human-computer interaction interface generally comprise instruction input area and status display area, and instruction input area is used for receiving To control the work of digital control system, status display area is used to show the working condition of digital control system or passes through number for the instruction of family input The data result that control system works.
It should be understood that since main control device is connect with from equipment, and pass through bus and I/O interface connection transmission number According to therefore, display equipment can obtain other all data from equipment (including main control device) and display from main control device.
Specifically, main control device can read the slave equipment for establishing communication connection therewith, and carry out all from equipment It has been shown that, such as the type information from equipment can be shown by way of list;User passes through human-computer interaction interface in list again The slave equipment that middle selection addition needs.Wherein, it can be from equipment addition instruction to the slave equipment device type shown in list It is selected comprising the instruction inputted from input equipments such as mouse, keyboard, touch screens.Alternatively, it is also possible to by input from setting Standby type information is added from equipment accordingly to search for.
S34: the usage quantity of the slave number of devices and address that have added is obtained.
S35: according to the number of addresses needed for described in the calculating of the input/output interface information of equipment from equipment.
S36: whether the judgement slave equipment added is less than the preset restriction threshold value from number of devices, and it is described from Whether number of addresses needed for equipment is less than the difference of the restriction threshold value of number of addresses and the usage quantity of address.
S37: if so, adding instruction addition from equipment from equipment according to described.
It should be understood that the quantity and main control device of the slave equipment that main control device can add can be to distribute from equipment Number of addresses is generally limited, in the present embodiment, it is also necessary to judge the remaining number that can be added from equipment of main control device Whether amount and the remaining address that can be distributed can satisfy the demand of quantity and number of addresses from equipment.
Specifically, by taking BDIO as an example, it is assumed that the quantity for the slave equipment that main control device can add is 64, and main control device is pre- The address that can be distributed stayed is X10~X49, Y10~Y49, because BDI corresponds to two X address bits, the corresponding Y address of BDO Position, therefore reserved address is 60.
In a specific example, if main control device it is added from the quantity of equipment be 32, the ground used Location is 30, then the newly added quantity from equipment should be less than or equal to 32, the newly added I/O interface possessed by the equipment 30 should be less than or equal to.
It should be understood that when checking the address that can be distributed that main control device is reserved, with should also distinguishing the address X and Y Location, for example, the remaining address X is 10, remaining Y address is 30, and the newly added address X from equipment needs is 20 It is a, then it still cannot achieve addition.
S38: being described from the input/output interface of equipment distribution address according to the input/output interface information.
S39: it is controlled and is managed from the input and/or output interface of equipment to described according to the address.
Step S38 and step S39 are similar to the above embodiments, and which is not described herein again.
It is the process signal of the another embodiment of the input and output control method from equipment provided by the invention refering to Fig. 4, Fig. 4 Figure, this method comprises:
S401: one human-computer interaction interface of display.
Wherein, main control device may include a touch display screen, and the touch display screen is for showing human-computer interaction interface, people Machine interactive interface generally comprises instruction input area and status display area, instruction input area be used to receive the instruction of user's input with The work of digital control system is controlled, status display area is used to show the working condition of digital control system or works to obtain by digital control system Data result.
Optionally, human-computer interaction interface can be as shown in Figure 5, wherein document storage device type selection area is for receiving user Instruction selects corresponding document storage device type.Address field setting area is for receiving user instructions the address for selecting or inputting needs Section.Whether it is used to choose whether using BDIO equipment using BDIO equipment selection area, when selection is, just shows following BDIO Equipment selects area and the address BDIO distribution area, when selecting no, does not show BDIO equipment selection area and the address BDIO distribution area.Its In, human-computer interaction interface further includes area 52 being added from equipment and from facility information area 54.
S402: it shows that one adds area from equipment on the human-computer interaction interface, and is shown out of equipment addition area described Show that one adds button from equipment.
S403: user is received to the operational order from equipment addition button.
Optionally, step S403 can be specifically included:
ACK button is added from equipment adding select button and one from equipment from display one near equipment addition button, when User is received to after the operational order of equipment addition select button, selection is accordingly from equipment, when receiving user to from equipment After the operational order for adding ACK button, add selected from equipment.
Simultaneously refering to Fig. 6, button is added from equipment addition area 52 for showing from equipment, is specifically wrapped from equipment addition button It includes and adds select button 521 from equipment and add ACK button 522 from equipment.Optionally, user is being received to this from setting When the operational order of standby addition select button 521, there is drop-down menu for selection by the user and need it is to be added from equipment, such as from Equipment 1 (APLC-DI-24DC-16-B in Fig. 6);Receive user this from equipment addition select button 521 it is corresponding from When equipment adds the operation of ACK button 522, confirmation addition should be from equipment 1.Wherein, the slave equipment of diagram adds ACK button 522 can also use other symbols or text in other embodiments for "+" number.
Optionally, the type that the slave equipment of addition is shown on select button can be being added from equipment, such as will be above-mentioned " from equipment 1 " replaces with the type from equipment, so that user's selection needs the slave equipment of type.
S404: display one is described to show from facility information area from equipment from facility information area on human-computer interaction interface Information bar.
S405: will be shown to from the information of equipment it is described from facility information column, it is described from the information of equipment include: from equipment Serial number, from device type, the address of input/output interface.
S406: adding according to operational order from equipment, and described show from equipment is added area from equipment described.
S407: instruction addition is added from equipment according to from equipment.
S408: the input/output interface information of the slave equipment of connection is obtained.
S409: being described from the input/output interface of equipment distribution address according to the input/output interface information.
Simultaneously refering to Fig. 7, show from facility information area 54 from facility information column.It wherein, include from setting from the information of equipment Standby serial number, from device type, the address of input/output interface.
Wherein, it after above-mentioned steps S403, is directly shown described from the information of equipment from facility information area 54, After distributing address for it, also corresponding address is shown described from facility information area 54.
It should be understood that in the above-described embodiments, after selection confirmation, it can also first be that it distributes address, then will be from Equipment serial number, from device type, the address of input/output interface is display together described from facility information area 54.
Optionally, in a specific embodiment, the dragging instruction that user can also be received, according to user to from equipment column The dragging instruction of position is adjusted the display order of the slave facility information shown from equipment field, and according to adjusted Display order is to redistribute from the slave equipment in facility information area 54 from equipment serial number and address.
For example in conjunction with Fig. 7, after receiving " 02 " number instruction dragged upwards from equipment, by original " 02 " number Redistribute from equipment from equipment serial number: 01, address: X10, X11 are redistributed from equipment from equipment sequence for original " 01 " number Number: 02, address: X12, X13.
Optionally, in a specific embodiment, the slave equipment that can also be inputted according to user by human-computer interaction interface It deletes instruction and deletes the slave equipment added, and redistribute for the remaining slave equipment added from equipment serial number and ground Location.
For example in conjunction with Fig. 7, a delete button is being shown from equipment field corresponding to each out of facility information area 54 541, according to user to the operation of delete button delete corresponding to the delete button in slave equipment field added from setting It is standby.For example, receiving user when correspondence " 01 " number is from the operation of the delete button of equipment, delete should " 01 " number from equipment, And redistributed remaining from equipment from equipment serial number and address, for example, by original " 02 " number from equipment redistribute from Equipment serial number: 01, address: X10, X11, and so on.Wherein, the delete button of diagram is "-" number, in other embodiments, Other symbols can also be used.
Optionally, in another embodiment, further include reset button 542 out of facility information area 54, receiving user All slave equipment added are deleted after touching the reset indication of the reset button 542 generation.
Referring again to Fig. 5, optionally, a confirming button and a cancel button can also be shown in human-computer interaction interface, User is received in the operation of the cancel button, does not save the slave equipment of addition, and closes human-computer interaction interface;It is receiving User saves the slave equipment of addition in the operation of the confirming button, and closes human-computer interaction interface.
It optionally, in another embodiment, can also be defeated by the slave equipment serial number and address of the slave equipment of addition and distribution Out at text file.
It specifically, is each addition in text file according to the slave equipment serial number and address of the slave equipment of addition and distribution Slave equipment generate a structural data, structural data include from number of devices, from equipment serial number, from device type, address Type and address number.
S410: it is controlled and is managed from the input and/or output interface of equipment to described according to address.
This step S410 is similar to the above embodiments, and which is not described herein again.
Below by taking Modbus bus protocol as an example, above embodiment is illustrated, Modbus agreement is based on principal and subordinate The half duplex communication agreement of equipment mechanism, main control device carry out periodic communication from equipment using request/response mode, will be from setting The output data groups that the standby input data that need to be uploaded or main control device need to issue are bundled into bus protocol frame and are received and dispatched, and realize to work The scanning of industry field external input/output switching amount.
It installs from equipment, and realizes after the connection of equipment and main control device, BIO (block input need to be adjusted Output the band switch setting on) is from equipment serial number, from the quantity of equipment no more than requiring in Modbus bus protocol The upper limit, i.e., no more than 32 from equipment, from the input and output pin external sensor or switching value of equipment.
Next match in PDE (PLC Develop Environment, PLC program editing environment) to from equipment It sets, it is necessary first to include the input and output type from equipment, input and output pin from device type information from device type information Quantity.PDE is that newly-built slave equipment distributes X, Y address automatically according to these information, distributes address Shi Jike in newly-built ladder diagram When be initially configured from 1, and can be modified when modifying ladder diagram.
User adds BDI, BDO or the BDIO of other specifications, PDE in PDE and is arranged according to order of addition from equipment serial number (use Family need to guarantee the correct of in-site installation BDIO toggle switch), and X, Y address are distributed automatically, these addresses must be usable levels.
Computer readable storage medium provided by the invention, the computer readable storage medium is for storing computer journey Sequence, the computer program are executed by processor to realize the method provided in above-described embodiment.It should be understood that in the present embodiment In readable storage medium storing program for executing storage computer program, the method used that is performed is similar with method provided by the above embodiment, Its principle is identical with step, and which is not described herein again.
Wherein, the storage medium include: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), with Machine accesses various Jie that can store program code such as memory (RAM, Random Access Memory), magnetic or disk Matter.
It is the structural schematic diagram of one embodiment of main control device provided by the invention refering to Fig. 8, Fig. 8, which uses It is controlled in from the input and output of equipment, which includes memory 81, processor 82 and be stored in memory Computer program that is upper and can running on processor 81, computer program perform the steps of when being executed by processor 82
Obtain the input/output interface information of the slave equipment of connection;According to the input/output interface information be it is described from The input/output interface of equipment distributes address;It is controlled to described from the input and/or output interface of equipment according to address System and management.
Optionally, in another embodiment, it is also used to execute when the computer program is executed by processor 82: according to institute State the interface type of input/output interface described in input/output interface information acquisition;From the corresponding address of the interface type Address is distributed from the input/output interface of equipment in order to be described.
Optionally, in another embodiment, it is also used to execute when the computer program is executed by processor 82: to described Address carries out ladder diagram editor to control the logical relation of the input/output interface from equipment output and input;According to The address is to the reception instructed from the corresponding input/output interface of equipment and/or issues.
Optionally, in another embodiment, it is also used to execute when the computer program is executed by processor 82: receiving and use The slave equipment of family input adds instruction;Instruction addition is added from equipment from equipment according to described.
Optionally, in another embodiment, it is also used to execute when the computer program is executed by processor 82: obtaining institute State the type information from equipment;According to described from the type information of the equipment inquiry input/output interface information from equipment.
Optionally, in another embodiment, it is also used to execute when the computer program is executed by processor 82: obtain The slave number of devices of addition and the usage quantity of address;According to it is described from the input/output interface information of equipment calculate described in The number of addresses needed for equipment;Whether the judgement slave equipment added is less than the preset restriction threshold value from number of devices; And it ought add from number of devices less than the restriction threshold value from number of devices, and the number of addresses needed for equipment is less than ground It when the difference of the usage quantity of the restriction threshold value and address of location quantity, adds from equipment, and is the input from equipment/defeated Outgoing interface distributes address.
Optionally, as shown in figure 9, in another embodiment, which further includes display equipment 83, equipment is shown 83 for showing that human-computer interaction interface, the computer program are also used to execute when being executed by processor 82: in the man-machine friendship Display one adds area from equipment on mutual interface, and adds button from equipment in the display one out of equipment addition area;It receives and uses Family is to the operational order from equipment addition button;It is added according to the operational order and is shown from equipment, and by described from equipment Show and adds area from equipment described.
Optionally, in another embodiment, it is also used to execute when the computer program is executed by processor 82: described Select button and one, which is added, from equipment from display one near equipment addition button adds ACK button from equipment;As reception user couple It is described from equipment addition select button operational order after, select accordingly from equipment;Add to described from equipment when receiving user After the operational order for adding ACK button, add selected from equipment.
Optionally, in another embodiment, it is also used to execute when the computer program is executed by processor 82: described Display one is described to show from facility information area from facility information column from facility information area on human-computer interaction interface;It will be from equipment Information be shown to described from facility information column, include: from equipment serial number, from device type, input/output from the information of equipment The address of interface.
It should be understood that the embodiment of the working principle and implementation steps of the embodiment of above-mentioned main control device and above-mentioned offer Similar, which is not described herein again.
0, Figure 10 is the structural schematic diagram of one embodiment of digital control system provided by the invention, the digital control system 100 refering to fig. 1 Including main control device 101 and from equipment 102.
Wherein it is possible to understand, digital control system includes multiple input-output equipment, in practical applications, can will be any One input-output equipment is as main control device, and using other input-output equipment as from equipment.In another embodiment, also It can will show that equipment connection needs to add the input-output equipment as main control device, and in the programmed environment of equipment PLC Under, main website addition instruction is inputted by human-computer interaction interface, adding the equipment is main control device.
It should be understood that the embodiment of the working principle and implementation steps of the embodiment of above-mentioned digital control system and above-mentioned offer Similar, which is not described herein again.
It should be understood that in several embodiments provided by the present invention, it should be understood that disclosed method and Equipment may be implemented in other ways.For example, equipment embodiment described above is only schematical, for example, The division of the module or unit, only a kind of logical function partition, there may be another division manner in actual implementation, example As multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.Some or all of unit therein can be selected to realize present embodiment scheme according to the actual needs Purpose.
In addition, each functional unit in each embodiment of the present invention can integrate in one processing unit, it can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units.It is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit in above-mentioned other embodiments is realized in the form of SFU software functional unit and as independence Product when selling or using, can store in a computer readable storage medium.Based on this understanding, of the invention Technical solution substantially all or part of the part that contributes to existing technology or the technical solution can be in other words It is expressed in the form of software products, which is stored in a storage medium, including some instructions are used So that a computer equipment (can be personal computer, server or the network equipment etc.) or processor (processor) all or part of the steps of each embodiment the method for the present invention is executed.And storage medium packet above-mentioned It includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), the various media that can store program code such as magnetic or disk.
Mode the above is only the implementation of the present invention is not intended to limit the scope of the invention, all to utilize this Equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content, it is relevant to be applied directly or indirectly in other Technical field is included within the scope of the present invention.

Claims (20)

1. a kind of input and output control method from equipment, special for main control device in digital control system to the control from equipment Sign is, which comprises
Obtain the input/output interface information of the slave equipment of connection;
It is described from the input/output interface of equipment distribution address according to the input/output interface information;
It is controlled and is managed from the input and/or output interface of equipment to described according to the address.
2. according to the input/output interface information being described the method according to claim 1, wherein described It is specifically included from the input/output interface of equipment distribution address step:
According to the interface type of input/output interface described in the input/output interface information acquisition;
Address is distributed from the input/output interface of equipment to be described in order from the corresponding address of the interface type.
3. the method according to claim 1, wherein it is described according to the address to the input from equipment And/or output interface carries out control and management process, specifically includes:
Ladder diagram editor is carried out to the address to control outputting and inputting for the input/output interface from equipment Logical relation;
It to the reception instructed from the corresponding input/output interface of equipment and/or is issued according to the address.
4. the method according to claim 1, wherein the input/output interface of the slave equipment for obtaining connection It is further comprised the steps of: before information Step
The slave equipment for receiving user's input adds instruction;
It is added described in instruction addition from equipment from equipment according to described.
5. according to the method described in claim 4, it is characterized in that, the step of the slave equipment addition instruction for receiving user's input Before rapid, further comprise the steps of:
Obtain the type information from equipment;
According to described from the type information of the equipment inquiry input/output interface information from equipment.
6. according to the method described in claim 5, it is characterized in that, being added described in instruction addition according to from equipment described Before device step, further comprise the steps of:
Obtain the usage quantity of the slave number of devices and address that have added;
According to the number of addresses needed for described in the calculating of the input/output interface information of equipment from equipment;
Whether the judgement slave equipment added is less than the preset restriction threshold value from number of devices;
And when described add from number of devices is less than the restriction threshold value from number of devices, and it is described needed to the equipment When location quantity is less than the difference of the restrictions threshold value of the number of addresses and the usage quantity of the address, from setting described in addition It is standby, and address is distributed from the input/output interface of equipment to be described.
7. according to the method described in claim 4, it is characterized in that, the step of the slave equipment addition instruction for receiving user's input Suddenly, specifically includes the following steps:
Show a human-computer interaction interface;
Display one adds area from equipment on the human-computer interaction interface, and in the display one out of equipment addition area from equipment Add button;
User is received to the operational order from equipment addition button;
It is described from equipment according to operational order addition, and described show from equipment is added into area from equipment described.
8. referring to the method according to the description of claim 7 is characterized in that receiving user to the operation from equipment addition button It enables further comprising the steps of after step:
Select button and one, which is added, from equipment in the display one near equipment addition button adds ACK button from equipment;
After receiving user to the operational order for adding select button from equipment, select accordingly from equipment;
After receiving user to the operational order for adding ACK button from equipment, add selected from equipment.
9. according to the method described in claim 8, it is characterized in that, described when reception user presses to described from equipment addition confirmation After the operational order of button, add selected further comprising the steps of after device step:
Display one is described to show from facility information area from facility information from facility information area on the human-computer interaction interface Column;
By it is described be shown to from the information of equipment it is described from facility information column, it is described from the information of equipment include: from equipment serial number, From device type, the address of input/output interface.
10. a kind of main control device, for controlling from the input and output of equipment, which is characterized in that the main control device packet It includes: memory, processor and being stored in the computer program that can be run on the memory and on the processor, the meter Calculation machine program performs the steps of when being executed by the processor
Obtain the input/output interface information of the slave equipment of connection;
It is described from the input/output interface of equipment distribution address according to the input/output interface information;
It is controlled and is managed from the input and/or output interface of equipment to described according to the address.
11. main control device according to claim 1, which is characterized in that the computer program is executed by the processor When also perform the steps of
According to the interface type of input/output interface described in the input/output interface information acquisition;
Address is distributed from the input/output interface of equipment to be described in order from the corresponding address of the interface type.
12. main control device according to claim 1, which is characterized in that the computer program is executed by the processor When also perform the steps of
Ladder diagram editor is carried out to the address to control outputting and inputting for the input/output interface from equipment Logical relation;
It to the reception instructed from the corresponding input/output interface of equipment and/or is issued according to the address.
13. main control device according to claim 1, which is characterized in that the computer program is executed by the processor When also perform the steps of
The slave equipment for receiving user's input adds instruction;
It is added described in instruction addition from equipment from equipment according to described.
14. main control device according to claim 13, which is characterized in that the computer program is executed by the processor When also perform the steps of
Obtain the type information from equipment;
According to described from the type information of the equipment inquiry input/output interface information from equipment.
15. main control device according to claim 14, which is characterized in that the computer program is executed by the processor When also perform the steps of
Obtain the usage quantity of the slave number of devices and address that have added;
According to the number of addresses needed for described in the calculating of the input/output interface information of equipment from equipment;
Whether the judgement slave equipment added is less than the preset restriction threshold value from number of devices;
And when described add from number of devices is less than the restriction threshold value from number of devices, and it is described needed to the equipment When location quantity is less than the difference of the restrictions threshold value of the number of addresses and the usage quantity of the address, from setting described in addition It is standby, and address is distributed from the input/output interface of equipment to be described.
16. main control device according to claim 13, which is characterized in that the main control device further includes display device, is used In display human-computer interaction interface;
It is also performed the steps of when the computer program is executed by the processor
Display one adds area from equipment on the human-computer interaction interface, and in the display one out of equipment addition area from equipment Add button;
User is received to the operational order from equipment addition button;
It is described from equipment according to operational order addition, and described show from equipment is added into area from equipment described.
17. main control device according to claim 16, which is characterized in that the computer program is executed by the processor When also perform the steps of
Select button and one, which is added, from equipment in the display one near equipment addition button adds ACK button from equipment;
After receiving user to the operational order for adding select button from equipment, select accordingly from equipment;
After receiving user to the operational order for adding ACK button from equipment, add selected from equipment.
18. main control device according to claim 17, which is characterized in that the computer program is executed by the processor When also perform the steps of
Display one is described to show from facility information area from facility information from facility information area on the human-computer interaction interface Column;
By it is described be shown to from the information of equipment it is described from facility information column, it is described from the information of equipment include: from equipment serial number, From device type, the address of input/output interface.
19. a kind of digital control system, which is characterized in that the digital control system includes as described in any one of claim 10 to 18 It main control device and is connect with the main control device by bus multiple from equipment.
20. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program is realized when the computer program is executed by processor as claimed in any one of claims 1-9 wherein from the input of equipment The step of output control method.
CN201780037079.7A 2017-07-26 2017-07-26 Input and output control method of slave equipment, master control equipment and numerical control system Active CN109416530B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/094469 WO2019019051A1 (en) 2017-07-26 2017-07-26 Input and output control method for slave device, master control device and numerical control system

Publications (2)

Publication Number Publication Date
CN109416530A true CN109416530A (en) 2019-03-01
CN109416530B CN109416530B (en) 2021-07-09

Family

ID=65039215

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780037079.7A Active CN109416530B (en) 2017-07-26 2017-07-26 Input and output control method of slave equipment, master control equipment and numerical control system

Country Status (2)

Country Link
CN (1) CN109416530B (en)
WO (1) WO2019019051A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112415930A (en) * 2020-11-20 2021-02-26 苏伊士水务工程有限责任公司 Interface list, instance program intelligent generation method and automatic integrated intelligent system
CN115759444A (en) * 2022-11-24 2023-03-07 北京国电通网络技术有限公司 Power equipment distribution method and device, electronic equipment and computer readable medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008108205A (en) * 2006-10-27 2008-05-08 Brother Ind Ltd Numerical control device
CN102170401A (en) * 2011-05-27 2011-08-31 杭州华三通信技术有限公司 Method and device of data processing
CN105242601A (en) * 2015-10-09 2016-01-13 贵州智达科技有限责任公司 Multi-compatibility bidirectional communication protocol of serial port of electric warming oven
CN106060182A (en) * 2016-05-03 2016-10-26 杭州华三通信技术有限公司 Address allocation method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005277655A (en) * 2004-03-24 2005-10-06 Sony Corp Input/output terminal, master apparatus, slave apparatus, information processing system and method, and program for input/output terminal, master apparatus and slave apparatus
WO2008120120A2 (en) * 2007-03-29 2008-10-09 Philips Intellectual Property & Standards Gmbh Networked control system using logical addresses

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008108205A (en) * 2006-10-27 2008-05-08 Brother Ind Ltd Numerical control device
CN102170401A (en) * 2011-05-27 2011-08-31 杭州华三通信技术有限公司 Method and device of data processing
CN105242601A (en) * 2015-10-09 2016-01-13 贵州智达科技有限责任公司 Multi-compatibility bidirectional communication protocol of serial port of electric warming oven
CN106060182A (en) * 2016-05-03 2016-10-26 杭州华三通信技术有限公司 Address allocation method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
豆丁网: "一种基于PLC与组态王的交通灯控制系统设计", 《HTTPS://WWW.DOCIN.COM/TOUCH/DETAIL.DO?ID=1224387782》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112415930A (en) * 2020-11-20 2021-02-26 苏伊士水务工程有限责任公司 Interface list, instance program intelligent generation method and automatic integrated intelligent system
CN115759444A (en) * 2022-11-24 2023-03-07 北京国电通网络技术有限公司 Power equipment distribution method and device, electronic equipment and computer readable medium
CN115759444B (en) * 2022-11-24 2023-10-20 北京国电通网络技术有限公司 Power equipment distribution method, device, electronic equipment and computer readable medium

Also Published As

Publication number Publication date
WO2019019051A1 (en) 2019-01-31
CN109416530B (en) 2021-07-09

Similar Documents

Publication Publication Date Title
US20180217581A1 (en) Automatic Distribution of Device Parameters for Commissioning Portions of a Disconnected Process Control Loop
CN104076763A (en) State machine configurator
CN107861716B (en) Software-defined control system and control method
CN104503896A (en) Systems And Methods For Batch Device Commissioning And Decommissioning
CN105094008B (en) Method and apparatus for configuring a process control system based on a common process system library
CN102246107B (en) Providing a proxy step in a model of an automation system
US8640120B2 (en) Approach to automatically encode application enumeration values to enable reuse of applications across various controllers
CN104950741A (en) Multiple controllers configuration management interface for system connectivity
CN104750063A (en) A system for configuring an industrial safety relay and an industrial safety system configuration method
DE102019126319A1 (en) INTELLIGENT FUNCTIONALITY FOR DISCRETE FIELD DEVICES AND SIGNALS
CN102890453A (en) Systems and methods for function block instantiation
CN104749992A (en) Industrial safety relay configuration method and safety relay program configuration method
CN102809948A (en) System and method for block instantiation
US9176734B2 (en) Ladder program creation apparatus
CN109416530A (en) A kind of input and output control method, main control device and digital control system from equipment
CN107092206B (en) Input/output (I/O) binding with automatic International Electrotechnical Commission (IEC) address generation
CN103792857A (en) Scalable automation system
CA2864056A1 (en) Customer-specific configuration and parameterisation of level measurement devices during the ordering process
US8160843B2 (en) Device and method for planning a production unit
CN107407923A (en) PLC control datas generating means, PLC control datas generation method and PLC control datas generation program
CN105511442A (en) Man-machine interaction system and method, and fire fighting truck
CN105045635A (en) Configuration table file generation method
CN203773317U (en) Distributed control system
CN109765850A (en) Control system
CN104503360B (en) The system and method for Digital Control scenic component operation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518063 23 Floor (Room 2303-2306) of Desai Science and Technology Building, Yuehai Street High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen AANDE Intelligent Technology Research Institute Co., Ltd.

Address before: 518104 Shajing Industrial Co., Ltd. No. 3 Industrial Zone, Hexiang Road, Shajing Street, Baoan District, Shenzhen City, Guangdong Province

Applicant before: Shenzhen AANDE Intelligent Technology Research Institute Co., Ltd.

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant