Claims
- 1. A programmable controller having a trace mode, said controller comprising:
- (a) origin instruction input means for generating an origin instruction to trigger a trace function,
- (b) a memory means connected to said origin instruction input means, for receiving and storing said origin instruction,
- (c) a display means connected to said memory means,
- (d) a user program memory for storing user program instructions,
- (e) instruction execution means connected to said user program memory, for receiving and executing said user program instructions,
- (f) mode designation means, responsive to generation of said origin instruction, for designating a trace trigger mode,
- (g) instruction and trace information extraction means, responsive to a designation of said trace trigger mode, for extracting an instruction which coincides with said origin instruction from a group of instructions being subjected to execution and processing by said instruction execution means and for extracting trace information, which has a reference corresponding to said instruction extracted which coincides with said origin instruction, from a group of instructions being subjected to execution and processing by said instruction execution means, by (i) setting a first flag in the memory means responsive to a designation of said trace trigger mode, to indicate that a trace trigger function has been designated; (ii) extracting an instruction currently being executed from the user program memory; (iii) responsive to said setting of the first flag, determining whether the instruction currently being executed coincides with the origin instruction; (iv) if no coincidence is determined in (iii), (a) storing the instruction currently being executed in a predetermined area of the memory means, (b) completing execution of this instruction, and (c) repeating (i), (ii) and (iii); (v) if a coincidence exists between the instruciton currenty being executed and the origin instruction, (a) setting a second flag in the memory means to prevent (iii) from being performed again until the trace trigger function has been terminated, (b) storing the instruction currently being executed in a predetermined area of the memory means, and (c) completing execution of this instruction, and (vi) sequentially extracting successive instructions for current execution from the user program memory and sforing said successive instructions in predetermined areas of the memory means.
- 2. The programmable controller according to claim 1 wherein said trace information comprises processing instructions both before and after the instruction extracted by said instruction extraction means with said extracted instruction being used as said reference.
- 3. The programmable controller according to claim 1 wherein said trace information comprises addresses of the processing instructions both before and after the instruction extracted by said instruction extraction means with said extracted instruction being used as said reference.
- 4. The programmable controller according to claim 1 wherein said trace information comprises the processing instructions and their associated addresses both before and after the instruction extracted by said instruction extraction means with said extracted instruction being used as said reference.
- 5. The programmable controller according to claim 1 wherein said display means comprises a character display.
- 6. The programmable controller according to claim 1 wherein said display means comprises a CRT display, and said trace information comprising the processing instructions are displayed in the form of a flow chart on said CRT display.
- 7. The programmable controller according to claim 1, wherein said trace information extraction means stores said predetermined instructions in said predetermined areas of said memory means in accordance with a given execution sequence of said group of instructions.
Priority Claims (1)
Number |
Date |
Country |
Kind |
58-8075 |
Jan 1983 |
JPX |
|
Parent Case Info
This application is a continuation of application Ser. No. 571,749 filed Jan. 18, 1984, now abandoned.
US Referenced Citations (6)
Foreign Referenced Citations (6)
Number |
Date |
Country |
56-35252 |
Apr 1981 |
JPX |
8101891 |
Jul 1981 |
WOX |
1441444 |
Jun 1976 |
GBX |
1457604 |
Dec 1976 |
GBX |
1480520 |
Jul 1977 |
GBX |
1513946 |
Jun 1978 |
GBX |
Non-Patent Literature Citations (1)
Entry |
IBM Technical Disclosure Bulletin, vol. 25, No. 2, Jul. 1982; "Debug Program Multiple Full Screen Displays", by Fichtner et al. |
Continuations (1)
|
Number |
Date |
Country |
Parent |
571749 |
Jan 1984 |
|