WO2014015615A1 - 输入与输出复用端口及控制器 - Google Patents

输入与输出复用端口及控制器 Download PDF

Info

Publication number
WO2014015615A1
WO2014015615A1 PCT/CN2012/086061 CN2012086061W WO2014015615A1 WO 2014015615 A1 WO2014015615 A1 WO 2014015615A1 CN 2012086061 W CN2012086061 W CN 2012086061W WO 2014015615 A1 WO2014015615 A1 WO 2014015615A1
Authority
WO
WIPO (PCT)
Prior art keywords
state
port
input
output
multiplexing
Prior art date
Application number
PCT/CN2012/086061
Other languages
English (en)
French (fr)
Inventor
周翔
周继辉
邓秋连
Original Assignee
湖南三一智能控制设备有限公司
三一重工股份有限公司
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 湖南三一智能控制设备有限公司, 三一重工股份有限公司 filed Critical 湖南三一智能控制设备有限公司
Priority to DE201211006739 priority Critical patent/DE112012006739T5/de
Publication of WO2014015615A1 publication Critical patent/WO2014015615A1/zh

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/21Pc I-O input output
    • G05B2219/21117Universal I-O, same pin is input or output, bidirectional
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25432Multiplex
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2213/00Indexing scheme relating to selecting arrangements in general and for multiplex systems
    • H04Q2213/13106Microprocessor, CPU
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2213/00Indexing scheme relating to selecting arrangements in general and for multiplex systems
    • H04Q2213/13292Time division multiplexing, TDM

Definitions

  • the present invention relates to the field of port multiplexing, and in particular to an input and output multiplexing port and a controller provided with the multiplexing port.
  • Background Art At present, control products are constantly developing toward high-end development and diversification of types. Among them, the high-end development of control products specifically includes the port's intelligence level, flexibility, and general-purpose performance improvement, such as the existing high-level and low-level switch inputs, voltage-type and resistive analog inputs, and high-end. Types of ports such as high current and bridge output circuits can be flexibly programmed to configure the control equipment and specific configuration methods.
  • the variety of control products is developed according to the application requirements of different typical applications for system designers to choose. . The above two development directions are mutually complementary in terms of market potential.
  • high-end products are easy to meet the needs of complex, high-end system designers for protection levels, intelligence, etc.
  • the selected products are easier to meet the needs of different applications, and are easy to flexibly match to provide users with the best application solutions.
  • Port multiplexing is an important part of controlling the high-end development of products.
  • AI refers to Analog Signal Input port
  • DI refers to the digital signal input port
  • DO refers to the digital signal output port
  • PWM refers to the Pulse Width Modulation port.
  • input and output port multiplexing limits the degree of flexibility of the control product itself to a certain extent.
  • the present invention provides an effective input and output multiplexing port, the input and output multiplexing port comprising: a state collecting unit configured to collect input and output multiplexed ports externally First state information and second state information; wherein the first state information is a state when the multiplexing port is used as an output port, and the first state information includes an open state, a short circuit to ground, and a short to power a control unit configured to receive first state information and second state information sent by the state collection unit, and determine, according to the second state information, a state when the multiplexing port is used as an input port;
  • the states when the multiplexed port is used as an input port include an open state, a short to ground state, and a short circuit to a power source.
  • the input and output multiplexing port further includes: a driving unit configured to receive an output signal of the control unit, and perform power amplification on the output signal.
  • the driving unit is an interface unit externally connected to the input and output multiplexing ports.
  • the state collecting unit is integrated or separated from the driving unit.
  • the first state information further includes a normal state, where the normal state refers to an output signal of the control unit being the same as or opposite to a state when the multiplexing port is used as an output port; the control unit includes:
  • the present invention also provides a controller provided with any of the above-described input and output multiplexing ports.
  • FIG. 1 is a schematic structural diagram of an embodiment of an input and output multiplexing port according to the present invention
  • FIG. 2 is a circuit diagram of an embodiment of an input and output multiplexing port of the present invention.
  • the technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. example. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
  • the input and output multiplexing port embodiment of the present invention includes: a state collecting unit 1 and a control unit 3. among them:
  • the state collection unit 1 is configured to collect first state information and second state information outside the input and output multiplexing ports.
  • the first state information is a state when the multiplexed port is used as an output port.
  • the first state information may include an open state, a short circuited state, and a shorted state to the power.
  • the state collection unit is mainly responsible for implementing effective communication of different states of the external port.
  • the control unit 3 is configured to receive the first state information and the second state information sent by the state collecting unit 1, and determine, according to the second state information, a state when the multiplexed port is used as an input port, where the second state information is The state when the multiplexed port is used as an input port.
  • multiplexing The state when the port is used as an input port includes an open state, a short to ground, and a short to power.
  • the first state information includes at least two of an open state, a short to ground state, and a short state to a power source; and the state when the multiplexing port is used as an input port includes an open state. At least two of a short circuit to ground and a short circuit to power.
  • the port structure shown in Figure 1 implements multiplexing of DO (ie, output port) and active-low DI (ie, input port):
  • DO ie, output port
  • active-low DI ie, input port
  • the state acquisition unit 1 collects The first state information is a state of short circuit to ground, denoted as ST1. If the port is open to the ground, and the first state information is collected as an open state, denoted as ST2, the state collecting unit 1 can accurately distinguish the states ST1 and ST2; When the DI is used as the DI, the first state information is kept unchanged.
  • the control unit 3 only needs to determine whether the state of the DI input state is ST1 or ST2, and whether the state of the DI input is short to ground or open state.
  • the detection of the state change of the control unit 3 at this time is equivalent to realizing the detection of the port to the input level state, that is, the low-level effective DI function of the port is realized, and the port structure shown in FIG. 1 realizes the DO and Multiple active DI multiplexing;
  • the port structure shown in Figure 1 implements the multiplexing of DO and active-high DI:
  • the state acquisition unit 1 collects the first state information as short-circuit to the power supply.
  • the control unit 3 only needs to determine whether the state acquisition unit 1 collects the second state information as ST3 or ST2, and can know whether the state of the DI input is short-circuit or open-circuit to the power source, and the control unit 3 At this time, the detection of the state change is equivalent to realizing the detection of the port to the input level state, thereby realizing the multiplexing of the DO and the active high DI; (3)
  • the state collecting unit 1 can accurately distinguish the states ST1 and ST3 and the port is short-circuited to the power source, the state collecting unit 1 collects the state ST3 in which the first state information is short-circuited to the power source, and when the grounding is short-circuited, the first is collected.
  • the status information is short-circuited to ground state ST1; when the port is used as DI, the control unit 3 only needs to judge whether the state acquisition unit 1 collects the second state information is ST1 or ST3, and the state of the DI input is short-circuited to the power supply. Still short-circuit to ground, thus the same
  • the state acquisition unit can accurately distinguish the port structure shown in FIG. 1 when the port is used as the DO output to the ground short circuit and the open port state. If the port is shorted to the ground, the ST collects the state as ST short to ground. When the collected open state is ST, when the port is used as DI, the control unit only needs to judge whether the ST state is ST short to ground or ST open circuit to know whether the DI input state is short to ground or open state. This achieves the multiplexing of DO and active low DI.
  • the state acquisition unit can accurately distinguish the port structure shown in Figure 1 when the port is used as the DO output for the short-circuit and open-circuit port states. If the port is short-circuited to the power supply, the ST collects the state as ST > ⁇ The power supply is short-circuited, and the collected open state is ST, then it is used as the port.
  • the control unit When DI is selected, the control unit only needs to judge whether the ST state is ST-to-short or ST-open, and it can be known whether the state of the DI input is short-circuited to the power supply or open circuit, thereby realizing the multiplexing of the DO and the active-high DI.
  • the state acquisition unit can accurately distinguish the port structure shown in FIG. 1 when the port is used as the DO output and the short-circuit to the ground short-circuit port state. 4
  • the state collected by the ST is ST > ⁇ ten power supply short circuit, and H j ⁇ ten state is ST short to ground
  • the control unit only needs to judge whether the ST state is ST short circuit to power or ST short to ground, It is known that the state of the DI input is short-circuit to the power supply or short-circuit to the ground, so that the state information of the external DI port can be accurately obtained by judging the feedback values of different STs.
  • the fault diagnosis function of the DO port can also be realized by feedback to different states of the ST, for example, for being able to accurately recognize Do not accurately identify one or more of the short circuit of the power supply, the short circuit to the ground, or the open circuit state, which can accurately diagnose one or several faults of the power supply short circuit, short circuit to ground, and open circuit.
  • the state collecting unit 1 can distinguish at least two of the three situations of short circuit to ground, open circuit, and short circuit to the power supply, for example, All three situations can be effectively distinguished. Therefore, in this embodiment, the feedback signal ST may be at least one BOOL amount of Bit, and more complicated may be a digital quantity or analog quantity signal of two or more.
  • the input and output multiplexing port further comprises: a driving unit 5 configured to receive the output signal IN of the control unit 3 and to power-amplify the output signal IN to meet the requirement that the external load can be driven.
  • the drive unit 5 can function as an interface unit that is externally connected to the input and output multiplexed ports.
  • the state collecting unit 1 and the driving unit 5 are divided on the functional level. In actual application, the two can be integrated on one chip, that is, the state collecting unit 1 and the driving unit 5 are integrated. Of course, the state acquisition unit 1 and the drive unit 5 can also be separated as needed.
  • control unit 3 can further implement a fault diagnosis function when the multiplexed port is used as a DO port based on the first state information fed back by the state collecting unit 1, for example, for accurately identifying a normal state, an open state, and a pair.
  • Accurate identification of one or more of the short circuit of the power supply and the short circuit to the ground can accurately diagnose the short circuit of the power supply to the power supply, the short circuit to the ground, and the open circuit, that is, the comparison output signal IN Acquiring the health status of the port with the first status information (see the explanation of FIG.
  • the first status information further includes a normal status
  • the normal status refers to the output signal of the control unit 3 and the multiplex port being used as an output port.
  • the state of the time is the same or the opposite (see the example of the normal state in Table 1 and Table 2 for details).
  • the control unit 3 is responsible for controlling the switch command IN of the port, and is also responsible for processing the data of the ST of the output port fed back by the output state acquisition unit as shown in FIG. That is, the state of the output command IN and the feedback state ST are compared to indirectly acquire the health state of the port.
  • control unit 3 includes: a comparison subunit and a fault diagnosis subunit.
  • the comparison subunit (not shown) is configured to compare the first state information with the output signal.
  • the fault diagnosis subunit (not shown) is configured to determine the health status of the multiplexed port based on the comparison result of the comparison subunit.
  • the logical value IN of the DO output and the physical state (physical value) OUT of the DO port have a mapping relationship as shown in Table 1.
  • the configuration is configured to collect.
  • the state of the OUT or the DO driver chip having the port state feedback information ST such as BTS824 or the like instead of the crystal amplifying tube T as shown in FIG. 2 can acquire the first state information ST of the port (also referred to as state feedback information). If the first state information ST and the port state physical value are in the same relationship, the correspondence between the three is as shown in Table 2:
  • control unit 3 is further configured to determine, according to the first state information, the mapping relationship between the second state information and the port physical information, that the multiplexing port is used as an input port. status.
  • the multiplexing of the DO and the low-level effective DI is realized by the port circuit having the structure shown in FIG.
  • Embodiments of the present invention increase the port state data collection and use the mapping relationship between the port state information and the port physical information to implement DI/DO port multiplexing, thereby improving the port multiplexing capability of the controller, and having the structure of the device. , easy to implement and other advantages.
  • the present invention can accurately acquire the health state of the port state through feedback of the state collection unit to implement functions such as fault diagnosis.
  • the input and output multiplexing port provided by the present invention and the controller provided with the multiplexed port can accurately acquire the health state of the port state to realize fault diagnosis and the like through reasonable port state data collection, and On the one hand, it can also improve the port multiplexing capability of the controller, and has the advantages of simple structure and convenient implementation. Therefore, the present invention has industrial applicability.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Computer Hardware Design (AREA)
  • Testing And Monitoring For Control Systems (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)
  • Selective Calling Equipment (AREA)

Abstract

一种输入与输出复用端口,该输入与输出复用端口包括:状态采集单元(1),用于采集输入与输出复用端口外部的第一状态信息及第二状态信息,所述第一状态信息为所述复用端口用作输出端口时的状态,所述第一状态信息包括开路状态、对地短路状态、对电源短路状态;控制单元(3),用于接收所述状态采集单元(1)发送的第一状态信息及第二状态信息,并根据所述第二状态信息确定所述复用端口用作输入端口时的状态,所述复用端口用作输入端口时的状态包括开路状态、对地短路状态、对电源短路状态。所述输入与输出复用端口通过运用端口状态信息与端口物理信息的映射关系实现输入与输出端口的复用,能提升控制器的端口复用能力,具有结构简单、实施方便等优势。

Description

输入与输出复用端口及控制器 本申请要求于 2012 年 7 月 27 日提交中国专利局、 申请号为 201210265162.9、 发明名称为 "输入与输出复用端口及控制器" 的中国专利 申请的优先权, 其全部内容通过引用结合在本申请。 技术领域
本发明涉及端口复用领域, 具体涉及一种输入与输出复用端口及设置 有该复用端口的控制器。 背景技术 目前, 控制产品不断向高端化发展及种类多样化发展。 其中, 控制产品 的高端化发展具体包括端口的智能化程度、 灵活性、 通用性能的提升等, 如现有的高电平与低电平开关量输入、 电压型与电阻型模拟量输入, 高端 大电流和桥输出电路等类型端口可灵活编程配置的控制设备及具体的配置 办法; 控制产品的种类多样化发展则是根据不同典型的应用场合的应用需 求开发多种类型供系统设计者进行选择。 上述两种发展方向在市场潜力方 面是互为补充的关系, 一方面, 高端化的产品容易满足复杂、 高端的系统 设计者对于防护等级、 智能化等方面的需求, 另一方面多种可供选择的产 品更加容易切合不同应用需求, 且便于灵活搭配, 为用户提供最佳的应用 解决方案。
端口复用是控制产品高端化发展的重要组成部分, 目前常见的一般有 不同输入类型或不同输出类型端口的互相复用, 如 AI/DI复用, DO/PWM 复用等其中, AI是指模拟信号输入( Analog Signal Input )端口, DI是指数 字信号输入( Digital Signal Input )端口, DO是指数字信号输出( Digital Signal Output )端口, PWM是指脉沖宽度调制 ( Pulse Width Modulation )端口, 但很少有输入输出端口复用相关的技术, 因此在一定的程度上限制了控制 产品本身灵活性的程度。 发明内容 有鉴于此, 本发明提出一种输入与输出复用端口及设置有该复用端口 的控制器, 能够提升控制器的输入与输出端口的复用能力。
为了克服现有技术的上述缺陷和不足, 本发明提供一种有效的输入与 输出复用端口, 所述输入与输出复用端口包括: 状态采集单元, 配置为采 集输入与输出复用端口外部的第一状态信息及第二状态信息; 其中, 所述 第一状态信息为所述复用端口用作输出端口时的状态, 所述第一状态信息 包括开路状态、 对地短路状态、 对电源短路状态; 控制单元, 配置为接收 所述状态采集单元发送的第一状态信息及第二状态信息, 并根据所述第二 状态信息确定所述复用端口用作输入端口时的状态; 其中, 所述复用端口 用作输入端口时的状态包括开路状态、 对地短路状态、 对电源短路状态。
进一步地, 所述的输入与输出复用端口还包括: 驱动单元, 配置为接 收所述控制单元的输出信号, 并对所述输出信号进行功率放大。
进一步地, 所述驱动单元为与所述输入与输出复用端口外部连接的接 口单元。
进一步地, 所述状态采集单元与所述驱动单元集成设置或分离设置。 进一步地, 所述第一状态信息还包括正常状态, 所述正常状态指所述 控制单元的输出信号与所述复用端口用作输出端口时的状态相同或相反; 所述控制单元包括:
比较子单元, 配置为比较所述第一状态信息与所述输出信号; 故障诊断子单元, 配置为根据所述比较子单元的比较结果确定所述复 用端口的健康状态。 为了克服现有技术的上述缺陷和不足, 本发明还提供一种控制器, 所 述控制器设置有上述任一种输入与输出复用端口。
本发明输入与输出复用端口通过增加状态采集单元对端口状态数据采 集以实现输入与输出端口的复用, 能提升控制器的端口复用能力, 具有结 构筒单、 实施方便等优势。 附图说明 图 1为本发明输入与输出复用端口实施例的结构示意图;
图 2为本发明输入与输出复用端口实施例的电路示意图。 具体实施方式 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进 行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没 有作出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的 范围。
如图 1所示, 本发明输入与输出复用端口实施例包括: 状态采集单元 1 和控制单元 3。 其中:
状态采集单元 1 配置为采集输入与输出复用端口外部的第一状态信息 及第二状态信息。 其中, 第一状态信息为复用端口用作输出端口时的状态, 优选地, 第一状态信息可包括开路状态、 对地短路状态、 对电源短路状态。
本实施例中, 所述状态采集单元主要负责实现对外部端口不同状态的 有效传达。
控制单元 3配置为接收状态采集单元 1发送的第一状态信息及第二状 态信息, 并根据第二状态信息确定复用端口用作输入端口时的状态; 其中, 所述第二状态信息为所述复用端口用作输入端口时的状态。 优选地, 复用 端口用作输入端口时的状态包括开路状态、 对地短路状态、 对电源短路状 态。
需要说明的是, 上述实施例中, 所述第一状态信息包括开路状态、 对 地短路状态、 对电源短路状态中的至少两种; 所述复用端口用作输入端口 时的状态包括开路状态、 对地短路状态、 对电源短路状态中的至少两种。
以下对上述输入与输出复用端口实现复用的过程分情况阐述如下:
( 1 ) 图 1所示的端口结构实现 DO (即输出端口)与低电平有效 DI (即 输入端口) 的复用: 端口用作 DO时, 若端口对地短路, 状态采集单元 1 采集到第一状态信息为对地短路的状态, 记为 ST1 , 若端口对地开路, 而 采集到第一状态信息为开路状态, 记为 ST2, 状态采集单元 1能够准确区 分状态 ST1与 ST2; 该端口用作 DI时, 保持第一状态信息不变, 此时控制 单元 3只需判断状态采集单元 1采集到第二状态信息是 ST1还是 ST2即可 得知 DI输入的状态是对地短路还是开路状态, 控制单元 3对此时状态变化 的检测, 等价于实现了端口对输入电平状态的检测, 即实现了端口的低电 平有效 DI功能, 进而图 1所示的端口结构实现了 DO与低电平有效 DI的 复用;
( 2 ) 图 1所示的端口结构实现 DO与高电平有效 DI的复用: 端口用作 DO输出时, 若端口对电源短路, 状态采集单元 1采集到第一状态信息为对 电源短路的状态, 记为 ST3, 若端口对地开路, 而采集到第一状态信息为 开路状态, 记为 ST2, 状态采集单元 1能够准确区分状态 ST3与 ST2; 贝' J 该端口用作 DI时, 保持第一状态信息不变, 此时控制单元 3只需判断状态 采集单元 1采集到第二状态信息是 ST3还是 ST2, 即可得知 DI输入的状态 是对电源短路还是开路状态, 控制单元 3对此时状态变化的检测, 等价于 实现了端口对输入电平状态的检测, 由此即实现了 DO与高电平有效 DI的 复用; ( 3 )对于状态采集单元 1能够准确区分状态 ST1与 ST3且端口对电源 短路时, 状态采集单元 1采集到第一状态信息为对电源短路的状态 ST3, 对地短路时, 采集到的第一状态信息为对地短路状态 ST1; 则该端口用作 DI时, 控制单元 3只需判断状态采集单元 1采集到第二状态信息是 ST1还 是 ST3, 即可得知 DI输入的状态是对电源短路还是对地短路状态, 由此同
即实现了 DO / DI复用。
例如, 对于状态采集单元能够准确区分端口用作 DO输出时对地短路 与开路端口状态的如图 1所示的端口结构, 假设端口对地短路时, ST采集 到的状态为 ST对地短路, 而采集到的开路状态为 ST , 则对该端口用作 DI 时, 控制单元只需判断 ST状态是 ST对地短路还是 ST开路即可得知 DI输入的状 态是对地短路还是开路状态, 由此即实现了 DO与低电平有效 DI的复用。
又如, 对于状态采集单元能够准确区分端口用作 DO输出时对电源短 路与开路端口状态的如图 1所示的端口结构, 假设端口对电源短路时, ST 采集到的状态为 ST >ί十电源短路, 而采集到的开路状态为 ST ,则对该端口用作
DI时, 控制单元只需判断 ST状态是 ST 对 短路还是 ST开路即可得知 DI输入 的状态是对电源短路还是开路状态, 由此即实现了 DO与高电平有效 DI的 复用。
进一步来讲, 对于状态采集单元能够准确区分端口用作 DO输出时对 电源短路与对地短路端口状态的如图 1所示的端口结构, 4 设端口对电源 短路时, ST采集到的状态为 ST >ί十电源短路, 而 H j ό々十 态为 ST对地 短路, 则对该端口用作 DI时,控制单元只需判断 ST状态是 ST 对电源短路还是 ST 对地短路, 即可得知 DI输入的状态是对电源短路还是对地短路状态, 由此同样 可以通过对不同 ST的反馈值的判断来准确获取外部 DI端口的状态信息。
需要说明的是, 对于上述的如图 1 所示的端口结构同时还可以通过对 ST的不同状态的反馈实现对 DO端口的故障诊断功能, 如对于能够准确识 别对电源短路、 对地短路、 开路状态的其中的一种或几种的准确识别, 则 对应可实现对 DO 的对电源短路、 对地短路、 开路其中一种或几种故障的 准确诊断。 可以理解的是, 对于输出逻辑值 IN为 TRUE或 FALSE的状态时, 状态 采集单元 1除了上述能够区分对地短路、 开路、 对电源短路三种情形中的 至少两种, 例如, 还可以对上述三种情形都能有效地区分。 因此, 本实施 例中, 反馈信号 ST可至少是一个 Bit的 BOOL量, 更复杂的可以是大于等 于两位的数字量或模拟量信号。
优选地, 输入与输出复用端口还包括: 驱动单元 5, 配置为接收控制单 元 3的输出信号 IN,并对输出信号 IN进行功率放大, 以达到可以驱动外部 负载的需求。 实际操作时, 驱动单元 5 可以作为和输入与输出复用端口外 部连接的接口单元。
可以理解的是, 状态采集单元 1与驱动单元 5是就功能层面进行划分 的, 实际应用时候, 二者可以集成在一个芯片上, 即, 状态采集单元 1 与 驱动单元 5集成设置。 当然, 状态采集单元 1与驱动单元 5也可以根据需 要分离设置。
优选地, 控制单元 3除了上述功能还可以基于状态采集单元 1所反馈 的第一状态信息实现对复用端口用作 DO端口时的故障诊断功能, 如对于 能够准确识别正常状态、 开路状态、 对电源短路、 对地短路的其中的一种 或几种的准确识别, 则对应可实现对 DO 的对电源短路、 对地短路、 开路 其中一种或几种故障的准确诊断, 即比较输出信号 IN与第一状态信息而获 取端口的健康状态(详见图 2的解释说明), 相应地, 第一状态信息还包括 正常状态, 正常状态指控制单元 3 的输出信号与复用端口用作输出端口时 的状态相同或相反(详见表 1及表 2中正常状态的例举)。 例如, 如图 1所示, 控制单元 3负责对端口的开关命令 IN的控制, 同 时还负责对输出状态采集单元所反馈的输出端口的物理状态如图 1 中所示 的 ST的数据应用处理,即比较输出命令 IN与反馈状态 ST的状态而间接获 取端口的健康状态。
上述实施例中, 控制单元 3 包括: 比较子单元和故障诊断子单元。 其 中: 所述比较子单元(图未示) 配置为比较第一状态信息与输出信号。 所 述故障诊断子单元(图未示) 配置为根据比较子单元的比较结果确定复用 端口的健康状态。
如图 2所示, DO输出的逻辑值 IN 与 DO端口的物理状态 (物理值) OUT存在如表 1所示的映射关系, 此时, 通过在 DO端口内部增加一个端 口状态采集单元配置为采集 OUT的状态或选择具备端口状态反馈信息 ST 的 DO驱动芯片如 BTS824等代替如图 2所示的晶体放大管 T, 即可获取端 口的第一状态信息 ST (也可以称为状态反馈信息 ), 若第一状态信息 ST与 端口状态物理值是相同的关系, 则此三者之间的对应关系如表 2所示:
Figure imgf000009_0001
DO逻辑值与物理值的映射关系
Figure imgf000010_0001
DO逻辑值、 物理值及状态反馈信息的映射关系
DI功能的实施: 由表 2可以很容易得出如下实施方式, 将 DO端口的 逻辑值输出为 false, 则对应端口接入的 DI信号状态与 ST的信号状态存在 如表 3所示的映射关系, 由表 3可知, 通过对 ST状态的检测可以得知端口 DI状态, 即通过逆推 DI与 ST状态映射关系实现端口的 DI检测功能。
Figure imgf000010_0002
DI物理值与端口状态反馈的映射关系
可以理解的是, 所述控制单元 3进一步配置为根据预先设置的所述第 一状态信息、 所述第二状态信息与端口物理信息的映射关系, 确定所述复 用端口用作输入端口时的状态。
综上, 即通过具有如图 2所示结构的端口电路实现了 DO与低电平有 效 DI的复用。
本发明各实施例通过增加状态采集单元对端口状态数据采集并运用端 口状态信息与端口物理信息的映射关系以实现 DI/DO端口复用, 能提升控 制器的端口复用能力, 具有结构筒单、 实施方便等优势。 此外, 本发明还 能够通过状态采集单元的反馈准确的获取端口状态的健康状态, 以实现故 障诊断等功能。 以上仅为本发明的较佳实施例而已, 并不用以限制本发明, 凡在本发 明的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在 本发明的保护范围之内。 工业实用性
本发明提供的输入与输出复用端口及设置有该复用端口的控制器, 能 够通过合理的端口状态数据的采集, 一方面能够准确的获取端口状态的健 康状态以实现故障诊断等功能, 另一方面还能提升控制器的端口复用能力, 具有结构筒单、 实施方便等优势。 因此, 本发明具有工业实用性。

Claims

权利要求书
1、 一种输入与输出复用端口, 其特征在于, 包括:
状态采集单元 (1 ), 配置为采集输入与输出复用端口外部的第一状态 信息及第二状态信息; 其中, 所述第一状态信息为所述复用端口用作输出 端口时的状态;
控制单元( 3 ) , 配置为获取所述状态采集单元( 1 )采集到的第一状态 信息及第二状态信息, 并根据所述第二状态信息确定所述复用端口用作输 入端口时的状态; 其中, 所述第二状态信息为所述复用端口用作输入端口 时的状态。
2、 根据权利要求 1所述的输入与输出复用端口, 其特征在于, 所述第 一状态信息包括开路状态、 对地短路状态、 对电源短路状态中的至少两种; 所述复用端口用作输入端口时的状态包括开路状态、 对地短路状态、 对电 源短路状态中的至少两种。
3、根据权利要求 1所述的输入与输出复用端口,其特征在于,还包括: 驱动单元(5 ), 配置为接收所述控制单元(3 ) 的输出信号, 并对所述 输出信号进行功率放大。
4、 根据权利要求 3所述的输入与输出复用端口, 其特征在于, 所述驱 动单元(5 ) 为与所述输入与输出复用端口外部连接的接口单元。
5、 根据权利要求 3所述的输入与输出复用端口, 其特征在于, 所述状 态采集单元(1 ) 与所述驱动单元(5 ) 集成设置或分离设置。
6、 根据权利要求 1至 5任一项所述的输入与输出复用端口, 其特征在 于, 所述第一状态信息还包括正常状态,所述正常状态指所述控制单元(3 ) 的输出信号与所述复用端口用作输出端口时的状态相同或相反。
7、 根据权利要求 6所述的输入与输出复用端口, 其特征在于, 所述控 制单元(3 )还包括:
比较子单元, 配置为比较所述第一状态信息与所述输出信号; 故障诊断子单元, 配置为根据所述比较子单元的比较结果确定所述复 用端口的健康状态。
8、 一种控制器, 其特征在于, 设置有如权利要求 1至 7中任一项所述 的输入与输出复用端口。
PCT/CN2012/086061 2012-07-27 2012-12-06 输入与输出复用端口及控制器 WO2014015615A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
DE201211006739 DE112012006739T5 (de) 2012-07-27 2012-12-06 Ein-/Ausgangs-Multiplex-Port und Steuergerät

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210265162.9 2012-07-27
CN201210265162.9A CN102809930B (zh) 2012-07-27 2012-07-27 输入与输出复用端口及控制器

Publications (1)

Publication Number Publication Date
WO2014015615A1 true WO2014015615A1 (zh) 2014-01-30

Family

ID=47233657

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/086061 WO2014015615A1 (zh) 2012-07-27 2012-12-06 输入与输出复用端口及控制器

Country Status (3)

Country Link
CN (1) CN102809930B (zh)
DE (1) DE112012006739T5 (zh)
WO (1) WO2014015615A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113867303A (zh) * 2021-10-25 2021-12-31 杭州和利时自动化有限公司 一种io通道电路及dcs系统

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102809930B (zh) * 2012-07-27 2015-09-02 三一重工股份有限公司 输入与输出复用端口及控制器
CN103281069B (zh) * 2013-06-14 2016-05-11 成都锐奕信息技术有限公司 一种io复用端口
CN104716526A (zh) * 2013-12-13 2015-06-17 南京南瑞继保电气有限公司 一种信号端子复用的方法和装置
CN111381527B (zh) * 2018-12-27 2023-09-22 联合汽车电子有限公司 车辆负载控制电路及方法

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2144828Y (zh) * 1993-02-10 1993-10-27 汤嘉伦 可编程序控制器双向i/o模块
US5847578A (en) * 1994-11-01 1998-12-08 Virtual Machine Works Programmable multiplexing input/output port
CN2807650Y (zh) * 2005-07-13 2006-08-16 新日电子器材(香港)有限公司 复用微处理器通用输入输出端口的电视机芯
CN2922339Y (zh) * 2006-01-24 2007-07-11 深圳Tcl新技术有限公司 电视机av信号输入输出公用端子装置
CN201149654Y (zh) * 2007-12-29 2008-11-12 深圳和而泰智能控制股份有限公司 一种单片机i/o口分时复用控制电路
CN101374360A (zh) * 2008-09-12 2009-02-25 深圳华为通信技术有限公司 一种多端口复用的方法、装置和系统
CN201540566U (zh) * 2009-11-05 2010-08-04 上海德科电子仪表有限公司 端口复用电路
CN102809930A (zh) * 2012-07-27 2012-12-05 三一重工股份有限公司 输入与输出复用端口及控制器

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1881220A (zh) * 2005-06-17 2006-12-20 上海奇码数字信息有限公司 数据采集装置
CN100570591C (zh) * 2007-09-29 2009-12-16 中兴通讯股份有限公司 终端芯片管脚复用装置
CN101452433B (zh) * 2007-11-30 2011-06-22 中兴通讯股份有限公司 一种复用接口的识别装置和方法
CN101329663B (zh) * 2008-07-31 2010-04-21 炬力集成电路设计有限公司 一种实现片上系统管脚分时复用的装置及方法
CN101329385B (zh) * 2008-08-01 2011-08-24 炬力集成电路设计有限公司 一种片上系统的调测系统、调测方法以及片上系统
CN101510096B (zh) * 2009-03-09 2010-12-01 三一重工股份有限公司 端口复用及故障检测电路及具有该电路的智能模块
CN101882864B (zh) * 2010-06-25 2012-08-22 矽力杰半导体技术(杭州)有限公司 一种上电启动电路及其上电启动方法

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2144828Y (zh) * 1993-02-10 1993-10-27 汤嘉伦 可编程序控制器双向i/o模块
US5847578A (en) * 1994-11-01 1998-12-08 Virtual Machine Works Programmable multiplexing input/output port
CN2807650Y (zh) * 2005-07-13 2006-08-16 新日电子器材(香港)有限公司 复用微处理器通用输入输出端口的电视机芯
CN2922339Y (zh) * 2006-01-24 2007-07-11 深圳Tcl新技术有限公司 电视机av信号输入输出公用端子装置
CN201149654Y (zh) * 2007-12-29 2008-11-12 深圳和而泰智能控制股份有限公司 一种单片机i/o口分时复用控制电路
CN101374360A (zh) * 2008-09-12 2009-02-25 深圳华为通信技术有限公司 一种多端口复用的方法、装置和系统
CN201540566U (zh) * 2009-11-05 2010-08-04 上海德科电子仪表有限公司 端口复用电路
CN102809930A (zh) * 2012-07-27 2012-12-05 三一重工股份有限公司 输入与输出复用端口及控制器

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113867303A (zh) * 2021-10-25 2021-12-31 杭州和利时自动化有限公司 一种io通道电路及dcs系统

Also Published As

Publication number Publication date
CN102809930B (zh) 2015-09-02
CN102809930A (zh) 2012-12-05
DE112012006739T5 (de) 2015-04-30

Similar Documents

Publication Publication Date Title
WO2014015615A1 (zh) 输入与输出复用端口及控制器
JP5717005B2 (ja) Usbインタフェースのステータスに従って内部回路を選択するための方法および端末
JP4633826B2 (ja) 高速周辺機器接続インターフェース
US20120290761A1 (en) USB Converter and Related Method
TWI501585B (zh) 網路供電控制系統及其網路供電設備與網路受電裝置
CN102970029A (zh) 一种高安全性数字量信号采集电路
US20080140872A1 (en) Apparatus and method for dynamically providing hub or host operations
CN106671122A (zh) 一种具有距离、压力检测和堵转保护功能的物体夹持器
CN101526930A (zh) Usb接口主从机检测装置及检测方法
CN106059911B (zh) 将can总线连接至无线电网络的控制装置以及机动车辆
JP2015536632A5 (zh)
CN207352398U (zh) 通用数字输入输出复用电路及输入输出控制装置
EP3917087B1 (en) Controller and transceiver
CN105991117A (zh) 功率开关设备
CN102042248A (zh) 用于风扇的控制系统
CN104914376A (zh) 一种数字量电路状态检测电路和方法
EP1970816B1 (en) A conversion circuit
US8285885B2 (en) Universal serial bus device and universal serial bus system
JP4170786B2 (ja) データ通信装置及びデータ通信方法
CN202906815U (zh) 具有转速切换机构的电动工具
CN203133225U (zh) 直流风扇的驱动及状态检测电路
JP5804447B2 (ja) パルスカウント装置
CN217010733U (zh) 驱动保护系统
CN105141196B (zh) 光电隔离式大功率无刷直流电机驱动装置及驱动反馈处理方法
US20160018865A1 (en) Automatically adjustable, charge-only, usb adapter

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12881897

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 1120120067398

Country of ref document: DE

Ref document number: 112012006739

Country of ref document: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12881897

Country of ref document: EP

Kind code of ref document: A1