CN1690978A - Program execution control mode - Google Patents

Program execution control mode Download PDF

Info

Publication number
CN1690978A
CN1690978A CNA2004100822464A CN200410082246A CN1690978A CN 1690978 A CN1690978 A CN 1690978A CN A2004100822464 A CNA2004100822464 A CN A2004100822464A CN 200410082246 A CN200410082246 A CN 200410082246A CN 1690978 A CN1690978 A CN 1690978A
Authority
CN
China
Prior art keywords
program
mark
execution
functional block
control mode
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
CNA2004100822464A
Other languages
Chinese (zh)
Other versions
CN100367233C (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Publication of CN1690978A publication Critical patent/CN1690978A/en
Application granted granted Critical
Publication of CN100367233C publication Critical patent/CN100367233C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30181Instruction operation extension or modification
    • G06F9/30189Instruction operation extension or modification according to execution mode, e.g. mode flag

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)
  • Programmable Controllers (AREA)

Abstract

The invention provides a program execution control system dispensing with conversion into an executable format every time a program is edited. The program execution control system is provided with a program creating means for creating a program by a function block format, and a program executing means for executing the program generated by the program creating means. An execution flag for determining whether the function block is executed or not is provided on the function block so that operation of on/off of the execution flag during halt or execution of the program described in the function block is made possible, and only the function block with the effective execution flag is executed by the program executing means.

Description

Program execution control mode
Technical field
Program execution control mode when the present invention relates to carry out the program editing of control device, testing fixture and measuring device etc. particularly relates to the program execution control mode of the content of convertible performed program when carrying out.
Background technology
In the procedure development process, when carrying out the debugging of program,, carry out after the unallied part of the affirmation of comment out and work sometimes for the part work of the program after confirming to develop.In addition, sometimes with the related program of program of exploitation in do not carry out, but will think behind the comment out that the program of reference records and narrates in identical program.
Carry out under the situation of comment out, to the mark of program additional representation comment out.In the diagram procedure design of processing flow chart and block diagram figures information, carried out being suitable for the test (for example, with reference to patent documentation 1) of such comment out function.
In patent documentation 1, disclose following technology,,, made not its coding by in the program editing zone, specifying the zone of handling respectively as comment out for example in order to realize writing in the accompanying drawings the function of note.That is, tailor-made for explaining the zone of handling at the program area middle finger, with this zone encirclement regulated procedure target, differentiating each target is to handle or handle as explaining as program.
[patent documentation 1] Japanese kokai publication hei 2-14370 communique (No. the 2851852nd, the patent No.)
Invent problem to be solved
And say, when executive routine, be transformed in the program design mode of form of run time version that the changed content to program for reflection comment out when carrying out etc. before the program of carrying out after changing, needs once more to the run time version conversion.Since when the position is explained in each conversion, program transformation is become execute form, the execute form after program executing apparatus is downloaded conversion, the beginning that indication is carried out, therefore, the efficient of program development is poor.Particularly the changing and download to run time version and all need in the system of time of program, alter the procedure all needs to carry out such processing at every turn, therefore, the problem of procedure development inefficiency is arranged.
In addition, if according to program, on one side online executive routine, carry out a part of program implementation and the operation of not carrying out on one side, just might not become program correct on the grammer and carry out and stop.
In addition, if in program, set to carry out mark, with regard to existing owing to carried out program that effective setting carries out and owing to not setting and invalid program, therefore, in fact very difficult judgement has carried out which part in the program, and the problem of the readability reduction of program is arranged.
First purpose of the present invention does not need the program implementation control mode to the execute form conversion when being to provide a kind of each edit routine.
Second purpose of the present invention is to provide a kind of program implementation control mode with program validation device, and this program validation device confirms whether program becomes program correct on the grammer, and detecting in program becomes incorrect part.
The 3rd purpose of the present invention is to provide a kind of record that is used for conditional branching in the program that reduced, readable high program implementation control mode.
The means that are used to deal with problems
Program implementation control mode of the present invention has program making device that utilizes functional block form production process and the program executing apparatus of carrying out the program of being made by the said procedure producing device, the execution mark is set in the above-mentioned functions piece, whether decision carries out this functional block, the ON/OFF of the above-mentioned execution mark of operation in the stopping of the program that can in the above-mentioned functions piece, record and narrate or in carrying out just, utilize the said procedure actuating unit, only carry out the effective functional block of above-mentioned execution mark.
In addition, program implementation control mode of the present invention is provided with the program validation device, in the result of the execution mark of having operated functional block, when confirming whether to become program correct on the grammer, becoming under the situation of incorrect program, detecting in program becomes incorrect part.
In addition, program implementation control mode of the present invention is provided with effective efficiency piece pick-up unit, detects and carries out the effective functional block of mark, only shows the functional block of handling when effectively setting the back carries out on sequence display system.
The effect of invention
According to the present invention, by the execution mark is set in functional block, specify whether carry out this functional block, after the program transformation that will be made by functional block becomes execute form, be made as operating structure but also should carry out mark, even the part of comment out program etc. changes program, also can only change this execution mark, and again program is not transformed to once more execute form, continue executive routine, therefore, can improve the debugging efficiency of program.
In addition, confirm whether the program behind the execution marking operation becomes program correct on the grammer, incorrect by which part is shown to the user under incorrect situation on the grammer, just can promote the user to import the setting of correct execution mark.
In addition, owing to can be in program only show that carrying out mark becomes effective program, or the Show Color of distinguishing effective procedure and invalid program shows, therefore, can guarantee the readability of program.
Brief description of drawings
Fig. 1 is the block scheme that the system that is used in program execution control mode of the present invention is shown.
Fig. 2 is the functional structure chart that the work of said system is shown.
Fig. 3 is the figure that an example of Function Block Diagram is shown.
Fig. 4 is the figure that an example of the functional block that is provided with the execution mark that embodiments of the present invention 1 relate to is shown.
Fig. 5 is the figure that an example of the Function Block Diagram of being recorded and narrated by the functional block with above-mentioned execution mark is shown.
Fig. 6 is the Function Block Diagram with the Function Block Diagram equivalence of Fig. 5.
Fig. 7 is the figure that the example of the data layout that is provided with the functional block of carrying out mark is shown.
Fig. 8 is the process flow diagram that the processing of the program executing apparatus in the above-mentioned embodiment 1 is shown.
Fig. 9 is the Function Block Diagram that alternative of the present invention is shown.
Figure 10 is the figure that the structure of the system with program validation device in the embodiments of the present invention 2 is shown.
Figure 11 is the process flow diagram that the processing of the program validation device in the above-mentioned embodiment 2 is shown.
Figure 12 is the figure that the demonstration example of the sequence display system in the embodiments of the present invention 2 is shown.
Figure 13 is the figure that other demonstration examples of said procedure display device are shown in the same manner.
Figure 14 is the Function Block Diagram of the situation with replacement circuit in the embodiments of the present invention 3.
Figure 15 is the figure of example that the data layout of the functional block in the above-mentioned embodiment 3 is shown.
Figure 16 is the figure that the system architecture of the execution marking operation device that having in the embodiments of the present invention 4 carry out online rewriting is shown.
Figure 17 is the figure that the state of a control that is provided with the situation of carrying out the marking of control device in the embodiments of the present invention 5 is shown.
Figure 18 is setting in the embodiments of the present invention 6 the has been shown figure of text line as the system architecture of the situation of carrying out mark.
Figure 19 is illustrated in to carry out the Function Block Diagram of having recorded and narrated the example of text line in the mark.
Figure 20 is the process flow diagram of flow process that the processing of the program executing apparatus in the above-mentioned embodiment 6 is shown.
Figure 21 is a Function Block Diagram of each product having been set the situation of the text line that defines in carrying out mark.
Figure 22 is the figure of the system architecture of the situation that is provided with effective efficiency piece pick-up unit in the embodiments of the present invention 7.
Figure 23 is setting in the embodiments of the present invention 8 the has been shown figure of process flow diagram as the system architecture example of the situation of carrying out mark.
Figure 24 be setting in the embodiments of the present invention 9 is shown display as the figure of the system architecture example of the situation of carrying out mark,
Figure 25 is the figure of cellular construction that the check system that is an object of the present invention is shown.
Figure 26 is the figure that the example of the sheet form program that the testing fixture able to programme by above-mentioned check system uses is shown.
Figure 27 be setting in the embodiments of the present invention 10 is shown each key element of sheet form program as the figure of the system architecture example of the situation of carrying out mark.
Embodiment
Embodiment 1.
Below, with reference to accompanying drawing, describe about embodiments of the invention.
Fig. 1 is the block scheme that the system architecture that is used in program execution control mode of the present invention is shown.As hardware resource, have CPU (central processing unit) 100, ROM (ROM (read-only memory)) 101, RAM (random access memory) 102, display device 103, I/O (input-output unit) 105, D/A (digital analog converter) 106, A/D (analog-digital converter) 107 in this system architecture.
They connect by bus, but do not need unanimity all, under the situation of not treatment of simulated input, can not have A/D107, under the situation of not treatment of simulated output, can not have D/A106.In addition, need under situation about showing in the display frame, can not omit display device 103.
For example, in ROM101, storing the program of control operation system and control system work, in addition, the storage user makes in RAM102 program and data.CPU100 utilizes the program of the control system work among the ROM101 that is stored in to carry out various functions.
Fig. 2 is the functional structure chart that the work of the system that embodiments of the present invention 1 relate to is shown, and utilizes the various processing of above-mentioned CPU100, ROM101, RAM102, display device 103, input media 104 to carry out.For example, CPU100 and display device 103 have the function of display device 207 jointly, has the function of operating means 206 jointly with input media 104, simultaneously, has the function of the device 202 of functional block actuating unit etc. jointly with ROM101 and RAM102, carry out the program that the user makes, have the function of input media 204 jointly, have the function of output unit 205 jointly with I/O105 and D/A106 with I/O105 and A/D107.Display device 103 for example is made of LCD, can explicit user program implementation situation.Input media 104 for example is made of keyboard and the touch-screen that is attached on the LCD, execution indication that can converse routine and handling.
Below, with reference to Fig. 2, the various functions performed about CPU100 describe.
Program making device 200 is to be used for the device that the user makes the program of the work that realizes expectation.This device is present on the identical hardware with program executing apparatus 202 sometimes, is present in sometimes on other hardware.Under situation about being present on other hardware, use communicator, will be sent on the hardware identical in this program made from program executing apparatus 202.In program making device 200, the user utilizes the program language of functional block etc. to come production process, but since program executing apparatus 202 can not former state carry out, therefore, program language is transformed into the form that can carry out in program executing apparatus 202, temporarily is stored in the program save set 201.
Program save set 201 is the devices that are kept at the program of making in the program making device 200.That program executing apparatus 202 is read is 200 that make by the program making device, carry out after being kept at the user program in the program save set 201.In this program executing apparatus 202, the work indication based on recording and narrating in program is taken into data from data storage apparatus 203, processes after these data again to data storage apparatus 203 outputs.In addition, in program executing apparatus 202, when carrying out corresponding processing after the indication of having accepted the user from operating means 206, the practice condition of display routine in display device 207.In addition, under the situation of preserving execution result, to execution result save set 208 output execution results.
Input media 204 and output unit 205 carry out work according to the indication cycle or program executing apparatus 202, and external connection apparatus between, input and output are stored in the data in the data storage apparatus 203.
One example of the Function Block Diagram that user shown in Fig. 3 uses when carrying out program making (following note is made FBD).FBD is a program of utilizing functional block (following note is made FB) to record and narrate.In the figure, the processing one of FB1 (31) finishes, just the result in FB2 (32) input FB1 (31).Then, the processing one among the FB2 (32) finishes, and just imports to FB3 (33).At last, the result of output FB3 (33).
In this wise, in FBD, as input, carry out the processing of data by the data after giving to handle among each FB to FB by the connecting line connection.To the value of the FB of front input data storage apparatus 203, again to the value of data storage apparatus 203 outputs from the FB output of last tail.
As described in the explanation in the background technology, the stage in program development, in order partly to confirm the work of program, the part of comment out except the object that work is confirmed sometimes.But the program of wanting the comment out user to make just need be changed program on program making device 200, then, program after changing be carried out, just execute form need be transformed into, be stored in the program save set 201, be read into then in the program executing apparatus 202.All carry out this a series of work during the position of each change comment out, efficient is low, nor talkative procedure development efficient height.
Therefore, in present embodiment 1, the execution mark is set in each FB, in program executing apparatus 202, during executive routine, only carries out the FB that tape program is carried out mark.In addition, not in program making device 200 inediting programs, and carry out the ON/OFF of mark on the program after being transformed into execute form.Have under the situation of display device such as LCD at the real machine of carrying out FBD,,, carry out the operation of the ON/OFF of mark Yi Bian use input media to carry out the operation of ON/OFF on one side can see the FBD that is presented in this display device.In addition, also can not show FBD, and mark is carried out in demonstration only arranged side by side on picture, carries out the operation of ON/OFF on real machine.In addition, under the situation that the programming development environment of the real machine of carrying out FBD and personal computer etc. is being connected, also can on programming development environment, show FBD, the execution mark of the FB that operation is expected.
Because when the position of each change comment out, need be by program making device 200 edit routines, be read into once more in the program executing apparatus 202 after being transformed into execute form, can improve procedure development efficient.
Below, describe about the means that realize.
Fig. 4 is the figure that an example that is provided with the FB that carries out mark is shown, and Fig. 4 (a) shows and put into this FB41 of check back execution in carrying out mark 42.On the other hand, Fig. 4 (b) shows to carry out in the mark 42 and does not put into check, does not carry out this FB41.The example of the FBD that records and narrates by FB shown in Fig. 5 with execution mark 42.In Fig. 5, put into check in the execution mark 42 in FB1 (31) and FB3 (33), but, therefore, do not carried out FB2 (32) owing in the execution mark 42 of FB2 (32), do not put into check.Therefore, become program with the FBD equivalence shown in Fig. 6.
Illustrated in this example and will carry out the FB that has put into check in the mark and be judged as effectively and carry out, the mode that FB except check does not carry out, but can not carry out the FB that in carrying out mark, has put into check, and carry out the FB that in carrying out mark, does not put into check in contrast yet.
Thereby, the operation result of each FB is updated to the variable that is used for preserving operation result, the value of this variable just becomes the input of the FB that carries out next time.Thereby, among continuous FB,,, obtain the result identical with comment out with regard to the processing of this FB not being reflected to become the value that as a result of obtains if there is the FB do not carry out.
Be provided with the example of the data layout of the FB that carries out mark 42 shown in Fig. 7.The data of each FB are by the output 1 (75) of the data of the input 1 (73) of the data of the ID71 of the functional block that is used to specify FB, execution mark 72 that control is carried out, connecting line that preservation is connected with the input pin of FB and the connecting line that input 2 (75), preservation similarly are connected with output pin and export 2 (76) formations.The information of carrying out mark 42 can be included in the data layout of FB in this wise, also can make the only zone of centralized stores execution mark 42, from the execution mark 42 of each FB with reference to correspondence.
Below, use Fig. 8, describe about the processing in the program executing apparatus 202.Program executing apparatus 202 is read a FB (step 81) from program.The execution mark 42 of judging this FB is effectively or invalid (step 82), if effectively, just carry out the processing (step 83) of this FB.It is the processing of just not carrying out this FB under the invalid situation.Then, make the programmable counter of the FB that carries out of indication add one (step 84).Then, judged whether to arrive the terminal (step 85) of program.Termination routine under the situation of the terminal that has arrived program exists under the follow-up situation, to the transfer of reading of next FB.
This carries out the ON/OFF of mark 42, can confirm the FBD of demonstration on the display device 207, and meanwhile utilize operating means 206 to operate, Yi Bian also can on program making device 200, confirm the FBD of demonstration, Yi Bian operate.Owing to carry out these operations for the FBD that is transformed into after the execute form, therefore, need after operation, program transformation not become execute form.
Fig. 9 illustrates not conversion execute form, as the method for conversion execution flow process, the FBD of the method for subsidiary condition statement.In the figure, owing to added conditional statement 91,92, therefore, just in program, added and the different FB of processing that in original program, wants to record and narrate.Its result, the readability of code and maintainability variation.Thereby, and the method for carrying out mark 42 is set in each FB compares and can not agree.
As described above, have in program under the situation of the part that is made as comment out, it is invalid that the execution mark that only will locate is converted to, and program transformation is not become execute form, just can access the effect same with comment out.In addition, in program making,, therefore, can improve procedure development efficient owing to do not need the map function of program.
Embodiment 2.
Figure 10 is the embodiment under the situation that is provided with program validation device 1002 on the programming development environment, and whether described program validation device 1002 is judged as correct on the program syntax.Program validation device 1002 is the operations of ON/OFF that utilize the execution mark 42 of the some FB among the FBD1001, judges the device that whether becomes FBD correct on the grammer.Program validation device 1002 also may reside on the real machine of carrying out FBD.
Program validation device 1002 carries out work after the conversion operations that has carried out execution mark 42, carry out the syntax check of program.Then, in the result who shows on the sequence display system 1003 after confirming.Sequence display system 1003 is devices of display routine, for example is the display part of display device 207 and program making device 200.
Below, use Figure 11, describe about the flow process of program validation device 1002.
The execution mark 42 of each operation FB, program validation device 1002 just starts.Program validation device 1,002 one starts, and just reads program (step 111), affirmation program whether correct (step 112) on grammer.Then, affirmation program whether correct (step 113) on grammer.Under situation correct on the program syntax, by no problem in sequence display system 1003 display routines.On the other hand, under incorrect situation on the program syntax, emphasize to show the incorrect part (step 114) in the program for example.
The demonstration example of sequence display system 1003 shown in Figure 12 and Figure 13.In Figure 12, the execution mark 42 that will have the FB12 (123) of an output of two inputs is made as OFF.It is invalid that FB12 (123) becomes, and this FBD just can not carry out owing to be false on the grammer.Therefore, as shown in figure 13, emphasize to show incorrect part.
In this example, emphasize incorrect part by the width chap that makes line, but also can utilize color that changes line or the various methods such as color that change background to emphasize incorrect part.
In this wise, by emphasizing to show incorrect part, just can point out to produce the place of problem easily.
Embodiment 3.
Has execution mark 42 at FB shown in Figure 14 and is the example of the FB of the alternative FB (141) that carries out under the situation of OFF.In this example, the FB of the in store AND of FB12 (123) is FB (141) as an alternative.Because the execution mark 42 of FB12 (123) has become OFF, therefore, or not FB12 (123) during execution and execution FB AND (141).On the other hand, be under the situation of ON carrying out mark 42, carry out FB12 (123).
The example of data layout that has the FB of alternative FB (141) shown in Figure 15.For the data layout of common FB, added the ID151 of alternative FB.Carrying out mark 42 is under the situation of OFF, reads the ID151 that substitutes FB and carries out.
In this wise, by being kept at alternative FB141 performed when carrying out mark 42 and be changed to OFF in addition, just can utilize the operation of execution mark 42, it is incorrect that the program that prevents becomes on grammer.In addition, owing to do not alter the procedure and again to the execute form conversion, therefore execution content that also can converse routine, can improve the debugging efficiency of the FB etc. of registration debugging usefulness.
Have again, in this example, a FB has been recorded and narrated an alternative FB141, but also can register a circuit that constitutes by a plurality of FB a FB.
Embodiment 4.
Can during the program that has stopped FBD or the term of execution carry out the rewriting of the execution mark of FB.Rewrite the program implementation mark of FBD, the method for carrying out on method of carrying out on the real machine and the programming development environment realized on personal computer etc. is arranged.
Embodiment shown in Figure 16 under the situation of the rewriting of the execution mark that carries out FB on the real machine.Carry out marking operation device 161 and be the device of execution mark 42 of each FB of operation FBD.This execution marking operation device 161 utilizes the device that shows the state of carrying out marks and carries out the input media 104 of real machine of the operation of mark 42, is implemented in to show FB on the picture that real machine has or show side by side and carry out the corresponding display unit of mark etc.Do not have at real machine under the situation of display frame, make execution mark 42 corresponding, operate according to input and carry out mark 42 with input media 104.
Execution mark by carrying out 161 operations of marking operation device utilizes the program validation device 1002 on the real machine, confirms whether to become program correct on the grammer.
Under the situation of carrying out on the programming development environment, execution marking operation device 161 and the program validation device 1002 of Figure 16 are present on the programming development environment, and whether being combined on the grammer of the execution mark after confirming to reset be no problem.Then, the combination with the execution mark set up on the grammer is reflected on the program of execute form.
Under being present on the real machine and being present in situation on the programming development environment, all do not carry out in program validation device 1002 setting of mark 42, make calling program under situation about coming right on the grammer, do not carry out the conversion that is present in the execution mark 42 in the program of execute form.
In this wise, when mark 42 is carried out in online rewriting, by utilize program validation device 1002 confirmed on the grammer correct after, change the execution mark 42 of FB simultaneously, just can prevent the situation that in the processing of FBD, produces grammar mistake and Interrupt Process etc. because of the operation of carrying out mark 42.
Embodiment 5.
Be provided with the embodiment of situation of the execution marking of control device 171 of the operation that from program, begins to carry out the execution mark 42 in the program shown in Figure 17.As one of FB, the FB of the execution mark 42 of the FB of setting operation appointment.This FB is specified the identification number of the FB that becomes the operand of carrying out mark 42.Described identification number is to specify a number that becomes the FB of the operand of carrying out mark 42.
Program executing apparatus 202 1 reads in the FB that mark 42 is carried out in operation, just calls and carries out marking of control device 171, carries out the operation of mark 42.The operation of carrying out mark 42 can be become OFF from ON, also can become ON from OFF.
The execution mark 42 of FB by beginning to operate appointment from program just can be selected performed FB.Therefore, just can carry out changing the processing of performed FB according to practice condition.
The control of this execution mark 42 also goes for having the FB of replacement circuit.In addition, mark 42 is carried out in the affirmation operation afterwards that also can carry out program.
Embodiment 6.
In this embodiment 6, set text line as carrying out mark 42.
Figure 18 shows the system architecture under this situation, program executing apparatus 202 will be set in the text line carried out in the mark 42 and effective text line save set 181 in store text line compare, carry out the FB that in carrying out mark 42, has the text line of unanimity.
Effectively text line save set 181 is to preserve the device that is used for the text line of comparing at the text line of the execution mark 42 of FB with record, can preserve a plurality of text lines.Recording and narrating under the situation of text line in the execution mark 42 of the FB that reads in, program executing apparatus 202 is confirmed under the situation that has consistent text line, just to carry out this FB effectively whether having consistent text line in the text line save set 181.
In carrying out mark 42, recorded and narrated the example of text line shown in Figure 19.Carry out in the mark 42 and not only can record and narrate ON/OFF, also can record and narrate text line.In this example,, recording and narrating " DEBUG " as text line.
Under the situation of having specified text line, in program executing apparatus 202, only carry out FB with the efficient character of being defined as row.Do not carry out and have the FB that is not defined as the efficient character row.In addition, what all the FB that does not set in carrying out mark 42 in the former state execution.
If, just carry out FB31 (192) and FB41 (195) effectively having " DEBUG " in the text line save set 181.On the other hand, if effectively do not have " DEBUG " in the text line save set 181, just do not carry out the processing of FB31 (192) and FB41 (195).
The treatment scheme of the program executing apparatus 202 shown in Figure 20 under this situation.
Program executing apparatus 202 is read a FB (step 2001) from program.The execution of judging this FB marks whether it is text line (step 2002).If not text line but the mark of expression ON/OFF just judges whether carry out mark 42 becomes effectively (step 2003).On the other hand, in carrying out mark 42, setting under the situation of text line, whether having consistent text line (step 2004) in efficiency confirmed the text line save set 181.Existing under the situation of consistent text line, is that the situation of ON is similarly carried out this FB (step 2005) with execution mark 42 just.On the other hand, effectively do not exist under the situation of consistent text line in the text line save set 181, with carry out mark 42 be OFF situation similarly, do not carry out this FB, and transfer to move (step 2006) of programmable counter.
Programmable counter is advanced to after the next FB, judge the terminal (step 2007) of the program that whether arrived.Under the situation of the terminal that has arrived program, termination routine exists under the follow-up situation, to the transfer of reading of next FB.Utilize program making device 200 and input media 104 to be defined as the appointment of efficient character row.
Registration is defined as before the efficient character row in effective text line save set 181, and service routine is confirmed device 1002, is listed as by the change efficient character, also can confirm whether to become program correct on the grammer.
During debugging, thinking under the situation of display message, can in the execution mark 42 of the FB with data presentation function, define identical text line, effectively in the text line save set 181 this text line is being defined as effectively.If this text line is defined as effectively just carrying out the FB of display message, therefore, utilize FB with Presentation Function, just can confirm the work of program.On the other hand, the work of program confirms that one finishes, just can whole cancellations demonstrations by this text line being made as invalid.
In addition, by each product is set defined text line in the execution mark 42 of FB, just can make program corresponding to multiple class.Figure 21 is the example corresponding to the FBD of two kinds of products.
FB60 (211) and FB70 (214) have been carried out afterwards, effectively defining under the situation of " WorkA " in the text line save set 181, just carry out FB61 (212) and FB71 (215), under the situation that has defined " WorkB ", just carry out FB62 (213) and FB72 (216).If record and narrate the processing that each product is changed with conditional branching, then along with kind increases and the conditional branching increase, therefore, the readable variation of program.In carrying out mark 42, set in the method for text line and since only carry out be kept at effective text line save set 181 in the consistent FB of text line, therefore, do not record and narrate conditional branching, just can record and narrate the good program of readability.
Embodiment 7.
In program, be provided with detection execution mark 42 shown in Figure 22 and be effective FB pick-up unit 222 of effective FB.Effectively FB pick-up unit 222 only shows in display device 1003 and carrying out effective FB that sets and handle when carrying out with reference to execution mark among the FB that is set in the program 42 and the text line that is kept in effective text line save set 181.
According to this embodiment, owing to only show and carrying out the FB that effectively sets, therefore, do not need to confirm respectively to be set in the execution mark 42 among each FB, and display routine legibly.
In addition, carrying out the FB that effectively sets and, also can show effective FB legibly by change except that the Show Color of the FB it.
Embodiment 8.
In embodiment 8,, set process flow diagram as carrying out mark 42.
Figure 23 shows the system construction drawing of this situation, set to carry out mark 42 in each flow process of process flow diagram, is provided with process flow diagram actuating unit 233, according to the state that is set in the execution mark 42 in each flow process, the execution that determines this flow process with do not carry out.
To each mode of embodiment 7, process flow diagram actuating unit 233 can be replaced into the part that is equivalent to FB flow process and implement at embodiment 2.
According to embodiment 2, utilize program validation device 1002, can emphasize vicious place on the grammer in the display routine.
According to embodiment 3, in each flow process, record and narrate to substitute flow process, be under OFF and the invalid situation carrying out mark 42, can carry out substituting the content of recording and narrating in the flow process.
According to embodiment 4, utilize program validation device 1002, confirmed program on grammer correct after, can utilize and carry out marking operation device 161, the execution mark 42 in the converse routine simultaneously.
According to embodiment 5, use and carry out marking of control device 171, can from program, begin to operate the execution mark 42 of each flow process.
According to embodiment 6, in the execution mark 42 of each flow process, specify text line, compare with the text line that effective text line save set 181 is preserved, can only carry out flow process with consistent text line.
According to embodiment 7, in the execution mark 42 of each flow process, specify text line, compare with the text line that effective text line save set 181 is preserved, can in program making device 200 and sequence display system 1003, only show to have the flow process of consistent text line.
In addition, be not limited to functional block and process flow diagram, the pointer of graphical programming language and sequential function chart also can similarly be carried out mark 42 by setting in each execution module, and mark 42 is carried out in control when carrying out, and just can carry out the conversion of work etc.
Embodiment 9.
In embodiment 9, set display as carrying out mark 42.Display has the data that display processing unit reads in display unit, shows the represented functions of components of video data on picture.Figure 24 shows the system construction drawing under this situation, set to carry out mark 42 in display unit, be provided with to show actuating unit 244, according to the state that is set in the execution mark 42 in each display unit, the demonstration that determines this display unit with do not show.
Show that actuating unit 244 can be applicable to the part that is equivalent to embodiment 3, embodiment 6 and embodiment 7 that display unit carries out.
According to embodiment 3,, when not showing this display unit, can replace the display unit that registration shows for a display unit.In addition, according to embodiment 6, for display unit, whether definition decision shows the text line of this display unit, can be only shows and shows this display unit under the situation of effect being judged as this literal.By a plurality of display units are configured on the same coordinate, different separately text lines is defined as effectively, just can only show effective display unit.In addition,, be set at effective display unit, therefore, can make editing operation efficient owing on editing pictures, only showing by effective display unit pick-up unit 242 according to embodiment 7.
Embodiment 10.
Figure 25 illustrates the figure of cellular construction of the check system that is an object of the present invention.The machine of sending into 300, the inspection post 301 that are made as object has been shown among Figure 25, sent machine 302 and controlled their testing fixture able to programme 303, considered to implement to check.Machine 300 is sent in testing fixture 303 controls able to programme, sends into to inspection post 301 and checks object 304.In inspection post 301, to checking object 304 sectional fixtures etc., object 304 and testing fixture able to programme 303 are checked in electric property connection, are implemented in the inspection of the inspection item of recording and narrating in the sheet form program.The inspection object 304 that is through with and checks is sent machine 302 and 301 sends from the inspection post.
Can in the display frame of testing fixture 303 able to programme, confirm the situation of carrying out of inspection.In testing fixture 303 able to programme, project and the flow process of checking tabulated, can execution list form program.The example of the program of sheet form shown in Figure 26.The sheet form program is made of step number 400, note 401, instrumentation condition enactment portion 413, instrumentation object configuration part 414, determinating reference configuration part 415, judgement aftertreatment configuration part 416.
During execution list form program, can be in the content of the step number 400 that shows executory step in the display frame with note 401, the value of in instrumentation condition enactment portion 413, recording and narrating, the instrumentation object of in instrumentation object configuration part 414, recording and narrating, the value of in determinating reference configuration part 415, recording and narrating, record in judgement aftertreatment configuration part 416.
Be set in the condition of checking in the object 304 when in instrumentation condition enactment portion 413, having recorded and narrated instrumentation.In Figure 26, show and check that object 304 has two SW-1 and SW-2 as switch, has the situation of the channel C H-1 of input voltage.SW-1, SW-2 in the sheet form program of Figure 26 and CH-1 all are mark (titles that the user gives arbitrarily for input-output device that testing fixture had etc.), in fact exist and data storage apparatus 203 corresponding equipment.In addition, these equipment are connected with inspection object 304 by input media 204 and output unit 205.In the example of Figure 26, in step 1, SW-1 is made as ON, SW-2 is made as OFF, CH-1 is applied 0.0V.Can in instrumentation condition enactment portion 413, set the equipment of any amount.
After in waiting for hurdle 405, having set the instrumentation condition, specify stand-by period up to the value that obtains the instrumentation object.By in waiting for the hurdle, specifying the stand-by period, adjust because of the different time constant of instrumentation object.In the unit of the time that is set at wait, second and millisecond etc. have been exemplified.In waiting for hurdle 405 effluxion of appointment after, the object of appointment begins to carry out instrumentation from instrumentation object configuration part 414.In the object hurdle of instrumentation object configuration part 414, the number of the passage of the value of appointment instrumentation inspection object 304.In the example of the step 1 of Figure 26, specified A/D1-CH3 as object.This shows the value of the passage 3 on first A/D converter that instrumentation connecting the testing fixture able to programme 303 of checking object 304.Instrumentation to data preserve according to the data type of appointment in data type hurdle 407, the judgement of afterwards whether qualified is also carried out according to the data designated type.
In the object hurdle 406 of instrumentation object configuration part 414, specify the also value of the object of instrumentation, compare, judge and whether satisfy determinating reference with the value of appointment in determinating reference configuration part 415.Minimum value hurdle 408, maximal value hurdle 409 and consistent comparative column 410 are arranged in the determinating reference configuration part 415.In minimum value hurdle 408, record and narrate the minimum value of whether qualified determinating reference, in maximal value hurdle 409, record and narrate the maximal value of whether qualified determinating reference.If the value of instrumentation is just carried out the judgement of qualified (OK) in this scope.If the value that instrumentation arrives is just carried out the judgement of defective (NG) not in this value.The record of void value in minimum value, maximal value being is only is being recorded and narrated under the situation of numerical value in consistent comparative column 410, just judge instrumentation to value whether consistent with the numerical value of recording and narrating in consistent comparative column 410.Under the situation of unanimity, just carry out the judgement of qualified (OK).If inconsistent, just carry out the judgement of defective (NG).
Based on the result of determination that will fall into a trap in instrumentation object configuration part 414 value that measures and the value of being set by determinating reference configuration part 415 are judged after relatively, carry out the processing of recording and narrating in judging aftertreatment configuration part 416.Judge that aftertreatment configuration part 416 is made of 412 two hurdles in OK hurdle 411 and NG hurdle.Record and narrate the processing of carrying out under the situation of result of determination qualified (OK) in the OK hurdle 411.Record and narrate the processing of carrying out under the situation of result of determination defective (NG) in the NG hurdle 412.In the OK hurdle 411 of the judgement aftertreatment configuration part 416 of the step 4 of Figure 26, the processing of specifying " Func1 " that call other software objects that are present in the system.Result of determination in step 4 is under the situation of OK, calls this " Func1 " from sheet form program executing apparatus 273 described later and carries out.
Judge that the processing of recording and narrating in the aftertreatment configuration part 416 one finishes, sheet form program executing apparatus 273 just advances to the next procedure (OK) of identical sheet form program, reading step number 400 and note 401.Shown in display frame after them that the data of recording and narrating in the output instrumentation condition enactment portion 413 are carried out the remaining processing of this row.
In this wise, the data processing one of delegation finishes, and just advances to next line.Then, the processing one of whole list procedure finishes, and just becomes being over of this sheet form program.
In embodiment 10,, set each key element of sheet form program as carrying out mark 42.
Figure 27 shows the system construction drawing under this situation, set to carry out mark 42 in each key element of sheet form program, is provided with sheet form program executing apparatus 273, according to the state that is set in the execution mark 42 in each key element, the execution that determines this key element with do not carry out.
Sheet form program executing apparatus 273 can be applicable to that the sheet form program carries out with being equivalent to the processing of embodiment 2 to embodiment 7.
That is, in embodiment 2, utilize program validation device 1002, confirm the grammer of whether observing the sheet form program.In embodiment 3, substituting unit is prepared in the unit of sheet form program.If execution mark 42 ON of each unit just carry out the content of recording and narrating in the unit,, just carry out the content of recording and narrating in substituting unit if the content of unit is OFF.
In embodiment 4, service routine confirms whether the state of the execution mark 42 after device 1002 has been confirmed to rewrite is after correctly carrying out the setting of work, in fact the execution mark 42 of rewriting program.In embodiment 5, use and carry out marking of control device 171, the execution mark 42 of beginning operating unit from the sheet form program.The operation of the execution mark 42 of unit also can utilize script to record and narrate in the script hurdle, also can record and narrate the execution mark 42 that is set in the unit and be made as the efficient character row with equipment is common in the condition enactment hurdle.
In embodiment 6, in each unit, set text line.Compare with the text line in being kept at effective text line save set 181.Under recording and narrating text line in the unit situation consistent, carry out the content of record in this unit with the text line in being kept at effective text line save set 181.The text line of recording and narrating in the unit is not kept under the situation in effective text line save set 181, does not carry out the content of recording and narrating in this unit.In addition, in carrying out the hurdle of mark 42, the setting of unit do not set under the situation of text line, and irrelevant with the text line that is stored in effective text line save set 181, carry out the content of this unit.
In embodiment 7, become ON carrying out mark 42, perhaps identical with being set in the text line carried out in the mark 42 text line is included under the situation in effective text line save set 181, shows the content of this unit.Do not show unit in addition.In addition, by show this unit and unit in addition with different colours, just can show legibly becomes effective unit.
In addition, in the sheet form program, also can specify by the position of itemizing, row unit.
According to embodiment 3, can make by the row unit and substitute row, make by the position of itemizing and substitute row.
In addition, according to embodiment 6, can set effective text line in carrying out mark 42 by the row unit, effective text line is set in the position in carrying out mark 42 by itemizing.Carry out be stored in effective text line save set 181 in the consistent row and column of text line.Thereby, under the situation of recording and narrating the program of handling multiple class, can utilize effective text line save set 181 to adjust the row and column of execution.

Claims (11)

1. a program implementation control mode is characterized in that, comprises
Utilize the program making device of functional block form production process, and
The program executing apparatus of the program that execution is made by described program making device,
The execution mark is set in described functional block, whether decision carries out this functional block, just the ON/OFF of the described execution mark of operation in the stopping of the program that can record and narrate in described functional block or in carrying out utilizes described program executing apparatus, only carries out the effective functional block of described execution mark.
2. program implementation control mode as claimed in claim 1 is characterized in that,
Be provided with the program validation device, in the result of the execution mark of having operated functional block, when confirming whether to become program correct on the grammer, becoming under the situation of incorrect program, detecting in program becomes incorrect part.
3. program implementation control mode as claimed in claim 2 is characterized in that,
Be provided with the display device of emphasizing the incorrect part in the display routine.
4. program implementation control mode as claimed in claim 1 is characterized in that,
The alternative functions piece of this functional block of definition is under the situation of OFF at the execution mark of functional block in functional block, carries out defined alternative functions piece.
5. program implementation control mode as claimed in claim 1 is characterized in that, is provided with
Carry out the marking operation device, operate the execution mark of each functional block,
The program validation device confirms to mark whether it is program correct on the grammer by the execution of described execution marking operation device operation, and
Program executing apparatus is carried out the combination of the execution mark of setting up on the grammer.
6. program implementation control mode as claimed in claim 1 is characterized in that,
From the functional block of carrying out, but the setting of the execution mark that the operating function piece is had.
7. program implementation control mode as claimed in claim 1 is characterized in that,
Set text line in the execution mark that functional block had, the text line that this text line and effective text line save set of being managed by program executing apparatus is in store is compared, and judges that the functional block with same text row is for effectively also carrying out.
8. program implementation control mode as claimed in claim 1 is characterized in that,
Be provided with effective efficiency piece pick-up unit, detect and carry out the effective functional block of mark,
On sequence display system, only show the functional block of handling when effectively setting the back carries out.
9. as each described program implementation control mode of claim 1 to 8, it is characterized in that, will carry out mark and be applicable to process flow diagram.
10. as claim 4,6,7, each described program implementation control mode of 8, it is characterized in that,
Be applicable to the display unit that is presented on the display with carrying out mark.
11. each the described program implementation control mode as claim 1 to 8 is characterized in that, will carry out each key element that mark is applicable to the sheet form program.
CNB2004100822464A 2004-04-26 2004-12-24 Program execution control mode Expired - Fee Related CN100367233C (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2004129881A JP2005310056A (en) 2004-04-26 2004-04-26 Program execution control system
JP2004129881 2004-04-26

Publications (2)

Publication Number Publication Date
CN1690978A true CN1690978A (en) 2005-11-02
CN100367233C CN100367233C (en) 2008-02-06

Family

ID=35346434

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100822464A Expired - Fee Related CN100367233C (en) 2004-04-26 2004-12-24 Program execution control mode

Country Status (4)

Country Link
JP (1) JP2005310056A (en)
KR (1) KR100694948B1 (en)
CN (1) CN100367233C (en)
TW (1) TWI277879B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109791398A (en) * 2017-06-27 2019-05-21 三菱电机株式会社 Debugging apparatus

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1936527A1 (en) * 2006-12-18 2008-06-25 Gemplus Method used to vary the number of executions of counter-measures in an executed code
JP5215835B2 (en) * 2008-12-17 2013-06-19 株式会社日立ソリューションズ Program application support tool
CN111538505B (en) * 2020-04-23 2023-04-25 保定康强医疗器械制造有限公司 Slitter editing and grammar checking system
CN117642727A (en) * 2021-12-22 2024-03-01 三菱电机株式会社 FA control test assisting program, FA control test assisting device, FA control test assisting method, and FA control test assisting system

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5762447A (en) * 1980-10-01 1982-04-15 Fujitsu Ltd Control system for execution of program
JPH0324637A (en) * 1989-06-21 1991-02-01 Fuji Electric Co Ltd Method for managing resource for program debagging
JPH06161723A (en) * 1992-11-18 1994-06-10 Meidensha Corp Program developing language editing device
KR100294876B1 (en) 1995-11-01 2001-09-17 윤종용 Operation system capable of dynamic reconfiguration and method for the same
JPH09160765A (en) * 1995-12-08 1997-06-20 Hitachi Ltd Production of software parts
JPH1091441A (en) * 1996-09-13 1998-04-10 Sanyo Electric Co Ltd Program execution method and device using the method
KR100271596B1 (en) * 1997-09-22 2000-11-15 박호군 Analysis and real-time execution method of a function block type process control program
KR100428710B1 (en) * 2001-07-18 2004-04-28 한국전자통신연구원 A modeling system and method by modeling-object assembling
JP4015898B2 (en) * 2002-07-26 2007-11-28 松下電器産業株式会社 Program execution device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109791398A (en) * 2017-06-27 2019-05-21 三菱电机株式会社 Debugging apparatus
CN109791398B (en) * 2017-06-27 2020-12-18 三菱电机株式会社 Debugging device

Also Published As

Publication number Publication date
TW200535631A (en) 2005-11-01
JP2005310056A (en) 2005-11-04
CN100367233C (en) 2008-02-06
TWI277879B (en) 2007-04-01
KR100694948B1 (en) 2007-03-14
KR20050103446A (en) 2005-10-31

Similar Documents

Publication Publication Date Title
CN110928529B (en) Method and system for assisting operator development
CN1249577C (en) Method and apparatus for interoperation between legacy software and screen reader programs
CN1203409C (en) Software running device and auxiliary system for developing software
CN101036127A (en) Source code inspection device, method, program, and recording medium
CN1749960A (en) Active content wizard execution with improved conspicuity
CN1851655A (en) Method for realizing product automatic test by test environment composed of test set
CN101414278B (en) Method for debugging binary application program based on dynamic inverse compiling technique
CN1842767A (en) An intermediate representation for multiple exception handling models
CN1725177A (en) Built-in equipment integrated development system and using method thereof
CN1737779A (en) Method and system for expanding peripherals
CN1877524A (en) Program creation apparatus, program creation method and program
CN1690978A (en) Program execution control mode
CN1525323A (en) Processor and compiler for creating program for the processor
CN1755378A (en) Electronic device connectivity analysis methods and systems
CN1662132A (en) Detection method for wrong mounting and substrate detector adopting such method
CN1529858A (en) Computing system
CN1896966A (en) Computer testing method
CN100338595C (en) Illuminating mechanism for defining object layer
CN108776601B (en) Android H5 page loading method, device, equipment and storage medium
CN1595324A (en) Method of managing the information on the release of restriction on use
KR20050101520A (en) Programming device
CN1365032A (en) Open type structure digital control system of remote network monitoring and secondary development
CN1412688A (en) Multidimensional programming device and multidimensional programming method
JP5811859B2 (en) Source code static analysis device, system, method, and program therefor
CN1591254A (en) Inspecting device and programming tool

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080206

Termination date: 20201224