Application method, system, terminal and medium for graphically displaying PLC software address cross-table

By graphically processing the PLC software address cross-tab, the problem of inconvenient byte address search in the prior art is solved, the visualization of address occupancy and convenient jumps are realized, and the programming efficiency and convenience are improved.

CN115826487BActive Publication Date: 2025-01-21SYMG SHANGHAI INTELLIGENCE SYST CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111094167.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-17
Publication Date
2025-01-21
Estimated Expiration
2041-09-17

AI Technical Summary

Technical Problem

The address crosstab of existing PLC software is inconvenient to find byte address, which leads to inaccurate address occupation and difficulty in jumping.

Method used

Provides a graphical application method of PLC software address cross-tab. By reading project information, recording the status information of the bytes referenced in global variables, and forming a graphical status cross-tab, the address occupancy status can be visualized and conveniently Jump.

Benefits of technology

The graphical display of address occupancy is realized, making the occupancy clear at a glance, solving the problem of difficult search, and making it easy to jump to the used location while checking the address occupancy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115826487B_ABST
    Figure CN115826487B_ABST
Patent Text Reader

Abstract

The present invention provides a graphical application method, system, terminal and medium for PLC software address cross table, the method comprising: reading engineering information; recording the state information of bytes referenced in all global variables in the engineering information, and forming a state cross table of bytes referenced in global variables; wherein each global variable corresponds to an address in the state cross table one by one; selecting a byte referenced state in the state cross table of bytes referenced in global variables; traversing all engineering files to determine whether there is a global variable containing the referenced state of the byte in the engineering file; if so, recording the name of the engineering file to which the global variable belongs and the location information of the global variable, and displaying them; if not, returning to the step of traversing all engineering files. The present invention can clearly see the occupation situation without having to flip through a large range for sorting, and effectively solves the problem of conveniently jumping to the used position while checking the address occupation situation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of PLC technology, and relates to an application method and system, and in particular to an application method, system, terminal and medium for graphically displaying a PLC software address cross table. Background Art

[0002] The address cross table is frequently used in PLC software programming. When programming, you can check the occupancy of the memory address area to prevent address duplication. When a problem occurs in the program, you can use the address cross table to check the location used by the instruction. The address cross table is a necessary function for PLC software.

[0003] Most of the existing cross-tabs are in table form, using different marks to represent the occupancy status. If you want to jump to the location used by the address, you still need to filter the address separately; or the addresses are arranged according to the length occupied, and the 2-byte and 4-byte arrangements of the same address are very far apart, making it very inconvenient to search.

[0004] Therefore, how to provide a graphical application method, system, terminal and medium for the PLC software address cross-table to solve the defects of the prior art such as inconvenient byte address search, unclear address occupancy and difficult jumps has become a technical problem that needs to be urgently solved by technical personnel in this field. Summary of the invention

[0005] In view of the shortcomings of the prior art described above, the purpose of the present invention is to provide a graphical application method, system, terminal and medium for PLC software address cross-table, which is used to solve the problem that the prior art byte address search is inconvenient, resulting in unclear address occupancy and difficult jumps.

[0006] To achieve the above-mentioned purpose and other related purposes, the present invention provides a graphical application method of a PLC software address cross-table, comprising: reading project information; the project information includes project files, global variable areas and global area configuration information; recording the state information of bytes referenced in all global variables in the project information, and forming a state cross-table of bytes referenced in global variables; wherein each global variable corresponds one-to-one to an address in the state cross-table; selecting a byte's referenced state in the state cross-table of bytes referenced in the global variables; traversing all project files to determine whether there is a global variable containing the referenced state of the byte in the project file; if so, recording the name of the project file to which the global variable belongs and the location information of the global variable, and displaying them; if not, returning to the step of traversing all project files.

[0007] In one embodiment of the present invention, the global variable area includes an area name, an area description, an actual size, and a maximum size; the actual size and the maximum size are expressed in bytes.

[0008] In one embodiment of the present invention, the step of recording the state information of bytes referenced in all global variables in the project information and forming a cross-table of the states of bytes referenced in the global variables includes: establishing a byte reference state for each region according to the global region configuration information, and configuring memory for the reference state; the global variable information includes the region name, data type and address offset.

[0009] In one embodiment of the present invention, the size of the memory configured for the reference state is twice the size of each region.

[0010] In one embodiment of the present invention, the step of recording the state information of bytes referenced in all global variables in the project information and forming a state cross-table of bytes referenced in the global variables also includes: traversing the global variables to obtain their global variable information; recording the reference state of the corresponding bytes into a memory configured for the reference state according to the data type; and forming a state cross-table of bytes referenced in the global variables according to the reference state of the bytes recorded in the memory of all areas.

[0011] In one embodiment of the present invention, the first column of the cross-table of the referenced byte status in the global variable is the byte in the variable, and the first row is the corresponding 8 bits in the byte and its binary bit name; if the reference status of a byte is gray, it means that the byte is referenced.

[0012] In one embodiment of the present invention, the data type of the reference state of a byte is short data; the reference state of a byte includes 0, the original state of the byte, or the result of ORing the original states of multiple bytes.

[0013] On the other hand, the present invention provides a graphical application system for PLC software address cross-table, including: a reading module, used to read project information; the project information includes project files, global variables and global area configuration information; a recording module, which records the state information of bytes referenced in all global variables in the project information, and forms a state cross-table of bytes referenced in global variables; wherein each global variable corresponds one-to-one with an address in the state cross-table; an application module, which is used to select a referenced state of a byte in the state cross-table of bytes referenced in the variable; traverse all project files to determine whether there is a global variable containing the referenced state of the byte in the project file; if so, record the name of the project file to which the global variable belongs and the location information of the global variable, and display them; if not, return to traversing all project files.

[0014] Another aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the application method of graphically displaying the PLC software address cross-table.

[0015] The last aspect of the present invention provides a terminal, comprising: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the terminal executes the application method of graphically displaying the PLC software address cross-table.

[0016] As described above, the application method, system, terminal and medium of the graphical PLC software address cross table of the present invention have the following beneficial effects:

[0017] First, the present invention makes address occupancy graphical, so that the occupancy situation can be seen at a glance without having to search extensively for sorting.

[0018] Secondly, the present invention places the address occupancy status and the location used by the address in the same interface, which effectively solves the problem of being able to conveniently jump to the used location while checking the address occupancy status. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 Shown is a flow chart of an embodiment of a method for graphically applying a PLC software address cross-table of the present invention.

[0020] Figure 2 Shown is an example diagram of the engineering file in the present invention.

[0021] Figure 3A Shown are example diagrams of global variable areas under different files in the present invention.

[0022] Figure 3B Shown is an example diagram of the information contained in the global variable area of ​​the present invention.

[0023] Figure 3C Shown is an example diagram of global zone configuration information in the present invention.

[0024] Figure 4 Shown is a flow chart of S12 in the application method of the graphical cross-table of PLC software addresses of the present invention.

[0025] Figure 5 Shown is an example diagram of a cross-table of states in which bytes in a global variable are referenced in the present invention.

[0026] Figure 6 Shown is an example diagram of the referenced state of the selected byte displayed on the UI interface in the present invention.

[0027] Figure 7Shown is an example diagram of obtaining the file referenced by the selected byte and the location information of the global variable according to the referenced status of the selected byte in the present invention.

[0028] Figure 8 Shown is a schematic diagram of the principle structure of a graphical application system of a PLC software address cross table of the present invention in one embodiment.

[0029] Component number description

[0030] 8 PLC software address cross table graphical application system

[0031] 81 Read module

[0032] 82 Recording Module

[0033] 83 Application Modules

[0034] Steps S11 to S16

[0035] Steps S121 to S125 DETAILED DESCRIPTION

[0036] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0037] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0038] This embodiment provides a graphical application method of a PLC software address cross table, including:

[0039] Reading project information; the project information includes project files, global variable areas and global area configuration information;

[0040] Recording the state information of bytes referenced in all global variables in the project information, and forming a state cross table of bytes referenced in the global variables; wherein each global variable corresponds to an address in the state cross table one by one;

[0041] Select a byte's referenced state in the cross table of byte referenced states in the global variable;

[0042] Traverse all project files to determine whether there is a global variable in the project file that contains the referenced state of the byte; if so, record the name of the project file to which the global variable belongs and the location information of the global variable, and display them; if not, return to the step of traversing all project files.

[0043] The following will describe in detail the graphical application method of the PLC software address cross table in this embodiment in conjunction with the diagram. The graphical application method of the PLC software address cross table in this embodiment is applied to an intelligent terminal with a UI interface.

[0044] See also Figure 1 , which is a flow chart showing a graphical application method of a PLC software address cross table in one embodiment. Figure 1 As shown, the graphical application method of the PLC software address cross table specifically includes the following steps:

[0045] S11, reading project information; the project information includes project files, global variable areas and global area configuration information.

[0046] See also Figure 2 , which is a sample diagram of the project file. Figure 2 As shown in the figure, when a project is large, it will contain many files. Figure 3A and Figure 3B , respectively showing the example diagrams of the global variable area under different files and the example diagrams of the information contained in the global variable area. Figure 3B As shown in FIG. 1 , the global variable area includes the area name, area description, actual size and maximum size; the actual size and maximum size are expressed in bytes. Figure 3C , which shows an example of global zone configuration information. Figure 3C As shown, the global variable information includes area name, data type, address offset, etc.

[0047] S12, recording the state information of bytes referenced in all global variables in the project information, and forming a state cross table of bytes referenced in the global variables; wherein each global variable corresponds one-to-one to an address in the state cross table.

[0048] In this embodiment, in order to consider memory and running speed, the function of recording the status value of all bytes applied is implemented. Figure 4 , which is a schematic diagram of the process of S12. Figure 4 As shown, the S12 specifically includes the following steps:

[0049] S121, using the PLC software, receiving instructions for the distribution list;

[0050] S122, according to the global region configuration information, establish a byte reference state for each region (the byte reference state is represented by flag), and configure memory for the reference state (the reference state configuration memory is represented by pFlag).

[0051] In this embodiment, the size of the memory configured for the reference state is twice the size of each region.

[0052] S123, traverse the global variables to obtain the global variable information thereof.

[0053] S124, recording the reference status of the corresponding byte into the memory configured for the reference status according to the data type.

[0054] In this embodiment, the data type of the reference state of a byte adopts short data; the reference state of a byte includes 0, the original state of the byte, or the result of ORing the original states of multiple bytes.

[0055] S125, based on the reference status of the bytes recorded in the memory of all regions, forms a cross table of the states of the bytes referenced in the global variables. Figure 5 , showing an example of a cross-table of the states of bytes referenced in a global variable. Figure 5 As shown, the first column in the cross table of the referenced byte status in the global variable is the byte in the variable, and the first row is the corresponding 8 bits in the byte and its binary bit name; if the referenced status of a byte is gray, it means that the byte is referenced.

[0056] In this embodiment, by graphically displaying the address occupancy, the occupancy status can be clearly seen without having to search extensively for sorting.

[0057] S13, selecting a byte's referenced state in the cross-table of byte referenced states in the global variable.

[0058] In this embodiment, the selection instruction is received through the UI interface, and the referenced state of the selected byte matching the position is determined according to the position where the selection instruction appears. Figure 6 , which shows an example of the referenced state of the selected byte displayed on the UI interface. Figure 6 As shown, the address corresponding to the referenced state of this byte is M210.3.

[0059] S14, reading all engineering files stored in the database.

[0060] S15, traverse all project files to determine whether there is a global variable in the project file that contains the referenced state of the byte; if so, execute S16, record the name of the project file to which the global variable belongs and the location information of the global variable, and display them; if not, return to the step of traversing all project files.

[0061] See also Figure 7 , showing an example diagram of obtaining the file and global variable location information of the byte referenced according to the referenced status of the selected byte. In this embodiment, by placing the address occupancy status and the location used by the address in the same interface, the technical problem of being able to conveniently jump to the used location while viewing the address occupancy status is effectively solved.

[0062] The graphical application method of the PLC software address cross table described in this embodiment has the following beneficial effects:

[0063] First, the graphical application method of the PLC software address cross table described in this embodiment converts address occupancy into a graphic form, so that the occupancy situation can be seen at a glance without having to search extensively for sorting.

[0064] Second, the graphical application method of the PLC software address cross-table described in this embodiment places the address occupancy status and the location used by the address in the same interface, which effectively solves the problem of being able to conveniently jump to the used location while checking the address occupancy status.

[0065] This embodiment also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the following is achieved: Figure 1 The method described.

[0066] At any possible level of technical detail combination, the present application may be a system, method and / or computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present application.

[0067] Computer readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. Computer readable storage medium can be, for example, (but not limited to) an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (non-exhaustive list) of computer readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, for example, a punch card or a convex structure in a groove on which instructions are stored, and any suitable combination thereof. The computer readable storage medium used here is not interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (for example, a light pulse by an optical fiber cable), or an electrical signal transmitted by a wire.

[0068] The computer-readable program described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device through a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives a computer-readable program instruction from the network, and forwards the computer-readable program instruction for storage in the computer-readable storage medium in each computing / processing device. The computer program instruction for performing the operation of the present application can be an assembly instruction, an instruction set architecture (ISA) instruction, a machine instruction, a machine-related instruction, a microcode, a firmware instruction, a state setting data, an integrated circuit configuration data, or a source code or object code written in any combination of one or more programming languages, wherein the programming language includes an object-oriented programming language, such as Smalltalk, C++, etc., and a procedural programming language, such as "C" language or similar programming language. Computer readable program instructions can be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect through the Internet). In certain embodiments, by using the state information of computer readable program instructions to personalize electronic circuits, such as programmable logic circuits, field programmable gate arrays (FPGAs) or programmable logic arrays (PLAs), the electronic circuits can execute computer readable program instructions, thereby realizing various aspects of the present application.

[0069] This embodiment further provides an application system for graphically displaying a PLC software address cross table, including:

[0070] A reading module, used to read project information; the project information includes project files, global variables and global area configuration information;

[0071] A recording module records the state information of bytes referenced in all global variables in the project information, and forms a state cross table of bytes referenced in the global variables; wherein each global variable corresponds to an address in the state cross table one by one;

[0072] The application module is used to select a referenced state of a byte in the cross-table of the states of the bytes referenced in the variable; traverse all project files to determine whether there is a global variable containing the referenced state of the byte in the project file; if so, record the name of the project file to which the global variable belongs and the location information of the global variable, and display them; if not, return to traverse all project files.

[0073] See also Figure 8 , which is a schematic diagram of the principle structure of a graphical application system of a PLC software address cross table in one embodiment. Figure 8 As shown, the graphical application system 8 of the PLC software address cross table includes a reading module 81 , a recording module 82 and an application module 83 .

[0074] The reading module 81 is used to read the project information; the project information includes the project file, the global variable area and the global area configuration information. The global variable area includes the area name, area description, actual size and maximum size; the actual size and maximum size are expressed in bytes. The global variable information includes the area name, data type and address offset, etc.

[0075] The recording module 82 is used to record the state information of bytes referenced in all global variables in the project information, and form a state cross table of bytes referenced in global variables; wherein each global variable corresponds one-to-one to an address in the state cross table.

[0076] In this embodiment, in order to take into account memory and running speed, the function of recording the state values ​​of all bytes being applied is realized. The recording module 82 uses PLC software to receive instructions of the allocation list; according to the global area configuration information, a byte reference state is established for each area (the byte reference state is represented by flag), and a memory is configured for the reference state (the reference state configuration memory is represented by pFlag); the global variable is traversed to obtain its global variable information; according to the data type, the corresponding byte reference state is recorded in the memory configured for the reference state; according to the byte reference state recorded in the memory of all areas, a state cross table of the bytes referenced in the global variable is formed.

[0077] In this embodiment, the size of the memory configured for the reference state is twice the size of each region. The data type of the reference state of the byte adopts short data; the reference state of the byte includes 0, the original state of the byte, or the result of the original state of multiple bytes or each other. The first column of the cross table of the referenced state of the byte in the global variable is the byte in the variable, and the first line is the corresponding 8 bits in the byte and its binary bit name; if the reference state of a byte is gray, it means that the byte is referenced.

[0078] The application module 83 is used to select a referenced state of a byte in the cross-table of referenced states of bytes in the global variable, and call the reading module 81 to read all project files stored in the database; traverse all project files to determine whether there is a global variable containing the referenced state of the byte in the project file; if so, record the name of the project file to which the global variable belongs and the location information of the global variable, and display them; if not, return to traverse all project files.

[0079] It should be noted that it should be understood that the division of the various modules of the above system is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements, or they can all be implemented in the form of hardware, or some modules can be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example: the x module can be a separately established processing element, or it can be integrated in a certain chip of the above system. In addition, the x module can also be stored in the memory of the above system in the form of program code, and called and executed by a certain processing element of the above system. The implementation of other modules is similar. These modules can be integrated together in whole or in part, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software. The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), one or more digital singnal processors (DSP), one or more field programmable gate arrays (FPGA), etc. When a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. These modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0080] The last aspect of this embodiment provides a terminal, which includes: a processor, a memory, a transceiver, a communication interface and / or a system bus; the memory and the communication interface are connected to the processor and the transceiver through the system bus and complete communication with each other, the memory is used to store computer programs, the communication interface is used to communicate with other devices, and the processor and the transceiver are used to run computer programs, so that the terminal executes each step of the application method of the graphical cross-table of PLC software addresses as described above.

[0081] The system bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface is used to realize the communication between the database access device and other devices (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM), and may also include non-volatile memory, such as at least one disk storage.

[0082] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0083] The protection scope of the application method of the graphical cross-table of PLC software addresses described in the present invention is not limited to the execution order of the steps listed in this embodiment. All solutions implemented by adding, reducing or replacing steps in the prior art based on the principles of the present invention are included in the protection scope of the present invention.

[0084] The present invention also provides a graphical application system for a PLC software address cross-table, which can implement the graphical application method for a PLC software address cross-table described in the present invention. However, the implementation device for the graphical application method for a PLC software address cross-table described in the present invention includes but is not limited to the structure of the graphical application system for a PLC software address cross-table listed in this embodiment. All structural deformations and replacements of the prior art made according to the principles of the present invention are included in the protection scope of the present invention.

[0085] In summary, the application method, system, terminal and medium of the graphical PLC software address cross table of the present invention have the following beneficial effects:

[0086] First, the present invention makes address occupancy graphical, so that the occupancy situation can be seen at a glance without having to search extensively for sorting.

[0087] Second, the present invention places the address occupation status and the address used position in the same interface, effectively solving the problem of conveniently jumping to the used position while checking the address occupation status. The present invention effectively overcomes various shortcomings in the prior art and has high industrial utilization value.

[0088] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. A graphical application method for PLC software address cross table, characterized in that: include: Reading project information; the project information includes project files, global variable areas and global area configuration information; Recording the state information of bytes referenced in all global variables in the project information, and forming a state cross table of bytes referenced in the global variables; wherein each global variable corresponds to an address in the state cross table one by one; Select a byte's referenced state in the cross table of byte referenced states in the global variable; Traverse all project files to determine whether there is a global variable in the project file that contains the referenced state of the byte; if so, record the name of the project file to which the global variable belongs and the location information of the global variable, and display them; if not, return to the step of traversing all project files.

2. The application method of graphically converting PLC software address cross-table according to claim 1 is characterized in that: The global variable area includes an area name, an area description, an actual size, and a maximum size; the actual size and the maximum size are expressed in bytes.

3. The application method of graphically converting PLC software address cross-table according to claim 2 is characterized in that: The step of recording the state information of bytes referenced in all global variables in the project information and forming a state cross table of bytes referenced in the global variables comprises: According to the global region configuration information, a byte reference state is established for each region, and memory is configured for the reference state; the global variable information includes the region name, data type and address offset.

4. The application method of graphically converting a PLC software address cross table according to claim 3 is characterized in that: The size of the memory configured for this reference state is twice the size of each region.

5. The application method of graphically converting PLC software address cross-table according to claim 3 is characterized in that: The step of recording the state information of bytes referenced in all global variables in the project information and forming a state cross table of bytes referenced in the global variables also includes: Traverse the global variables to obtain their global variable information; Record the reference state of the corresponding byte according to the data type into the memory configured for the reference state; Based on the reference status of the bytes recorded in the memory of all regions, a cross table of the referenced status of the bytes in the global variables is formed.

6. The application method of graphically converting PLC software address cross-table according to claim 3 is characterized in that: The first column in the cross table of the referenced byte status in the global variable is the byte in the variable, and the first row is the corresponding 8 bits in the byte and its binary bit name; if the referenced status of a byte is gray, it means that the byte is referenced.

7. The application method of graphically converting PLC software address cross-table according to claim 4 is characterized in that: The data type of the byte reference state uses short data; The reference state of a byte includes 0, the original state of the byte, or the result of ORing the original states of multiple bytes.

8. A graphical application system for PLC software address cross-table, characterized in that: include: A reading module, used to read project information; the project information includes project files, global variables and global area configuration information; A recording module records the state information of bytes referenced in all global variables in the project information, and forms a state cross table of bytes referenced in the global variables; wherein each global variable corresponds to an address in the state cross table one by one; The application module is used to select a referenced state of a byte in the cross-table of the states of the bytes referenced in the variable; traverse all project files to determine whether there is a global variable containing the referenced state of the byte in the project file; if so, record the name of the project file to which the global variable belongs and the location information of the global variable, and display them; if not, return to traverse all project files.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the application method of graphically displaying the PLC software address cross table described in any one of claims 1 to 7 is implemented.

10. A terminal, characterized in that: include: Processor and memory; The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the terminal executes the application method of graphically displaying a PLC software address cross-table according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Programmable logic controller and programming tool for programmable logic controller

    CN104950785A

  • Programmable controller and communication unit, and methods of solving variables and of handing data

    CN1624611A