Configuration method and device for I / O modules connected to fieldbus controller
By using a 4-byte random key ID on the fieldbus controller for rapid configuration and identification of I/O modules, and providing a configurable digital input circuit, it solves the I/O module configuration and startup time in complex industrial networks. long problem, achieving adaptability and efficient identification of different sensor types.
Patent Information
- Application Number
- CN201980010955.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-01-30
- Filing Date
- 2019-01-29
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2039-01-29
AI Technical Summary
In complex industrial factory networks, the configuration and startup process of I/O modules on fieldbus controllers takes a long time, and the existing technology cannot quickly identify and adapt to different types of sensor inputs, resulting in prolonged configuration and startup time, which conflicts with industries. Time limit.
A 4-byte random key ID is used to configure and identify the I/O module. The key ID is compared through the communication link to quickly identify the configured module, and the key ID is assigned when the first connection is made; at the same time, a circuit is provided to configure The digital input terminal of the fieldbus controller is PNP type or NPN type, adapting to different types of sensor signals.
Significantly shortens the configuration and startup time of I/O modules, improves identification efficiency, and allows fieldbus controllers to adapt to multiple sensor types, reducing configuration complexity and time constraints.
Smart Images

Figure CN111758078B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the use of fieldbus controllers in industrial plant networks, and more particularly to methods and apparatus for determining the configuration status of I / O modules connected to a fieldbus controller and for configuring digital inputs of the fieldbus controller. Background Art
[0002] In industrial plant network systems, fieldbus controllers are used at the base of the control chain to link user interfaces and programmable logic controllers (PLCs) to multiple instruments that actually perform operations, such as sensors, actuators, motors, valve modules, etc. Fieldbus controllers typically contain multiple configurable I / O modules for connecting to and controlling these instruments. In complex industrial plant networks, multiple I / O modules on a single fieldbus controller can be connected for use at the same time, and the multiple I / O modules can each have different configuration settings. Accordingly, when each I / O module is connected for use, appropriate identification, configuration, and boot-up processes occur.
[0003] Typically, when an I / O module is first connected to a fieldbus controller, two time-consuming processes are performed to configure and start the I / O module. First, the connected I / O module is uniquely identified by the fieldbus controller. As mentioned, multiple I / O modules can be connected for use at the same time, each with different configuration settings. Conventional systems identify the connected I / O modules with a serial number identification (ID) to ensure that all I / O modules have unique IDs when all I / O modules are connected. This means that: when any new I / O module is connected for use, the new I / O module first communicates with the other connected I / O modules on the fieldbus controller, for example to ensure that the new I / O module receives a unique number ID; and the IDs of all connected I / O modules are arranged in sequence, which may require ID reallocation. Second, after receiving the appropriate ID, the I / O module communicates its configuration settings and / or security information, including, for example, its model and serial number, to the fieldbus controller. These time-consuming processes make the configuration and startup time of the connected I / O modules lengthy. Especially in complex industrial networks where a large number of I / O modules are connected for use, these lengthy configuration and startup times may conflict with various time constraints (eg, industry regulations or qualifications).
[0004] In addition, conventional fieldbus controllers are configured with only a single type of sensor interface for digital input terminals and can only detect signals from PNP input terminals or NPN input terminals. Fieldbus controllers are either manufactured as NPN sensor input terminal devices or PNP sensor input terminal devices, but currently do not have the ability to configure the input terminals as NPN or PNP sensor input terminals. However, in complex industrial networks, many different sensor types are used. This means that in order to adapt to different sensor types and different communication protocols to send and communicate sensor data information through industrial networks, many different fieldbus controllers configured for each type must be used. Summary of the invention
[0005] The present invention provides a method for a faster configuration and startup process of an I / O module connected to a fieldbus controller. The present invention uses a key ID (e.g., a 4-byte random key ID) assigned to a connected I / O module when the connected I / O module is first configured so that the configuration settings can be more quickly identified and obtained at any subsequent connection. When the I / O module is connected and the key ID of the I / O module matches at least one of a plurality of key IDs stored on the fieldbus controller, the fieldbus controller knows that the I / O module has been configured. However, when the key ID of the I / O module does not match at least one of a plurality of key IDs stored on the fieldbus controller, the fieldbus controller knows that the I / O module has not been previously configured, and the fieldbus controller will assign a key ID to the I / O module. The present invention also provides such a circuit, which is used to configure the digital input terminal of the fieldbus controller as a PNP type input terminal or an NPN type input terminal and allow detection of either type of input terminal.
[0006] According to one aspect of the present disclosure, a method for determining a configuration state of an I / O module connected to a fieldbus controller via a communication link is provided. The method includes the following steps: receiving a key ID from the I / O module via the communication link. After receiving the key ID, comparing the key ID with at least one key ID stored on the fieldbus controller. The method then includes: configuring the I / O module when the received key ID does not correspond to the at least one key ID stored on the fieldbus controller.
[0007] According to one embodiment, the configuring step includes generating a new key ID by the fieldbus controller, communicating the new key ID to the I / O module, and storing the new key ID on the fieldbus controller and the I / O module.
[0008] According to one embodiment, when the received key ID corresponds to at least one key ID stored on the fieldbus controller, the method further comprises concluding that the I / O module is configured.
[0009] According to one embodiment, the method further comprises completing a startup process of the I / O module.
[0010] According to one embodiment, the key ID comprises 4 bytes.
[0011] According to one embodiment, the communication link comprises a controller area network line.
[0012] According to another aspect of the present disclosure, a circuit for configuring a digital input of a field bus controller as a PNP input or an NPN input is provided. The circuit includes a control circuit, the control circuit including a reference input for receiving a reference voltage. The control circuit also includes: a first selection input for selecting between an NPN mode and a PNP mode of the digital input, wherein the state of the first selection input controls the voltage provided at the reference input; and a control output for providing a command indicating an NPN mode or a PNP mode, wherein the command provided by the control output corresponds to the voltage provided at the reference input. The circuit also includes a data circuit, the data circuit including a second selection input, the second selection input electrically connected to the control output to receive a command provided by the control output, wherein the second selection input operates to configure the digital input as a PNP input or an NPN input according to the command received by the control output. The data circuit also includes a data input electrically coupled to the digital input, and includes a data output for providing data corresponding to the data input. The control output is operative to connect the second select input to one of the first voltage level or a second, different voltage level.
[0013] According to one embodiment, the first voltage level comprises a signal common, and the second voltage level comprises a specified voltage different from the signal common.
[0014] According to one embodiment, the data circuit includes a first optocoupler.
[0015] According to one embodiment, the first optocoupler comprises a first light emitting device connected between the data input and the second select input, the first light emitting device being operative to selectively emit light based on data provided on the data input.
[0016] According to one embodiment, the first light emitting device comprises a first light emitting diode having an anode connected to the data input terminal and a cathode connected to the second selection input terminal and a second light emitting diode having an anode connected to the second selection input terminal and a cathode connected to the data input terminal.
[0017] According to one embodiment, the first optical coupler includes a first phototransistor connected to a data output terminal and a signal common terminal, wherein the first phototransistor selectively couples the data output terminal to the signal common terminal based on light emitted from the first light emitting device.
[0018] According to one embodiment, the circuit further includes a first power supply, a first resistor connected between the first power supply and the data output terminal, and a second resistor connected between the data input terminal and the digital input terminal.
[0019] According to one embodiment, the circuit further comprises a second power supply, a third resistor connected between the second power supply and the control output, and a fourth resistor connected between the reference input and the first power supply.
[0020] According to one embodiment, the control circuit comprises a second optocoupler.
[0021] According to one embodiment, the second optocoupler includes a second light emitting device connected between the reference input and the first select input, the second light emitting device being operative to selectively emit light based on data provided on the reference input.
[0022] According to one embodiment, the second light emitting device comprises a light emitting diode having an anode connected to the reference input and a cathode connected to the first selection input.
[0023] According to one embodiment, the second optical coupler includes a second phototransistor connected to the control output and the signal common, wherein the second phototransistor selectively couples the control output to the signal common based on light emitted from the second light emitting device.
[0024] The above and other features of the present invention are described in more detail hereinafter with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Embodiments of the present invention will now be described in further detail with reference to the accompanying drawings, in which:
[0026] Figure 1A is a perspective view of an exemplary fieldbus controller;
[0027] Figure 1B is an exploded view of an exemplary fieldbus controller;
[0028] Figure 1C It is a schematic diagram of the I / O connector;
[0029] Figure 2A -D is a schematic diagram illustrating different power module configurations on an exemplary fieldbus controller;
[0030] Figure 3 is a schematic block diagram of an exemplary fieldbus controller connected to a plurality of I / O modules.
[0031] Figure 4 is a flow chart of an exemplary method of determining a configuration status of an I / O module connected to a Fieldbus controller via a communication link in accordance with the present invention.
[0032] Figure 5A -B is a schematic circuit diagram illustrating a circuit for configuring a digital input terminal of a field bus controller according to the present invention. DETAILED DESCRIPTION
[0033] Embodiments will now be described with reference to the accompanying drawings, wherein like reference numerals are used to refer to like elements throughout. It will be understood that the drawings are not necessarily to scale. In addition, features described and / or illustrated with respect to one embodiment may also be used in the same manner or in a similar manner in one or more other embodiments and / or combined with features of other embodiments or replace features of other embodiments.
[0034] Described below in conjunction with the accompanying drawings are different embodiments of an industrial plant network system including a fieldbus controller having a plurality of I / O modules. In one aspect of the invention, a method for determining a configuration state of an I / O module connected to a fieldbus controller and / or configuring an I / O module connected to a fieldbus controller is provided. In another aspect of the invention, a circuit for configuring a digital input terminal of a fieldbus controller to be a PNP-type input terminal or an NPN-type input terminal is provided.
[0035] refer to Figure 1A-C, an exemplary fieldbus controller 4 used in an industrial plant network system is illustrated. The fieldbus controller 4 may have a plurality of I / O modules 8, and the plurality of I / O modules are provided with a plurality of I / O connectors 6 (e.g., threaded connectors), and the I / O modules 8 may be connected to instruments within the industrial plant network through the I / O connectors. The I / O modules 8 may be configured as digital input terminals, digital output terminals, analog input terminals, analog output terminals, or the I / O modules may also be configured in other ways to be suitably connected to other instruments. Each I / O module 8 can be configured according to its desired purpose. For example, as will be described later with respect to an embodiment of the present invention, the I / O module 8 may have a circuit capable of configuring a digital input terminal as a PNP input terminal or an NPN input terminal. In an exemplary embodiment, each I / O module 8 has four connectors 6, and each connector 6 has two configurable I / O pins 7 and a plurality of other pre-assigned (such as, for example, pre-assigned to power and signal common terminals) pins 9. Each I / O pin 7 can therefore be configured as a PNP input terminal or an NPN input terminal. The fieldbus controller 4 may also include a network connector port (such as an Ethernet port 109) and a power connector 12. The fieldbus controller 4 may also have a Bluetooth switch 11 and an LED indicator 13.
[0036] The power connector 12 may be customizable and capable of receiving multiple types of power connections. This gives the user the ability to select different power board configurations depending on the type of power being used. Auxiliary and logic power may be supplied through the aux power board, and the auxiliary and logic power may run through replaceable fuses. The nominal power supply voltage for logic and aux power will be 24VDC. The logic and aux power may have a surge current of less than 2A under minimum and maximum voltage range conditions. The aux power supply board may have the following connectors according to the board configuration: a 4-pin, 7 / 8-type male or 5-pin (4+1PE) connector for supplying IN; a 4-pin, 7 / 8-type female or 5-pin (4+1PE) connector for supplying OUT. The aux and logic power may have EMI filtering and reverse voltage protection. The mechanical housing may be made with or without an AIDA connector. The housing may have a provision for a 7 / 8mini power connector that is assembled to the housing and provides power to the block.
[0037] The power board that supplies power to the fieldbus controller and connected modules can have, for example, seven different configurations, which are labeled A, B, C, D, E, F, and J. These seven configurations can be paired for power distribution in the following manner: A&B, C&D, E&F, and J. Figures 2A-2DSchematic diagrams are depicted showing four exemplary types of plate combinations utilizing configurations AJ. Figure 2A A power board combination of configuration A&B is depicted. The aux power board configuration A&B can have two variants with different types of power connectors: power board A with 4-pin mini type and power board B with 5-pin mini type. Figure 2B A power board combination of configuration C & D is depicted. Board combination C & D can have two variants with different types of power connectors: power board C with a 4-pin mini type and power board D with a 5-pin mini type. Figure 2C A power board combination of configuration E & F is depicted. Board configuration E & F is available in two variants with different types of power connectors: power board E with 4-pin mini and power board F with 5-pin mini. Figure 2D A power board configuration J is depicted with a 5-pin AIDA connector. In each configuration, the board can have protective fuses and filters for aux power, logic supply, and valve driver supply. Providing the fieldbus controller 4 with these options for power module configuration adds value to the user with adaptability and customizability. In addition, the addition of protective fuses provides an extra degree of protection for the system.
[0038] Figure 3 A schematic block diagram of an exemplary fieldbus controller 4 having a plurality of I / O modules 8 is depicted. The exemplary fieldbus controller 4 may include a control circuit 14, which is responsible for the overall operation of the fieldbus controller 4. The control circuit 14 may be, for example, a logic board in the fieldbus controller 4. In one embodiment, the control circuit 14 of the fieldbus controller 4 includes a processor 16 that executes operating instructions. The processor 16 of the control circuit 14 may be a central processing unit (CPU), a microcontroller, or a microprocessor that executes code to implement the operation of the fieldbus controller 4. The fieldbus controller 4 may also include a memory 15. The memory 15 may be, for example, one or more of the following: a buffer, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory, a random access memory (RAM), or other suitable devices. In a conventional arrangement structure, the memory 15 includes a non-volatile memory for long-term data storage and a volatile memory that acts as a system memory for the control circuit 14. The memory 15 may store a user interface in the form of an application and / or a web page, and may exchange data with the control circuit 14 via a data bus. Accompanying control lines and an address bus may also be present between the memory 15 and the control circuit 14. The memory 15 is considered to be a non-transitory computer-readable medium.
[0039] The plurality of I / O modules 8 may include a module processor 17, a module memory 18, and other configuration circuitry 19. The I / O connector 6 is connected to the module processor 17 and transmits data to the processor 16 of the control circuit 14 via a communication link 22 (e.g., a CAN line) using a communication interface 21 (e.g., CAN TRX). For example, the processor 16 may communicate with the I / O module via the communication link 22 using a backplane protocol for a backplane CAN driver.
[0040] When an I / O module 8 is first connected to a fieldbus controller 4, the I / O modules communicate their identification and configuration settings to the processor 16 of the fieldbus controller 4 via the communication link 22. If the I / O module 8 has not been previously connected to a fieldbus controller 4 and / or has not been configured, the fieldbus controller 4 implements a configuration process for the I / O module 8. After configuration, the I / O module 8 can then be started and used accordingly.
[0041] According to the present invention, upon completion of configuration of the I / O module 8, a key ID is generated by the processor 16 of the fieldbus controller 4 (e.g., a random number generator may generate a random 4-byte number). As described below, the key ID is used to determine whether the I / O module 8 has been previously configured. The random 4-byte number generator allows for 2 32 The new key ID can be communicated from the processor 16 to the I / O module 8 via the communication link 22.
[0042] The key ID is stored in the memory 15, 18 of the fieldbus controller 4 and the I / O module 8, along with, for example, configuration settings. After the I / O module 8 is connected to the fieldbus controller 4 and / or after the system is powered on, the fieldbus controller 4 retrieves the key ID stored in the I / O module 8 and compares the retrieved key ID with the key ID stored in the memory 15 of the fieldbus controller 4 for that particular I / O module 8. If the key IDs match, the fieldbus controller 4 knows that the I / O module 8 has already been configured and no further configuration is required. In this way, configuration and startup time can be shortened because the fieldbus controller 4 will immediately recognize the key ID and retrieve the specific configuration settings for the I / O module 8. If the key IDs do not match (or if the key ID does not exist in the fieldbus controller 4 or the I / O module 8), the configuration process for that I / O module 8 is implemented. As used herein, the term “connected” includes detecting a connection when an I / O module 8 is connected to a valid network and / or a valid fieldbus controller 4 and detecting a connection when the fieldbus controller 4 , network and / or I / O module 8 is powered on.
[0043] Accordingly, in an aspect of the present invention, a method for determining a configuration state of an I / O module 8 connected to a fieldbus controller 4 is illustrated in FIG. Figure 4 In box 24, the method includes first connecting the I / O module 8 to the fieldbus controller 4. As mentioned above, this may include connecting the I / O module to a valid network or simply detecting the connection after the system is powered on. In box 26, the processor 16 of the fieldbus controller 4 receives the key ID from the I / O module 8, if one has been assigned to the I / O module 8 from a previous connection and configuration with the fieldbus controller 4.
[0044] In box 28, the processor compares the received key ID to at least one key ID stored in the memory 15 of the fieldbus controller 4. If no key ID is received, or if the key ID received from the I / O module 8 does not correspond to at least one key ID stored on the memory 15 of the fieldbus controller 4, the method includes (in box 130) configuring the I / O module 8. Configuring the I / O module may include the steps indicated in boxes 32-36, including: generating a new key ID by the processor 16 of the fieldbus controller 4, communicating the new key ID to the I / O module, and storing the new key ID on the fieldbus controller 4 and the I / O module 8.
[0045] After configuration, the method further includes determining (in block 38 ) that the I / O module 8 is configured and then completing a startup process of the I / O module 8 (in block 40 ).
[0046] If the key ID received from the I / O module 8 corresponds to at least one key ID stored in the memory 15 of the fieldbus controller 4, the fieldbus controller 4 will recognize the key ID of the I / O module 8 and immediately retrieve the configuration settings for the I / O module. The method then also includes (in box 38) determining that the I / O module 8 is configured and retrieving the configuration settings for the I / O module. After the configuration information is received, the I / O module 8 then completes its startup process.
[0047] Steering Figure 5A -B, in another aspect of the present invention, an exemplary circuit 50, 80 for configuring the digital input terminal 42 of the I / O module 8 as a PNP type input terminal or an NPN type input terminal is shown. The circuit 50, 80 includes a circuit electrically connected to the data circuit 80 (shown in Figure 5B The control circuit 50 (shown in FIG. Figure 5A). The circuits 50, 80 allow the fieldbus controller 4 of the present invention to be connected to the I / O module 8 as a PNP type device or an NPN type device, and detect the sensor signal from either type by selectively configuring the digital input terminal 42 of the I / O module 8 as a PNP type input terminal or an NPN type input terminal. The user can select the configuration type of the digital input terminal 42 via the configuration software provided on the web interface or the configuration tool. After the selection, the digital input terminal 42 can be connected to a PNP type or NPN type device, and the fieldbus controller 4 can obtain data from the device without replacing any hardware on the fieldbus controller 4.
[0048] exist Figure 5A In the exemplary embodiment depicted in , the control circuit 50 includes a first selection input 54 for selecting an NPN type mode or a PNP type mode of the digital input terminal, the selection depending on a selection selected by a user on the configuration software. The first selection input 54 corresponds to a user-settable configuration parameter, which can be set via a configuration tool of the fieldbus controller. The control circuit 50 also includes a reference input 52 for receiving a reference voltage, wherein the state of the first selection input 54 and thus the mode selected by the first selection input 54 will control the voltage provided at the reference input 52. The control circuit 50 also includes a control output 56 for providing a command indicating the NPN type mode or the PNP type mode selected by the first selection input 54, wherein the command provided by the control output 56 also corresponds to the voltage provided at the reference input 52.
[0049] The data circuit 80 includes a second selection input 82 electrically connected to the control output 56 to receive a command provided by the control output 56. The control output 56 is operated to connect the second selection input 82 to one of a first voltage level or a second voltage level. In one embodiment, the first voltage level includes a signal common 88, and the second voltage level includes a specified voltage different from the signal common 88. The second selection input 82 is then operated to configure the digital input 42 as a PNP input or an NPN input according to the command received by the control output 56 of the control circuit 50 and the connection of the second selection input 82 to one of the first voltage level or the second voltage level. The data circuit 80 also includes a data input 84 electrically coupled to the digital input 42 and a data output 86 for providing data corresponding to the data input 84. The data sent by the data output 86 corresponds to the state of the digital input 42 and allows the fieldbus controller 4 to efficiently detect the digital input 42 as a PNP input or an NPN input.
[0050] In one embodiment, the data circuit 80 includes a first optical coupler 90. The first optical coupler 90 may include a first light emitting device 92 connected between the data input terminal 84 and the second selection input terminal 82, such as Figure 5B . The first light emitting device 92 is operated to selectively emit light based on the data provided on the data input terminal 84 and the state of the second selection input terminal 82. The first light emitting device 92 may include a first light emitting diode 92a and a second light emitting diode 92b, the first light emitting diode having an anode connected to the data input terminal 84 and a cathode connected to the second selection input terminal 82, and the second light emitting diode having an anode connected to the second selection input terminal 82 and a cathode connected to the data input terminal 84. The first optical coupler 90 may also include a first phototransistor 94 connected to the data output terminal 86 and the signal common terminal 88. The first phototransistor 94 selectively couples the data output terminal 86 to the signal common terminal 88 based on the light emitted by the first light emitting device 94.
[0051] In one embodiment, the control circuit 50 includes a second optocoupler 58. The second optocoupler 58 may be similar to the first optocoupler 90, and the second optocoupler may include a second light emitting device 60 connected between the reference input 52 and the first select input 54. The second light emitting device 60 operates to selectively emit light based on data provided on the reference input 52 and the state of the first select input 54. The second light emitting device 60 may include a light emitting diode 61 having an anode connected to the reference input 52 and a cathode connected to the first select input 54. In addition, the second optocoupler 58 may also include a second phototransistor 62 connected to the control output 56 and the signal common 88. The second phototransistor 62 selectively couples the control output 56 to the signal common 88 based on light emitted by the second light emitting device 60.
[0052] In one embodiment, Figure 5A -B circuit 50, 80 may further include a first power supply 100, a second power supply 101 and a plurality of resistors 102, 103, 104, 106 and 108. The circuit may include a first resistor 102 connected between the power supply 100 and the data output terminal 86 and a second resistor 104 connected between the data input terminal 84 and the digital input terminal 42, as shown in Figure 5B The data circuit 80 may further include an intermediate resistor 103 connected between the first resistor 102 and the power supply 100. The circuit 50, 80 may further include a third resistor 106 connected between the power supply 101 and the control output 56 and a fourth resistor 108 connected between the reference input 52 and the power supply 100, as shown in FIG. Figure 5A The control circuit 50 is shown in FIG.
[0053] In operation, the circuits 50, 80 described above enable the digital input 42 of the I / O module 8 on the fieldbus controller 4 to be configured as an NPN input or a PNP input compatible with an NPN sensor or a PNP sensor. Both the NPN sensor and the PNP sensor are three-wire devices and have two power leads, one power lead is connected to the positive supply, and one power lead is connected to the negative. The three-wire output is connected to the I / O module 8 of the fieldbus controller 4 via the digital input 42. The digital input 42 can be a drain type or a source type. The drain type input is to be used with a PNP sensor, and the source type input is to be used with an NPN sensor. In the case of a PNP sensor, the three-wire output connected to the digital input 42 is connected to the negative pole of the power supply, and in the case of an NPN sensor, the three-wire output connected to the digital input 42 is connected to the positive pole of the power supply. Any of these types can be detected by the fieldbus controller 4 using the configurable digital input 42 of the present invention.
[0054] For example, to configure the digital input 42 as a PNP type input, the user will select the PNP type configuration setting on the configuration software. This causes the first select input 54 to be set low to select the PNP type mode. When the first select input 54 is set low, the voltage from the power supply 100 is provided at the reference input 52, and the current flows through the second light emitting device 60 of the second optocoupler 58 via the light emitting diode 61. When the current flows through the second light emitting device 60, light is emitted to the second phototransistor 62 of the second optocoupler 58, causing the second phototransistor 62 to turn on. When the second phototransistor 62 is turned on, the control output 56 connects the second select input 82 of the data circuit 80 to the signal common 88, effectively providing a command indicating the PNP type mode to the second select input 82 and causing the second select input 82 to configure the digital input 42 as a PNP type input. The second select input 82 does this because: the second select input is connected to the signal common 88, causing current to be sourced from the digital input 42 (depending on the state of the digital input 42) to the data input 84 and through the first light emitting device 92 of the first optocoupler 90 via the first light emitting diode 92a. Light is emitted from the first light emitting diode 92a based on the state of the digital input 42, and thus turns the first phototransistor 94 in the first optocoupler 90 on or off based on the state of the digital input 42. Therefore, the data output 86 of the data circuit 80 will correspond to the state of the PNP type digital input 42.
[0055] Alternatively, to configure the digital input 42 as an NPN input, the user will select the NPN configuration setting on the configuration software. This causes the first select input 54 to select the NPN mode by being set high. When the first select input 54 is set high, no voltage is provided to the reference input 52, and no current flows through the second light emitting device 60 of the second optocoupler 58. Accordingly, the second phototransistor 62 in the second optocoupler 58 remains disconnected. When the second phototransistor 62 is disconnected, the control output 56 connects the second select input 82 of the data circuit 80 to a specified voltage different from the signal common 88, effectively providing a command indicating the NPN mode and causing the second select input 82 to configure the digital input 42 as an NPN input. The second select input 82 does this because: the second select input is connected to a specified voltage different from the signal common, causing the digital input 42 to sink current based on the state of the digital input 42, wherein current flows from the second select input 82 to the data input 84, through the second light emitting diode, through the first light emitting device 92 of the first optocoupler 90. Light is emitted from the second light emitting diode 92b based on the state of the digital input 42, and thus turns the first phototransistor 94 in the first optocoupler 90 on or off based on the state of the digital input 42. Accordingly, the circuit of the present invention allows the fieldbus controller 4 to detect a PNP type or NPN type input.
[0056] Although the present invention has been shown and described with respect to one or more embodiments, it is obvious that equivalent changes and modifications will occur to those skilled in the art after reading and understanding this specification and the accompanying drawings. In particular, with respect to the various functions implemented by the elements (components, assemblies, devices, compositions, etc.) described above, unless otherwise specified, the terms used to describe such elements (including references to "means / represents") are intended to correspond to any element that implements the specified function (that is, functionally equivalent) of the described elements, even if the functionally equivalent elements are not structurally equivalent to the disclosed structures that implement the function in one or more exemplary embodiments of the present invention illustrated herein. In addition, although specific features of the present invention may be described above with respect to only one or more of the illustrated embodiments, such features may be combined with one or more other features of other embodiments in a manner that would be desirable and advantageous for any given or specific application.
Claims
1. A method for determining a configuration state of an I / O module connected to a fieldbus controller via a communication link, the method comprising the steps of: receiving a key ID from the I / O module via a communication link, After receiving the key ID, comparing the key ID with at least one key ID stored on the fieldbus controller, and When the received key ID does not correspond to at least one key ID stored on the fieldbus controller, configuring the I / O module, wherein the configuring comprises: A new key ID is generated by the fieldbus controller. Communicate the new key ID to the I / O module, and A new key ID is stored on the fieldbus controller and the I / O module, and the I / O module is determined to be configured when the received key ID corresponds to at least one key ID stored on the fieldbus controller.
2. The method of claim 1 further comprising the step of completing a startup process of the I / O module.
3. The method according to any one of claims 1 to 2, wherein: The key ID consists of 4 bytes.
4. The method according to any one of claims 1 to 3, wherein: The communication link includes a controller area network line.
Citation Information
Patent Citations
Methods and apparatus to configure process control system inputs and outputs
CN101236425A
Hardware device interface supporting transaction authentication
CN101842784A
Application identification method and device
CN102325078A
Computer device and multi-network-card recognizing method thereof
CN102567239A
Automation control system components with electronic keying features
CN102591317A
