United States Patent [w]
Brooks et al.
[54] INDUSTRIAL CONTROLLER COMPILER WITH EXPANDABLE INSTRUCTION SET
[75] Inventors: Jeffery W. Brooks,
Mentor-On-The-Lake; Raymond R.
Husted, Mentor; Charles M. Rischar,
Chardon; Amir S. Ansari, Mayfield
Heights, all of Ohio
[73] Assignee: Allen Bradley Company, LLC,
Milwaukee, Wis.
[21] Appl. No.: 762,232
[22] Filed: Dec. 9, 1996
[51] Int. CI.6 G06F 9/44; G06F 9/30
[52] U.S. CI 395/705; 395/710; 395/707;
364/147; 364/140
[58] Field of Search 395/705, 706,
395/707, 708, 710, 702, 500; 364/147,
140
[56] References Cited
U.S. PATENT DOCUMENTS
5,005,152 4/1991 Knutsen 395/705
mi iiiiiii in mi ill ii|ji|jiij^ mi inn in in mi
[ii] Patent Number: 5,819,097 [45] Date of Patent: Oct. 6, 1998
5,247,693 9/1993 Bristol 395/705
5,287,548 2/1994 Flood et al 364/147
5,386,569 1/1995 Harada et al 395/707
5,504,902 4/1996 McGrath et al 395/707
5,508,909 4/1996 Maxwell et al 364/147
5,586,330 12/1996 Knudsen et al 395/705
Primary Examiner—Emanuel Todd Voeltz
Assistant Examiner—Tuan Q. Dam
Attorney, Agent, or Firm—Keith M. Baxter; John M. Miller;
John J. Horn
[57] ABSTRACT
A compiler for an industrial controller uses a user modifiable instruction table to contain code fragments necessary to compile particular instructions. During compilation, the instructions are replaced with the code fragments. Thus new instructions recognizable by the compiler may be added simply by editing this instruction table. Multiple instructions having the same name are resolved through a best match of operand types which examines the possible data loss in conversion of operand types to select a particular one of the instructions.
15 Claims, 5 Drawing Sheets