Movatterモバイル変換


[0]ホーム

URL:


CN108829440B - Method and system for converting logic configuration array into logic execution command - Google Patents

Method and system for converting logic configuration array into logic execution command
Download PDF

Info

Publication number
CN108829440B
CN108829440BCN201810552166.2ACN201810552166ACN108829440BCN 108829440 BCN108829440 BCN 108829440BCN 201810552166 ACN201810552166 ACN 201810552166ACN 108829440 BCN108829440 BCN 108829440B
Authority
CN
China
Prior art keywords
array
function block
relation
task
sequence
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.)
Active
Application number
CN201810552166.2A
Other languages
Chinese (zh)
Other versions
CN108829440A (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.)
Fuzhou Diting Technology Co ltd
Original Assignee
Fuzhou Diting Technology 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 Fuzhou Diting Technology Co ltdfiledCriticalFuzhou Diting Technology Co ltd
Priority to CN201810552166.2ApriorityCriticalpatent/CN108829440B/en
Publication of CN108829440ApublicationCriticalpatent/CN108829440A/en
Application grantedgrantedCritical
Publication of CN108829440BpublicationCriticalpatent/CN108829440B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The invention provides a method and a system for converting a logic configuration array into a logic execution command, which are used for creating an array, wherein the array comprises a function block relation array for storing input and output relation values of each function block, a program page calculation sequence array for storing a table address of each function block relation array and a table address for storing the calculation sequence array of each program page; storing the configured logic relationship and the specific input/output value in a corresponding array; sequentially scanning the array, and sequentially executing the contents of all the functional blocks according to a specific algorithm pre-written by each functional block, so as to realize logic operation, wherein the scanning sequence is as follows: task page calculation order array→program page calculation order array→function block relation array. The invention expresses the complex logic relation among the functional blocks through the array, analyzes the arrays by scanning the arrays in sequence, and executes the content of the functional blocks, thereby realizing logic operation, being simple and efficient and being applicable to any hardware controller.

Description

Method and system for converting logic configuration array into logic execution command
Technical Field
The present invention relates to the field of industrial control automation, and in particular, to a method for converting a logic configuration array into a logic execution command.
Background
Along with the continuous improvement of the industrial automation degree, the application of PLC/DCS/IPC/ARM and the like is more and more extensive, but the technical requirements on the PLC/DCS/IPC/ARM and the like are also higher and higher. In the process of using the PLC/DCS/IPC/ARM and the like, engineers build the logic relationship by applying the circuit principle thinking, then the logic relationship is compiled into an execution statement of a computer by programming software and is downloaded to the PLC/DCS/IPC/ARM and the like, and the PLC/DCS/IPC/ARM and the like execute the downloaded command so as to achieve the logic relationship effect expected by the engineers.
Because different controller manufacturers use programming software of their own, and because of the factors of software and hardware design architecture, different execution sentences are presented for the same logic relationship, so that users need to realize the same logic relationship by using different execution sentences, and the logic universality is greatly reduced.
Disclosure of Invention
The invention aims to provide a method and a system for converting a logic configuration array into a logic execution command, wherein complex logic relations among functional blocks are represented by the array, data in the array are analyzed by sequentially scanning the array, and the content of the functional blocks is executed, so that logic operation is realized, the working complexity of engineers is greatly reduced, the efficiency is improved, and the method and the system are suitable for any hardware controller.
The method is realized as follows: a method of converting a logical configuration array into a logical execution command, comprising:
step S1, creating an array comprising a function block relation array, a program page calculation sequence array and a task page calculation sequence array, wherein:
the function block relation array stores the input-output relation value of each function block;
the program page calculation sequence array stores the table address of the function block relation array;
the task page calculation sequence array stores the table address of the program page calculation sequence array;
s2, storing the configured logic relationship and the specific input/output value in a corresponding array;
step S3, scanning the array in sequence, and sequentially executing the content of the functional blocks according to a specific algorithm pre-written by each functional block, so that logic operation is realized, and the scanning sequence is as follows: task page calculation order array→program page calculation order array→function block relation array.
Further, when the task page calculation sequence array is scanned, jumping into the corresponding program page calculation sequence array according to the table address of the stored program page calculation sequence array to continue scanning; when the program page calculation sequence array is scanned, jumping into the corresponding function block relation array according to the stored table address of the function block relation array to continue scanning; when the function block relation array is scanned, according to the input-output relation value of each function block, the function block algorithm is called to calculate through the input pin information of the function block, and then the calculation result is processed to the output pin of the function block.
Further, the array may further include a main task computing order array, where the main task computing order array stores a table address of each task page computing order array; the scan order is: a master task calculation sequence array, a task page calculation sequence array, a program page calculation sequence array and a function block relation array; when the main task computing sequence array is scanned, jumping into the corresponding task page computing sequence array according to the stored table address of the task page computing sequence array to continue scanning.
The system of the invention is realized as follows: a system for converting a logical configuration array into a logical execution command, comprising:
the creation array module is used for creating an array, and comprises a function block relation array, a program page calculation sequence array and a task page calculation sequence array, wherein:
the function block relation array stores the input-output relation value of each function block;
the program page calculation sequence array stores the table address of the function block relation array;
the task page calculation sequence array stores the table address of the program page calculation sequence array;
the configuration module is used for configuring the logic relation of each functional block and setting specific input and output values of each functional block, and simultaneously storing the configured logic relation and the set input and output values in corresponding arrays;
the scanning execution module is used for sequentially scanning the array, and sequentially executing the content of the functional blocks according to a specific algorithm pre-written by each functional block, so that the logic operation is realized, and the scanning sequence is as follows: task page calculation order array→program page calculation order array→function block relation array.
Further, when the scanning execution module scans the task page calculation sequence array, the scanning execution module jumps into the corresponding program page calculation sequence array according to the table address of the stored program page calculation sequence array to continue scanning; when the program page calculation sequence array is scanned, jumping into the corresponding function block relation array according to the stored table address of the function block relation array to continue scanning; when the function block relation array is scanned, the input and output relation value of each function block is stored, the function block algorithm is called to calculate through the input pin information of the function block, and then the calculation result is processed to the output pin of the function block.
Further, the array may further include a main task computing order array, where the main task computing order array stores a table address of each task page computing order array; the scan order is: a master task calculation sequence array, a task page calculation sequence array, a program page calculation sequence array and a function block relation array; when the main task computing sequence array is scanned, jumping into the corresponding task page computing sequence array according to the stored table address of the task page computing sequence array to continue scanning.
The invention has the following advantages: the invention expresses the complex logic relation among all the functional blocks through the array, analyzes the data in all the arrays by scanning the arrays in sequence, converts the data into the logic relation, executes the content of the functional blocks, thereby realizing the logic operation, and the numerical information of the arrays is the same as long as the logic relation is the same, and the execution result is the same; greatly reduces the work complexity of engineers, improves the efficiency, and is applicable to any hardware controller (including PLC/DCS/IPC/ARM and the like).
Drawings
The invention will be further described with reference to examples of embodiments with reference to the accompanying drawings.
FIG. 1 is a flow chart of the method of the present invention.
FIG. 2 is a schematic diagram of a functional block relation array according to the present invention.
FIG. 3 is a block diagram illustrating a program page calculation order array according to the present invention.
FIG. 4 is a block diagram illustrating a task page computation order array according to the present invention.
Fig. 5 is a schematic diagram of a structure of main task computing sequence data according to the present invention.
FIG. 6 is a schematic diagram of a scan array according to the present invention.
Detailed Description
Referring to fig. 1, the method for converting a logic configuration array into a logic execution command according to the present invention includes:
step S1, creating an array comprising a function block relation array, a program page calculation sequence array and a task page calculation sequence array, wherein:
as shown in fig. 2, the function block relation array stores the input-output relation value of each function block;
as shown in fig. 3, the program page calculation order array stores a table address of each function block relation array;
as shown in fig. 4, the task page calculation order array stores a table address of each program page calculation order array;
as shown in FIG. 5, in particular embodiments, the array of the present invention may further comprise a master task computing order array that holds the table address of each task page computing order array;
s2, storing the configured logic relationship and the specific input/output value in a corresponding array;
step S3, as shown in FIG. 6, the array is scanned sequentially, and the content of the functional blocks is executed sequentially according to a specific algorithm pre-written by each functional block, so that logic operation is realized, wherein the scanning sequence is as follows: main task calculation sequence array- & gt task page calculation sequence array- & gt program page calculation sequence array- & gt function block relation array.
When the main task computing sequence array is scanned, jumping into the corresponding task page computing sequence array according to the stored table address of the task page computing sequence array to continue scanning;
when the task page calculation sequence array is scanned, jumping into the corresponding program page calculation sequence array according to the stored table address of the program page calculation sequence array to continue scanning;
when the program page calculation sequence array is scanned, jumping into the corresponding function block relation array according to the stored table address of the function block relation array to continue scanning;
when the function block relation array is scanned, according to the input-output relation value of each function block, the function block algorithm is called to calculate through the input pin information of the function block, and then the calculation result is processed to the output pin of the function block.
According to the method of the present invention, as shown in fig. 1 to 6, the present invention further provides a system for converting a logic configuration array into a logic execution command, the system comprising:
the creation array module is used for creating an array, and comprises a function block relation array, a program page calculation sequence array and a task page calculation sequence array, wherein:
the function block relation array stores the input-output relation value of each function block;
the program page calculation sequence array stores the table address of the function block relation array;
the task page calculation sequence array stores the table address of the program page calculation sequence array;
in a specific embodiment, the array of the present invention may further include a main task computing order array, where the main task computing order array stores a table address of each task page computing order array;
the configuration module is used for configuring the logic relation of each functional block and setting specific input and output values of each functional block, and simultaneously storing the configured logic relation and the set input and output values in corresponding arrays;
the scanning execution module is used for sequentially scanning the array, and sequentially executing the content of the functional blocks according to a specific algorithm pre-written by each functional block, so that the logic operation is realized, and the scanning sequence is as follows: main task calculation sequence array- & gt task page calculation sequence array- & gt program page calculation sequence array- & gt function block relation array.
When the main task computing sequence array is scanned, jumping into the corresponding task page computing sequence array according to the stored table address of the task page computing sequence array to continue scanning;
when the scanning execution module scans the task page calculation sequence array, jumping into the corresponding program page calculation sequence array according to the table address of the stored program page calculation sequence array to continue scanning;
when the program page calculation sequence array is scanned, jumping into the corresponding function block relation array according to the stored table address of the function block relation array to continue scanning;
when the function block relation array is scanned, the input and output relation value of each function block is stored, the function block algorithm is called through the input pin information of the function block to calculate, and then the calculation result is processed to the output pin of the function block.
In summary, the invention expresses the complex logic relationship among the functional blocks through the array, analyzes the data in each array by scanning the array in sequence, converts the data into the logic relationship, and executes the content of the functional blocks, thereby realizing the logic operation, and the numerical information of the arrays is the same as long as the same logic relationship is achieved, and the execution result is the same; greatly reduces the work complexity of engineers, improves the efficiency, and is applicable to any hardware controller (including PLC/DCS/IPC/ARM and the like).
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that the specific embodiments described are illustrative only and not intended to limit the scope of the invention, and that equivalent modifications and variations of the invention in light of the spirit of the invention will be covered by the claims of the present invention.

Claims (6)

2. The method of claim 1, wherein the converting the set of logical configuration into the logical execute command comprises: when the task page calculation sequence array is scanned, jumping into the corresponding program page calculation sequence array according to the stored table address of the program page calculation sequence array to continue scanning; when the program page calculation sequence array is scanned, jumping into the corresponding function block relation array according to the stored table address of the function block relation array to continue scanning; when the function block relation array is scanned, according to the input-output relation value of each function block, the function block algorithm is called to calculate through the input pin information of the function block, and then the calculation result is processed to the output pin of the function block.
5. The system for converting a logical configuration array into a logical execute command according to claim 4, wherein: when the scanning execution module scans the task page calculation sequence array, jumping into the corresponding program page calculation sequence array according to the table address of the stored program page calculation sequence array to continue scanning; when the program page calculation sequence array is scanned, jumping into the corresponding function block relation array according to the stored table address of the function block relation array to continue scanning; when the function block relation array is scanned, the input and output relation value of each function block is stored, the function block algorithm is called to calculate through the input pin information of the function block, and then the calculation result is processed to the output pin of the function block.
CN201810552166.2A2018-05-312018-05-31Method and system for converting logic configuration array into logic execution commandActiveCN108829440B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201810552166.2ACN108829440B (en)2018-05-312018-05-31Method and system for converting logic configuration array into logic execution command

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201810552166.2ACN108829440B (en)2018-05-312018-05-31Method and system for converting logic configuration array into logic execution command

Publications (2)

Publication NumberPublication Date
CN108829440A CN108829440A (en)2018-11-16
CN108829440Btrue CN108829440B (en)2023-05-02

Family

ID=64145440

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201810552166.2AActiveCN108829440B (en)2018-05-312018-05-31Method and system for converting logic configuration array into logic execution command

Country Status (1)

CountryLink
CN (1)CN108829440B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110928602B (en)*2019-12-062022-09-20浙江中控技术股份有限公司FBD program operation method and device
CN115827787B (en)*2023-02-152023-06-20仁通融合(南京)信息技术有限公司Internet Yun Zhiku management method

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101872184A (en)*2010-06-042010-10-27南大傲拓科技江苏有限公司Programming and control method of sequence control diagram of programmable controller
TW201511020A (en)*2013-03-152015-03-16Netlist Inc Memory system with configurable error threshold and fault analysis capability

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US6285966B1 (en)*1998-06-252001-09-04Fisher Controls International, Inc.Function block apparatus for viewing data in a process control system
US7376717B2 (en)*2003-04-172008-05-20Lenovo (Singapore) Pte Ltd.Method and apparatus for automatically configuring a computer for different local area networks
CN100470469C (en)*2006-08-292009-03-18深圳达实智能股份有限公司 Implementation method of configuration control
US20090254573A1 (en)*2008-04-042009-10-08General Motors CorporationPlant floor event protocol and schema
CN100541364C (en)*2008-05-132009-09-16四方电气(集团)有限公司 Programmable Logic Control Method Based on Fieldbus Communication
CN102299933B (en)*2010-06-222015-07-01中国国电集团公司Engineering configuration management method and system for distributed control system (DCS)
CN103745634B (en)*2013-12-212016-05-04柳州职业技术学院Motor Control Experiment System based on PLC and application process thereof
CN106569801B (en)*2016-10-182020-04-10中国运载火箭技术研究院Configuration display and control system based on complex parameters
CN106483930A (en)*2016-11-182017-03-08华中科技大学A kind of method of automatic configuration of mixed type restructural CANopen slave station

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101872184A (en)*2010-06-042010-10-27南大傲拓科技江苏有限公司Programming and control method of sequence control diagram of programmable controller
TW201511020A (en)*2013-03-152015-03-16Netlist Inc Memory system with configurable error threshold and fault analysis capability

Also Published As

Publication numberPublication date
CN108829440A (en)2018-11-16

Similar Documents

PublicationPublication DateTitle
CN106125664A (en) An Embedded PLC Control System
CN105912339B (en)A kind of exploitation of Application in numerical control (NC) System and integrated approach and system
US20180264651A1 (en)Controller, control system, and control method
US20190012168A1 (en)Program generating apparatus
CN108829440B (en)Method and system for converting logic configuration array into logic execution command
CN111352620B (en)Visual configuration programming method and system
CN108762751A (en)A kind of logic figure configuration and the method and system for changing into data flow
JP5291727B2 (en) Program conversion module and program conversion method for multi-axis synchronous machine
CN106909123B (en)Control programming auxiliary assembly
CN110488738A (en)A kind of code generating method and device
CN111267111B (en)Robot control method, device and system
CN109165397A (en)Automatic CAE analysis system and development approach based on UG and ANSA platform
CN112180808B (en)Servo control method, device, system, computer equipment and storage medium
CN113632016A (en)Memory mapping method for mixed use of programming language and manufacturer defined language
CN117733832A (en) A model-based robot control implementation method based on PLCopen standard
CN102508694A (en)Method and system for operating file of virtual machine
KR20230150481A (en)CAD and CAE Utilization Method for Optimal Design of Automotive Parts
CN113433885A (en)Method for converting ladder diagram of PLC programming system into structured text
CN112130861A (en)Mobile application cross-platform development system
JP2008299763A (en) Distributed object development tool
KR101896112B1 (en)Integration of CAD and CAE for the optimum design of an automotive part
JP2007280214A (en) Programmable controller
CN109522044B (en)Motion control card configuration file generation method and device and computer readable memory
CN119126659B (en)PLC controller redundancy system
CN107423104A (en)A kind of program runtime based on virtual machine

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
TA01Transfer of patent application right

Effective date of registration:20191210

Address after:350100 third floor, e, workshop 2, No. 99, Gujing, mabao village, Shangjie Town, Minhou County, Fuzhou City, Fujian Province

Applicant after:Fuzhou diting Technology Co.,Ltd.

Address before:350100 workshop e, No. 99, Gujing, mabao village, Shangjie Town, Minhou County, Fuzhou City, Fujian Province

Applicant before:FUZHOU ZHIMA INTELLIGENT TECHNOLOGY Co.,Ltd.

TA01Transfer of patent application right
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp