Movatterモバイル変換


[0]ホーム

URL:


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
CN113485182ACN202110734965.3ACN202110734965ACN113485182ACN 113485182 ACN113485182 ACN 113485182ACN 202110734965 ACN202110734965 ACN 202110734965ACN 113485182 ACN113485182 ACN 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 MCCfiledCriticalHuatian Engineering and Technology Corp MCC
Priority to CN202110734965.3ApriorityCriticalpatent/CN113485182A/en
Publication of CN113485182ApublicationCriticalpatent/CN113485182A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

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)

CN202110734965.3A2021-06-302021-06-30Method for automatically generating material yard belt flow control programPendingCN113485182A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110734965.3ACN113485182A (en)2021-06-302021-06-30Method for automatically generating material yard belt flow control program

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110734965.3ACN113485182A (en)2021-06-302021-06-30Method for automatically generating material yard belt flow control program

Publications (1)

Publication NumberPublication Date
CN113485182Atrue CN113485182A (en)2021-10-08

Family

ID=77936957

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110734965.3APendingCN113485182A (en)2021-06-302021-06-30Method for automatically generating material yard belt flow control program

Country Status (1)

CountryLink
CN (1)CN113485182A (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US5640576A (en)*1992-10-021997-06-17Fujitsu LimitedSystem for generating a program using the language of individuals
US20010044811A1 (en)*2000-03-092001-11-22Electronic Data Systems CorporationMethod and system for reporting XML data based on precomputed context and a document object model
US20020046397A1 (en)*2000-08-072002-04-18Regina SchmittMethod for debugging flowchart programs for industrial controllers
CN101488012A (en)*2009-02-132009-07-22国网电力科学研究院Method for implementing sequential control by flow diagram
CN101872184A (en)*2010-06-042010-10-27南大傲拓科技江苏有限公司Programming and control method of sequence control diagram of programmable controller
CN106951305A (en)*2017-03-242017-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-042018-02-16西门子公司Utilize the method and system of connectivity model generation PLC codes
CN108681445A (en)*2018-04-162018-10-19华中科技大学A kind of PLC program design method based on Timed Automata
CN110059176A (en)*2019-02-282019-07-26南京大学A kind of rule-based generic text information extracts and information generating method
CN110362032A (en)*2019-08-072019-10-22上海软控自动化工程有限公司A method of realizing that functional sequence programs PLC in order
CN110825384A (en)*2019-10-282020-02-21国电南瑞科技股份有限公司 A LLVM-based ST language compilation method, compilation system and compiler
CN111747140A (en)*2020-07-082020-10-09淮北矿业股份有限公司Automatic fine charging system and charging method
CN112654940A (en)*2018-10-042021-04-13欧姆龙株式会社Program generation device, control method for program generation device, control program, and recording medium
CN112765209A (en)*2021-02-072021-05-07浪潮云信息技术股份公司SQL statement syntax migration method and system between databases

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US5640576A (en)*1992-10-021997-06-17Fujitsu LimitedSystem for generating a program using the language of individuals
US20010044811A1 (en)*2000-03-092001-11-22Electronic Data Systems CorporationMethod and system for reporting XML data based on precomputed context and a document object model
US20020046397A1 (en)*2000-08-072002-04-18Regina SchmittMethod for debugging flowchart programs for industrial controllers
CN101488012A (en)*2009-02-132009-07-22国网电力科学研究院Method for implementing sequential control by flow diagram
CN101872184A (en)*2010-06-042010-10-27南大傲拓科技江苏有限公司Programming and control method of sequence control diagram of programmable controller
CN107710149A (en)*2015-06-042018-02-16西门子公司Utilize the method and system of connectivity model generation PLC codes
CN106951305A (en)*2017-03-242017-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-162018-10-19华中科技大学A kind of PLC program design method based on Timed Automata
CN112654940A (en)*2018-10-042021-04-13欧姆龙株式会社Program generation device, control method for program generation device, control program, and recording medium
CN110059176A (en)*2019-02-282019-07-26南京大学A kind of rule-based generic text information extracts and information generating method
CN110362032A (en)*2019-08-072019-10-22上海软控自动化工程有限公司A method of realizing that functional sequence programs PLC in order
CN110825384A (en)*2019-10-282020-02-21国电南瑞科技股份有限公司 A LLVM-based ST language compilation method, compilation system and compiler
CN111747140A (en)*2020-07-082020-10-09淮北矿业股份有限公司Automatic fine charging system and charging method
CN112765209A (en)*2021-02-072021-05-07浪潮云信息技术股份公司SQL statement syntax migration method and system between databases

Similar Documents

PublicationPublication DateTitle
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
US8290990B2 (en)System and method for managing and exchanging data of a technical project, technical installation and individual installation components
US20180032055A1 (en)Translation module, processing module and control system
RobertsAn introduction to the OLYMPUS system
CN109213061A (en)Program making device
US6883161B1 (en)Universal graph compilation tool
CN116540986A (en)Method for constructing text programming language code editor based on Web end
CN111212103A (en)SCA software radio station interface simulation system and method
CN113485182A (en)Method for automatically generating material yard belt flow control program
EP0331478A2 (en)A manufacturing interface system
Guo et al.A universal NC program processor design and prototype implementation for CNC systems
CN113407457A (en)Multi-data type parameterization definition and program reference processing method and system
CN102508691B (en)Graphic language program ordered decomposition method and ordered decomposer
KR20050087713A (en)Graphical programing device and programmable indicator
US8635597B2 (en)Method for determining the processing order of modules in a function plan and electronic data processing system for carrying out the method
US20060117043A1 (en)Engineering system with automatic generation of entity templates
EP0638862B1 (en)Method and system for processing language
DE3321131A1 (en) SELF-LEARNING CALCULATOR
KR100423742B1 (en)Exclusive control system by sequential function chart
Harrell et al.Simulation modeling and optimization using ProModel Technology
JP3240647B2 (en) Computer language structured processing
JP2515719B2 (en) Equipment group control method
KR100282094B1 (en) How to Manage Control Logic in Control Logic Builder

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
CB03Change of inventor or designer information
CB03Change 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

RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20211008


[8]ページ先頭

©2009-2025 Movatter.jp