Programmable controller module identification system

Abstract: A programmable controller includes a processor module and a number of input/output modules (60) housed in a rack. Each input/output module contains a circuit that identi­ fies characteristics of the module to the processor module. The circuit has a parallel input port (91 to 95; ID IN 0 to ID IN 4) and a parallel output port (81, 82; ID OUT 0, ID OUT 1). The outputs and inputs of the two ports are interconnected (86, 87) in a predefined manner according to the module characteristics. In addition, inputs of the input port are coupled to either a positive or negative voltage (V+; ground) source to identify other module characteristics. By sequentially sending data to the output port and then reading data from the input port of each input/output module, the processor can identify the characteristics of the modules in the programmable controller.

Description: Background of the Invention The present invention relates to programmable controllers having a plurality of modules for performing different functions which operate a machine in response to the execution of a control program; and more particularly to a mechanism for identifying each type of module within the programmable controller. Programmable controllers are typically connected to industrial equipment, such as assembly lines and machine tools, to sequentially operate the equipment in accordance with a stored control program. One type of such programmable controller is disclosed in U.S. Patent No. 4,293,924 and consists of a rack which contains several functional modules. A rack backplane provides signal buses and connectors for electrically coupling the functional modules. One of these modules contains a processor which sequentially executes the control program. The control program is stored in a memory within the processor module and is executed to examine the condition of selected sensing devices on the controlled equipment, or to energize and deenergize selected operating devices on the controlled equipment contingent upon the status of one or more of the examined sensing devices. Also contained within the rack are a number of input/output (I/O) modules, which interface the processor to the sensing and operating devices. A given programmable controller can have a variety of different types of I/O modules, such as a.c. inputs or outputs, d.c. inputs or outputs, analog inputs or outputs, and open or closed loop positioning modules. One of the benefits of this type of programmable controller is that by varying the mix of I/O module types, the programmable controller can be configured to operate a wide variety of equipment and its configuration can be changed with alterations to the equipment. However, this advantage also presents a problem in that when a module in the programmable controller is replaced with one of a different type, the control program must be edited according. Should one of the I/O modules be inadvertently replaced with a different type of module or should an intentional replacement of the I/O modules be made without corresponding program editing, the control program will be unable to properly operate the equipment with potentially devastating consequences. Therefore, it is desirable that the programmable controller, prior to executing the control program, be able to identify the type of each I/O module within the system and confirm that each module corresponds to the type expected to be found by the execution of the control program. Previously, module identification was accomplished by storing a set of identification bytes in a read only memory of the module. However, "non-intelligent" I/O modules do not require such memories, and adding them solely for identification purposes would not be cost effective. US-A-4,468,612 teaches an arrangement for indicating when different types of electrical components are interconnected, and especially for detecting when an improper circuit board is connected to one of several connectors. Every circuit board has terminals which always receive two different voltage levels (positive voltage and ground) from voltage supply terminals. Each circuit board has also a set of conductors which connect said two voltage terminals to input terminals of the connector. This connection continuously applies the two voltage levels to a set of input terminals in a pattern that is unique to the apparatus. Each circuit board is always connected to both the power terminals and the input terminals. As long as all of the circuit boards have the same unique interconnection pattern, the proper identification will occur. An improper circuit board will have different conductors which change the identification pattern produced at the input terminals. Thus, a device reading the signals at the input terminals will know that a wrong circuit board has been placed into the system. However, there is no way of detecting which one of the circuit boards is improper. Nor is there any mechanism for detecting and identifying the characteristics of a particular circuit board when circuit boards having different characteristics are mixed in a single system. The general object of the present invention is to provide a programmable controller which allows its processor to identify the characteristics of each I/O module contained in the programmable controller. Summary of the Invention The inventional solution is defined in claim 1 the precharacterizing portion of which appreciates US 4,293,924. In the invention, a programmable controller has a processor for executing a control program which directs the operation of a machine to perform a specific function. Also included in the programmable controller is one or more input/output modules which interface the processor to sensing and operating devices on the machine. Each of the I/O modules includes circuitry which enables the processor to identify the I/O module's type. This circuitry includes an input port and an output port, each of which in the preferred embodiment is a multi-bit parallel port having a terminal for each of the parallel data bits. Both the input and output ports are addressable by the processor, enabling the processor to send data to the output port and receive data from the input port. The Input and output ports are interconnected in a predefined manner according to the specific type of I/O module, thereby enabling the processor module by writing data to the output port and reading the data back through the input port to identify the type of I/O module. Hence, the invention provides the identification according to the general object utilizing input and output ports on the module. Another object of the invention is to provide a system for identifying the module characteristics, which utilizes a single input and a single output port in a manner which enables a large number of different types of modules to be identified. A further object of the present invention is to provide such an identification system which can be expanded as the number of different types of modules increases. Brief Description of the Drawings FIGURE 1 is a pictorial representation of a programmable controller according to the present invention; FIGURE 2 is a schematic representation of the electrical interconnecticn of the racks and modules of the programmable controller; FIGURE 3 is a schematic block diagram of the programmable controller processor module; FIGURE 4 is a block schematic diagram of a generic input type I/O module; and FIGURES 5A and 5B form a flowchart of a module identification routine, which is executed by the processor module. Detailed Description of the Present Invention With initial reference to Figures 1 and 2, a programmable controller, generally designated as 10, includes two racks 12 and 13 with separate power supplies 14 and 15 respectively. Each of the racks 12 and 13 has a number of slots within which different functional modules 16 and 17 can be received. A unique address is assigned to each rack slot in order to access the module received therein. The two racks 12 and 13 also include a backplane 18 and 18′ respectively, having electrical connectors and conductor buses which interconnect the functional modules 16 and 17 and provide power to the modules from the power supplies 14 and 15. Specifically, the backplanes 18 and 18′ incorporate a parallel address bus 32, a parallel data bus 33, a set of control lines 34 and a five bit parallel slot address bus 35. Although separate address and data buses have been shown, a common bus onto which both address and data signals are time multiplexed can also be used. A separate connector is provided on the backplane for each slot in the rack to couple these buses and control lines to a module in the slot. A multiconductor cable 20 interconnects the backplanes 18 and 18′ of the two racks 12 and 13 to form a common system backplane, designated 19. Another multiconductor cable 20′ extends the system backplane from the second rack 13 to other racks of the programmable controller which are not illustrated. The racks are connected in a daisy chain by the cables 20 and 20′. The first rack 12 contains a processor module 16 which executes a user defined control program stored in the module's memory to operate a machine coupled to the programmable controller 10. A programming terminal 21 is connected by a cable 22 to the processor module 16 for monitoring the operation of the programmable controller and for programming the processor module 16. The processor module 16 is connected to the backplane buses 32, 33 and 35 and control lines 34. The first rack 12 also contains a number of input/output modules 17 which electrically interface the processor 16 to sensing and operating devices on the machine controlled by the programmable controller 10. As used herein, the term I/O module refers to a module which interfaces to external devices on the controlled machine. Such I/O modules can have solely an input function, solely an output function, or both input and output functions. I/O modules which provide an input function couple the processor module 16 to sensing devices on the controlled machine, while the output function modules interface to operating devices on the controlled machine. Each of the I/O modules may be an a.c. input or output device, a d.c. input or output device, or provide an input/output interface to analog devices, such as resolvers and position indicators. The typical programmable controller 10 includes a mix of different types of I/O modules. The different components of the processor module 16, shown schematically in Figure 3, are interconnected by a set of three internal buses: a control bus 24 consisting of a number of individual control lines running between different components, a parallel data bus 25 and a parallel address bus 26. A microprocessor 28 is coupled to the three internal buses 24-26. Depending upon the type of microprocessor 28, the address and data signals may be multiplexed onto a shared bus with a control signal indicating which type of signal is being carried by the shared bus at any given time. The microprocessor 28 executes an operating system program stored in a read only memory (ROM) 29 which controls the overall operation of the programmable controller 10 and executes a user defined machine control program that is stored within a random access memory (RAM) 30. Also stored in RAM 30 is a standard input/output data table which retains the status of the sensing and operating devices. The RAM 30 also provides storage locations for counters, timers and intermediate computation values used by the microprocessor 28 in executing the operating and user control programs. An address decoder 31 responds to specific addresses sent over the module address bus 26 by generating control signals on bus 24 which enable the microprocessor to access memories 29 and 30, as well as the system backplane 19. Access to the system backplane 19 by either the processor module 16 or by another module is governed by an interbus control circuit 36 which can comprise any of several well known circuits for performing bus access arbitration. In response to the proper request signal, the interbus control circuit 36 enables a set of bidirectional data buffers 37 to couple the internal data bus 25 of the processor module 16 to the backplane data bus 33. Similarly, the interbus control 36 enables a set of address buffers 38 to couple the processor module address bus 26 to the backplane address bus 32. A slot address latch 39 can be enabled by the interbus control circuit 36 to apply a five bit data word in parallel from the processor module data bus 25 to a backplane slot address bus 35. The interconnection of the internal buses of the processor module 16 to those of the backplane 19 enables the microprocessor 28 to selectively access any one of the I/O modules 17 in the racks 12 and 13. As far as the operation of the processor module 16 is concerned, the interconnected racks are viewed as one large rack with many slots and modules. In such a system, the slot closest to the processor module 16 is designated as slot 1 and the address of each slot going away from the processor module increases along the chain. The first rack 12 has seven slot addresses 0-6, including the one in which the processor module is located, and the four slots in the second rack 13 have addresses 7-10. To address a given module, the microprocessor stores the address of the module's slot in the slot address latch 39. The interbus control circuit 36 will then enable the slot address latch 39 to apply its contents to the slot address bus 35 across the system backplane 19. The backplane of each rack includes a slot address processing circuit 40, shown in Figure 2, which responds to an address of a slot within its rack by producing a slot select signal for that slot. The slot select signal activates the module in the respective slot to respond to signals on the other backplane buses. Once the slot address has been sent, the microprocessor 28 sends the address of a component within the selected module over the backplane address bus 32 by having the interbus control circuit 36 enable the set of address buffers 38. At the same time the interbus control circuit 36 enables the set of data buffers 37 so that data may be exchanged between the addressed I/O module 17 and the processor module 16. By employing this addressing technique, the processor module 16 can acquire sensor data from input modules and send state data to the operating devices via output modules in the racks. A generic discrete input module 60 is shown schematically in Figure 4. The input module 60 has a component address decoder 62 coupled to the backplane address bus 32. The component address decoder 62 in a given module is enabled by a high level slot select signal and a high level address strobe signal from a backplane control line applied to a first AND gate 63. When enabled, the component address decoder 62 responds to a first predefined address sent over the address bus 32 by generating a high level data input enable signal on line 64 which is connected to an input of a second AND gate 65. Another input of the second AND gate 65 receives an active on high I/O READ signal from a backplane control bus line 61. When the I/O module 60 simultaneously receives high level address strobe, slot select and I/O READ signals along with the first predefined address over the backplane buses, a sensor data input circuit 66 is enabled. This couples data from the sensing devices to the backplane data bus 33. Specifically, external sensing devices (not shown) are connected to eight data inputs of a signal level shifter circuit 67 by a set of terminals 68 on the front of the module (see Figure 1). Typically, each sensing device acts as a switch which when closed applies a given voltage level, for example 230 volts AC, to one of the data input terminals 68. The signal level shifter circuit 67 converts the voltage levels from the sensing devices into a relatively low voltage that is compatible with the logic devices in the programmable controller modules. The eight outputs of the signal level shifter 67, corresponding to the eight inputs, are connected to an isolation circuit 69 which electrically isolates the sensing devices from the remaining circuitry of the programmable controller 10. The isolation circuit 69 includes a separate electro-optical coupler for each data input from a sensing device. The eight outputs of the isolation circuit 69 are connected to the inputs of a set of eight tri-state data buffers 70 connected to the backplane data bus 33. When the data buffers 70 are enabled by a signal from the second AND gate 65, the isolation circuit outputs are coupled to lines of the backplane data bus 33. This applies the eight bits of data from the sensing devices to the processor module 16. The I/O module 60 also includes circuit 71 which checks the parity of each byte of data received over the data bus with a parity bit sent with the byte. If the parities do not match, the circuit 71 generates an interrupt signal on line 73 of the backplane control bus 34 which is common to all I/O modules 17. The interrupt signal is coupled to a periodically polled input of microprocessor 28 in the processor module 16. The interrupt signal also is coupled to an input of a third AND gate 72, which has another input that receives the slot select signal from the backplane slot address processing circuit 40. The output of the third AND gate 72 is connected to an interrupt identification (ID) control line 74 of the backplane control bus 34. The interrupt ID control line 74 is connected to an input of the processor modules microprocessor 28. When a high logic level interrupt signal is generated by the parity checking circuit 71, the microprocessor 28 in the processor module 16 interrupts its normal program execution and commences a parity interrupt handling routine. This routine sequentially addresses each I/O module and inspects the level of an interrupt ID control line 74 on the backplane control bus 34 to find the interrupt generating module. When the I/O module that generated the interrupt signal is addressed, its slot select line will go high. This high logic level applied to the third AND gate 72 together with the high logic level of the interrupt signal produces a high level on the interrupt ID control line 74. This signal on line 74 indicates to the microprocessor 28 which I/O module generated the parity interrupt and perhaps which interrupt handling routine to execute. In other types of I/O modules, an interrupt signal can be generated in response to an external signal or a module signal processing error. If several I/O modules generate separate interrupts simultaneously, each one will be polled in slot address order and their interrupts will be processed sequentially. As the I/O modules 17 are interchangeable in the rack slots, a potential exists that two or more modules may be inserted in different slots than the ones designated in the control program. If the modules are incorrectly positioned in the racks, different sensing and operating devices will be addressed by the processor during program execution. In order to detect erroneously located modules, each module has an addressable circuit which provides several identification codes back to the processor module. Typically, each type of I/O module has a different set of these codes, however, the codes can also be used to distinguish among modules of the same type having different functions with respect to the controlled machine. The module identification circuit is illustrated in the schematic diagram of Figure 4. The component address decoder 62, when enabled by the slot select and address strobe signals, also responds to a second predefined address by generating a high level identification enable signal on line 76. This enable line 76 is coupled to inputs of fourth and fifth AND gates, 77 and 78, respectively. A second input of the fourth AND gate 77 is connected to an I/O write control line 79 from the backplane control bus 34. The output of the fourth AND gate 77 is connected to the enable input of a four bit ID output data latch 80 having its data inputs coupled to four lines of the backplane data bus 33. The four outputs, OB₀-OB₃, from the output data latch 80 are connected to two separate tri-state data buffers 81 and 82. Two outputs, OB₁ and OB₃, are coupled to the data inputs of the data buffers 81 or 82, while the other two outputs, OB₀ and OB₂, are connected to the output enable inputs of these data buffers. The outputs of the two data buffers 81 and 82 are designated ID OUT⊘ and ID OUT1 respectively and form a two bit parallel output port. The output of the fifth AND gate 78 is coupled to the enable input of a set of five ID input data buffers 84 having their tri-state outputs connected to the five least significant bit lines of the backplane data bus 33. Each input IB₀-IB₄ of the five data buffers of set 84 is connected to an output of one of five buffer amplifiers 91-95. A separate pull-up resistor couples each input of the five buffer amplifiers to a source of positive voltage V⁺. The inputs of the five buffer amplifiers 91-95 are designated ID IN⊘ through ID IN4 and collectively form a parallel input port. Identification codes for a particular I/O module are formed by connecting selected bit lines of the input port to ground potential and/or to the bit lines of the output port. One set of codes, formed by coupling different ID input port lines ID IN⊘ through ID IN4 to ground, identifies the number of inputs and outputs for the I/O module, referred to herein as I/O mix information. An exemplary set of these codes is given in the table of Appendix A. Thirty-two I/O mix types can be identified by these different connections of the ID input port lines. For each I/O mix type, the logic level of the five ID input port lines is shown. A "zero" in the table indicates that the line is connected to ground. A "one" in the table designates that the line is not connected to ground, but is held at a high level due to the pull-up resistor. A second set of identification codes provides the electrical characteristics of the module. An exemplary set of these codes is given in the table of Appendix B. The codes identifying the module's electrical characteristics are defined by connecting one or both of the ID output port lines (ID OUT⊘ and ID OUT1) to a specific ID input port line. This interconnection as shown in Appendix B provides information about an input module's signal (AC, DC, etc) and the switching device of an output module (relay, triac, etc.). With reference to the specific I/O module 60 illustrated in Figure 4, lines ID IN2, ID IN3 and ID IN4 of the input port are directly connected to ground. This grounding produces an I/O mix input bit pattern of 00011 which designates that the module has eight inputs and no outputs (see Appendix A). The two lines ID OUT⊘ and ID OUT1 of the output port are coupled by resistors 86 and 87 to bit lines ID IN1 and ID IN⊘, respectively of the input port. This interconnection identifies the module as having 230 volt AC inputs (see Appendix B). In other identification code connections, a single input port line can be coupled to both ground and an output port line by separate resistors. Whenever the processor module 16 is placed in the control program execution mode, it initially conducts a scan of each rack slot to determine the type of module in that slot. A flowchart of the I/O module identification routine is shown in Figures 5A and B. The routine commences by the microprocessor 28 of the processor module in Figure 2 initializing the variables used in the routine at step 100. Then at step 101, the microprocessor 28 loads the slot address latch 39 with the address of the rack slot containing the module 17 to be identified. Once the processor module 16 has accessed the system backplane 19, the address is sent over the slot address bus 35. In response to the slot address signal on the backplane 19, the rack slot address processing circuit 40 in the rack containing the addressed slot sends an active slot select signal to the module 17 in that slot. Then, data is sent to the ID output data latches 80 which disables the ID output port at step 102. This is accomplished by the microprocessor 28 sending the second predefined address, that of the ID port, over the backplane address bus 32 to the module. Both the ID input and output ports share this second address with the I/O read and write control signals determining which port becomes coupled to the backplane data bus 33. At this time, the interbus control circuit 36 of the processor module 16 has been instructed to send active signals over the address strobe and I/O write lines of control bus 34. In response to these signals, the component address decoder 62 (Figure 4) sends an active ID enable signal on line 76. This enable signal combined with the active I/O write signal at the fourth AND gate 77 enable the ID output data latches 80 to store four bits of the data from the data bus 33. These four data bus bits become bits OB₀-OB₃ at the output of the data latches 80. Bits OB₀ and OB₂ are both held low and place data buffers 81 and 82 in their tri-state, or high impedance, output mode. Therefore, logic level signals are not applied via resistors 86 to 87 between the input and output ports in this mode. With the ID port address still being sent over the address bus 32, the microprocessor 28 removes the active I/O write signal and renders the I/O read signal on control line 61 active at flowchart step 103. This action enables the ID input data buffers 84 causing them to couple the data bits IB₀-IB₄ from the five buffer amplifiers 91-95 onto the data bus 33. These bits represent the logic levels produced by coupling selected bit lines of the ID input port to ground (i.e. lines ID IN2, ID IN3 and ID IN4 for the I/O module 60 illustrated in Figure 4). The microprocessor 28 reads these bits to determine the number of discrete inputs and outputs of the I/O module 60 as given by the I/O mix table of Appendix A. As described above, the bit pattern 00011 is generated at the input port by the ground connection of terminals ID IN2 through ID IN4 in the exemplary module 60.. This binary pattern designates I/O mix type 3, indicating that the modules has eight inputs and no outputs as shown in Appendix A. This binary designation of the I/O mix for the module is stored in the RAM 30 of the processor module 16 at step 104. The identification routine next identifies the module's electrical characteristics. Initially at step 105, the microprocessor 28 again addresses the ID output port and stores the bit pattern (0001) in the ID output data latch 80. This pattern causes the first buffer amplifier 81 to produce a low level output (0), while maintaining the second buffer amplifier 82 in the high impedance (HI Z) tri-state condition. The ID input port is then read by the microprocessor 28 obtaining data bits from the ID input data buffers 84 at step 106. These data bits are stored in a location of RAM 30 designated TEMP1 at step 107. Then at step 108, the microprocessor 28 changes the ID output data latch 80 to produce a high logic level from the first buffer amplifier 81 at terminal ID OUT⊘ while maintaining the second buffer amplifier 82 in the tri-state condition. The ID input port is read again at step 109 and the results are stored in RAM 30 in a location designated TEMP2 at step 110. In order to determine to which ID input port lines the ID OUT⊘ terminal is coupled, the values of TEMP1 and TEMP2 must be exclusive OR'ed (XOR). This will mask the effects of the pull up resistors and ground connections at the inputs of the five buffer amplifiers 91-95 which provide the I/O mix code. The result of the exclusive OR′ing at step 111 is the binary number (00010) having a one in the bit location to which the ID OUT⊘ line was coupled. This number is then stored in as a variable designated STATE⊘. The process of toggling one of the ID output port lines between one and zero and reading the ID input port is repeated at steps 112 through 117 for output port line ID OUT1. The results read from the ID input port, TEMP3 and TEMP4 are exclusive OR'ed to produce a binary number (00001) assigned to variable STATE1, which indicates the bit line of the input port that is coupled to bit line ID OUT1 of the output port at step 118 on Figure 6B. The values of STATE⊘ and STATE1 must be converted into a single number that corresponds to the class of the I/O module electrical characteristics as designated in Appendix B. This conversion is carried out in the next section of the module identification routine commencing at step 119 where a bit counter variable N is set equal to 1 and a variable called CLASS is set to zero. Then, the values of STATE⊘ and STATE1 are inspected to compute the electrical characteristic class. At step 120, the microprocessor 28 tests whether bit ⊘ of STATE⊘ equals one, which indicates that the least significant bit of the ID input port was coupled to the ID OUT⊘ bit line of the ID output port. If the equality is found, the value of N is added to the variable CLASS. The value of STATE1 is similarly examined at step 121 and if its bit ⊘ is found to equal one, six times the value of N is added to CLASS. At step 122, the microprocessor 28 shifts the bits of variables STATE⊘ and STATE1 one bit to the right so that the next least significant bit can be examined on the next loop through this section of the module identification routine. Then at step 123, the bit counter N is incremented and the new value of N is tested at decision step 124 to determine if all the bits of variables STATE⊘ and STATE1 have been inspected. If N is less than six, indicating bits still remain to be inspected, the routine returns to step 120. After all of the bits of variables STATE⊘ and STATE1 have been examined, the routine advances to step 125. Once all of the bits have been examined, the value of the variable CLASS will correspond to the class of the module's electrical characteristics given in the table of Appendix B. The I/O mix code and the electrical characteristic code are compared at step 125 with the values defined for this module by the user during system configuration. If the codes read from the module do not match the configuration data as determined at step 126, the program execution advances to step 127 where an error message is sent to the user via terminal 21 (Figure 1). The program execution then ends and returns to the main system program to await corrective action. If at step 126 the module is found to be as specified in the system configuration data, the module identification routine tests whether additional rack slots remain at step 128. If so, the program execution returns to step 100 where the module in the next slot is identified. This process repeats for each slot and then returns to the main program.

Claims: A programmable controller (10) having a processor (16) for executing a control program which defines the operation of a machine to perform a specific function, and a functional module (17) coupled to the processor for interfacing the processor to the machine, the functional module (17) being characterized by a module identification circuit comprising: an output port (80, 81, 82, ID OUT ⊘ - ID OUT 1) addressable by said processor (16); an input port (84, 91-95, TD IN ⊘ - ID IN 4) addressable by said processor (16); and means (86, 87) for coupling said input port to said output port in a manner that encodes data regarding the characteristics of the functional module, thereby enabling said processor (16) by writing data to the output port and reading the data back through the input port to identify the type of functional module. The programmable controller (10) as recited in claim 1 wherein said output port (80, 81, 82, ID OUT ⊘ - ID OUT 1) includes a data latch (80) for storing binary data from said processor (16); and said means (86, 87) for coupling connects an output of said data latch (80) to said input port (84, 91-95, ID IN ⊘ - ID IN 4). The programmable controller (10) as recited in claim 2 wherein said input port (84, 91-95, ID IN ⊘ - ID IN 4) includes a plurality of parallel inputs (ID IN ⊘ - ID IN 4), and said means (86, 87) for coupling connects the output of said data latch (80) to one of said inputs. The programmable controller (10) as recited in claim 1 wherein said output port (80, 81, 82, ID OUT ⊘ - ID OUT 1) includes a plurality of parallel data bit outputs (ID OUT ⊘ - ID OUT 1); said input port (84, 91-95, ID IN ⊘ - ID IN 4) includes a plurality of parallel data bit inputs (ID IN ⊘ - ID IN 4); and said means (86, 87) for coupling connects ones of the data bit outputs (ID OUT ⊘, ID OUT 1) to ones of the data bit inputs (ID IN ⊘ - ID IN 4) whereby a pattern of connection encodes data regarding the functional module (17). The programmable controller (10) as recited in claim 4 wherein said output port (80, 81, 82, ID OUT ⊘ - ID OUT 1) includes a data latch (80) for storing binary data from said processor (16); and said means (86, 87) for coupling connects outputs (OB₀-OB₃) of said data latch (80) to the data bit inputs (ID IN ⊘ - ID IN 4) of said input port (84, 91-95, ID IN ⊘ - ID IN 4). The programmable controller (10) as recited in claim 3 or 4, wherein said input port (84, 91-95, ID IN ⊘ - ID IN 4) further includes means (V⁺, ground) for coupling each of said data inputs (ID IN ⊘ - ID IN 4) to a positive voltage source or a negative voltage source. The programmable controller (10) as recited in claim 1 wherein: said output port (80, 81, 82, IN OUT ⊘ - ID OUT 1) includes a plurality of parallel data outputs (ID OUT ⊘ - ID OUT 1); said input port (84, 91-95, ID IN ⊘ - ID IN 4) includes a plurality of parallel data bit inputs (ID IN ⊘ - ID IN 4); said means (86, 87) for coupling connects the data outputs (ID OUT ⊘, ID OUT 1) to selected data inputs (ID IN ⊘ - ID IN 4) whereby said pattern of connection provides a first data code; and means (V⁺, ground) for coupling each of said data inputs to a positive or a negative voltage source to provide a second data code at the data inputs. The programmable controller (10) as recited in claim 7 wherein said first and second data codes provide information regarding the characteristics of the functional module (17).

Inventors: GIBART ANTHONY GERARD, GIBART, ANTHONY GERARD
Applicants: ALLEN BRADLEY CO, ALLEN-BRADLEY COMPANY, INC.
Application year: 1989
Main classification: G05B19
IPC codes: G06F15, G05B19