CN115878526A - IO module multi-adapter control method and multi-channel IO module - Google Patents

IO module multi-adapter control method and multi-channel IO module Download PDF

Info

Publication number
CN115878526A
CN115878526A CN202310006900.6A CN202310006900A CN115878526A CN 115878526 A CN115878526 A CN 115878526A CN 202310006900 A CN202310006900 A CN 202310006900A CN 115878526 A CN115878526 A CN 115878526A
Authority
CN
China
Prior art keywords
adapter
module
signal
channel
state
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
CN202310006900.6A
Other languages
Chinese (zh)
Other versions
CN115878526B (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.)
Hangzhou Kangjisen Automation Technology Co ltd
Original Assignee
Hangzhou Kangjisen Automation Technology Co ltd
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 Hangzhou Kangjisen Automation Technology Co ltd filed Critical Hangzhou Kangjisen Automation Technology Co ltd
Priority to CN202310006900.6A priority Critical patent/CN115878526B/en
Publication of CN115878526A publication Critical patent/CN115878526A/en
Application granted granted Critical
Publication of CN115878526B publication Critical patent/CN115878526B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Safety Devices In Control Systems (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention discloses an IO module multi-adapter control method and a multi-channel IO module. The multi-channel IO module can be matched with different adapter types, a channel can be flexibly and randomly configured on one IO module, the use requirement of a remote field on small scale and complexity is met, and the control and data acquisition of transmitters, instruments and the like of various types in an industrial field can be met through the configuration of the adapters of different types of the IO module.

Description

IO module multi-adapter control method and multi-channel IO module
Technical Field
The invention relates to the field of electronic information, in particular to an IO module multi-adapter control method and a multi-channel IO module.
Background
In the field of industrial control, with the expansion and decentralization of production scale, the current way of installing a control system in a single control room causes the cost of cables to increase due to the too far distance of the production field, and meanwhile, the long distance cables cause the difficulty of maintenance. Therefore, the demand for IO modules capable of being installed on the site in the market is increasing, but the installation site has the characteristics of small single-mode site scale and multiple signal types, most IO modules in the production application are multi-channel single-function modules at present, and the problem that module points of the single mode on the IO modules are wasted greatly but cannot be flexibly distributed exists.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a multi-channel IO module, which comprises an IO module, a plurality of adapters of different types and a bottom plate, wherein the bottom plate is provided with a plurality of plug-in screens for plugging in the adapters, and the IO module is respectively connected with the adapters of different types through the bottom plate; the first interface group comprises a plurality of first connecting heads which can be correspondingly connected with a plurality of first butt ends at different positions of the adapter interface piece arranged on the interface card; the second interface group comprises a plurality of second connectors which are respectively connected with the type identification output ends of the adapters arranged on the interface screens; the IO module is configured to read a first interface group signal on an interface card after receiving the assigned new adapter type and the corresponding interface card information, read a second interface group signal after obtaining a signal that each first connection head sent by the first interface group is connected normally, compare a signal permutation and combination sequence in the collected second interface group signal with a signal permutation and combination sequence of a preset second interface group signal corresponding to the new adapter type, and confirm that the assigned adapter is installed in place and the adapter type is correct if the signal permutation and combination sequence is consistent.
Preferably, the second interface group includes three second connectors of the adapter respectively connected to the interface card positions, and the three second connectors are respectively connected to the IO module and connected to a high level; the adapter is provided with three second butt joint ends correspondingly connected with the second connectors, the three second butt joint ends are respectively connected to the grounding end of the adapter system or suspended processing, and at least one of the three second butt joint ends is connected to the grounding end of the adapter system and at least one suspended processing; the connection combination of the three second butt joint ends of the adapters in different types is arranged differently, and the connection combination comprises that the second butt joint end is connected to the grounding end of the adapter system and the second butt joint end is connected in a suspended mode.
Preferably, the adapter includes an AO adapter, an AI adapter, a TC adapter, a RTD adapter, a DI adapter, or a DO adapter.
Preferably, the IO module is configured to periodically read level signals of three second connectors on an interface card mounted with an adapter, and obtain a corresponding adapter type by referring to an adapter type truth table recorded in the database according to an arrangement order of the three level signals; and if the three level signals are all low level or high level, outputting circuit fault information.
Preferably, the first interface group comprises three first connecting heads which are respectively arranged at the front part, the middle part and the rear part of the interface card position, and the first connecting heads can be connected with first butt-joint ends at corresponding positions on the adapter inserted into the interface card position; the three first connecting ends are respectively connected with the MCU of the IO module and connected with a high level, and the three first connecting ends are respectively connected to the grounding end of the adapter system; the IO module is configured to periodically read level signals of the three first connecting terminals on the interface card where the adapter is installed, and output adapter installation fault information when at least one high level exists in the collected level signals of the three first connecting terminals.
Preferably, the IO module is configured to send an enable signal to the new adapter after the new adapter is installed in place and the type of the adapter is correct, so that the adapter enters into operation, the IO module periodically obtains a channel diagnosis signal and a status diagnosis signal sent by the adapter, and determines whether the adapter has a fault according to the channel diagnosis signal and the status diagnosis signal.
Preferably, the IO module is configured to periodically and repeatedly acquire the first interface group signal at a first time interval after the installation fault of the adapter is cleared, and modify the installation state of the adapter from the installation fault to the installation in place after acquiring the first interface group signal which shows that the installation is in place for a preset number of consecutive times; and after the adapter state is modified to be installed in place, periodically and repeatedly acquiring a channel diagnosis signal or a state diagnosis signal at a second time interval, and after acquiring the continuous preset times of channel diagnosis signals or state diagnosis signals with normal states, modifying the corresponding state of the adapter from the channel fault state to the channel normal state or from the state fault state to the state normal state, wherein the first time interval is greater than the second time interval.
The invention also discloses a control method for the IO module and the IO module can be connected with a plurality of adapters of different types through different interface screens on the bottom plate, and the method comprises the following steps:
s1, after receiving the distributed newly-added adapter type and the corresponding interface position clamping information, reading a first interface group signal on the interface position clamping, wherein the first interface group comprises a plurality of first connecting heads which can be respectively connected with a plurality of first butt ends positioned at different positions of an adapter interface piece;
s2, reading a second interface group signal after obtaining that each connector sent by the first interface group is connected with a normal signal, wherein the second interface group comprises a plurality of second connectors which can be respectively connected with the type identification output ends of the adapters, comparing the signal arrangement combination sequence in the received second interface group signal with the signal arrangement combination sequence of the second interface group signal corresponding to the preset newly added adapter type, and if the signals are consistent, confirming that the allocated adapters are installed in place and the adapter types are correct;
and S3, after the distributed adapter is installed in place and the type of the adapter is correct, sending an enabling signal to the adapter to enable the adapter to work, periodically acquiring a channel diagnosis signal and a state diagnosis signal sent by the adapter by the IO module, and judging whether the adapter has a fault according to the channel diagnosis signal and the state diagnosis signal.
Preferably, the IO module multi-adapter control method further includes the following steps:
s4, if at least one connection fault signal exists in the first interface group signal, prompting an adapter to install the fault, periodically and repeatedly acquiring the first interface group signal at a first time interval, and after acquiring the first interface group signal which is continuously preset times and displays that the adapter is installed in place, modifying the installation state of the adapter from the installation fault to the installation in place; after the adapter is installed in place, channel diagnosis signals or state diagnosis signals are periodically and repeatedly acquired at a second time interval, after the continuous preset times of channel diagnosis signals or state diagnosis signals with normal states are acquired, the corresponding state of the adapter is modified from a channel fault state to a channel normal state or from a state fault state to a state normal state, and the first time interval is larger than the second time interval.
According to the IO module multi-adapter control method and the multi-channel IO module, disclosed by the invention, one IO module can be flexibly and randomly configured by matching different adapter types, and the small-scale and complex use requirements of a remote field are met. Finally, the IO module can meet the requirements of control and data acquisition of various types of transmitters, instruments and the like in an industrial field through the configuration of adapters of different types. The problem that the number of points is greatly wasted and cannot be flexibly distributed because multiple channels of the existing IO module are single functional modules is solved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention.
Fig. 1 is a schematic structural diagram of a multi-channel IO module according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of an adapter type identification circuit according to an embodiment of the disclosure.
Fig. 3 is a schematic diagram of an analog signal transmission circuit according to an embodiment of the disclosure.
Fig. 4 is a flowchart illustrating a method for controlling multiple IO modules according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the drawings of the embodiments of the present invention. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the described embodiments of the invention without any inventive step, are within the scope of protection of the invention.
In the present invention, unless otherwise explicitly stated or limited, the terms "mounted," "connected," "fixed," and the like are to be construed broadly and may, for example, be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless expressly stated or limited otherwise, the recitation of a first feature "on" or "under" a second feature may include the recitation of the first and second features being in direct contact, and may also include the recitation that the first and second features are not in direct contact, but are in contact via another feature between them. Also, the first feature "on," "above" and "over" the second feature may include the first feature being directly above and obliquely above the second feature, or simply indicating that the first feature is at a higher level than the second feature. "beneath," "under" and "beneath" a first feature includes the first feature being directly beneath and obliquely beneath the second feature, or simply indicating that the first feature is at a lesser elevation than the second feature.
Unless defined otherwise, technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this invention belongs. The use of "first," "second," and similar terms in the description and in the claims of the present application does not denote any order, quantity, or importance, but rather the terms are used to distinguish one element from another. Also, the use of the terms a, an, etc. do not denote a limitation of quantity, but rather denote the presence of at least one.
The embodiment discloses a multichannel IO module that can directly install in industrial field, this multichannel IO module has included IO module and adapter and the bottom plate of a plurality of different grade types, has set up a plurality of grafting screens that are used for pegging graft the adapter on this bottom plate, and the IO module passes through the bottom plate and is connected with the adapter of a plurality of different grade types respectively. The IO module can meet the requirements of control and data acquisition of various types of transmitters, instruments and the like in an industrial field through the configuration of different types of adapters. The first interface group and the second interface group connected with the IO module are arranged on the plug-in card position. The first interface group comprises a plurality of first connecting heads which can be correspondingly connected with a plurality of first butt ends at different positions of the adapter interface piece arranged on the interface clamping position; the second interface group comprises a plurality of second connectors which are respectively connected with the type identification output ends of the adapters arranged on the interface clamping positions. The IO module is configured to read a first interface group signal on an interface card after receiving the assigned new adapter type and the corresponding interface card information, read a second interface group signal after obtaining a signal that each first connector sent by the first interface group is normally connected, compare a signal permutation and combination sequence in the collected second interface group signal with a signal permutation and combination sequence of a preset second interface group signal corresponding to the new adapter type, and confirm that the assigned adapter is installed in place and the adapter type is correct if the signal permutation and combination sequence is consistent with the signal permutation and combination sequence of the preset second interface group signal corresponding to the new adapter type.
In a preferred embodiment, the multi-channel IO module in the field may be as shown in fig. 1, and the multi-channel IO module may be composed of 1 IO module 1 and 16-channel adapter 2. The adapter may be of 6 types such as an AO adapter, an AI adapter, a TC adapter, a RTD adapter, a DI adapter, or a DO adapter. A user can freely select and combine corresponding adapters according to field requirements, and the matching compatibility of complex point positions of an industrial field is realized by configuring an IO module. And the IO module is connected to a main controller in a remote control room in an optical communication mode to realize integral control application. The main functions of the adapter are modulating or demodulating a field signal, diagnosing the state of a field channel and diagnosing the adapter per se, and the main functions of the IO module are acquiring or transmitting output of adapter data, processing diagnostic data, identifying the type of the adapter and communicating data of a remote main controller.
In this embodiment, the second interface group includes three second connectors of the adapters respectively connected to the interface card, and the three second connectors are respectively connected to the MCU of the IO module and connected to the high level. The adapter is provided with three second butt joint ends correspondingly connected with the second connectors, the three second butt joint ends are respectively connected to the grounding end of the adapter system or suspended processing, and at least one of the three second butt joint ends is connected to the grounding end of the adapter system and at least one suspended processing; the connection combination of three second butt joint ends of different types of adapters is arranged differently, and the connection combination comprises that the second butt joint end is connected to the grounding end of the adapter system and the second butt joint end is connected and suspended.
The IO module is configured to periodically read level signals of three second connectors on an interface card provided with an adapter, and obtain a corresponding adapter type by contrasting an adapter type truth table recorded in a database according to the arrangement sequence of the three level signals; and if the three level signals are all low level or high level, outputting circuit fault information.
Specifically, because a user is required to manually assign a corresponding adapter type, there is a possibility of inserting a wrong adapter, and therefore, the IO module is required to judge whether the type of the inserted actual adapter is consistent with the channel type in the configuration, and then an alarm is given and the output, sampling and diagnosis functions of the adapter are stopped in the case of inconsistency. As shown in fig. 2, the type of the adapter can be identified by reading the levels of three signals, namely, the three second connectors MODE1, MODE2, and MODE 3. The IO module is internally connected with three signals to the MCU and is additionally provided with a hardware pull-up, the three signals are connected to the adapter through the bottom plate, the adapter is internally processed to be connected to the system ground or suspended in the air, the IO module can read low level when grounded and high level when suspended in the air due to the hardware pull-up IO module, the three signals are combined by different types of adapters, and the IO module reads the three signals in a periodic query mode and judges which adapter actually is according to the level combination of the three signals. Further, the adapter type setting avoids the combination of full high or full low in consideration of the circuit failure and the like, that is, if all three level signals are low level or high level, the circuit failure information is output.
In this embodiment, the truth table for the adapter type is as follows:
Figure 950737DEST_PATH_IMAGE002
in this embodiment, the first interface group includes three first connection heads disposed at the front, middle and rear of the interface card, respectively, and the first connection heads are capable of connecting with first docking ends at corresponding positions on the adapter inserted into the interface card. The three first connecting terminals are respectively connected with the MCU of the IO module and connected with a high level, and the three first connecting terminals are respectively connected with the grounding end of the adapter system. The IO module is configured to periodically read level signals of the three first connecting terminals on the interface card where the adapter is installed, and output adapter installation fault information when at least one high level exists in the collected level signals of the three first connecting terminals.
Specifically, when the IO module operates, the IO module first needs to determine whether the inserted adapter is in place to perform subsequent operations such as type determination, output sampling, data diagnosis, and the like. Therefore, whether the adapter is plugged or not needs to be detected firstly, the three signals of the three first butt-joint ends PLUG1, PLUG2 and PLUG3 on the adapter are positioned at the front end, the middle and the tail end of the adapter connector, the circuit principle and the type are the same as those of the type identification circuit, namely, the internal hardware of the IO module is pulled up and read level, and the corresponding connector interfaces of the adapter are all directly connected to the ground. When the IO module reads that the three signals are all low level, the adapter is considered to be plugged, otherwise, the adapter is considered to be unplugged, and the adapter installation fault information is output.
In this embodiment, in the analog quantity module AO, AI, TC, and RTD, the adapter has a power isolation circuit and an analog signal transmission circuit, where the power isolation circuit outputs a PWM waveform to a primary winding of a transformer through a DCDC module, the transformer generates a PWM electromotive force on a negative side in a magnetic induction manner, and the negative side rectifies the negative PWM electromotive force in a schottky diode full-bridge rectification + capacitive energy storage manner to make it a stable dc positive and negative voltage rail for supplying power to a signal conversion circuit corresponding to the adapter. The analog signal transmission circuit is shown in fig. 3, and the part is realized by a voltage and current isolation coupling circuit, and the voltage or the current of the dangerous side/the safe side of the channel is converted into the voltage of the safe side/the dangerous side. The AO adapter and the AI adapter directly drive the transformer by inputting signal current of 4-20mA, and the TC adapter and the RTD adapter are input after being converted into voltage of 0-5V by a signal conversion circuit at the front end of a channel. The multivibrator chip is matched with a corresponding resistance-capacitance to generate mutually exclusive forward and reverse PWM wave signals. The multivibrator chip can adopt SN74LV123A, and certainly can adopt other existing similar chips, and the alternating on-off of two windings of the transformer can be controlled by the MOS tube controlled by the PWM wave. The same PWM electromotive force can be generated on the other side of the transformer, current output in a linear relation with input current and voltage is generated after full-bridge rectification, and the current output is converted into a voltage output signal through a precision resistor. For example, the transformer winding is 1:1, the current is converted to the secondary side, and the corresponding current is converted to 0 to 25mA, and the corresponding voltage is converted to V = I R and is 0 to 5V. The input current also comprises overcurrent and overvoltage shutoff, and is realized by a feedback control loop of a feedback resistor, an operational amplifier and an MOS tube. The voltage output signal is 0-5V, and a certain error can be formed in the conversion process and can be eliminated through zero setting and amplitude modulation calibration. The channel side of the isolated adapter is in an isolated floating state relative to the ground, so that on one hand, the on-site over-current stress impact is effectively weakened, and on the other hand, the impact energy is isolated in a single adapter. Therefore, the safety of the IO module is guaranteed, and when the damaged part needs to be replaced, only the adapter needs to be replaced.
In this embodiment, the IO module is further configured to send an enable signal to the new adapter after the new adapter is installed in place and the type of the adapter is correct, so that the adapter enters into operation, the IO module periodically obtains a channel diagnostic signal and a status diagnostic signal sent by the adapter, and determines whether the adapter has a fault according to the channel diagnostic signal and the status diagnostic signal.
Specifically, in each adapter of the multi-channel IO module, each adapter outputs two diagnostic signals. One for channel diagnostics and one for adapter status diagnostics. The circuit compares the diagnosis sampling level with a set diagnosis threshold through a comparator to obtain a high or low level drive control optocoupler, outputs a voltage signal to a safety side, and acquires diagnosis data through an IO module.
In the present embodiment, the channel diagnosis of each adapter is as follows:
AO adapter, its channel diagnoses as disconnected wire. The point of the diagnosis sampling level is the negative end of the channel, the maximum load voltage drop is 15V according to the output requirement index, the voltage of the positive end is fixed to be 24V, namely the voltage of the negative end is greater than 9V under the condition of non-disconnection, when the channel is disconnected, the operational amplifier control MOS is in a complete ON state, the influence of pull-down impedance is received, the level is 0V, therefore, the diagnosis threshold is set to be 5V, and when the sampling level is less than 5V, namely, the fault is greater than 5V, the channel is normal.
And an AI adapter, the channel of which is diagnosed as short-circuited. The diagnosis is judged by sampling a current value by an IO module, wherein the sampling range of the current value is 0 to 25mA, the maximum normal signal is 20mA, and the channel fault is judged under the condition that the current value exceeds 23 mA. The diagnostic digital signal output therefrom remains at a level that is always normal.
TC adapter: the channel is diagnosed as a broken wire. The sampling level is the positive end of a channel, and the normal signal range is-100 to 200mV because the sampling level is pulled up and pulled down. When the line is broken, it will be pulled up to 12V, so the diagnostic threshold is set to 1V, and when the sampling level is greater than 1V, it will be failed.
An RTD adapter: the channel is diagnosed as a broken wire. The RTD diagnosis is judged by the IO module sampling data and the diagnosis circuit synchronously, and the synchronous judgment is needed to ensure that the function of any line-breaking diagnosis can be covered because the RTD diagnosis has 3 and 4 line systems. The output of the adapter constant current source flows back to the inside of the adapter constant current source and is also connected with a resistor of 100 ohms to the ground in series, when the adapter constant current source is not disconnected, the level of the adapter constant current source is 1V and 2V, and when the adapter constant current source is disconnected, the level of the adapter constant current source is 0V, so that a diagnosis threshold of 0.5V is set for circuit diagnosis. In addition, the normal signal range is 1 to 400ohm, the sampling range is 0 to 500ohm, and when the sampling value exceeds 420ohm, the disconnection channel fault is judged.
A DI adapter: there is no channel fault diagnosis.
DO adapter: its channel is diagnosed as a short. The high-side DO chip has a short circuit alarm function and transmits diagnosis information to the IO module for judgment through optical coupling isolation.
In the present embodiment, the status diagnosis of each adapter is as follows:
in the analog quantity adapters AO, AI, TC and RTD, the state of the diagnosis adapter is mainly used for judging whether the working state of the current-voltage isolation coupling circuit is normal or not. The state of the adapter is judged by judging whether the PWM waveform with fixed frequency of the circuit is normal or not, and the PWM waveform is output to the diode and the RC circuit. When there is no PWM wave, the level is 0V due to the resistance pull-down. When the PWM wave is normal, the positive end of the comparator is also high level and charges the capacitor quickly when the high level is high, the positive end of the comparator is blocked by the diode reversely and does not discharge quickly but discharges slowly towards the resistor under the energy storage action of the capacitor when the low level is low, then the next high level is charged to the normal high level, the PWM wave is a fixed frequency, the capacitor with a large capacitance value increases the resistance value, the resistance value can enable the positive end of the comparator to be kept above 2V, whether the PWM is normal or not can be effectively distinguished by setting the comparison threshold to be 1V, and whether the state of the adapter is normal or not is judged by transmitting the high level and the low level through the optical coupler.
In the DI adapter, the state of the diagnosis adapter is mainly that after the transmission of a normal signal, the signal is transmitted into the diagnosis signal again by using an optical coupler, the normal signal and the diagnosis signal are judged by logic realized by an exclusive-OR gate at the same time, when the diagnosis signal is consistent with the normal signal according to the logic of the exclusive-OR gate, the state of the adapter normally outputs a low level to an IO module, and when the diagnosis signal is inconsistent with the normal signal, the adapter is judged to be in a fault state and outputs a high level to the IO module.
In the DO adapter, the state of the DO adapter is diagnosed mainly by a DO chip which has a function of diagnosing the state of the DO adapter, and the diagnosis digital signal is output and then transmitted to an IO module for data acquisition through optical coupling isolation.
In this embodiment, the adjacent adapters are configured redundantly, that is, one channel is used as a redundant backup of another channel, the two adapters need to share the current channel during the redundant configuration, the adjacent channels that are redundant to each other are implemented by using a jumper between corresponding plug-in bits on the backplane, that is, the channels of the two adapters are short-circuited by using the jumper during the redundant configuration. The user can select the corresponding channel to perform redundancy configuration according to needs, for example, important signals are generally configured. The IO module outputs a level type enabling signal to each adapter, namely enabling the adapter in work and not enabling the adapter which is arranged as a spare adapter, thereby realizing the switching of the working state and the spare state of the two redundant adapters.
When the adapter state fault is detected, the IO module judges the redundancy state of the current channel, and performs redundancy switching when the current channel is redundant, namely, the current adapter output is closed through an enable signal, and the standby adapter output is opened through the enable signal, and the standby adapter output is uploaded to a remote controller to indicate that the redundancy switching occurs. If the current channel is in a non-redundant state, the adapter directly turns off the current adapter through an enable signal, and the engineering personnel maintains the alarm state. Channel failure generally does not do switching processing and only reports alarm information, but a user can configure the channel to carry out redundancy switching when the channel fails according to the importance degree.
In this embodiment, the IO module is further configured to, after the adapter installation failure is cleared, periodically and repeatedly acquire the first interface group signal at a first time interval, and after acquiring the first interface group signal that shows that the adapter is installed in place for a preset number of consecutive times, modify the installation state of the adapter from the installation failure to the installation in place. And after the adapter state is modified to be installed in place, periodically and repeatedly acquiring a channel diagnosis signal or a state diagnosis signal at a second time interval, and after acquiring the continuous preset times of channel diagnosis signals or state diagnosis signals with normal states, modifying the corresponding state of the adapter from a channel fault state to a channel normal state or from a state fault state to a state normal state, wherein the first time interval is greater than the second time interval.
Specifically, all diagnostics go into failure or state recovery requires that state changes be confirmed by software filtering. The filtering mode is a mode of periodically confirming for multiple times at different intervals, the confirmation is carried out for multiple times at certain intervals, each time state is consistent, the new diagnosis state is recognized, and otherwise, the original diagnosis state is continued. The vibration time of the adapter during the on-line detection during plugging and unplugging can be relatively long, so that the filtering can be set to be 100ms, 200ms, 300ms or 400ms to perform 5 times of periodic confirmation, that is, the first time interval is 100ms. If the determination time is short because the control performance is affected by the channel failure and the adapter failure, the second time interval may be set to 100us, i.e., 5 cycle confirmations may be performed at intervals of 100us, 200us, 300us, and 400 us.
The multi-channel IO module disclosed by the embodiment can realize that one IO module can flexibly and randomly configure a channel by matching with different adapter types, and meets the use requirement of remote site on small scale and complexity. Finally, the IO module can meet the requirements of control and data acquisition of various types of transmitters, instruments and the like in an industrial field through the configuration of adapters of different types. The problem that the number of points is greatly wasted and cannot be flexibly distributed because multiple channels of the existing IO module are single functional modules is solved.
In another embodiment, a method for controlling multiple IO modules and adapters is also disclosed, wherein the IO modules can be connected with multiple adapters of different types through different interface cards on a bottom plate. In a preferred embodiment, the IO module in the control method may adopt the IO module in the multi-channel IO module disclosed in the foregoing embodiments. As shown in fig. 4, the method may include the following steps.
Step S1, after receiving the distributed new adapter type and the corresponding interface clamping information, reading a first interface group signal on the interface clamping, wherein the first interface group comprises a plurality of first connecting heads which can be respectively connected with a plurality of first connecting ends positioned at different positions of the adapter interface piece.
And S2, reading a second interface group signal after obtaining signals which are sent by the first interface group and are all connected with normal connectors, wherein the second interface group comprises a plurality of second connectors which can be respectively connected with the type identification output ends of the adapters, comparing the signal arrangement combination sequence in the received second interface group signal with the signal arrangement combination sequence of the second interface group signal corresponding to the preset newly-added adapter type, and if the signals are consistent, confirming that the distributed adapters are installed in place and the adapter types are correct.
And S3, after the distributed adapter is installed in place and the type of the adapter is correct, sending an enable signal to the adapter to enable the adapter to work, periodically obtaining a channel diagnosis signal and a state diagnosis signal sent by the adapter by the IO module, and judging whether the adapter has a fault according to the channel diagnosis signal and the state diagnosis signal.
In this embodiment, the IO module multi-adapter control method may further include the following steps.
And S4, if at least one connection fault signal exists in the first interface group signals, prompting the adapter to install the fault, periodically and repeatedly acquiring the first interface group signals at a first time interval, and after acquiring the first interface group signals which are continuously preset times and display that the adapter is installed in place, modifying the installation state of the adapter from the installation fault to the installation in place. After the adapter is installed in place, channel diagnosis signals or state diagnosis signals are periodically and repeatedly acquired at a second time interval, after the channel diagnosis signals or state diagnosis signals with the normal state are acquired for continuous preset times, the corresponding state of the adapter is modified from the channel fault state to the channel normal state or from the state fault state to the state normal state, and the first time interval is larger than the second time interval.
The steps of the IO module multi-adapter control method basically correspond to the functions of the multi-channel IO module disclosed in the foregoing embodiments, so that detailed descriptions are not repeated herein, and reference may be made to the embodiments of the multi-channel IO module disclosed in the foregoing embodiments. It should be noted that, in the present specification, each embodiment is described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, and not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
In summary, the above description is only a preferred embodiment of the present invention, and all the equivalent changes and modifications made according to the claims of the present invention should be covered by the present invention.

Claims (9)

1. A multichannel IO module which characterized in that:
the intelligent adapter comprises an IO module, a plurality of adapters of different types and a bottom plate, wherein the bottom plate is provided with a plurality of plug-in screens for plugging the adapters, and the IO module is respectively connected with the adapters of different types through the bottom plate; the first interface group comprises a plurality of first connecting heads which can be correspondingly connected with a plurality of first butt ends at different positions of the adapter interface piece arranged on the interface card; the second interface group comprises a plurality of second connectors which are respectively connected with the type identification output ends of the adapters arranged on the interface screens;
the IO module is configured to read a first interface group signal on an interface card after receiving the assigned new adapter type and the corresponding interface card information, read a second interface group signal after obtaining a signal that each first connector sent by the first interface group is normally connected, compare a signal permutation and combination sequence in the collected second interface group signal with a signal permutation and combination sequence of a preset second interface group signal corresponding to the new adapter type, and confirm that the assigned adapter is installed in place and the adapter type is correct if the signal permutation and combination sequence is consistent with the signal permutation and combination sequence of the preset second interface group signal corresponding to the new adapter type.
2. The multi-channel IO module of claim 1 wherein:
the second interface group comprises three second connectors of the adapter respectively connected to the interface screens, and the three second connectors are respectively connected with the IO module and connected with a high level;
the adapter is provided with three second butt joint ends correspondingly connected with the second connectors, the three second butt joint ends are respectively connected to the grounding end of the adapter system or suspended processing, and at least one of the three second butt joint ends is connected to the grounding end of the adapter system and at least one suspended processing;
the connection combination of three second butt joint ends of different types of adapters is arranged differently, and the connection combination comprises that the second butt joint end is connected to the grounding end of the adapter system and the second butt joint end is connected and suspended.
3. The multi-channel IO module of claim 2, wherein:
the adapter includes an AO adapter, an AI adapter, a TC adapter, a RTD adapter, a DI adapter, or a DO adapter.
4. The multi-channel IO module of claim 3, wherein:
the IO module is configured to periodically read level signals of three second connectors on an interface card provided with an adapter, and obtain a corresponding adapter type by contrasting an adapter type truth table recorded in a database according to the arrangement sequence of the three level signals; and if the three level signals are all low level or high level, outputting circuit fault information.
5. The multi-channel IO module of claim 4, wherein:
the first interface group comprises three first connecting heads which are respectively arranged at the front part, the middle part and the rear part of the interface clamping position, and the first connecting heads can be connected with first butt-joint ends which are inserted into corresponding positions on the adapter of the interface clamping position;
the three first connecting ends are respectively connected with the MCU of the IO module and connected with a high level, and the three first connecting ends are respectively connected to the grounding end of the adapter system;
the IO module is configured to periodically read level signals of three first connecting connectors on an interface card where the adapter is installed, and output adapter installation fault information when at least one high level exists in the collected level signals of the three first connecting connectors.
6. The multi-channel IO module of claim 5 wherein:
the IO module is configured to send an enabling signal to the newly added adapter after the adapter is installed in place and the type of the adapter is correct, so that the adapter enters into work, periodically acquire a channel diagnosis signal and a state diagnosis signal sent by the adapter, and judge whether the adapter has a fault according to the channel diagnosis signal and the state diagnosis signal.
7. The multi-channel IO module of claim 6, wherein:
the IO module is configured to periodically and repeatedly acquire a first interface group signal at a first time interval after the installation fault of the adapter is cleared, and modify the installation state of the adapter from the installation fault to the installation in place after acquiring the first interface group signal which is continuously displayed and installed in place for preset times;
and after the adapter state is modified to be installed in place, periodically and repeatedly acquiring a channel diagnosis signal or a state diagnosis signal at a second time interval, and after acquiring the continuous preset times of channel diagnosis signals or state diagnosis signals with normal states, modifying the corresponding state of the adapter from the channel fault state to the channel normal state or from the state fault state to the state normal state, wherein the first time interval is greater than the second time interval.
8. An IO module multi-adapter control method is characterized in that the IO module can be connected with a plurality of adapters of different types through different interface screens on a bottom plate, and the method comprises the following steps:
s1, after receiving the distributed type of the newly-added adapter and the corresponding interface clamping information, reading a first interface group signal on the interface clamping, wherein the first interface group comprises a plurality of first connecting heads which can be respectively connected with a plurality of first connecting ends positioned at different positions of an adapter interface piece;
s2, reading a second interface group signal after obtaining that each connector sent by the first interface group is connected with a normal signal, wherein the second interface group comprises a plurality of second connectors which can be respectively connected with the type identification output ends of the adapters, comparing the signal arrangement combination sequence in the received second interface group signal with the signal arrangement combination sequence of the second interface group signal corresponding to the preset newly added adapter type, and if the signals are consistent, confirming that the allocated adapters are installed in place and the adapter types are correct;
and S3, after the distributed adapter is installed in place and the type of the adapter is correct, sending an enabling signal to the adapter to enable the adapter to work, periodically acquiring a channel diagnosis signal and a state diagnosis signal sent by the adapter by the IO module, and judging whether the adapter has a fault according to the channel diagnosis signal and the state diagnosis signal.
9. The IO module multi-adapter control method according to claim 8, further comprising the steps of:
s4, if at least one connection fault signal exists in the first interface group signals, prompting an adapter to install faults, periodically and repeatedly acquiring the first interface group signals at a first time interval, and after acquiring the first interface group signals which are continuously preset times and display that the first interface group signals are installed in place, modifying the installation state of the adapter from the installation faults to the installation in place;
after the adapter is installed in place, channel diagnosis signals or state diagnosis signals are periodically and repeatedly acquired at a second time interval, after the channel diagnosis signals or state diagnosis signals with the normal state are acquired for continuous preset times, the corresponding state of the adapter is modified from the channel fault state to the channel normal state or from the state fault state to the state normal state, and the first time interval is larger than the second time interval.
CN202310006900.6A 2023-01-04 2023-01-04 IO module multi-adapter control method and multi-channel IO module Active CN115878526B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310006900.6A CN115878526B (en) 2023-01-04 2023-01-04 IO module multi-adapter control method and multi-channel IO module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310006900.6A CN115878526B (en) 2023-01-04 2023-01-04 IO module multi-adapter control method and multi-channel IO module

Publications (2)

Publication Number Publication Date
CN115878526A true CN115878526A (en) 2023-03-31
CN115878526B CN115878526B (en) 2023-06-09

Family

ID=85757966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310006900.6A Active CN115878526B (en) 2023-01-04 2023-01-04 IO module multi-adapter control method and multi-channel IO module

Country Status (1)

Country Link
CN (1) CN115878526B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117555230A (en) * 2024-01-11 2024-02-13 深圳市东莱尔智能科技有限公司 IO module multi-adapter control method and device and multi-channel IO module

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5191653A (en) * 1990-12-28 1993-03-02 Apple Computer, Inc. Io adapter for system and io buses having different protocols and speeds
US6016523A (en) * 1998-03-09 2000-01-18 Schneider Automation, Inc. I/O modular terminal having a plurality of data registers and an identification register and providing for interfacing between field devices and a field master
US20080140877A1 (en) * 2006-12-06 2008-06-12 Takashige Baba Io adapter and data transferring method using the same
US20110179416A1 (en) * 2010-01-21 2011-07-21 Vmware, Inc. Virtual Machine Access to Storage Via a Multi-Queue IO Storage Adapter With Optimized Cache Affinity and PCPU Load Balancing
CN202886880U (en) * 2012-09-19 2013-04-17 淮安信息职业技术学院 A combined universal LonWorks on-site controller
DE102014118172B3 (en) * 2014-12-08 2015-07-16 Balluff Gmbh IO-Link adapter
CN105607556A (en) * 2014-11-18 2016-05-25 霍尼韦尔国际公司 Intrinsic barrier device with software configurable IO type
WO2016127431A1 (en) * 2015-02-15 2016-08-18 华为技术有限公司 Earphone type identification method, apparatus and terminal device
US20170046239A1 (en) * 2015-08-14 2017-02-16 Yokogawa Electric Corporation Diagnostic method, id module and process control system
DE102016221662A1 (en) * 2016-11-04 2018-05-09 Ifm Electronic Gmbh IO-Link adapter
WO2022002168A1 (en) * 2020-06-30 2022-01-06 华为技术有限公司 Chip module and communication system, and port allocation method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5191653A (en) * 1990-12-28 1993-03-02 Apple Computer, Inc. Io adapter for system and io buses having different protocols and speeds
US6016523A (en) * 1998-03-09 2000-01-18 Schneider Automation, Inc. I/O modular terminal having a plurality of data registers and an identification register and providing for interfacing between field devices and a field master
US20080140877A1 (en) * 2006-12-06 2008-06-12 Takashige Baba Io adapter and data transferring method using the same
US20110179416A1 (en) * 2010-01-21 2011-07-21 Vmware, Inc. Virtual Machine Access to Storage Via a Multi-Queue IO Storage Adapter With Optimized Cache Affinity and PCPU Load Balancing
CN202886880U (en) * 2012-09-19 2013-04-17 淮安信息职业技术学院 A combined universal LonWorks on-site controller
CN105607556A (en) * 2014-11-18 2016-05-25 霍尼韦尔国际公司 Intrinsic barrier device with software configurable IO type
DE102014118172B3 (en) * 2014-12-08 2015-07-16 Balluff Gmbh IO-Link adapter
WO2016127431A1 (en) * 2015-02-15 2016-08-18 华为技术有限公司 Earphone type identification method, apparatus and terminal device
US20170046239A1 (en) * 2015-08-14 2017-02-16 Yokogawa Electric Corporation Diagnostic method, id module and process control system
DE102016221662A1 (en) * 2016-11-04 2018-05-09 Ifm Electronic Gmbh IO-Link adapter
WO2022002168A1 (en) * 2020-06-30 2022-01-06 华为技术有限公司 Chip module and communication system, and port allocation method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
朱明,糜玉林,张翼: "基于自定义总线的通用适配器设计", 计算机测量与控制 *
王孝伟;李明党;: "Heroview组态软件与GE PLC的通讯研究", 价值工程 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117555230A (en) * 2024-01-11 2024-02-13 深圳市东莱尔智能科技有限公司 IO module multi-adapter control method and device and multi-channel IO module
CN117555230B (en) * 2024-01-11 2024-03-19 深圳市东莱尔智能科技有限公司 IO module multi-adapter control method and device and multi-channel IO module

Also Published As

Publication number Publication date
CN115878526B (en) 2023-06-09

Similar Documents

Publication Publication Date Title
CN1592224B (en) Data transmission method for a multiprotocol handheld field maintenance tool
CN104821886B (en) For the method and system via four lines in Ethernet cable to supply electric power
CN105637753B (en) For the agreement to communicate between the primary side and primary side of the switching power converter of isolation
CN112217702B (en) Automatic addressing method for cascade master-slave module, master control module and slave control module
CN105164915A (en) Measurement, control and harvest optimization device for solar modules requiring fewer connections
CN115878526A (en) IO module multi-adapter control method and multi-channel IO module
CN114237185A (en) Portable field maintenance tool having a bus for powering and communicating with field devices
CN107065716A (en) A kind of digital quantity acquiring circuit with dynamic diagnosis failures
CN110687475A (en) Remote fault diagnosis circuit, detection method and multi-split air conditioning unit
CN114342553A (en) Power supply apparatus, power reception apparatus, and power supply and reception method
CN112578197B (en) Automatic testing system and method for secondary circuit of transformer substation
US20030196135A1 (en) Protection switching of interface cards in communication system
CN110888390A (en) Digital quantity output redundancy circuit and PLC control system
CN110244176A (en) A kind of high-tension connector fault detection system and high-voltage power system
CN109342849A (en) Charging harness assembly testing device
CN111932746B (en) Access controller and access line state identification method
US11286772B2 (en) Wellbore network with remote diagnostics
CN211086560U (en) Remote fault diagnosis circuit and multi-split air conditioning unit
KR102398573B1 (en) Diagnosis appratus
CN110247387B (en) Servo driving module with fault tolerance
CN216014008U (en) Distributed switch remote control subsystem
CN220855143U (en) Identification circuit for identifying a plurality of cables in system
CN212586878U (en) Chip data write-in circuit
CN216210588U (en) Distributed switch remote control main system and distributed switch remote control system
WO2008004269A1 (en) Wireless ic tag and wireless ic tag system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant