CN104808611B - A kind of programmed method of industrial control system - Google Patents
A kind of programmed method of industrial control system Download PDFInfo
- Publication number
- CN104808611B CN104808611B CN201510087967.2A CN201510087967A CN104808611B CN 104808611 B CN104808611 B CN 104808611B CN 201510087967 A CN201510087967 A CN 201510087967A CN 104808611 B CN104808611 B CN 104808611B
- Authority
- CN
- China
- Prior art keywords
- value
- lists
- list
- record
- output
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 20
- 230000004048 modification Effects 0.000 claims description 8
- 238000012986 modification Methods 0.000 claims description 8
- 238000006243 chemical reaction Methods 0.000 claims description 6
- 238000012423 maintenance Methods 0.000 abstract description 4
- 238000005070 sampling Methods 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/418—Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
- G05B19/41845—Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by system universality, reconfigurability, modularity
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/25—Pc structure of the system
- G05B2219/25314—Modular structure, modules
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/80—Management or planning
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Manufacturing & Machinery (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Programmable Controllers (AREA)
Abstract
A kind of programmed method of the industrial control system in the present invention relates to automatic field, including:Configuration parameter table is set, variable parameter table is set, and sets List of lists;The sampled value of analog input port is converted into internal input value, and by internal input value storage to the corresponding record of List of lists;Inside input value in List of lists is controlled to obtain output valve, and is stored output valve as internal output valve in List of lists;Internal output valve in List of lists is converted into external output value and exported onto corresponding output port.The present invention solves existing control program and directly hardware input point and output point is processed, and causes system maintenance and management cost high, the technical problem of portability difference.Had using automatic control system of the invention and be easy to resource-sharing, transplanting, be easy to the advantage of maintenance and management.
Description
Technical field
A kind of programmed method of the industrial control system in the present invention relates to automatic field, can be applied to using programmable
Logic controller (PLC) does the automatic control system of controller, to realize product seriation and standardization.
Background technology
In automatic field, the controller for having many automatic control systems is realized using PLC, conventional programming techniques
All it is to be processed directly against Hardware I/O (input and output) port of PLC.But, using conventional programming techniques hardware can be made defeated
Access point and output point are dispersed in the modules of program, are not easy to safeguard after hardware is changed, and are also not easy to program portable, are total to
Enjoy and standardize.The automatic control system of homologous series product can all have sizable similitude, and difference is part, if
It is that every set automatic control system all individually programs, it will expend a large amount of human resources, management and after-sale service are not easy to again.
The content of the invention
In view of this, the invention provides a kind of programmed method of industrial control system, existing control program is solved direct
Hardware input point and output point are processed, causes system maintenance and management cost high, the technical problem of portability difference.
In order to solve the above technical problems, the technical proposal of the invention is realized in this way:
A kind of programmed method of industrial control system, it is characterised in that including:
Step 101:Configuration parameter table is set, and configuration parameter table includes a plurality of record, and each records corresponding product
One equipment or part, the record value of a record represent the quantity of equipment or part corresponding to the record;
Step 102:Variable parameter table, zero point value and full scale for storing analog sensor or output port are set
Value;
Step 103:List of lists is set, and List of lists includes a plurality of record, and every record corresponds to an inside
Input value or internal output valve;
Step 104:The sampled value of analog input port is converted into internal input value, and internal input value storage is arrived
In the corresponding record of List of lists;
Step 105:Inside input value in List of lists is controlled to obtain output valve, and by output valve
As in internal output valve storage to List of lists;
Step 106:Internal output valve in List of lists is converted into external output value and is exported to corresponding output
On port.
Preferably, the sampled value of analog input port is converted into internal input value using following equation:
AiRepresent the inside input value of ith sample point, P0The minimum data that analog input port can gather is represented,
P2Represent the maximum data that analog input port can gather, PiRepresent the sampled value of ith sample point, SiRepresent i-th and adopt
The full scale value of sampling point correspondence analog sensor, ZiThe zero point value of ith sample point correspondence analog sensor is represented, i is certainly
So count.
Preferably, it is converted into external output value using internal output valve in following equation just List of lists:
AOjRepresent j-th external output value of output port, BjThe corresponding internal output valve of j-th output port is represented,
ZjRepresent j-th zero point value of analog sensor, SjRepresent j-th full scale value of analog sensor, X2Represent j-th it is defeated
The maximum data that exit port can be gathered, X0The minimum data that j-th output port can be gathered is represented, j is natural number.
Preferably, the programmed method of the industrial control system also comprises the following steps:
Step 201:The username and password of active user is received and checks, to judge whether active user has parameter
Modification authority, if parameter modification authority then enters step 202;
Step 202:List of lists is updated, to change the zero point value and full scale value of analog sensor.
Preferably, in step 104, also include before the sampled value conversion of analog input port is an externally input into value:
Step 301:Sampled value is obtained from analog input port;
Step 302:Judge sampled value whether analog input port corresponding with sampled value zero point value and full scale value
Between, if it is, the sampled value conversion of analog input port is an externally input into value.
The invention provides a kind of programmed method of industrial control system, by this method, relieve control logic and calculate
Dependence of the method to PLC Hardware I/Os (input and output) address;Using programmed method provided by the present invention, traditional PLC is solved
The software resource for directly obtaining is not easy to share, transplant and standardize, and is not easy to the problem of maintenance and management.Realize similar product
The standardization and seriation of the automatic control system of product.
Brief description of the drawings
Fig. 1 is flow chart of the method for the present invention;
Fig. 2 is the flow chart for changing List of lists;
Fig. 3 is the flow chart for carrying out sampled value inspection.
Specific embodiment
To make the object, technical solutions and advantages of the present invention become more apparent, embodiment is exemplified below, and referring to the drawings
The present invention is described in more detail.All addresses, variable, the type of product and involved numeric type in this example
Data and logical data are only of the invention for ease of understanding, the protection domain being not intended to limit the invention.
Certain series of products that the present embodiment is used include A products and B products, and A products and B products are except having nuance
Outward, major control function and logic are all identical.
A products have an analog quantity temperature acquisition sampling point T1, are connected to AI0 ports;B products have analog quantity temperature acquisition sample
Point T1 and T2, is connected respectively to AI0 and AI2 ports.A products have a pressure switch, do not have flow switch;B products have one
Flow switch, does not have pressure switch.To reduce resource occupation, the pressure switch of A products and the flow switch of B products are all connected to
On On-off signal point DI2.0.For description is simple, it is assumed that two products are connected to same motor control point DO0.0, and same
Individual analog quantity speed control output point AO0.
In order to realize the standardization of product, referring to Fig. 1, automatic control system is handled as follows:
Step 101:One configuration parameter table DB0, each equipment or part for recording corresponding product, one are set
The record value of record represents the quantity of the equipment or part corresponding to the record, and the title of record represents setting corresponding to the record
The title of standby or part, configuration parameter table DB0 can be used for distinguishing A products and B products;
Configuration parameter table, variable parameter table and the List of lists for using within a context are bivariate table, have recorded many
Bar is recorded, and every record includes four fields, i.e.,:Title, data type, record value, explanation.
Step 102:Variable parameter table DB1 is set, for storing the zero point value of analog sensor or output port and expiring
Angle value, every record correspondence one zero point value or a full scale value;
Wherein, the corresponding temperature sensors zero of record storage analog quantity temperature acquisition sampling point T1 of entitled " DB1.DBD0 "
Point value;The corresponding temperature sensor full scale values of record storage analog quantity temperature acquisition sampling point T1 of entitled " DB1.DBD4 ";Name
Referred to as corresponding temperature sensor zero point values of record storage analog quantity temperature acquisition sampling point T2 of " DB1.DBD8 ";It is entitled
The corresponding temperature sensor full scale values of record storage analog quantity temperature acquisition sampling point T2 of " DB1.DBD12 ";It is entitled
The zero point value of the record storage speed control output port of " DB1.DBD16 ";The record storage speed of entitled " DB1.DBD20 "
The full scale value of controlled output port.
Step 103:List of lists DB2 is set, and List of lists includes a plurality of record, and every record is corresponded in one
Portion's input value or internal output valve;
Wherein, the inside input value of the record storage analog quantity temperature acquisition sampling point T1 of entitled " DB2.DBD0 ", title
It is the inside input value of the record storage analog quantity temperature acquisition sampling point T2 of " DB2.DBD4 ";Entitled " DB2.DBX10.0's "
The inside output valve of record storage pressure switch, the inside output of the record storage flow switch of entitled " DB2.DBX10.1 "
Value, the record storage of entitled " DB2.DBX11.0 " is used for the inside output valve of controlled motor start and stop, entitled
Inside output valve of the record of " DB2.DBD16 " for storage speed controlled output port.
Step 104:The sampled value of analog input port is converted into internal input value, and internal input value storage is arrived
In the corresponding record of List of lists;The title of each bar record is different in List of lists, record one mould of correspondence
One data of analog quantity input port;It is internal input value to store the data in List of lists.
Step 105:Inside input value in List of lists is controlled to obtain output valve, and by output valve
As in internal output valve storage to List of lists;Output valve can be that switching value can also be numeric type data, specific control
Process processed can utilize the control logic of PLC to realize, for example, switched come control pressure according to the inside input value for representing pressure
Opening and closing, now output valve is " 0 " or " 1 ".
Step 106:Internal output valve in List of lists is converted into external output value and is exported to corresponding output
On port.
Specifically, the sampled value of analog input port is converted into internal input value using following equation:
AiRepresent the inside input value of ith sample point, P0The minimum data that analog input port can gather is represented,
P2Represent the maximum data that analog input port can gather, PiRepresent the sampled value of ith sample point, SiRepresent i-th and adopt
The full scale value of sampling point correspondence analog sensor, ZiThe zero point value of ith sample point correspondence analog sensor is represented, i is certainly
So count.The minimum data and maximum data that analog input port can gather are known, are by analog input port
What itself was determined.
External output value is converted into using internal output valve in following equation just List of lists:
AOjRepresent j-th external output value of output port, BjThe corresponding internal output valve of j-th output port is represented,
ZjRepresent j-th zero point value of analog sensor, SjRepresent j-th full scale value of analog sensor, X2Represent j-th it is defeated
The maximum data that exit port can be gathered, X0The minimum data that j-th output port can be gathered is represented, j is natural number.Together
Sample, the minimum data and maximum data that fan-out mouth can be gathered are also known.
Referring to Fig. 2, following parameter modification flow can be carried out in the implementation procedure of the above method:
Step 201:The username and password of active user is received and checks, to judge whether active user has parameter
Modification authority, if parameter modification authority then enters step 202;Otherwise, modification interface is not entered.
Step 202:List of lists is updated, to change the zero point value and full scale value of analog sensor.
In order to carry out the validity judgement of sampled value, referring to Fig. 3, in step 104, by the sampled value of analog input port
Conversion also includes before being an externally input value:
Step 301:Sampled value is obtained from analog input port;
Step 302:Judge sampled value whether analog input port corresponding with sampled value zero point value and full scale value
Between, if it is, the sampled value conversion of analog input port is an externally input into value.When sampled value is in zero point value and full scale
When outside the scope that value determines, alarm signal is sent, remind staff to be adjusted to equipment in time.
The above, only presently preferred embodiments of the present invention is not intended to limit the scope of the present invention.
Claims (3)
1. a kind of programmed method of industrial control system, it is characterised in that including:
Step 101:Configuration parameter table is set, and configuration parameter table includes a plurality of record, each one of record corresponding product
Equipment or part, the record value of a record represent the quantity of equipment or part corresponding to the record;
Step 102:Variable parameter table, zero point value and full scale value for storing analog sensor or output port are set;
Step 103:List of lists is set, and List of lists includes a plurality of record, and every record corresponds to an internal input
Value or internal output valve;
Step 104:The sampled value of analog input port is converted into internal input value according to the following formula, and inside is input into
Value is stored in the corresponding record of List of lists;
Ai represents the inside input value of ith sample point, P0Represent the minimum data that analog input port can gather, P2Table
Show the maximum data that analog input port can gather, Pi represents the sampled value of ith sample point, and Si represents ith sample
The full scale value of point correspondence analog sensor, Zi represents the zero point value of ith sample point correspondence analog sensor, and i is nature
Number;
Step 105:Inside input value in List of lists is controlled to obtain output valve, and using output valve as
Internal output valve is stored in List of lists;
Step 106:Internal output valve in List of lists is converted into external output value and exported to phase according to the following formula
On the output port answered,
AOj represents j-th external output value of output port, and Bj represents the corresponding internal output valve of j-th output port, Zj tables
Show j-th zero point value of analog sensor, Sj represents j-th full scale value of analog sensor, and X2 represents j-th output end
The maximum data that mouth can be gathered, X0The minimum data that j-th output port can be gathered is represented, j is natural number.
2. the programmed method of industrial control system according to claim 1, it is characterised in that also comprise the following steps:
Step 201:The username and password of active user is received and checks, to judge whether active user has parameter modification
Authority, if parameter modification authority then enters step 202;
Step 202:List of lists is updated, to change the zero point value and full scale value of analog sensor.
3. the programmed method of industrial control system according to claim 1, it is characterised in that in step 104, analog quantity is defeated
The sampled value conversion of inbound port also includes before being an externally input value:
Step 301:Sampled value is obtained from analog input port;
Step 302:Judge sampled value whether between the zero point value and full scale value of analog input port corresponding with sampled value,
If it is, the sampled value conversion of analog input port is an externally input into value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510087967.2A CN104808611B (en) | 2015-02-26 | 2015-02-26 | A kind of programmed method of industrial control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510087967.2A CN104808611B (en) | 2015-02-26 | 2015-02-26 | A kind of programmed method of industrial control system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104808611A CN104808611A (en) | 2015-07-29 |
CN104808611B true CN104808611B (en) | 2017-05-31 |
Family
ID=53693532
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510087967.2A Active CN104808611B (en) | 2015-02-26 | 2015-02-26 | A kind of programmed method of industrial control system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104808611B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108132782B (en) * | 2017-12-21 | 2020-11-27 | 沈阳鼓风机集团自动控制系统工程有限公司 | Automatic programming device and electronic equipment |
CN109240198A (en) * | 2018-11-08 | 2019-01-18 | 四川川润液压润滑设备有限公司 | A kind of analog quantity conversion method and system based on programmable controller |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1462915A (en) * | 2002-05-21 | 2003-12-24 | 株式会社山武 | Control method and controller |
CN1549065A (en) * | 2003-05-23 | 2004-11-24 | 中国科学院沈阳自动化研究所 | Control architecture for foundation fieldbus to reduce bus traffic |
CN1920837A (en) * | 2006-09-14 | 2007-02-28 | 东北大学 | Complex equipment faced multi-subject design software integrated parameter mapping method |
CN104049621A (en) * | 2014-07-03 | 2014-09-17 | 中南大学 | System identification method based on upper computer and programmable logic controller |
-
2015
- 2015-02-26 CN CN201510087967.2A patent/CN104808611B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1462915A (en) * | 2002-05-21 | 2003-12-24 | 株式会社山武 | Control method and controller |
CN1549065A (en) * | 2003-05-23 | 2004-11-24 | 中国科学院沈阳自动化研究所 | Control architecture for foundation fieldbus to reduce bus traffic |
CN1920837A (en) * | 2006-09-14 | 2007-02-28 | 东北大学 | Complex equipment faced multi-subject design software integrated parameter mapping method |
CN104049621A (en) * | 2014-07-03 | 2014-09-17 | 中南大学 | System identification method based on upper computer and programmable logic controller |
Also Published As
Publication number | Publication date |
---|---|
CN104808611A (en) | 2015-07-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10297128B2 (en) | Wireless sensor network | |
CN104808611B (en) | A kind of programmed method of industrial control system | |
US7843897B2 (en) | System, apparatus and method for mixed mode communication on a single network | |
WO2002097591A3 (en) | Method and system for a role-based access control model with active roles | |
MX337096B (en) | System and method to monitor and control remote sensors and equipment. | |
US10027653B2 (en) | Method for providing user authority certification service | |
US20080312754A1 (en) | System and Method for Command Execution Handling | |
CN105357077B (en) | The serial data processing unit and method of more equipment | |
CN109164776B (en) | Distributed data acquisition method for industrial equipment | |
CN111142480A (en) | Safety communication method and system for process control station and distributed control system | |
CN102546399B (en) | Intelligent transformer substation process level message linear processing framework and intelligent transformer substation process level message linear processing method | |
CN111240261A (en) | Method and system for realizing intelligent ventilation of grain storage and preservation based on Internet of things equipment | |
US20170244791A1 (en) | Network system and method for transmitting data in a network system | |
CN103780460A (en) | System for realizing hardware filtering of TAP device through FPGA | |
CN108780304B (en) | Data regenerator for monitoring and controlling system of complete equipment | |
US20150148918A1 (en) | Optimized communications with hart instruments | |
CN205862198U (en) | Isolator multi fan control system | |
CN106210107A (en) | Animal heat acquisition method and system | |
CN104991527B (en) | A kind of KNX gateways, control system and control method | |
WO2011131078A1 (en) | Data management method and system for field bus instrument management system | |
CN106850438A (en) | A kind of real-time method for obtaining SDN switch flow table space occupancy | |
CN205693700U (en) | Geotechnical Monitoring network system based on cloud computing | |
US20100161703A1 (en) | Active monitoring system and method thereof | |
US20160154387A1 (en) | Function unit, analog input unit, and programmable controller system | |
CN107124672B (en) | The method that ONU efficiently manages profile message in TWDM-PON system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20150729 Assignee: SHENYANG NAISI CONTROL TECHNOLOGY CO.,LTD. Assignor: SHENYANG NORTHEAST ELECTRIC POWER CONTROL Co.,Ltd. Contract record no.: X2023210000146 Denomination of invention: A Programming Method for Industrial Control Systems Granted publication date: 20170531 License type: Common License Record date: 20230927 |
|
EE01 | Entry into force of recordation of patent licensing contract |