CN113485182A - Method for automatically generating material yard belt flow control program - Google Patents

Method for automatically generating material yard belt flow control program Download PDF

Info

Publication number
CN113485182A
CN113485182A CN202110734965.3A CN202110734965A CN113485182A CN 113485182 A CN113485182 A CN 113485182A CN 202110734965 A CN202110734965 A CN 202110734965A CN 113485182 A CN113485182 A CN 113485182A
Authority
CN
China
Prior art keywords
engine
equipment
control program
flow control
belt
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.)
Pending
Application number
CN202110734965.3A
Other languages
Chinese (zh)
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.)
Huatian Engineering and Technology Corp MCC
Original Assignee
Huatian Engineering and Technology Corp MCC
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 Huatian Engineering and Technology Corp MCC filed Critical Huatian Engineering and Technology Corp MCC
Priority to CN202110734965.3A priority Critical patent/CN113485182A/en
Publication of CN113485182A publication Critical patent/CN113485182A/en
Pending legal-status Critical Current

Links

Images

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/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • 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/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Abstract

The invention discloses a method for automatically generating a material yard belt flow control program. The method comprises the following steps: 1) writing a writing engine according to the generated ST statement; 2) the engine reads each equipment definition rule, the equipment relation definition rule and the process definition rule in sequence to obtain the relation between the turning plate and the belt conveyor; 3) the engine processes according to predetermined rules to generate ST text. In the invention, the engine generates the ST sentences through the writing rules and meanings of the appointed codes, so that the ST sentences can be continuously produced only by developing an engine program and adjusting the rules later, and the method has the advantages of convenient modification, simple initialization, time saving and labor saving.

Description

Method for automatically generating material yard belt flow control program
Technical Field
The invention relates to the field of PLC control. The invention provides a method for automatically generating a material yard belt flow control program. The method realizes the automatic programming of the PLC program of the flow of the material field belt conveyor.
Background
There are five standardized programming languages for PLC: three graphic languages of a Sequential Function Chart (SFC), a Ladder Diagram (LD) and a function module diagram (FBD), and two text languages of a statement list (IL) and a Structure Text (ST).
The structured text programming language adopts a description mode of a computer to describe various operational relations among various variables in the system, and the required functions or operations are completed. Most PLC manufacturers use structured text programming languages similar to high-level languages such as BASIC, PASCAL, or C, but for convenience of application, the expression method of sentences and the types of sentences are simplified. The characteristics of the structured text programming language: the programming is carried out by adopting a high-level language, and more complex control operation can be completed; requires a certain knowledge and programming skill of a high-level computer language and has higher requirements for engineering designers. The intuitiveness and operability are poor.
In a stock ground belt flow control system, a large number of belt conveyor devices exist, and front-back sequential management exists among the belt conveyor devices; still have between the belt feeder equipment and turn over the board route, beat different positions through turning over the board, select different belt feeders, and then walk different belt flow path. This requires the control system to define a large number of variables, each of which requires setting of initialization relationships, and a change in one device during debugging often results in a change in definition between the variables, which can be modified in as many as tens of thousands of ST statements without error, with a tremendous amount of effort and inefficiency.
Disclosure of Invention
In order to overcome the defects, the invention designs a method for automatically generating a material yard belt flow control program.
In order to achieve the above object, the method for automatically generating a stock ground belt flow control program of the present invention comprises:
1) writing a writing engine according to the ST statements required to be generated;
2) the engine reads each equipment definition rule, the equipment relation definition rule and the process definition rule in sequence to obtain the relation between the turning plate and the belt conveyor;
3) the engine processes according to predetermined rules to generate ST text.
Wherein the device definition rule comprises a device name and a unique serial number of the device,
wherein the device relation definition rule describes the dynamic relation of the turning plate corresponding to the belt conveyor,
the process definition rule is used for stipulating the belt conveyor and the plate turnover equipment which pass through a certain process from beginning to end and the sequence of the belt conveyor and the plate turnover equipment.
Wherein, the engine is written by java language.
In the invention, the engine generates the ST sentences through the writing rules and meanings of the appointed codes, so that the ST sentences can be continuously produced only by developing an engine program and adjusting the rules later, and the method has the advantages of convenient modification, simple initialization, time saving and labor saving.
Drawings
FIG. 1 is a system configuration diagram
FIG. 2 is a dynamic relationship diagram of a turning plate corresponding to a belt conveyor
FIG. 3 is a flow chart
Detailed Description
The ST statement in the structured text programming language is a language based on text, and the ST statement text is automatically generated through another high-level language such as java according to a predefined rule and then is imported into a PLC system, so that the PLC programming based on the ST statement is automatically completed. The ST sentences are generated through the rules, so that the ST sentences can be continuously produced only by developing a java program and adjusting the rules later, the modification is convenient, the initialization is simple, the time and the labor are saved, and tens of thousands of sentences which are manually input in the past can be generated within 1 second.
As shown in fig. 1, the present invention mainly comprises the following components:
an ST statement automatic generation engine: modules written in a high-level language that automatically generate ST statements according to rules. The high-level language is not limited to JAVA or the like. The engine can have multiple functions, such as an initialization process, an initialization device, sequential assignment of the flaps, and the like.
2. Device definition rules: the device definition rule comprises a device name and a unique serial number of the device, and the device and the serial number of the device are separated by a blank space. Such as: 201 belt conveyor 464; z1 belt conveyor 421; z2 belt conveyor 460; 201 turning plate 463
3. Device relationship definition rules: mainly described is the dynamic relation of the turning plate corresponding to the belt conveyor, the turning plate is like a dial switch, like figure 2, the B31 turning plate corresponds to two belt conveyors, if the turning plate is dialed to the upper part, the turning plate is 1 in the program and corresponds to the Z1 belt conveyor (421); if the user dials down, the program is 2, and the Z2 corresponds to the belt conveyor (460). A device relationship definition rule specifies such a set of relationship data.
4. The flow defines the rule: the device is mainly used for stipulating the belt conveyor and the plate turnover equipment which pass through a certain process from beginning to end and the sequence of the belt conveyor and the plate turnover equipment. As shown in fig. 3, one flow rule is composed of a flow number, a start point, an end point, and a device through which the flow passes. Wherein the device contains the device name and the device serial number.
ST sentence text: and generating an ST statement text which can directly make the PLC run. As shown below, the specific format is different for each item and PLC, and is defined by each item.
The following example shows initialization of device number 464 (201 belt conveyor) in the middle of flow number 221. "MX _ Flow". Flow [221]. Flow [464 ═ 1;
the following example shows that when 201 flap 463 is in the 1 state, Z1 belt 421 is selected; when 201 flap 463 is in state 2, Z2 belt conveyor 460 is selected.
MX_Mar_K.Device_Infeed[421]:=(MX_POS_K.Device_Pos[463]=1)AND MX_Mar_K.Device_Outfeed[463];
MX_Mar_K.Device_Infeed[460]:=(MX_POS_K.Device_Pos[463]=2)AND MX_Mar_K.Device_Outfeed[463];
As long as the writing rule and meaning of the code are agreed, the engine A can automatically generate the ST statement according to the equipment definition rule B, the equipment relation definition rule C and the process definition rule D.
Example 1
One main flow initialization ST statement is generated as follows:
a) writing engine A, which needs to be written according to the generated ST statements. After the writing is finished, the writing can be circularly used for many times. The present embodiment of engine a is written in java language, but is not limited to this.
b) The default definition in the process initialization PLC is as follows: "MX _ Flow". Flow [221]. Flow [464 ═ 1; the numbers in the square broad are automatically generated according to rules, and other characters are died by default. Each initialization statement is the same. The process initialization means that all processes and devices in each process are traversed, and each device in each process number is assigned with 1.
c) The engine a reads the flow definition rule D, removes the starting point and the ending point, and reads each device, since the device and the device number are separated by a space, the device number is easily read, and the initial assignment is completed by adding the previous flow number.
d) And then all the devices in the process are circulated to carry out initialization assignment. And finally, traversing and completing all the processes and completing the initialization assignment of all the process equipment.
Example 2
A main flipper initialization ST statement is generated as follows
a) Writing engine A, which needs to be written according to the generated ST statements. After the writing is finished, the writing can be circularly used for many times. The present embodiment of engine a is written in java language, but is not limited to this.
b) Reading an equipment relation definition rule C, and obtaining that the 201 turning plate has two corresponding belt conveyors, namely a Z1 belt conveyor and a Z2 belt conveyor.
c) Reading the equipment definition rule B to obtain respective equipment serial numbers of the 201 turning plate, the Z1 belt conveyor and the Z2 belt conveyor
d) And defining variable and non-variable parts in the ST text. Where below in brackets are variable and others are invariable parts.
MX_Mar_K.Device_Infeed[421]:=(MX_POS_K.Device_Pos[463]=1)AND MX_Mar_K.Device_Outfeed[463];
MX_Mar_K.Device_Infeed[460]:=(MX_POS_K.Device_Pos[463]=2)AND MX_Mar_K.Device_Outfeed[463];
e) The ST text is generated in accordance with the schedule processing.
f) And sequentially inquiring the device relation definition rules, and circularly generating the ST text. And finally, guiding the data into the PLC.
This patent has been given above 2 examples, but it should be understood by those skilled in the art that it is not limited to this example.

Claims (5)

1. A method for automatically generating a stock yard belt flow control program is characterized by comprising the following steps:
1) writing a writing engine according to the ST statements required to be generated;
2) the engine reads each equipment definition rule, the equipment relation definition rule and the process definition rule in sequence to obtain the relation between the turning plate and the belt conveyor;
3) the engine processes according to predetermined rules to generate ST text.
2. The method for automatically generating the stock ground belt flow control program according to claim 1, wherein the equipment definition rule comprises an equipment name and a unique serial number of the equipment,
3. the method for automatically generating the material yard belt flow control program according to claim 1, wherein the equipment relationship definition rule describes a dynamic relationship of the turning plate corresponding to the belt conveyor,
4. the method of automatically generating a flow control program for a material yard belt as claimed in claim 1, wherein said flow defining rules are used to define the belt conveyors and flap devices through which a certain flow passes from beginning to end and their sequence.
5. The method for automatically generating a stock ground belt flow control program as claimed in claim 1, wherein the engine is written in java language.
CN202110734965.3A 2021-06-30 2021-06-30 Method for automatically generating material yard belt flow control program Pending CN113485182A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110734965.3A CN113485182A (en) 2021-06-30 2021-06-30 Method for automatically generating material yard belt flow control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110734965.3A CN113485182A (en) 2021-06-30 2021-06-30 Method for automatically generating material yard belt flow control program

Publications (1)

Publication Number Publication Date
CN113485182A true CN113485182A (en) 2021-10-08

Family

ID=77936957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110734965.3A Pending CN113485182A (en) 2021-06-30 2021-06-30 Method for automatically generating material yard belt flow control program

Country Status (1)

Country Link
CN (1) CN113485182A (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5640576A (en) * 1992-10-02 1997-06-17 Fujitsu Limited System for generating a program using the language of individuals
US20010044811A1 (en) * 2000-03-09 2001-11-22 Electronic Data Systems Corporation Method and system for reporting XML data based on precomputed context and a document object model
US20020046397A1 (en) * 2000-08-07 2002-04-18 Regina Schmitt Method for debugging flowchart programs for industrial controllers
CN101488012A (en) * 2009-02-13 2009-07-22 国网电力科学研究院 Method for implementing sequential control by flow diagram
CN101872184A (en) * 2010-06-04 2010-10-27 南大傲拓科技江苏有限公司 Programming and control method of sequence control diagram of programmable controller
CN106951305A (en) * 2017-03-24 2017-07-14 南京大学 It is a kind of based on method of the model conversion by QVT R language generation midCore scripts
CN107710149A (en) * 2015-06-04 2018-02-16 西门子公司 Utilize the method and system of connectivity model generation PLC codes
CN108681445A (en) * 2018-04-16 2018-10-19 华中科技大学 A kind of PLC program design method based on Timed Automata
CN110059176A (en) * 2019-02-28 2019-07-26 南京大学 A kind of rule-based generic text information extracts and information generating method
CN110362032A (en) * 2019-08-07 2019-10-22 上海软控自动化工程有限公司 A method of realizing that functional sequence programs PLC in order
CN110825384A (en) * 2019-10-28 2020-02-21 国电南瑞科技股份有限公司 ST language compiling method, system and compiler based on LLVM
CN111747140A (en) * 2020-07-08 2020-10-09 淮北矿业股份有限公司 Automatic fine charging system and charging method
CN112654940A (en) * 2018-10-04 2021-04-13 欧姆龙株式会社 Program generation device, control method for program generation device, control program, and recording medium
CN112765209A (en) * 2021-02-07 2021-05-07 浪潮云信息技术股份公司 SQL statement syntax migration method and system between databases

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5640576A (en) * 1992-10-02 1997-06-17 Fujitsu Limited System for generating a program using the language of individuals
US20010044811A1 (en) * 2000-03-09 2001-11-22 Electronic Data Systems Corporation Method and system for reporting XML data based on precomputed context and a document object model
US20020046397A1 (en) * 2000-08-07 2002-04-18 Regina Schmitt Method for debugging flowchart programs for industrial controllers
CN101488012A (en) * 2009-02-13 2009-07-22 国网电力科学研究院 Method for implementing sequential control by flow diagram
CN101872184A (en) * 2010-06-04 2010-10-27 南大傲拓科技江苏有限公司 Programming and control method of sequence control diagram of programmable controller
CN107710149A (en) * 2015-06-04 2018-02-16 西门子公司 Utilize the method and system of connectivity model generation PLC codes
CN106951305A (en) * 2017-03-24 2017-07-14 南京大学 It is a kind of based on method of the model conversion by QVT R language generation midCore scripts
CN108681445A (en) * 2018-04-16 2018-10-19 华中科技大学 A kind of PLC program design method based on Timed Automata
CN112654940A (en) * 2018-10-04 2021-04-13 欧姆龙株式会社 Program generation device, control method for program generation device, control program, and recording medium
CN110059176A (en) * 2019-02-28 2019-07-26 南京大学 A kind of rule-based generic text information extracts and information generating method
CN110362032A (en) * 2019-08-07 2019-10-22 上海软控自动化工程有限公司 A method of realizing that functional sequence programs PLC in order
CN110825384A (en) * 2019-10-28 2020-02-21 国电南瑞科技股份有限公司 ST language compiling method, system and compiler based on LLVM
CN111747140A (en) * 2020-07-08 2020-10-09 淮北矿业股份有限公司 Automatic fine charging system and charging method
CN112765209A (en) * 2021-02-07 2021-05-07 浪潮云信息技术股份公司 SQL statement syntax migration method and system between databases

Similar Documents

Publication Publication Date Title
US4730315A (en) Diagrammatic method of testing program
CN107710086B (en) Translation module, processing module and control system
US7603183B1 (en) Editor device and recorded medium on which editor program is recorded
EP0177164B1 (en) Method and apparatus for producing numerical control programmes
US5367468A (en) Design aid method and design aid apparatus for integrated circuits
CN109143952B (en) Programmable logic controller programming language conversion system
US20070005805A1 (en) System and method for managing and exchanging the data of a technical project, technical installation and individual installation components
CN109976760A (en) A kind of the cross compile method and cross-compiler of graphic language
Roberts An introduction to the OLYMPUS system
CN104281096B (en) The building method of NC code compiler
CN106909123B (en) Control programming auxiliary assembly
CN109032056B (en) Programmable logic controller programming language conversion method
US6883161B1 (en) Universal graph compilation tool
CN116540986A (en) Method for constructing text programming language code editor based on Web end
CN110488738B (en) Code generation method and device
CN111212103A (en) SCA software radio station interface simulation system and method
CN113485182A (en) Method for automatically generating material yard belt flow control program
CN108121285A (en) Application software collaboration Compilation Method and device based on continuous function figure
EP0331478A2 (en) A manufacturing interface system
Guo et al. A universal NC program processor design and prototype implementation for CNC systems
CN102508691B (en) Graphic language program ordered decomposition method and ordered decomposer
CN103186365A (en) Method and system for generating control instruction according to change of font outline
US20090216343A1 (en) Method for Determining the Processing Order of Modules In a Function Plan and Electronic Data Processing System for Carrying Out the Method
EP0638862B1 (en) Method and system for processing language
DE3321131A1 (en) SELF-LEARNING CALCULATOR

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Zhou Yushen

Inventor after: Zhang Xiang

Inventor after: Zhao Xu

Inventor after: Yang Xuan

Inventor after: Kang Wangxing

Inventor after: Ma Yinchen

Inventor after: Wu Zhonghua

Inventor after: Qian Xiaocong

Inventor before: Zhou Yushen

Inventor before: Zhao Xu

Inventor before: Yang Xuan

Inventor before: Kang Wangxing

Inventor before: Ma Yinchen

Inventor before: Wu Zhonghua

Inventor before: Qian Xiaocong