Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for calling subprogram and PLC (Programmable Logic Controller) control system

A program calling and subroutine technology, applied in the field of electronics, can solve the problems of high maintenance difficulty, complicated programming of traditional implementation schemes, long debugging time, etc., to achieve the effect of speeding up the progress, reducing the requirements for programming and debugging capabilities, and simplifying programming and debugging.

Inactive Publication Date: 2012-02-01
深圳市科创思科技有限公司
View PDF6 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to solve the above technical problems, a subroutine calling method, device and PLC control system are provided, which can effectively solve the needs of multi-channel control in the prior art, and the problems of complex programming, long debugging time and high maintenance difficulty in traditional implementation schemes

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
  • Method and device for calling subprogram and PLC (Programmable Logic Controller) control system
  • Method and device for calling subprogram and PLC (Programmable Logic Controller) control system
  • Method and device for calling subprogram and PLC (Programmable Logic Controller) control system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0048] Such as figure 1 The method flowchart of the first embodiment of the subroutine call of the present invention shown includes:

[0049] Step S101: Obtain the call location information of the subroutine;

[0050] Specifically, the system pre-programs at least one subroutine (that is, multiple different subroutines can be pre-written), and then the subroutine is periodically called to run during the running of the entire program, then the system , to obtain t...

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 embodiment of the invention discloses a method for calling a subprogram. The method comprises the following steps of: acquiring calling position information of the subprogram; positioning a preset storage space for a storage data corresponding to the calling position information; calling and running the subprogram according to the data stored by the storage space; and maintaining the data after running the subprogram in the storage space. Correspondingly, the embodiment of the invention also discloses a device for calling the subprogram and a PLC (Programmable Logic Controller) control system. By implementing the embodiment of the invention, the problem of the prior art that a traditional realizing scheme is complex in programming, long in debugging time and high in maintaining difficulty when multi-path control is performed by sharing the subprogram is solved. According to the embodiment of the invention, without using an indicator and a global variable, the subprogram can be shared for performing the multi-path control, thereby simplifying the program debugging, greatly reducing the demand of a user on program debugging capability, shortening a program debugging period and quickening a developing schedule.

Description

technical field [0001] The invention relates to the field of electronics, in particular to a method, a device and a PLC control system for calling a subprogram. Background technique [0002] In the traditional programmable logic controller (PLC, Programmable Logic Controller) data storage space, there are two types of variables in terms of data retention and life cycle: global variables that keep data and are globally visible during program running, and only process calls Effective and locally visible local variables. Global variables are used to keep global data and shared data in procedure calls, and local variables are used to save local data in procedure calls. The data storage space of local variables is released immediately after the call is completed, and is not responsible for maintaining data. [0003] When process control is performed by running a program, for example, when PLC is performing process control, it often needs to periodically call a certain subroutine...

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 & Authority Applications(China)
IPC IPC(8): G05B19/05
Inventor 张小军
Owner 深圳市科创思科技有限公司