CN101587463B - DeviceNet fieldbus input/output device with short-circuit protection and self-diagnostic function - Google Patents
DeviceNet fieldbus input/output device with short-circuit protection and self-diagnostic function Download PDFInfo
- Publication number
- CN101587463B CN101587463B CN2009100693678A CN200910069367A CN101587463B CN 101587463 B CN101587463 B CN 101587463B CN 2009100693678 A CN2009100693678 A CN 2009100693678A CN 200910069367 A CN200910069367 A CN 200910069367A CN 101587463 B CN101587463 B CN 101587463B
- Authority
- CN
- China
- Prior art keywords
- output
- short
- circuit
- microprocessor
- input
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
The present invention discloses a DeviceNet fieldbus I/O device with short-circuit protection and self-diagnostic function, which comprises the following components: a DeviceNet interface unit which is used for executing data communication between the DeviceNet fieldbus, setting the bus node number and the communication baud rate of this node, and collecting and storing the input interface state and output interface state diagnosis data; an input/output short-circuit protecting and self-diagnosis unit which is used for executing data communication between the peripheral equipment, switching off the power for short-circuit protection and transmitting the input interface state and/or output interface state diagnosis data to the DeviceNet interface unit when the input/output interface circuitand/or the output interface circuit is shorted. The DeviceNet I/O device of the invention has the functions of short-circuit protection and self diagnosis, can switch off the power and provide self-diagnosis information when the interface power is shorted and automatically recover the operation when the short-circuit trouble is eliminated.
Description
Technical field
The present invention relates to the Computer Applied Technology field, particularly relate to a kind of DeviceNet fieldbus input and output I/O device with short-circuit protection and self-diagnostic function.
Background technology
At present, in order to carry out the communication between the equipment, traditional I/O I/O device need be connected the device external end points with the controller end points one to one by lead, this hard wired connected mode need expend a large amount of energy and carry out assembled on site and debugging, and along with the complexity of system can increase a large amount of hardwire costs.
Above-mentioned traditional I/O I/O device does not possess any protection and diagnostic function; for example; the function that under the situation that the interface power supply is short-circuited, does not have timely deenergization; and can't provide any protection and diagnostic information; so in case the I/O device breaks down; the maintainer needs one by one each parts in the I/O device to be carried out fault detect, influences the efficient of maintainer to malfunction elimination greatly, has increased the difficulty of malfunction elimination.
The DeviceNet fieldbus is as a kind of communication bus cheaply, and it is connected to network with commercial unit, thereby has eliminated expensive hardwire cost.The direct interconnection property improvement communication of equipment room, considerable device level diagnostic function is provided again simultaneously, this is that I/O interface by existing hardwire I/O I/O device is difficult to realize.
In addition, DeviceNet is a kind of simple Networking Solutions ﹠ provisioned, and it has reduced the cost and the time of hardwire and mounting industrial automation equipment when providing multiple vendor with the interchangeability between base part.DeviceNet is a kind of network standard of opening, and its standard and agreement all are open.Need not hardware, software when the supplier connects devices to system or authorize paying.Anyly can obtain the DeviceNet standard from DeviceNet supplier association (ODVA), and can add ODVA, participate in the technical work group that the DeviceNet standard is augmented interested people of DeviceNet or tissue.
But; a kind of input and output I/O device that short-circuit protection and self-diagnostic function Device Net fieldbus are arranged that possesses apparatus of the present invention feature does not also appear at present; it has short-circuit protection and self-diagnostic function; can be under the situation that the interface power supply is short-circuited timely deenergization; avoid burning because of short-circuit current; and provide self-diagnosis information, the personnel of maintaining easily to carry out the failure monitoring and the investigation of device.
Summary of the invention
In view of this; the purpose of this invention is to provide a kind of DeviceNet fieldbus input and output I/O device with short-circuit protection and self-diagnostic function; it has short-circuit protection and self-diagnostic function; can be under the situation that the interface power supply is short-circuited timely deenergization; avoid burning because of short-circuit current; and provide self-diagnosis information; the personnel of maintaining easily carry out the failure monitoring and the investigation of device; device recovers operate as normal automatically after short trouble is got rid of, and the present invention has great practical significance.
For this reason, the invention provides a kind of DeviceNet fieldbus input and output I/O device, comprising with short-circuit protection and self-diagnostic function:
The DeviceNet interface unit, be used for and the DeviceNet fieldbus between carry out data communication, the bus node MAC ID and the communication baud rate of this node are set, and gather and store input interface state and output interface condition diagnosing data from input and output short-circuit protection and self-diagnosis unit switches;
Input and output short-circuit protection and self-diagnosis unit switches; be used for and peripherals between carry out data communication; when input interface circuit and/or output interface circuit are short-circuited; deenergization gives short-circuit protection; device recovers operate as normal automatically after short trouble is got rid of, and sends input interface state and/or output interface condition diagnosing data to the DeviceNet interface unit.
Preferably, described DeviceNet interface unit includes:
Microprocessor, be used for to input and output short-circuit protection and self-diagnosis unit switches collection and issue field data, collection is from the input interface state and the output interface condition diagnosing data of input and output short-circuit protection and self-diagnosis unit switches, receive the bus node number and the communication baud rate of this set node of toggle switch circuit, the state of control module/network state pilot lamp, initialization and and the DeviceNet fieldbus between carry out data communication;
The toggle switch circuit is connected with microprocessor is two-way, is used to be provided with the communication baud rate of this node and bus node number;
Module/network state pilot lamp is connected with microprocessor is two-way, is used for reflecting in real time the duty and the communications status of this node;
Stand alone type local area network (LAN) CAN controller is connected with microprocessor is two-way, the message that is used to receive the message of DeviceNet fieldbus and meets the CAN agreement to the transmission of DeviceNet fieldbus;
The CAN bus transceiver by optocoupler and free-standing two-way connection of CAN controller, is used to realize the level of free-standing local area network (LAN) CAN controller and the conversion between the DeviceNet fieldbus level, and carries out the transmitted in both directions of data with the DeviceNet fieldbus;
The data extended memory is connected with microprocessor is two-way, is used for the communication data of storage microprocessor.
Preferably, carrying out data communication between microprocessor and the DeviceNet fieldbus is specially: described microprocessor receives from the message of DeviceNet fieldbus and resolves, and the message that will send to the DeviceNet fieldbus packs, to meet the DeviceNet protocol specification.
Preferably; communication data in the microprocessor that described data extended memory is stored comprises having: bus node of this node number and communication baud rate; and microprocessor is to input and output short-circuit protection and self-diagnosis unit switches collection and the field data that issues, also has microprocessor to the data of DeviceNet fieldbus interaction, from the input interface state and the output interface condition diagnosing data of input and output short-circuit protection and self-diagnosis unit switches.
Preferably, input and output short-circuit protection and self-diagnosis unit switches include:
Input interface circuit is connected with microprocessor is two-way, is used to the input interface that can connect the peripheral communications object to power, the field data that provides input interface to import to microprocessor, and when being short-circuited, disconnect power supply, and after short trouble is got rid of, restore electricity;
Output interface circuit, be connected with microprocessor is two-way, be used to receive microprocessor and issue the field data of output to output interface, field data according to this output, for the output interface that can connect the peripheral communications object is powered, and when being short-circuited, disconnect power supply, and after short trouble is got rid of, restore electricity;
Whether the input state diagnostic circuit is connected with microprocessor is two-way, be used to diagnose input interface circuit to be short-circuited, and when input interface circuit was short-circuited, output diagnosis short-circuit signal was given microprocessor;
Whether the output state diagnostic circuit is connected with microprocessor is two-way, be used to diagnose output interface circuit to be short-circuited, and when output interface circuit was short-circuited, the output short-circuit diagnostic signal was given microprocessor.
Preferably, described input interface circuit includes power switch chip TS4141, this power switch chip TS4141 one termination external power source, its another termination input interface, described input interface meets optocoupler PC817, the ternary bidirectional bus transceiver of the output termination of described optocoupler PC817 74LS245, the output termination microprocessor AT89S52 of described ternary bidirectional bus transceiver 74LS245.
Preferably, described output interface circuit includes: ternary bidirectional bus transceiver 74LS245, the input termination microprocessor AT89S52 of described ternary bidirectional bus transceiver 74LS245, the base stage of its output termination triode Q1, the grounded emitter of described triode Q1, the collector of described triode Q1 meets optocoupler PC817, the output termination power switch chip TS4141 of described optocoupler PC817, this power switch chip TS4141 one termination external power source, its another termination output interface.
Preferably, include in described input state diagnostic circuit and the output state diagnostic circuit: voltage comparator LM339, the negative signal termination input interface circuit of described voltage comparator LM339 or the power positive end of output interface circuit, its anode voltage constant, the output termination optocoupler PC817 of described voltage comparator LM339, the ternary bidirectional bus transceiver of the output termination of described optocoupler PC817 74LS245, the output termination microprocessor AT89S52 of described ternary bidirectional bus transceiver 74LS245.
By above technical scheme provided by the invention as seen; compared with prior art; the invention provides a kind of DeviceNet fieldbus input and output I/O device with short-circuit protection and self-diagnostic function; it has short-circuit protection and self-diagnostic function; can be under the situation that the interface power supply is short-circuited timely deenergization; avoid burning because of short-circuit current; and provide self-diagnosis information; the personnel of maintaining easily carry out the failure monitoring and the investigation of device; device recovers operate as normal automatically after short trouble is got rid of, and has great practical significance.
Description of drawings
Fig. 1 is a kind of overall construction drawing with DeviceNet fieldbus input and output I/O device of short-circuit protection and self-diagnostic function provided by the invention;
Fig. 2 is the interface circuit figure of microprocessor single-chip microcomputer and CAN controller among Fig. 1;
Fig. 3 is the interface circuit figure between CAN controller, optocoupler and the bus transceiver;
Fig. 4 is the circuit diagram of toggle switch (node M AC ID and communication baud rate are set);
Fig. 5 is the circuit diagram of module/network state pilot lamp;
The circuit diagram of Fig. 6 input interface circuit;
The circuit diagram of Fig. 7 output interface circuit;
The circuit diagram of Fig. 8 input state diagnostic circuit;
The circuit diagram of Fig. 9 output state diagnostic circuit;
Figure 10 is the connecting circuit figure between data extended memory and the microprocessor.
Embodiment
In order to make those skilled in the art person understand the present invention program better, the present invention will be described below in conjunction with drawings and embodiments.
Fig. 1 is a kind of overall construction drawing with DeviceNet fieldbus input and output I/O device of short-circuit protection and self-diagnostic function provided by the invention.
Referring to Fig. 1, the invention provides a kind of DeviceNet fieldbus input and output I/O device with short-circuit protection and self-diagnostic function, this device comprises DeviceNet interface unit 101 and input and output short-circuit protection and self-diagnosis unit switches 102, wherein:
DeviceNet interface unit 101, be used for and the DeviceNet fieldbus between carry out data communication, the bus node number (MAC ID) (being the network address of this node) and the communication baud rate of apparatus of the present invention node are set, and gather and store input interface state and output interface condition diagnosing data from input and output short-circuit protection and self-diagnosis unit switches 102;
Input and output short-circuit protection and self-diagnosis unit switches 102; be connected with DeviceNet interface unit 101; be used for and peripherals between carry out data communication (being input and output); when input interface circuit and/or output interface circuit are short-circuited; deenergization gives short-circuit protection; device recovers operate as normal automatically after short trouble is got rid of, and sends input interface state and/or output interface condition diagnosing data to DeviceNet interface unit 101.
In the present invention, described DeviceNet interface unit 101 includes:
On the specific implementation, the field data that described microprocessor 1011 is gathered input interface circuit in input and output short-circuit protections and the self-diagnosis unit switches 102 issues field data to wherein output interface circuit; In addition, also gather input interface state and output interface condition diagnosing data from input and output short-circuit protection and self-diagnosis unit switches 102;
Carrying out data communication between microprocessor 1011 and the DeviceNet fieldbus is specially: described microprocessor 1011 receives from the message of DeviceNet fieldbus and resolves, and the message that will send to the DeviceNet fieldbus packs, to meet the DeviceNet protocol specification.
Need to prove that according to the DeviceNet protocol specification, the message that transmits on the DeviceNet fieldbus is divided into heading and valid data two parts.Therefore, microcontroller 1011 need be disassembled heading and valid data after receiving bus message, from heading, judge the type of this message, source node address etc., and from valid data, obtain needed concrete data, said process is the resolving of bus message.In like manner, when microcontroller 1011 need be when the DeviceNet fieldbus transmits its inner message, need encapsulate (i.e. packing) to this message, make this message possess relevant heading (this heading comprises this node or destination node address, information type etc.), and then on the DeviceNet fieldbus, send.
Need to prove that microprocessor is after initially powering on, the state of all parameters all needs an initial value, could enter normal operating conditions under an original state like this.When microcontroller begins to carry out, need parameters such as correlation parameter such as node address, main website address, communication baud rate, the initial counter value of timer, CAN control register initial value are write microcontroller, only in this way just can bring into operation.Therefore need all default values are written in the special register of these states of sign by assignment statement, thereby finish initialization.
Module/network state pilot lamp 1013 is connected with microprocessor is two-way, is used for reflecting in real time the duty and the communications status of apparatus of the present invention node, and referring to Fig. 5, Fig. 5 is module/network state indicator light circuit figure;
Stand alone type LAN (Local Area Network) (CAN) controller 1014, with 1011 two-way connections of microprocessor, the message that is used to receive the message of DeviceNet fieldbus and meets the CAN agreement to the transmission of DeviceNet fieldbus; According to the CAN standard to judging from the message of DeviceNet fieldbus and filter, thereby improve the communication efficiency of I/O device of the present invention; Referring to Fig. 2, Fig. 2 is the interface circuit figure of microprocessor 1011 and free-standing LAN (Local Area Network) (CAN) controller 1014.
Data extended memory 1016 with 1011 two-way connections of microprocessor, is used for the communication data of storage microprocessor 1011; Specifically store: the bus node of apparatus of the present invention node number and communication baud rate; and microprocessor 1011 field data of gathering and issuing to input and output short-circuit protection and self-diagnosis unit switches 102, also have microprocessor 1011 to the data of DeviceNet fieldbus interaction, from the input interface state and the output interface condition diagnosing data of input and output short-circuit protection and self-diagnosis unit switches 102.Referring to Figure 10, Figure 10 is the connecting circuit figure between data extended memory and the microprocessor.
Need to prove, after toggle switch circuit 1012 is finished being provided with of bus node number and communication baud rate, be notified to microprocessor 1011 by data bus, microprocessor 1011 carries out the execution of protocol procedure immediately, receive the related data and the transmission response message after treatment of free-standing LAN (Local Area Network) (CAN) controller 1014 chip SJA1000 contents, and at any time correlation behavior is informed module/network state pilot lamp by data bus, and the data of all receptions and transmission finally are to be delivered on the DeviceNet bus after being processed into the signal that meets the requirement of LAN (Local Area Network) (CAN) bus level by CAN bus transceiver 1015.
In the present invention, input and output short-circuit protection and self-diagnosis unit switches 102 include:
Referring to Fig. 6, Fig. 7, the TS4141 in diagram input interface circuit 1021 and the output interface circuit 1022 is intelligent high-side power switch chip, and maximum can provide the 2A load current, and TS4141 self has functions such as short-circuit protection circuit, overcurrent protection, overvoltage protection.When the module interface short circuit, the automatic protection module circuit of testing circuit meeting that TS4141 is inner integrated, deenergization, and when short trouble was got rid of, TS4141 can restore electricity immediately, made interface energy operate as normal.
Input interface circuit as shown in Figure 6, described input interface circuit 1021 includes power switch chip TS4141, this power switch chip TS4141 one termination external power source, one termination input interface, described input interface can meet sb. at the airport tool switch or sensor, described input interface meets optocoupler PC817, the ternary bidirectional bus transceiver of the output termination of described optocoupler PC817 74LS245, the output termination microprocessor AT89S52 of described ternary bidirectional bus transceiver 74LS245.
As shown in Figure 6, outside 24V power supply is given input interface (Header3) power supply by intelligent high-side power switch chip TS4141, the input interface peripheral communications objects such as tool switch or sensor of can meeting sb. at the airport, this input interface meets optocoupler PC817, when mechanical switch closure or sensor action, optocoupler PC817 conducting, the output terminal output high level of optocoupler PC817, can realize carrying out with microprocessor AT89S52 the transmitted in both directions of data by ternary bidirectional bus transceiver 74LS245,8 tunnel input data (switching value) of final peripheral communications object are gathered by gating 74LS245 by microprocessor.
Output interface circuit as shown in Figure 7, described output interface circuit 1022 includes: ternary bidirectional bus transceiver 74LS245, the input termination microprocessor AT89S52 of described ternary bidirectional bus transceiver 74LS245, the base stage of its output termination triode Q1, the grounded emitter of described triode Q1, the collector of described triode Q1 meets optocoupler PC817, the output termination power switch chip TS4141 of described optocoupler PC817, this power switch chip TS4141 one termination external power source, one termination output interface, described output interface can connect and comprise solenoid valve, relay is at interior multiple actuator.
As shown in Figure 7, outside 24V power supply is powered to output interface by intelligent high-side power switch chip TS4141, and output interface can connect actuators (being the peripheral communications object) such as solenoid valve, relay.D type flip flop 74LS273 can realize latching of data.During the microprocessor output data, microprocessor provides the jumping edge that rises only need for the clock end of 74LS273, and the output data on the data bus both had been latched in the output terminal of 74LS273.When output signal is high level, triode Q19013 conducting, thereby optocoupler PC817 conducting, the switching signal input end of TS4141 is activated, and TS4141 opens, thereby is output interface (Header 2) power supply, drives peripheral communications objects such as solenoid valve, relay.
Whether input state diagnostic circuit 1023 with 1011 two-way connections of microprocessor, is used to diagnose input interface circuit 1021 to be short-circuited, and when input interface circuit 1021 was short-circuited, the output short-circuit diagnostic signal was given microprocessor 1011;
Whether output state diagnostic circuit 1024 with 1011 two-way connections of microprocessor, is used to diagnose output interface circuit 1022 to be short-circuited, and when output interface circuit 1022 was short-circuited, the output short-circuit diagnostic signal was given microprocessor 1011;
Fig. 8, Fig. 9 are respectively input state circuit and output state diagnostic circuit, as Fig. 8 and shown in Figure 9, LM339 is high-precision voltage comparator, when its positive signal terminal voltage during greater than the negative signal terminal voltage, its output terminal output high level, when its negative signal terminal voltage during greater than the positive signal terminal voltage, its output terminal output low level.Among Fig. 8, Fig. 9, the negative signal termination input interface circuit 1021 of described voltage comparator LM339 or the power positive end of output interface circuit 1022, its anode voltage constant, the output termination optocoupler PC817 of described voltage comparator LM339, the ternary bidirectional bus transceiver of the output termination of described optocoupler PC817 74LS245, the output termination microprocessor AT89S52 of described ternary bidirectional bus transceiver 74LS245.
In the present invention, the power positive end of input interface circuit 1021 and output interface circuit 1022 connects the negative signal end of voltage comparator LM339, connects LM339 positive signal end behind 24V voltage process 100K, the 1K electric resistance partial pressure, and positive terminal voltage perseverance is 0.2V.Therefore, when input interface circuit 1021 was short-circuited, TS4141 was in guard mode, the power positive end ground connection of input interface circuit 1021, and power work indication LED lamp DS1 extinguishes.The negative signal end ground connection of voltage comparator LM339, because the reference voltage of the positive termination 0.2V of voltage comparator LM339, voltage comparator LM339 exports high level, import the optocoupler PC817 input end conducting of diagnostic circuit this moment, the short circuit of LED lamp DS2 conducting indication passage, the short-circuit signal that optocoupler PC817 output terminal is exported is a high level, thereby the input state signal of 74LS245 is a high level, microprocessor will be gathered input state signal " 1 " by 74LS245, as the input state diagnostic data.During gating 74LS245,8 bit data can be transferred to the B passage by A channel, perhaps carry out reverse transfer, and the input state signal of the 74LS245 that is gathered is as the input state diagnostic data of short circuit.
When short trouble is got rid of, the TS4141 state of resuming work automatically, power work LED lamp DS1 conducting, voltage comparator LM339 since the negative signal terminal voltage greater than positive signal terminal voltage, output low level, input diagnostic circuit optocoupler PC817 ends, DS2 such as short circuit prompting extinguish, and diagnostic signal is a low level, shows that input channel is normal, microprocessor is gathered input state signal " 0 ", as the input state diagnostic data.
In like manner, when output interface circuit 1022 is short-circuited, power work warning light DS4 extinguishes, voltage comparator LM339 exports high level, control short circuit prompting LED lamp DS3 conducting, the output diagnostic signal is a high level, and microprocessor will be by output short-circuit diagnostic circuit circle collection output status signal " 1 " as the output state diagnostic data.When short trouble is got rid of, power work warning light DS4 conducting, voltage comparator LM339 output low level, short circuit warning light DS3 extinguishes, diagnostic signal is a low level, shows that output channel is normal, and microprocessor is gathered output state " 0 " as the output state diagnostic data.
Need to prove, for device provided by the invention, the communication protocol of this device is supported " poll " and " position gating " two kinds of important data-triggered modes simultaneously: apparatus of the present invention not only can be carried out point-to-point exchanges data with the DeviceNet host node, it is traditional polling communication pattern, also can give full play to the advantage of the DeviceNet network producer/consumer's network model, support the send mode of DeviceNet host node " broadcast type ", make a plurality of I/O devices to receive command information, promptly support the communication pattern of position gating at synchronization.
On the specific implementation, DeviceNet fieldbus input and output I/O device based on the several data triggering mode provided by the invention, at first use microprocessor single-chip microcomputer 1011 and read peripheral toggle switch amount, carry out the MAC ID (node address number) of this device node and the setting of communication baud rate by toggle switch circuit 1012, by the network state of module/network state pilot lamp 1013 display modules.
Then, microprocessor 1011 is gathered the input data by input interface circuit 1021, and by the whether short circuit of input state diagnostic circuit 1023 diagnosable input interface circuits, the input interface condition diagnosing data that microprocessor 1011 is gathered about input interface circuit 1021 by input state diagnostic circuit 1023; Whether short circuit of the diagnosable output interface circuit of output state diagnostic circuit 1,024 1022, microprocessor 1011 is gathered output interface condition diagnosing data about this output interface circuit 1022 by the output state diagnostic circuit.Stand alone type CAN controller 1014 can be finished portion C AN bus protocol automatically, the data based DeviceNet protocol format that will send is encapsulated, and send to bus, and the data on the reception bus, and these data are resolved according to the DeviceNet agreement, extract data and to issuing by output interface circuit 1021 field apparatus to the periphery.Optocoupler 6N137 can realize the bus isolation, improves the data transmission precision.CAN bus transceiver 101582C250 can two-way transmission or is accepted the DeviceNet message, and data extended memory 1016 provides the lot of data storage space for microprocessor.
The present invention is in said process, microprocessor 1011 at first reads peripheral toggle switch numerical value and carries out the setting of node M AC ID and communication baud rate, subsequently initialization DeviceNet object properties, initialization DeviceNet messaging parameter, timer and CAN control register are set, thereby finish the device initialize process.Carry out the DeviceNet self check then, self check sends on the DeviceNet bus by the back and repeats MAC ID detection messages, has or not identical MAC ID on the testbus.Detection has just connected the DeviceNet bus by posterior nodal point.
After being connected to the DeviceNet bus, need will send the invitation that connects with the node that this node communicates, this node can be judged the connection type that will set up as requested, and according to the dissimilar original states (poll connects example and is connected example with a position gating) that dispose inner connection and each parameter, and return response message, with the connection of confirming to be set up.
After connecting foundation, device of the present invention (being this node) just can with other node switching I/O I/O data on the bus, microprocessor is by input interface circuit collection input data, and issue output data, and require to finish other every functions according to application program by output interface circuit.When the information of host node transmission is polling order information, this device is responded with the poll response message, when the information of host node transmission is position gating command information, the internal processes of this device can change a gating over to and judge subroutine, to information analysis and judgement in addition, if be the information of this device of gating really, then can carry out relevant action, and generate position gating response message.
The device that provides for the invention described above; this device is at input or output interface circuit when being short-circuited; referring to Fig. 6, Fig. 7; optocoupler input end signal with on-off action can be closed; thereby close the corresponding output terminal of optocoupler; disconnect path immediately, other electronic components of protection module can not burn because of short circuit effectively.In conjunction with Fig. 8, circuit shown in Figure 9, when short circuit, can send alerting signal, the prompting staff can get rid of open circuit fault as early as possible.Can realize effectively transmission and mapping for the short trouble state that takes place by the DeviceNet fieldbus simultaneously, provide effective information for the maintainer carries out failure monitoring.In addition, the state of can resuming work automatically immediately after short trouble is got rid of, short-circuit protection of the present invention adopt the electronic short circuit protection, and it is fast to have response speed, the little advantage of power consumption during short circuit, and circuit is simple, and with low cost.
This device can be realized finishing the communication function of the multichannel I/O data (switching value, analog quantity) based on the DeviceNet fieldbus only for the processing of group 2 messages; Support poll and two kinds of data-triggered modes of position gating, not only can handle from the polling message of bus and make response, can also handle position gating message, after correct judgement, make response, give full play to the advantage of the producer/consumer's network model from bus; Have very strong portability and extensibility, on this device basic, more easily realize the upgrading and the function expansion of system.
For device provided by the invention, in the bus communication design, adopted the special chip of free-standing CAN controller SJA1000 as the behavior of this device of control bus, thereby the bus message processing and the task of single-chip data acquisition are separated, for later function expansion provides than large space, strengthened the portability of system simultaneously.In the short-circuit protection function design; IO interface adopts optocoupler; amplifier; elements such as light emitting diode are realized the short-circuit protection function of I/O interface, when interface is short-circuited, and timely disconnecting circuit; protection Block I/O module; prevent that it from damaging because of short circuit, the luminous warning of simultaneous faults lamp is implemented in fault simultaneously and gets rid of the back former normal operating conditions of recovery automatically.
The input and output condition diagnosing circuit that the invention described above device has; can be when input/output port be short-circuited fault; the short circuit diagnostic data is realized effectively transmission and mapping by the DeviceNe fieldbus; thereby make under the relatively poor situation of condition of work at the scene; to often causing module input, output terminal short circuit, load device short circuit etc. causes that the fault of serious power supply short circuit realizes effective diagnosis and protection.
In sum; compared with prior art; the invention provides a kind of DeviceNet fieldbus input and output I/O device with short-circuit protection and self-diagnostic function; it has short-circuit protection and self-diagnostic function; can be under the situation that the interface power supply is short-circuited timely deenergization; avoid burning because of short-circuit current; and provide self-diagnosis information; the personnel of maintaining easily carry out the failure monitoring and the investigation of device; device recovers operate as normal automatically after short trouble is got rid of, and has great practical significance.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.
Claims (6)
1. the DeviceNet fieldbus input and output I/O device with short-circuit protection and self-diagnostic function is characterized in that, comprising:
The DeviceNet interface unit, be used for and the DeviceNet fieldbus between carry out data communication, the bus node MAC ID and the communication baud rate of this node are set, and gather and store input interface state and output interface condition diagnosing data from input and output short-circuit protection and self-diagnosis unit switches;
Input and output short-circuit protection and self-diagnosis unit switches, be used for and peripherals between carry out data communication, when input interface circuit and/or output interface circuit are short-circuited, deenergization gives short-circuit protection, device recovers operate as normal automatically after short trouble is got rid of, and sends input interface state and/or output interface condition diagnosing data to the DeviceNet interface unit;
Described DeviceNet interface unit includes:
Microprocessor, be used for to input and output short-circuit protection and self-diagnosis unit switches collection and issue field data, collection is from the input interface state and the output interface condition diagnosing data of input and output short-circuit protection and self-diagnosis unit switches, receive the bus node number and the communication baud rate of this set node of toggle switch circuit, the state of control module/network state pilot lamp, initialization and and the DeviceNet fieldbus between carry out data communication;
The toggle switch circuit is connected with microprocessor is two-way, is used to be provided with the communication baud rate of this node and bus node number;
Module/network state pilot lamp is connected with microprocessor is two-way, is used for reflecting in real time the duty and the communications status of this node;
Stand alone type local area network (LAN) CAN controller is connected with microprocessor is two-way, the message that is used to receive the message of DeviceNet fieldbus and meets the CAN agreement to the transmission of DeviceNet fieldbus;
The CAN bus transceiver by optocoupler and free-standing two-way connection of CAN controller, is used to realize the level of free-standing local area network (LAN) CAN controller and the conversion between the DeviceNet fieldbus level, and carries out the transmitted in both directions of data with the DeviceNet fieldbus;
The data extended memory is connected with microprocessor is two-way, is used for the communication data of storage microprocessor;
Described input and output short-circuit protection and self-diagnosis unit switches include:
Input interface circuit is connected with microprocessor is two-way, is used to the input interface that can connect the peripheral communications object to power, the field data that provides input interface to import to microprocessor, and when being short-circuited, disconnect power supply, and after short trouble is got rid of, restore electricity;
Output interface circuit, be connected with microprocessor is two-way, be used to receive microprocessor and issue the field data of output to output interface, field data according to this output, for the output interface that can connect the peripheral communications object is powered, and when being short-circuited, disconnect power supply, and after short trouble is got rid of, restore electricity;
Whether the input state diagnostic circuit is connected with microprocessor is two-way, be used to diagnose input interface circuit to be short-circuited, and when input interface circuit was short-circuited, output diagnosis short-circuit signal was given microprocessor;
Whether the output state diagnostic circuit is connected with microprocessor is two-way, be used to diagnose output interface circuit to be short-circuited, and when output interface circuit was short-circuited, the output short-circuit diagnostic signal was given microprocessor.
2. device as claimed in claim 1, it is characterized in that, carrying out data communication between microprocessor and the DeviceNet fieldbus is specially: described microprocessor receives from the message of DeviceNet fieldbus and resolves, and the message that will send to the DeviceNet fieldbus packs, to meet the DeviceNet protocol specification.
3. device as claimed in claim 1; it is characterized in that; communication data in the microprocessor that described data extended memory is stored comprises having: bus node of this node number and communication baud rate; and microprocessor is to input and output short-circuit protection and self-diagnosis unit switches collection and the field data that issues, also has microprocessor to the data of DeviceNet fieldbus interaction, from the input interface state and the output interface condition diagnosing data of input and output short-circuit protection and self-diagnosis unit switches.
4. device as claimed in claim 1, it is characterized in that, described input interface circuit includes power switch chip TS4141, this power switch chip TS4141 one termination external power source, its another termination input interface, described input interface meets optocoupler PC817, the ternary bidirectional bus transceiver of the output termination of described optocoupler PC817 74LS245, the output termination microprocessor AT89S52 of described ternary bidirectional bus transceiver 74LS245.
5. device as claimed in claim 1, it is characterized in that, described output interface circuit includes: ternary bidirectional bus transceiver 74LS245, the input termination microprocessor AT89S52 of described ternary bidirectional bus transceiver 74LS245, the base stage of its output termination triode Q1, the grounded emitter of described triode Q1, the collector of described triode Q1 meets optocoupler PC817, the output termination power switch chip TS4141 of described optocoupler PC817, this power switch chip TS4141 one termination external power source, its another termination output interface.
6. device as claimed in claim 1, it is characterized in that, include in described input state diagnostic circuit and the output state diagnostic circuit: voltage comparator LM339, the negative signal termination input interface circuit of described voltage comparator LM339 or the power positive end of output interface circuit, its anode voltage constant, the output termination optocoupler PC817 of described voltage comparator LM339, the ternary bidirectional bus transceiver of the output termination of described optocoupler PC817 74LS245, the output termination microprocessor AT89S52 of described ternary bidirectional bus transceiver 74LS245.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100693678A CN101587463B (en) | 2009-06-22 | 2009-06-22 | DeviceNet fieldbus input/output device with short-circuit protection and self-diagnostic function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100693678A CN101587463B (en) | 2009-06-22 | 2009-06-22 | DeviceNet fieldbus input/output device with short-circuit protection and self-diagnostic function |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101587463A CN101587463A (en) | 2009-11-25 |
CN101587463B true CN101587463B (en) | 2010-12-01 |
Family
ID=41371714
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009100693678A Expired - Fee Related CN101587463B (en) | 2009-06-22 | 2009-06-22 | DeviceNet fieldbus input/output device with short-circuit protection and self-diagnostic function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101587463B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101783741A (en) * | 2010-03-03 | 2010-07-21 | 天津理工大学 | CANopen field bus input/output device with short-circuit protection and self-diagnosis function |
CN102957142B (en) * | 2011-08-18 | 2016-03-16 | 安徽皖科电子工程有限公司 | Based on the Fieldbus Intelligent distributor of IEC61158-2 transmission technology |
CN106292436A (en) * | 2012-09-18 | 2017-01-04 | 中国铁道科学研究院机车车辆研究所 | A kind of input/output module of rail traffic vehicles network system |
CN103885848B (en) * | 2014-03-13 | 2016-08-31 | 南京科远驱动技术有限公司 | The deadlock of a kind of microprocessor, the protection circuit of program fleet fault and implementation method |
CN106061023B (en) * | 2016-07-08 | 2018-05-08 | 浙江众合科技股份有限公司 | New indicating lamp control circuit |
CN106200627B (en) * | 2016-08-31 | 2019-07-02 | 山推工程机械股份有限公司 | A kind of the self diagnosis system and self-diagnosing method of intelligent controller |
CN106773907A (en) * | 2016-11-25 | 2017-05-31 | 歌尔股份有限公司 | A kind of Remote I/O Control System and its controller and I/O module |
CN106781806A (en) * | 2017-01-20 | 2017-05-31 | 中国人民解放军镇江船艇学院 | A kind of portable traffic skill training system |
DE102017127983A1 (en) * | 2017-11-27 | 2019-05-29 | Beckhoff Automation Gmbh | FUSE MODULE AND FIELD BUS SYSTEM WITH FUSE MODULE |
CN109586248A (en) * | 2018-12-14 | 2019-04-05 | 上海沥马自动化设备有限公司 | A kind of solenoid valve driving module for realizing overcurrent protection |
CN113704154B (en) * | 2021-07-30 | 2024-02-23 | 浙江亚太智能网联汽车创新中心有限公司 | Universal interface integrated system and device for sensing system |
-
2009
- 2009-06-22 CN CN2009100693678A patent/CN101587463B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN101587463A (en) | 2009-11-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101587463B (en) | DeviceNet fieldbus input/output device with short-circuit protection and self-diagnostic function | |
CN201657001U (en) | Novel CANopen field bus input and output device | |
CN102035679B (en) | Ethernet/IP protocol based remote I/O (Input/ Output) module with short-circuit protection and self diagnosis function | |
CN104682214B (en) | Intelligent power supply control box | |
CN104143244B (en) | Automatic fire alarm system communication modes and fire alarm automatic alarm system | |
CN107202954A (en) | Embedded breaker on-line monitoring system based on three core platforms | |
CN104102161A (en) | Intelligent integrated power switch quantity monitoring module | |
CN101013321A (en) | Intelligent actuator of greenhouse based on Ethernet and wireless sensor network | |
CN201029023Y (en) | Intelligent switch power source communication protocol converter | |
CN106406251A (en) | Air conditioning control system, centralized control switch box and centralized control communication transfer method | |
CN102624099B (en) | Device for monitoring network connection state of smart grid | |
CN101707482B (en) | Profibus device protocol input and output device with short circuit protection and self-diagnosis | |
CN201928299U (en) | Novel Ethernet/IP industrial Ethernet input-output module | |
CN107309886A (en) | A kind of household intelligent robot system | |
CN104504537A (en) | Transformer substation alternating current power supply monitoring system and transformer substation alternating current power supply monitoring method | |
CN114007240B (en) | Wireless network fault monitoring system and monitoring method | |
CN216134479U (en) | Communication sharing device based on RS485 | |
CN205644225U (en) | General long -range analog quantity switching value input -output system | |
CN108661898A (en) | A kind of intelligent water pump controller for wisdom agricultural irrigation | |
CN212305369U (en) | Smart rod and edge computing gateway for smart rod | |
CN205121237U (en) | Controller | |
CN204006498U (en) | Intelligent monitor system | |
CN103869777A (en) | Intelligent monitoring system | |
CN209148766U (en) | A kind of voltage-current sensor | |
CN112783081A (en) | Programmable controller with M-BUS and control method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20101201 Termination date: 20130622 |