Variable address allocation system and method for programmable controller

A technology of programming controllers and variable addresses, applied in the field of automation, can solve the problem of unsolved variable mapping programmable controllers, etc.

Inactive Publication Date: 2019-11-19
HANGZHOU DIANZI UNIV
View PDF6 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, in the technical solution described in this patent, how to map the variable to the memory address of the programmable controller is still not solved

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Variable address allocation system and method for programmable controller
  • Variable address allocation system and method for programmable controller
  • Variable address allocation system and method for programmable controller

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The preferred embodiments of the present invention will be described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, but not to limit the present invention.

[0039] An embodiment of the present invention provides a variable address allocation system for a programmable controller, and the system includes:

[0040] The partition unit is used to partition the memory area of ​​the programmable controller according to the storage type, and each partition corresponds to at least one storage type;

[0041] The memory allocation unit is used to directly allocate memory addresses to variables with known fixed addresses according to the variable type; sort the variables of unknown addresses according to the size of the memory they occupy, from large to small, and create a variable queue according to the sorting results; All memory fragment spa...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a variable address allocation system and a variable address allocation method for a programmable controller, and relates to the technical field of automation. A partitioning unit is used for partitioning a memory area of the programmable controller according to the storage type. Each partition at least corresponds to one storage type. A memory allocation unit is used for directly allocating a memory address to the variable with the known fixed address according to the variable type, sorting the variables of the unknown address from large to small according to the size ofthe occupied memory, and creating a variable queue according to a sorting result, sorting all the memory fragment spaces from small to large according to the capacity, and selecting a head node variable from the variable queue. According to the method, memory fragment spaces are sorted according to capacity sizes. One of all the memory fragment spaces is selected from small to large in sequence.The size of the selected memory fragment space is enough to place a head node variable. The size of the selected memory fragment space is minimum in all the memory fragment spaces capable of placing the head node variable.

Description

technical field [0001] The invention relates to the technical field of automation, in particular to a variable address allocation system and method of a programmable controller. Background technique [0002] Programmable logic controllers (PLCs) are widely used in the world of automation. With the emergence of more and more PLC manufacturers, the demand for mutual cooperation and mutual transplantation between PLCs of various manufacturers has increased significantly. A clear and standardized PLC programming language standard is very important. The IEC61131-3 standard is the third part of the IEC 61131 standard formulated by the International Electrotechnical Commission (IEC), which is used to standardize the programming language specification of PLC. It makes the PLC programs of various manufacturers easier to transplant each other and are compatible with each other. [0003] The variables of the programmable controller and the input, output or memory in the device are re...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & AuthorityApplications(China)
IPC IPC(8): G06F12/02G06F12/0846
CPCG06F12/0261G06F12/0846
Inventor邬惠峰严义陈佰平赵建勇
OwnerHANGZHOU DIANZI UNIV