CN115878526B - 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
CN115878526B
CN115878526B CN202310006900.6A CN202310006900A CN115878526B CN 115878526 B CN115878526 B CN 115878526B CN 202310006900 A CN202310006900 A CN 202310006900A CN 115878526 B CN115878526 B CN 115878526B
Authority
CN
China
Prior art keywords
adapter
module
state
signals
channel
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.)
Active
Application number
CN202310006900.6A
Other languages
Chinese (zh)
Other versions
CN115878526A (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 multichannel IO module can realize that one IO module can flexibly and randomly configure channels by matching with different adapter types, and meets the small-scale complex use requirement of a remote site, so that the IO module can meet the control and data acquisition of various transmitters, meters and the like of various types in an industrial site through the configuration of different types of adapters.

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 dispersion of the production scale, the current mode of installing a control system in a single control room brings about an increase in the cost of cables due to the fact that the production site is too far away, and meanwhile, the cables with long distances bring about difficulty in maintenance. Therefore, the demand on IO modules which can be installed on site is larger and larger in the current market, but the installation site has the characteristics of small single-mode site scale and multiple signal types, most IO modules in the current production application are multi-channel single-function modules, and the problem that the number of single-mode modules on the IO modules is wasted in a large amount but cannot be flexibly distributed exists.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a multichannel IO module which comprises an IO module, a plurality of adapters of different types and a bottom plate, wherein a plurality of plugging clamping positions for plugging the adapters are arranged on the bottom plate, and the IO module is respectively connected with the adapters of different types through the bottom plate; the plug-in clamping position is provided with a first interface group and a second interface group which are connected with the IO module, and the first interface group comprises a plurality of first connectors which can be correspondingly connected with a plurality of first butt-joint ends of the adapter interface piece arranged on the interface clamping position at different positions; 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 the first interface group signal on the interface card after receiving the allocated new adapter type and the corresponding interface card position information, read the second interface group signal after obtaining the normal signal of each first connector connection sent by the first interface group, compare the signal arrangement and combination sequence in the collected second interface group signal with the signal arrangement and combination sequence of the preset second interface group signal corresponding to the new adapter type, and if the signal arrangement and combination sequence is consistent, confirm that the allocated adapter is installed in place and the adapter type is correct.
Preferably, the second interface group includes three second connectors of the adapter connected to the interface card position respectively, and the three second connectors are connected to the IO module respectively and are connected to a high level; the adapter is provided with three second butt joint ends which are correspondingly connected with the second connector, the three second butt joint ends are respectively connected to the grounding end of the adapter system or the suspension treatment, 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 of the three second butt joint ends is connected to the suspension treatment; the connection combination of the three second butt joint ends of the adapters of different types is arranged differently, and the connection combination comprises the connection of the second butt joint ends to the grounding end of the adapter system and the connection suspension treatment of the second butt joint ends.
Preferably, the adapter comprises an AO adapter, an AI adapter, a TC adapter, an 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 bit where the adapter is installed, and obtain a corresponding adapter type according to an adapter type truth table recorded in the database in comparison with an arrangement sequence of the three level signals; if the three level signals are low level or high level, the circuit fault information is output.
Preferably, the first interface group comprises three first connectors respectively arranged at the front part, the middle part and the rear part of the interface clamping position, and the first connectors can be connected with first butt ends at corresponding positions on the adapter inserted into the interface clamping position; the three first connectors are respectively connected with the MCU of the IO module and are connected with a high level, and the three first butt 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 connectors on an interface card position of the adapter, and output adapter installation fault information when at least one high level exists in the collected levels of the three first connectors.
Preferably, the IO module is configured to send an enable signal to the adapter after the newly added adapter is installed in place and the adapter is of a correct type, so that the adapter is enabled to work, periodically obtain a channel diagnosis signal and a status diagnosis signal sent by the adapter, and judge 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 collect the first interface group signal at a first time interval after the adapter installation fault is cleared, and modify the installation state of the adapter from the installation fault to the installation in place after the continuous preset number of first interface group signals showing the installation in place are collected; and after the state of the adapter is modified to be in place, periodically and repeatedly collecting channel diagnosis signals or state diagnosis signals at a second time interval, and after continuous channel diagnosis signals or state diagnosis signals with normal states and preset times are collected, 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 larger than the second time interval.
The invention also discloses a control method of the IO module multi-adapter, the IO module can be connected with a plurality of adapters of different types through different interface clamping positions on the bottom plate, the method comprises the following steps:
s1, after the allocated new adapter type and corresponding interface card position information are read, a first interface group signal on the interface card position is read, wherein the first interface group comprises a plurality of first connectors which can be respectively connected with a plurality of first butt joint ends positioned at different positions of an adapter interface piece;
s2, after obtaining normal signals of all connectors sent by the first interface group, reading second interface group signals, wherein the second interface group comprises a plurality of second connectors which can be respectively connected with the type identification output end of the adapter, comparing the signal arrangement and combination sequence in the received second interface group signals with the signal arrangement and combination sequence of the second interface group signals corresponding to the preset newly-added adapter type, and if the signal arrangement and combination sequence is consistent, confirming that the allocated adapter is installed in place and the adapter type is correct;
s3, after the allocated adapter is installed in place and the type of the adapter is correct, an enabling signal is sent to the adapter, so that the adapter is enabled to work, the IO module periodically obtains a channel diagnosis signal and a state diagnosis signal sent by the adapter, and whether the adapter has faults or not is judged according to the channel diagnosis signal and the state diagnosis signal.
Preferably, the method for controlling the multiple adapters of the IO module further comprises the following steps:
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 collecting the first interface group signals at a first time interval, and after the first interface group signals which are continuously preset for displaying and installing in place are collected, modifying the installation state of the adapter from the installation fault to the installation in place; after the state of the adapter is in place, periodically and repeatedly collecting channel diagnosis signals or state diagnosis signals at a second time interval, and after the continuous channel diagnosis signals or state diagnosis signals with normal states and preset times are collected, 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 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, through matching with different adapter types, the channel can be flexibly and randomly configured by one IO module, and the small-scale complex use requirement of a remote site is met. Finally, the IO module can meet the control and data acquisition of various transmitters, meters and the like in the industrial field through the configuration of different types of adapters. The problem that a plurality of points are wasted but cannot be flexibly distributed due to the fact that 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 embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on 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 present invention.
Fig. 3 is a schematic diagram of an analog signal transmission circuit according to an embodiment of the invention.
Fig. 4 is a flow chart of a method for controlling multiple adapters of an IO module 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 more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. It will be apparent that the described embodiments are some, but not all, embodiments of the invention. All other embodiments, which can be made by a person skilled in the art without creative efforts, based on the described embodiments of the present invention fall within the protection scope of the present invention.
In the present invention, unless explicitly specified and limited otherwise, the terms "mounted," "connected," "secured," and the like are to be construed broadly and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
In the present invention, unless expressly stated or limited otherwise, a first feature "above" or "below" a second feature may include both the first and second features being in direct contact, as well as the first and second features not being in direct contact but being in contact with each other through additional features therebetween. Moreover, a first feature being "above," "over" and "on" a second feature includes the first feature being directly above and obliquely above the second feature, or simply indicating that the first feature is higher in level than the second feature. The first feature being "under", "below" and "beneath" the second feature includes the first feature being directly under and obliquely below the second feature, or simply means that the first feature is less level than the second feature.
Unless defined otherwise, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this invention belongs. The terms "first," "second," and the like in the description and in the claims, are not used for any order, quantity, or importance, but are used for distinguishing between different elements. Likewise, the terms "a" or "an" and the like do not denote a limitation of quantity, but rather denote the presence of at least one.
The embodiment discloses multichannel IO module that can install in industrial field directly, and this multichannel IO module has included IO module, and a plurality of different grade type adapter and bottom plate, has set up a plurality of grafting screens that are used for grafting the adapter on this bottom plate, and the IO module is connected with a plurality of different grade type adapter through the bottom plate respectively. The IO module can meet the control and data acquisition of various transmitters, meters and the like in the industrial field through the configuration of different types of adapters. The first interface group and the second interface group which are connected with the IO module are arranged on the plugging clamping position. The first interface group comprises a plurality of first connectors which can be correspondingly connected with a plurality of first butt ends of 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 the interface card after receiving the allocated new adapter type and the corresponding interface card position information, read a second interface group signal after obtaining normal signals connected by all first connectors sent by the first interface group, compare the signal arrangement and combination sequence in the acquired second interface group signal with the signal arrangement and combination sequence of the preset second interface group signal corresponding to the new adapter type, and confirm that the allocated adapter is installed in place and the adapter type is correct if the signal arrangement and combination sequence is consistent.
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 adapters 2. The adapter may be of 6 types, such as an AO adapter, an AI adapter, a TC adapter, an RTD adapter, a DI adapter, or a DO adapter. The user can freely select and combine corresponding adapters according to the field requirement, and the matching compatibility of complex point positions of the industrial field is realized by configuring the IO module. And the IO module is accessed into a main controller in a remote control room in an optical communication mode, so that the integral control application is realized. The main functions of the adapter are modulating or demodulating field signals, diagnosing the state of a field channel and diagnosing the adapter, and the main functions of the IO module are collecting or issuing output of adapter data, processing diagnosis 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 adapter respectively connected to the interface cards, 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 which are correspondingly connected with the second connector, the three second butt-joint ends are respectively connected to the grounding end of the adapter system or the suspension treatment, and at least one of the three second butt-joint ends is connected to the grounding end of the adapter system and the suspension treatment; the connection combination of the three second butt joint ends of the adapters of different types is arranged differently, and the connection combination comprises the connection of the second butt joint ends to the grounding end of the adapter system and the connection suspension treatment of the second butt joint ends.
The IO module is configured to periodically read level signals of three second connectors on an interface card bit of the adapter, and acquire corresponding adapter types according to the arrangement sequence of the three level signals and against an adapter type truth table recorded in a database; if the three level signals are low level or high level, the circuit fault information is output.
Specifically, because the user is required to manually operate to allocate the corresponding adapter type, there is a possibility of misplug the adapter, so that the IO module needs to judge whether the type of the inserted actual adapter is consistent with the type of the channel on the configuration, and then alarm and stop the output, sampling and diagnosis functions of the adapter under the condition of inconsistency. As shown in fig. 2, the adapter type may be identified by reading the levels of three signals of the three second connectors MODE1, MODE2, MODE 3. The internal part of the IO module is connected with the MCU and is added with hardware pull-up, the internal part of the adapter is connected with the adapter through the bottom plate, the three signals are connected to the system ground or suspended, the IO module can read low level when in grounding and can read high level when in suspending because of the hardware pull-up, the three signals are combined by different types of adapters in different modes, and the IO module reads the three signals in a periodical query mode and judges which adapter is actually 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, namely, if the three level signals are all low level or high level, the circuit failure information is output.
In this embodiment, the adapter type correspondence truth table is as follows:
Figure 950737DEST_PATH_IMAGE002
in this embodiment, the first interface group includes three first connectors respectively disposed at the front, middle and rear of the interface card, and the first connectors are capable of being connected with first docking ends inserted into corresponding positions on the adapter of the interface card. The three first connectors are respectively connected with the MCU of the IO module and high level, and the three first butt 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 connectors on an interface card position of the adapter, and output adapter installation fault information when at least one high level exists in the collected levels of the three first connectors.
Specifically, when the IO module is running, the IO module needs to confirm whether the inserted adapter is in place or not to perform subsequent operations such as judging type, output sampling, data diagnosis and the like. Therefore, it is necessary to detect the in-place condition of the adapter, that is, whether the adapter is plugged, three signals of three first docking ends PLUG1, PLUG2 and PLUG3 on the adapter are located at the front end, the middle and the tail end of the adapter connector, the circuit principle and the circuit type are the same as the previous type identification circuit, that is, the read level is pulled up by the hardware inside the IO module, and the corresponding connector interfaces of the adapter are all directly connected to the ground. And when the IO module reads that the three signals are all at the 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 module AO, AI, TC, RTD, the adapter is provided with 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 by the 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 side PWM electromotive force by schottky diode full-bridge rectification and capacitor energy storage, so that the negative side rectifies the negative side PWM electromotive force into a stable direct current positive and negative voltage rail for supplying power to a corresponding signal conversion circuit of the adapter. The analog signal transmission circuit is shown in fig. 3, and the analog signal transmission circuit is realized by a voltage-current isolation coupling circuit, so that the voltage or current of the dangerous side/safety side of the channel is converted into the voltage of the safe side/dangerous side. The AO and AI adapters are input into the direct drive transformer by 4-20 mA signal current, and the TC and RTD adapters are input after being converted into 0-5V voltage by a signal conversion circuit at the front end of the channel. The multivibrator chip is matched with a corresponding resistor-capacitor to generate mutually exclusive forward and reverse PWM wave signals. The multivibrator chip can adopt SN74LV123A, and can adopt other existing similar chips, and the PWM wave controls the MOS tube to control the alternating on-off of the two windings of the transformer. The same PWM electromotive force is generated on the other side of the transformer, current output which is in linear relation with the 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, and the voltage after voltage conversion is also 1:1, and converting the current to the secondary side to be corresponding to the current of 0-25 mA, and converting the corresponding voltage to be V=I×R to be 0-5V. The input current also comprises overcurrent and overvoltage shutoff, and is realized through a feedback control loop of a feedback resistor and an operational amplifier and an MOS tube. The voltage output signal is 0-5V, a certain error is formed in the conversion process, and the error can be eliminated through zero setting and amplitude modulation calibration. The isolated adapter has the channel side in an isolated floating state relative to the ground, so that on one hand, the on-site over-electric 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 ensured, and when damaged components need to be replaced, the adapter only needs to be replaced.
In this embodiment, the IO module is further configured to send an enable signal to the adapter after the newly added adapter is installed in place and the adapter is of a correct type, so that the adapter is enabled to work, and periodically obtain a channel diagnosis signal and a status diagnosis signal sent by the adapter, and determine whether the adapter has a fault according to the channel diagnosis signal and the status diagnosis 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 driving control optocoupler, outputs the high or low level driving control optocoupler to a safety side voltage signal, and acquires diagnosis data through an IO module.
In this embodiment, the channel diagnosis of each adapter is as follows:
AO adapter with its channel diagnosed as broken. The point of the diagnosis sampling level is the negative end of the channel, the load voltage drop is 15V at maximum according to the output requirement index, the positive end voltage is fixed to be 24V, namely, the negative end voltage is more than 9V under the condition of no disconnection, the operational amplifier controls the MOS to be in a complete ON state when the channel is disconnected, the level is 0V under the influence of pull-down impedance, so that the diagnosis threshold is set to be 5V, and the channel is normal when the sampling level is less than 5V, namely, the fault is more than 5V.
AI adapter whose channel is diagnosed as a short circuit. The diagnosis is carried out by sampling a current value by the IO module, the sampling range of the current value is 0-25 mA, 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 normal level at all times.
TC adapter: the channel of which is diagnosed as broken. The sampling level is the positive end of the channel, and the normal signal range is-100-200 mV because of the pull-up and pull-down. When the line is broken, the line is pulled up to 12V, so the diagnosis threshold is set to be 1V, and when the sampling level is greater than 1V, the line is failed.
RTD adapter: the channel of which is diagnosed as broken. The diagnosis of RTD is judged by sampling data of IO module and synchronous diagnosis circuit, because it possesses 3, 4 line system, therefore need synchronous judgement can guarantee that arbitrary follow broken wire diagnostic function can all cover. The adapter constant current source outputs and then flows back to the inside and is connected with a 100ohm resistor to the ground in series, the level of the adapter constant current source is 1V and 2V when the adapter constant current source is not disconnected, and the level of the adapter constant current source is 0V when the adapter constant current source is disconnected, so that the diagnosis threshold of 0.5V is set for circuit diagnosis. In addition, the normal signal range is 1-400 ohms, the sampling range is 0-500 ohms, and the broken line channel fault is judged when the sampling value exceeds 420 ohms.
DI adapter: there is no channel failure diagnosis.
A DO adapter: the channel of which is diagnosed as a short circuit. The high-side DO chip has a short-circuit alarm function and transmits diagnostic 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 AO, AI, TC, RTD analog adapter, the state of the diagnostic adapter is mainly to judge whether the working state of the current-voltage isolation coupling circuit is normal. That is, the adapter state is judged by whether the PWM waveform of the fixed frequency of the circuit is normal or not, and the PWM waveform is outputted to the circuit of the diode and the RC. When no PWM wave exists, the level of the voltage is 0V due to the influence of the pull-down of the resistor. When the PWM wave is normal, the positive end of the comparator is also high-level and charges the capacitor quickly, when the PWM wave is low-level, the positive end of the comparator is blocked by the diode reversely, the fast discharging is not performed, the level of the comparator is maintained to discharge slowly towards the resistor by the energy storage effect of the capacitor, then the PWM wave is charged to the normal high level again at the next high level, the positive end of the comparator can be maintained above 2V by increasing the resistance value of the capacitor with the large capacitance value of the PWM wave with the fixed frequency, whether the PWM is normal can be effectively distinguished by setting the comparison threshold to be 1V and the output high-low level of the comparator, and then the state of the adapter is judged by transmitting the high-low level by the optocoupler.
In the DI adapter, the state of the diagnosis adapter is mainly that after the transmission of a normal signal, the signal is transmitted again into a diagnosis signal by an optical coupler, the normal signal and the diagnosis signal are judged through logic realized by an exclusive OR gate, 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 state failure of the adapter is judged to output a high level to the IO module.
In the DO adapter, the diagnosis of the self state of the DO adapter mainly depends on a DO chip, and the chip has a diagnosis function for the self state, outputs a diagnosis digital signal and then transmits the diagnosis digital signal to an IO module for data acquisition through optical coupling isolation.
In this embodiment, the adjacent adapters are configured in a redundancy manner, that is, one channel is used as a redundancy standby for the other adjacent channel, when in redundancy configuration, the two adapters need to share the current channel, and the adjacent channels which are redundant with each other are realized through jumper wires between corresponding plugging clamping positions on the bottom plate, that is, when in redundancy configuration, the two channels are short-circuited by the jumper wires. The user may select the corresponding channel for redundancy configuration as desired, such as configuring the important signals generally. The IO module outputs a level type enabling signal to each adapter, namely the adapter in operation can be enabled, and the adapter serving as a standby adapter is not enabled, so that the switching of the working state and the standby state of the two redundant adapters is realized.
When the adapter state fault is detected, the IO module judges the redundancy state of the current channel, and when the current channel is redundant, redundancy switching is performed, namely, the current adapter output is closed through an enabling signal, and meanwhile, the standby adapter output is opened through the enabling signal, and the redundant switching is indicated by uploading to a remote controller. If the current channel is in a non-redundant state, the adapter directly turns off the current adapter through an enabling signal, and the current adapter sends an alarm state to be maintained by engineering personnel. The channel fault generally does not do switching processing and only sends alarm information, but a user can configure the channel fault to perform redundancy switching when the channel fault is in fault according to the importance degree.
In this embodiment, the IO module is further configured to periodically and repeatedly collect the first interface group signal at a first time interval after the adapter installation fault is cleared, and modify the installation state of the adapter from the installation fault to the installation in place after the continuous preset number of first interface group signals that are displayed and installed in place are collected. And after the state of the adapter is modified to be in place, periodically and repeatedly collecting channel diagnosis signals or state diagnosis signals at a second time interval, and after continuous channel diagnosis signals or state diagnosis signals with normal states and preset times are collected, 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 larger than the second time interval.
In particular, all diagnostic entry faults or state recovery require a change in state to be confirmed by software filtering. The filtering mode is a mode of periodically confirming for a plurality of times at different intervals, and confirms for a plurality of times at certain time intervals, and each time the state is consistent, the new diagnosis state is approved, otherwise, the original diagnosis state is continued. The adapter can perform the 5-cycle confirmation with the filtering set to be 100ms, 200ms, 300ms and 400ms, namely the first time interval is 100ms because the vibration time of the adapter during the plugging can be longer. The second time interval may be set to 100us, i.e., 5 cycles of validation may be performed at intervals 100us, 200us, 300us, 400us, if the channel failure and adapter failure affect control performance and the determination time is short.
The multichannel IO module disclosed by the embodiment can realize that one IO module can flexibly and randomly configure channels by matching with different adapter types, and meets the use requirement of small-scale and complex remote sites. Finally, the IO module can meet the control and data acquisition of various transmitters, meters and the like in the industrial field through the configuration of different types of adapters. The problem that a plurality of points are wasted but cannot be flexibly distributed due to the fact that multiple channels of the existing IO module are single functional modules is solved.
In another embodiment, a method for controlling multiple adapters of an IO module is also disclosed, where the IO module can be connected to multiple adapters of different types through different interface cards on a backplane. In a preferred embodiment, the IO module in the control method may be an IO module in the multi-channel IO module disclosed in the foregoing embodiment. As shown in fig. 4, the method may include the following steps.
Step S1, after receiving the allocated new adapter type and the corresponding interface card position information, reading a first interface group signal on the interface card position, wherein the first interface group comprises a plurality of first connectors which can be respectively connected with a plurality of first butt joint ends positioned at different positions of an adapter interface piece.
Step S2, after obtaining normal signals of connection heads sent by the first interface group, reading second interface group signals, wherein the second interface group comprises a plurality of second connection heads which can be respectively connected with the type identification output end of the adapter, comparing the signal arrangement and combination sequence in the received second interface group signals with the signal arrangement and combination sequence of the second interface group signals corresponding to the preset newly-added adapter type, and if the signal arrangement and combination sequence is consistent, confirming that the allocated adapter is installed in place and the adapter type is correct.
And step S3, after the allocated adapter is installed in place and the adapter type is correct, an enabling signal is sent to the adapter, so that the adapter is enabled to work, the IO module periodically acquires a channel diagnosis signal and a state diagnosis signal sent by the adapter, and whether the adapter has faults or not is judged according to the channel diagnosis signal and the state diagnosis signal.
In this embodiment, the method for controlling multiple adapters of an IO module may further include the following steps.
And S4, prompting the adapter to install the fault if at least one connection fault signal exists in the first interface group signals, periodically and repeatedly collecting the first interface group signals at a first time interval, and after the continuous preset number of first interface group signals which are displayed and installed in place are collected, modifying the installation state of the adapter from the installation fault to the installation in place. After the state of the adapter is in place, periodically and repeatedly collecting channel diagnosis signals or state diagnosis signals at a second time interval, and after the continuous channel diagnosis signals or state diagnosis signals with normal states and preset times are collected, 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 larger than the second time interval.
The steps of the method for controlling the multiple adapters of the IO module basically correspond to the functions of the multi-channel IO module disclosed in the foregoing embodiments, so that detailed description will not be given here, and specific reference may be made to the embodiments of the multi-channel IO module disclosed in the foregoing. It should be noted that, in the present description, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different manner from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.
In summary, the foregoing description is only of the preferred embodiments of the present invention, and all equivalent changes and modifications made in accordance with the claims should be construed to fall within the scope of the invention.

Claims (8)

1. A multichannel IO module is characterized in that:
the system comprises an IO module, a plurality of adapters of different types and a bottom plate, wherein a plurality of plugging clamping positions for plugging the adapters are arranged on the bottom plate, and the IO module is respectively connected with the adapters of different types through the bottom plate; the plug-in clamping position is provided with a first interface group and a second interface group which are connected with the IO module, and the first interface group comprises a plurality of first connectors which can be correspondingly connected with a plurality of first butt-joint ends of the adapter interface piece arranged on the interface clamping position at different positions; 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 second interface group comprises three second connectors of the adapter which are respectively connected to the interface clamping positions, and the three second connectors are respectively connected with the IO module and are connected with high level; the adapter is provided with three second butt joint ends which are correspondingly connected with the second connectors, the three second butt joint ends are respectively connected to the grounding end of the adapter system or the suspending treatment, wherein the connection combinations of the three second butt joint ends of the adapters of different types are different in arrangement, and the connection combinations comprise the connection of the second butt joint ends to the grounding end of the adapter system and the suspending treatment of the connection of the second butt joint ends;
the IO module is configured to read a first interface group signal on the interface card position after receiving the allocated new adapter type and the corresponding interface card position information, read and read level signals of three second connectors on the interface card position provided with the adapter after obtaining normal signals of all first connectors sent by the first interface group, compare the signal arrangement and combination sequence of the collected level signals of the three second connectors with the signal arrangement and combination sequence of the preset second interface group signal corresponding to the new adapter type recorded in the database, and confirm that the allocated adapter is installed in place and the adapter type is correct if the signal arrangement and combination sequence is consistent.
2. The multi-channel IO module of claim 1 wherein:
the adapter includes an AO adapter, an AI adapter, a TC adapter, an RTD adapter, a DI adapter, or a DO adapter.
3. The multi-channel IO module of claim 2 wherein:
if the three level signals are low level or high level, the circuit fault information is output.
4. A multi-channel IO module as claimed in claim 3, wherein:
the first interface group comprises three first connectors which are respectively arranged at the front part, the middle part and the rear part of the interface clamping position, and the first connectors can be connected with first butt ends at corresponding positions on the adapter inserted into the interface clamping position;
the three first connectors are respectively connected with the MCU of the IO module and are connected with a high level, and the three first butt 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 connectors on an interface card position of the adapter, and output adapter installation fault information when at least one high level exists in the collected levels of the three first connectors.
5. The multi-channel IO module of claim 4 wherein:
and the IO module is configured to send an enabling signal to the adapter after the newly added adapter is installed in place and the adapter type is correct, so that the adapter is enabled to work, the IO module periodically acquires a channel diagnosis signal and a state diagnosis signal sent by the adapter, and whether the adapter has faults or not is judged according to the channel diagnosis signal and the state diagnosis signal.
6. The multi-channel IO module of claim 5 wherein:
the IO module is configured to periodically and repeatedly collect first interface group signals 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 in-place after the continuous preset number of first interface group signals which are displayed in-place are collected;
and after the state of the adapter is modified to be in place, periodically and repeatedly collecting channel diagnosis signals or state diagnosis signals at a second time interval, and after continuous channel diagnosis signals or state diagnosis signals with normal states and preset times are collected, 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 larger than the second time interval.
7. The 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 clamping positions on a bottom plate, and the method comprises the following steps:
s1, after the allocated new adapter type and corresponding interface card position information are read, a first interface group signal on the interface card position is read, wherein the first interface group comprises a plurality of first connectors which can be respectively connected with a plurality of first butt joint ends positioned at different positions of an adapter interface piece;
s2, after obtaining normal signals of all connectors sent by the first interface group, reading signals of a second interface group, wherein the second interface group comprises three second connectors of adapters which are respectively connected to interface clamping positions, and the three second connectors are respectively connected with an IO module and are connected with a high level; the adapter is provided with three second butt ends correspondingly connected with the second connectors, the three second butt ends are respectively connected to the grounding end of the adapter system or are subjected to suspension treatment, wherein the connection combination arrangement of the three second butt ends of the adapters of different types is different, the connection combination comprises the connection of the second butt ends to the grounding end of the adapter system and the suspension treatment of the connection of the second butt ends, the signal arrangement combination sequence of the level signals of the three second connectors is compared with the signal arrangement combination sequence of the second interface group signals corresponding to the preset new adapter types recorded in the database, and if the signal arrangement combination sequence is consistent, the distributed adapters are confirmed to be installed in place and the adapter types are correct;
s3, after the allocated adapter is installed in place and the type of the adapter is correct, an enabling signal is sent to the adapter, so that the adapter is enabled to work, the IO module periodically obtains a channel diagnosis signal and a state diagnosis signal sent by the adapter, and whether the adapter has faults or not is judged according to the channel diagnosis signal and the state diagnosis signal.
8. The IO module multi-adapter control method of claim 7, further comprising the steps of:
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 collecting the first interface group signals at a first time interval, and after the first interface group signals which are continuously preset for displaying and installing in place are collected, modifying the installation state of the adapter from the installation fault to the installation in place;
after the state of the adapter is in place, periodically and repeatedly collecting channel diagnosis signals or state diagnosis signals at a second time interval, and after the continuous channel diagnosis signals or state diagnosis signals with normal states and preset times are collected, 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 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 CN115878526A (en) 2023-03-31
CN115878526B true 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)

Families Citing this family (1)

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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Family Cites Families (8)

* 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
US7827331B2 (en) * 2006-12-06 2010-11-02 Hitachi, Ltd. IO adapter and data transferring method using the same
US8312175B2 (en) * 2010-01-21 2012-11-13 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
US9361247B1 (en) * 2014-11-18 2016-06-07 Honeywell International Inc. Intrinsic barrier device with software configurable IO type
JP6304172B2 (en) * 2015-08-14 2018-04-04 横河電機株式会社 Diagnostic method, ID module and process control system
DE102016221662B4 (en) * 2016-11-04 2018-07-19 Ifm Electronic Gmbh IO-Link adapter
CN113868167A (en) * 2020-06-30 2021-12-31 华为技术有限公司 Chip module, communication system and port distribution method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于自定义总线的通用适配器设计;朱明,糜玉林,张翼;计算机测量与控制(第11期);全文 *

Also Published As

Publication number Publication date
CN115878526A (en) 2023-03-31

Similar Documents

Publication Publication Date Title
CN115878526B (en) IO module multi-adapter control method and multi-channel IO module
KR101780284B1 (en) Method for selecting automatic recharging mode and recharging system for carrying out the same
CN102934044B (en) The external power source voltage drop compensation of mancarried device
CN105164915A (en) Measurement, control and harvest optimization device for solar modules requiring fewer connections
CN107065716A (en) A kind of digital quantity acquiring circuit with dynamic diagnosis failures
CN103645730B (en) A kind of motion control card with self-checking function and detection method
CN103946768A (en) Fault detection for parallel inverters system
CN210405343U (en) Air conditioner family bus test system
JP7241240B2 (en) POWER SUPPLY DEVICE, POWER RECEIVING DEVICE, AND POWER SUPPLY AND POWER RECEIVING METHOD
CN209387775U (en) Optical module monitoring device of aging
CN113514773A (en) Insulation monitoring system and monitoring method for standby instantaneous ground fault of direct-current power supply 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
CN101860017B (en) Control device for high-voltage and high-power power electronic converter system
CN114779749A (en) Electric power product production detecting system
CN108091026B (en) Two-wire access control system
CN210402096U (en) Automatic detection platform for input/output board of computer interlocking system
KR102398573B1 (en) Diagnosis appratus
CN207817818U (en) A kind of two-wire system access control system
CN217901835U (en) Signal interface module device for intelligently identifying transmitter types
CN109342849A (en) A kind of charging bundle assembly test device
CN101517913B (en) Installation and method for operating an installation
CN112445194A (en) Automatic detection platform for input/output board of computer interlocking system
CN218099541U (en) Insulation monitoring device for unreliable ground fault monitoring
CN220455379U (en) FCT parallel detection device

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