CN1267021A - Programmable controller and controlling method for microcomputer of carrying out multitask function - Google Patents

Programmable controller and controlling method for microcomputer of carrying out multitask function Download PDF

Info

Publication number
CN1267021A
CN1267021A CN99109806A CN99109806A CN1267021A CN 1267021 A CN1267021 A CN 1267021A CN 99109806 A CN99109806 A CN 99109806A CN 99109806 A CN99109806 A CN 99109806A CN 1267021 A CN1267021 A CN 1267021A
Authority
CN
China
Prior art keywords
program
register
multitask
program block
control
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.)
Granted
Application number
CN99109806A
Other languages
Chinese (zh)
Other versions
CN1119744C (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.)
Jin Jixin
Original Assignee
GIGA 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 GIGA CO Ltd filed Critical GIGA CO Ltd
Publication of CN1267021A publication Critical patent/CN1267021A/en
Application granted granted Critical
Publication of CN1119744C publication Critical patent/CN1119744C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0421Multiprocessor system
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/054Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/11Plc I-O input output
    • G05B2219/1157I-O used either as input or as output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/12Plc mp multi processor system
    • G05B2219/1204Multiprocessing, several plc's, distributed logic control
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/15Plc structure of the system
    • G05B2219/15079Multitasking, real time multitasking

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)

Abstract

To prevent the Iack of a register and to simultaneously and efficiently execute a plurality of programs. This micro computer programmable controller is provided with plurality of program blocks #1-#n, local registers which are detached and arranged, a global I/O register 300 having a global register allocated to an independent memory area which is not affected by the generation/deletion of the respective program blocks #1-#n and an I/O register for making digital input/output, analog input/output and encoder input into registers and processing them, and a multi-task program execution unit 100 outputting a control signal for simultaneously executing programs and controlling input/output. Information used in common in the respective block programs #1-#n is stored in the global register, and local information is stored and managed in the local registers.

Description

Realize the micro computer Programmable Logic Controller and the control method thereof of multitask function
The industry that the present invention relates to carry out multitask function with the micro computer Programmable Logic Controller (Microcomputer programmable controller, MPC) and control method.Wherein, be that a plurality of program that unit generates is controlled, data shared is stored in the global register that is distributed in the internal memory territory independently in a plurality of programs with the piece, in the local register of region information stores in this program block of only in program block, possessing and managed, the I/O end need not be carried out extra input command and can use the I/O end by registerization.
About the main industry that adopts P.L.C (programmable logic controller (PLC) in the electrical/electronic field, Programmable Logic Controller), such constituted mode is arranged: for moving according to the control program of control P.L.C, improve its performance, make a plurality of programs, implement the action of multitask function simultaneously.
Yet, with regard to existing P.L.C,, can only in this scope, use register, so when establishment P.L.C can carry out the program of variety of functions, the Register Pressure phenomenon often occurs because the quantity of the register that desire is used is fixed.
The object of the invention just is to provide a kind of new industry micro computer Programmable Logic Controller and control method thereof, and it can prevent the discovery of Register Pressure phenomenon.Can carry out a plurality of programs simultaneously effectively according to multitask function.
The present invention seeks to realize like this: the industry that can carry out multitask function of the present invention comprises with the micro computer Programmable Logic Controller:
Contain the specific local register of management ground domain information and store a plurality of program blocks of the machine language that desire carries out;
For being dispensed on, management total information in said a plurality of program blocks is not subjected to said a plurality of program block to generate global register in the independent memory field that influences with elimination;
The I/O register that digital I/O, analog input/output and code translator input registerization are handled;
Output can be carried out the control signal of said a plurality of program blocks simultaneously, and the multitask program of control I/O is carried out device.
For reaching multitask function, industry of the present invention with above formation with the control method of micro computer Programmable Logic Controller is: for carrying out the device executive routine with said multitask program, when arbitrary program block in selecting a plurality of program blocks, the order language of the machine language form that just will store in this program block is carried out the device transmission to said multitask program, said multitask program is carried out device and is carried out calculation and control according to this order language, so confirm for the order of carrying out this calculation and control whether be with I/O in related content, when confirming as is occasion with the related content of I/O, then carry out in the device to check whether can use the I/O register at said multitask program, I/O content of registers in using is upgraded or after the output of outside, carried out calculation and control corresponding to the I/O register.
Below describe the present invention with reference to the accompanying drawings in detail.
Fig. 1 is the structure block diagram of industry according to the present invention with the control part of micro computer Programmable Logic Controller (MPC).
Fig. 2 is the detailed construction block diagram of industry according to the present invention with the control part of micro computer controller.
According to Fig. 1, control part according to the present invention comprises the specific local register that contains management ground domain information and stores a plurality of program blocks 200 that desire is carried out the machine language; For being dispensed on, management total information in a plurality of program blocks 200 is not subjected to a plurality of program blocks 200 to generate global register in the independently internal memory field that influences with elimination and the I/O register 300 that digital I/O, analog input/output and programmable device input registerization are handled; Output can be carried out the control signal of a plurality of program blocks 200 simultaneously, the multitask program of control I/O is carried out device 100.
Here, a plurality of program blocks 200 are the set for the data of executive routine, and it has and self contains in the execution necessary full detail, is independent of each other the feature of independent executive routine mutually.With reference to Fig. 2, a plurality of program blocks 200 are by header storage part 201 (counter that has program stored therein (PC:Program Counter), piece first address (BSA:Block StartAddress), piece tail address (BEA:Block End Address)) and store desire and carry out the local register storage part 203 of institute's necessary information in the program block storage part 202 of machine language and storage and the supervisory routine piece 200 and constituted.This program block 200 is that basis generates, eliminates from weaving into of 1 to n program, and the programmable counter that contains in program block 200 (PC), piece first address (BSA), piece tail address (BEA) and local register (LocalRegister) also generate simultaneously, eliminate with this program block 200.
Here, because local register and program block 200 generate simultaneously, eliminate, only effectively inner at program block separately, thus the same even be present in the title of the local register in the different program block 200, also be to use as the register alone that does not have influence mutually.
On the other hand, the overall situation and I/O register 300 are spendable registers in all program blocks 200, and each program block 200 can be processed and calculate and reference data.
In addition, with reference to figure 2, multitask program is carried out device 100 and is made of following key element: output makes a plurality of program blocks carry out the central processing unit 105 of the control signal of multitask; According to specifying the program block counter 104 of desiring executing block among a plurality of program block 200 grades of being controlled at of central processing unit 105; Selection is by the program block selector switch 103 of the specified program block of program block counter 104; Speak to its temporary fill order language storer 101 for understanding, carry out the machine of in selecteed program block, storing; Control according to central processing unit 105 is ordered the order language plug-in reader 102 of speaking and understanding to the machine language that is stored in the fill order language storer 101; The calculation portion 106 that the order language of quilt being understood according to the control of central processing unit 105 performs calculations; In the I/O process of central processing unit 105 according to programmed instruction control calculation or data, generate the occasion of the I/O register of desire use, to could using this I/O register to check, to whether upgrading or exporting the detector 107 that the content of this I/O register is controlled about using the I/O register to the outside; According to this control about the detector 107 that could use the I/O register, carry out that the I/O content of registers that central processing unit 105 desires are used is upgraded or the outside I/O end register transducer 108 of the function of output.
About having the industry of the present invention micro computer Programmable Logic Controller of above-mentioned formation, its control method is: at first, for carrying out multiprogram, each deblocking that to weave into for the order language that execution is weaved into machine language form, be stored in the program block 200, when having constituted a plurality of program block 200, central processing unit 105 is for realizing multitask (Multi-Task) function, the value of program block counter 104 is increased successively, the program block of specifying desire to breathe out, selected by the program block 200 of program block counter 104 appointments by program block selector switch 103.
The program block selector switch 103 waiting machine language of execution that the program block counter (PC) of program block 200 inside is indicated moves to fill order language storer 101.So program block counter (PC) increases pointer value for carrying out next order.
At this moment, central processing unit 105 allows the value alternately of program block counter 104 specify next program block for carrying out multitask, thus allow successively each independently program block be performed.
On the other hand, the content of fill order language storer 101 is after order language plug-in reader 102 is understood, and is performed by central processing unit 105, produces calculation and I/O action.But perform calculations according to central processing unit 105 and I/O control in, the execution occasion of appearance content of registers change etc., I/O was sent device 302 before aforementioned central processing unit change I/O register value, automatically performed the processing of content update or output according to the check result about the detector 107 that could use the I/O register.
So according to the detector 107 about using the I/O register, the user can be as using register to use the hardware I/O of controller.This makes can save extra input/output commands, can greatly raise the efficiency when programming.
When the I/O register of central treating apparatus 105 desires use generates, confirm whether can use this I/O register about the detector 107 that could use the I/O register, by this detector 107 check learn the register that could use be transfused to immediately/output terminal transducer 108 exports with its value renewal or to the outside.
Adopt industry of the present invention micro computer Programmable Logic Controller and control method thereof, in being that a plurality of programs that unit constitutes are managed its local register separately respectively with the piece, only to total its registers internal memory independently, so raising system effectiveness can and carry out in program composition the time.Owing to the I/O ends such as digital I/O, analog input/output and code translator input of P.L.C are specified and are used as the register of intrinsic title, so also passable even do not carry out extra input instruction.

Claims (5)

1, carry out the industry micro computer Programmable Logic Controller of multitask function, comprising:
Contain the specific local register of management ground domain information and store a plurality of program blocks of the machine language that desire carries out;
For being dispensed on, management total information in said a plurality of program blocks is not subjected to said a plurality of program block to generate global register in the independent memory field that influences with elimination;
The I/O register that digital I/O, analog input/output and scrambler input registerization are handled;
Output can be carried out the control signal of said a plurality of program blocks simultaneously, and the multitask program of control I/O is carried out device.
2, press the industry micro computer Programmable Logic Controller of the said execution multitask function of claim 1, it is characterized in that: said a plurality of program blocks are the set for the data of executive routine, it has and self contains in the execution necessary full detail, is independent of each other independent executive routine mutually.
3, press the industry micro computer Programmable Logic Controller of claim 1 or 2 said execution multitask functions, it is characterized in that: said a plurality of program blocks are by the header storage part of have program stored therein counter and piece first address and piece tail address and store desire and carry out the local register storage part of institute's necessary information in the program block storage part of machine language and storage and the supervisory routine piece and constituted that said header storage part and program block storage part and local register storage part and program block generate simultaneously, eliminate.
4, by the industry micro computer Programmable Logic Controller of the said execution multitask function of claim 1, it is characterized in that: said multitask program is carried out device and is made of following key element:
Output make a plurality of program blocks carry out the central processing unit of the control signal of multitasks,
According to being controlled at of central processing unit specify among said a plurality of program blocks etc. the program block counter of desiring executing block,
Selection by the program block selector switch of the specified program block of said program block counter,
For understand, carry out the machine language in selecteed program block, stored to its temporary fill order language storer,
The order language plug-in reader of the machine language order language that is stored in the said fill order language storer being understood according to the control of said central processing unit,
The calculation portion that the order language of quilt being understood according to the control of said central processing unit performs calculations,
Said central processing unit generate in according to the I/O process of programmed instruction control calculation or data the I/O register that desire uses occasion, check using this I/O register, to whether upgrade or to the outside export that the content of this I/O register controls about the detector that could use the I/O register,
According to said control about the detector that could use the I/O register, carry out it is said that I/O content of registers that the central processing unit desire is used is upgraded or the outside I/O end register transducer of the function of output.
5, carry out the control method of the industry of multitask function with the micro computer Programmable Logic Controller, be that a plurality of program that unit generates is controlled, data shared is stored in the global register that is distributed in the internal memory territory independently in a plurality of programs with the piece, in the local register of region information stores in this program block of only in program block, possessing and managed, the I/O end is by registerization, need not carry out extra input command and can use the I/O end, it is characterized in that:
For carrying out the device executive routine with said multitask program, when arbitrary program block in selecting a plurality of program blocks,
The order language of the machine language form that just will store in this program block is carried out the device transmission to said multitask program,
Said multitask program is carried out device and is carried out calculation and control according to this order language,
So confirm for the order of carrying out this calculation and control whether be with I/O in related content, be occasion when confirming as with the related content of I/O,
Then carry out in the device to check whether can use the I/O register, the I/O content of registers in using is upgraded or after the output of outside, carried out calculation and control corresponding to the I/O register at said multitask program.
CN99109806A 1998-07-25 1999-07-14 Programmable controller and controlling method for microcomputer of carrying out multitask function Expired - Fee Related CN1119744C (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
KR30002/1998 1998-07-25
KRP9830002 1998-07-25
KR1019980030002A KR100294655B1 (en) 1998-07-25 1998-07-25 How to Control a My Programmable Controller That Performs a Multitask Function

Publications (2)

Publication Number Publication Date
CN1267021A true CN1267021A (en) 2000-09-20
CN1119744C CN1119744C (en) 2003-08-27

Family

ID=19545179

Family Applications (1)

Application Number Title Priority Date Filing Date
CN99109806A Expired - Fee Related CN1119744C (en) 1998-07-25 1999-07-14 Programmable controller and controlling method for microcomputer of carrying out multitask function

Country Status (3)

Country Link
JP (1) JP2000056991A (en)
KR (1) KR100294655B1 (en)
CN (1) CN1119744C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111309482B (en) * 2020-02-20 2023-08-15 浙江亿邦通信科技有限公司 Hash algorithm-based block chain task allocation system, device and storable medium

Also Published As

Publication number Publication date
CN1119744C (en) 2003-08-27
JP2000056991A (en) 2000-02-25
KR100294655B1 (en) 2001-07-12
KR20000009522A (en) 2000-02-15

Similar Documents

Publication Publication Date Title
US5781776A (en) Industrial controller permitting program editing during program execution
DE69836902T2 (en) COMPUTER SETTING ON VARIABLE INSTRUCTIONS
EP1184759B1 (en) Flow chart programmation for industial controllers, especially motion controllers
DE69929936T2 (en) Method and apparatus for retrieving non-contiguous instructions in a data processing system
DE10116809A1 (en) Programmable controller for the development of control programs uses sequential processing
EP2729855A1 (en) Method and device for the programming and configuration of a programmable logic controller
EP1457850A1 (en) Control system and method for on-line editing of user program
EP1904903A1 (en) Method for operating and monitoring a control device, corresponding operating/monitoring device, control device, and machine comprising such a control device, and uses of said method, as well as storage media
EP3281071A1 (en) Transmission module, processing module and control system
DE19524402C2 (en) Program execution control device with addressability according to an M-row pseudo-random number sequence
DE10335989A1 (en) Online changes to CIL code programs for industrial automation
CN108762751A (en) A kind of logic figure configuration and the method and system for changing into data flow
DE19842254A1 (en) Data processing unit for controlling operations of functional units in systems
US20010034830A1 (en) Programmable controller
US5867383A (en) Programmable logic controller
CN1119744C (en) Programmable controller and controlling method for microcomputer of carrying out multitask function
KR100425371B1 (en) Method of generating and storing a user programme consisting of instructions for a stored-programme control unit and method of operating the stored-programme control unit
DE102017215044B4 (en) Method for changing to a firmware version on an electrical control unit for a drive system, electrical control unit and drive system
DE10218816A1 (en) Programmable control system
EP0535265B1 (en) Method to create an executable configuration of a system program loadable in a system memory range of a processor system
DE60031136T2 (en) PROZESSORARCHITECTUR
DE19983210B4 (en) Programmable control device
DE19828611C2 (en) Data processing device and associated method
DE10101745A1 (en) Method for operation of an automation system for control and regulation of component groups, using operating program with information file to call appropriate service program when required
WO2001084256A1 (en) A method for converting information related to the hardware/software configuration of a distributed control system

Legal Events

Date Code Title Description
C10 Entry into substantive examination
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
ASS Succession or assignment of patent right

Owner name: JIN JIXIN

Free format text: FORMER OWNER: GIGA CO., LTD.

Effective date: 20010823

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20010823

Address after: South Korea Gyeonggi Do Anyang

Applicant after: Jin Jixin

Address before: Gyeonggi Do, South Korea

Applicant before: Giga Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
C19 Lapse of patent right due to non-payment of the annual fee
CF01 Termination of patent right due to non-payment of annual fee