CN101136827A - Communication and display system and method of LonWorks I/O object under different transmission condition - Google Patents
Communication and display system and method of LonWorks I/O object under different transmission condition Download PDFInfo
- Publication number
- CN101136827A CN101136827A CNA2007101444033A CN200710144403A CN101136827A CN 101136827 A CN101136827 A CN 101136827A CN A2007101444033 A CNA2007101444033 A CN A2007101444033A CN 200710144403 A CN200710144403 A CN 200710144403A CN 101136827 A CN101136827 A CN 101136827A
- Authority
- CN
- China
- Prior art keywords
- value
- byte
- input
- element chip
- output
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Abstract
The invention is in order to solves existing circumstance that researching on I/O object at home and abroad is focus on application, and issues such as how to build communication relation between I/O object and network variable as well as how to compare and display data of communication have not solved yet. LonWorks bus interfaces of first transceiver and second transceiver in the system are connected to LonWorks bus. The method includes steps: staring up and initializing sending node and receiving node, and binding network variable of each node; using code dialed switch A with eight routes inputs a transmission reference value, and then the send button is pressed; using code dialed switch B with eight routes inputs a value again, and then the send button is pressed; repeating the said step for ten times, ending, the invention can implement communication of LonWorks I/O under different transmission condition, as well as can carry out comparison and display.
Description
Technical field
The present invention relates to communication and the technique for displaying field of a kind of LonWorks I/O object under different transmission conditions.
Background technology
Along with the appearance of the thousands of application developers in the whole world and the installation of millions of equipment, the LonWorks system has become building automatic, industry, transportation and the premier open solution of common equipment control net.11 of neuron chip pins (using I/O) can be configured to several working ways in the LonWorks technology, thereby realize input/output function flexibly by the external circuits of minimum.At present, the research at the I/O object both at home and abroad concentrates on its application, mainly studies the hardware and software of different objects and realizes.Because neuron chip possesses communication and controlled function simultaneously, how in the application program of a node, its I/O object and network variable to be set up correspondence, and and then carry out different internodal communications, the also not solution of problem that simultaneously institute's communication data under the different transmission conditions is compared and show.
Summary of the invention
The objective of the invention is to concentrate on its application at domestic and international research at present to the I/O object, and how itself and network variable are set up correspondence, and the data of being communicated by letter are compared the present situation that also not have solution with the problem that shows, and the communication of a kind of LonWorks I/O object under different transmission conditions and the system and method for demonstration are provided.
System of the present invention is made up of sending node 1, receiving node 2:
Described sending node 1 is made up of first memory 1-1, first nerves element chip 1-2, the first display unit 1-3, the first transceiver 1-4, eight road toggle switch 1-5, transmission button 1-6;
First memory 1-1 data, control, address input/output bus end connects the data of first nerves element chip 1-2, control, address input/output bus end, the video data input of the first display unit 1-3 connects the video data output of first nerves element chip 1-2, the output line terminal of eight road toggle switch 1-5 connects the I/O input bus end of first nerves element chip 1-2, the output line terminal that sends button 1-6 connects the control input bus end of first nerves element chip 1-2, and the communication data output input bus end of the first transceiver 1-4 connects the communication data output input bus end of first nerves element chip 1-2;
Receiving node 2 is made up of second memory 2-1, nervus opticus element chip 2-2, the second display unit 2-3, the second transceiver 2-4;
Second memory 2-1 data, control, address input/output bus end connect data, control, the address input/output bus end of nervus opticus element chip 2-2, the video data input of the second display unit 2-3 connects the video data output of nervus opticus element chip 2-2, and the communication data output input bus end of the second transceiver 2-4 connects the communication data output input bus end of nervus opticus element chip 2-2;
The LonWorks bus interface of the LonWorks bus interface of the first transceiver 1-4 of sending node 1, the second transceiver 2-4 of receiving node (2) all is connected on the LonWorks bus.
LonWorks I/O object under different transmission conditions communication and the method step of demonstration be:
Step 1, start-up system;
Step 3, receiving node 2 is carried out initialization, promptly to parallel bidirectional I/O object type of receiving node 2 definition, be specially multibus-Muxbus I/O object disLCD, definition statement is in the program: IO_0 muxbus disLCD; Be fan-in network variable byte-in of receiving node 2 definition again, definition statement is in the program: network input unsigned int byte-in;
Step 4, network variable to each node in the system is bound, be with the LonMaker instrument and carry out networking, after defining network channel and two equipment, adding a functional block Func Block1 makes it be connected with equipment Device1, adding a functional block Func Block 2 again makes it be connected with equipment Device2, the output network variable byte-out that on Func Block 1, adds Device1 then, on Func Block 2, add the fan-in network variable byte-in of Device2, then use template connector that network variable byte-out and network variable byte-in are coupled together;
Step 5, a transmission of eight road toggle switch 1-5 input fiducial value in the contact 1 of passing through to send; Step is: eight road toggle switch 1-5 are pushed one group of position, and non-0 value, the binary numeral of the byte that it is represented is designated as byte-set as fiducial value:
Step 6, the transmission button 1-6 that presses in the sending node 1 send, first nerves element chip 1-2 in the sending node 1 reads the value of input object io-key and becomes at 0 o'clock by 1, the io_changes incident is judged as TURE, the value of embedded variable i nput_value is composed to User Defined variable value-set, then the value of value-set is sent among the first liquid crystal cells 1-3 to show, simultaneously value-set is composed to output network variable byte-out; When the value that the nervus opticus element chip 2-2 in the receiving node 2 reads fan-in network variable byte-in changes, its initial value is 0, the nv_update_occurs incident is judged as TURE, the value of fan-in network variable byte-in is composed to User Defined variable value-set, then the value of value-set is sent the second liquid crystal cells 2-3 to show;
Step 7, import a numerical value again, be about to eight road toggle switch 1-5 and push one group of new position, and the binary numeral of the byte that it is represented is designated as byte-ran by eight road toggle switch 1-5 in the sending node 1;
Step 8, the transmission button 1-6 that presses in the sending node 1 sends, first nerves element chip 1-2 in the sending node 1 reads the value of input object io-key and becomes at 0 o'clock by 1, the io_changes incident is judged as TURE, the value of embedded variable i nput_value and User Defined variable-fiducial value value-set sent among the first display unit 1-3 show, simultaneously, if the value of input_value is more than or equal to fiducial value byte-set, then the value of input_value is composed to output network variable byte-out, if the value of input-_value is less than fiducial value byte-set, then the value of output network variable byte-out does not change; When the value that the nervus opticus element chip 2-2 in the receiving node 2 reads fan-in network variable byte-in changes, the nv_update_occurs incident is judged as TURE, the value of User Defined variable-fiducial value value-set and fan-in network variable byte-in is sent among the second display unit 2-3 show;
Step 9, repeating step seven and step 8 ten times finish.
The present invention can realize the communication of LonWorks I/O object under different transmission conditions, and can compare and show it; Help the learner of LonWorks technology better to understand the technical characterstic of this bus, also can help the learner to grasp its programming language Neuron C simultaneously.Its system has advantage simple in structure, with low cost.
Method of the present invention is grouped together byte (byte) input object and these two kinds direct I/O objects of position (bit) input object, and trigger reading in of a byte input object by the value that changes the position input object, so just avoided setting fully and finished in the new value of the byte input object of realizing by eight road toggle switchs, and be the on off state on indivedual roads cause when changing misread generation into situation.In addition, in this method, the numerical value of the fiducial value and the byte of at every turn reading in is shown at the liquid crystal cells of sending node simultaneously, the numerical value of a byte satisfying condition is transmitted by network variable, and with fiducial value and the numerical value that satisfies a byte of the transmission conditions set show at the liquid crystal cells of receiving node simultaneously, transfer of data that these are a series of and procedure for displaying are very helpful for the event driven notion of understanding better in the LonWorks technology.
Description of drawings
Fig. 1 is the overall structure schematic diagram of system of the present invention.
Embodiment
Embodiment one: 1 present embodiment is described in conjunction with the accompanying drawings, present embodiment is made up of sending node 1, receiving node 2:
Described sending node 1 is made up of first memory 1-1, first nerves element chip 1-2, the first display unit 1-3, the first transceiver 1-4, eight road toggle switch 1-5, transmission button 1-6;
First memory 1-1 data, control, address input/output bus end connects the data of first nerves element chip 1-2, control, address input/output bus end, the video data input of the first display unit 1-3 connects the video data output of first nerves element chip 1-2, the output line terminal of eight road toggle switch 1-5 connects the I/O input bus end of first nerves element chip 1-2, the output line terminal that sends button 1-6 connects the control input bus end of first nerves element chip 1-2, and the communication data output input bus end of the first transceiver 1-4 connects the communication data output input bus end of first nerves element chip 1-2;
Receiving node 2 is made up of second memory 2-1, nervus opticus element chip 2-2, the second display unit 2-3, the second transceiver 2-4;
Second memory 2-1 data, control, address input/output bus end connect data, control, the address input/output bus end of nervus opticus element chip 2-2, the video data input of the second display unit 2-3 connects the video data output of nervus opticus element chip 2-2, and the communication data output input bus end of the second transceiver 2-4 connects the communication data output input bus end of nervus opticus element chip 2-2;
The LonWorks bus interface of the LonWorks bus interface of the first transceiver 1-4 of sending node 1, the second transceiver 2-4 of receiving node (2) all is connected on the LonWorks bus.
The model that first memory 1-1, second memory 2-1 select for use all is that SRAM and FLASH combine, the model that first nerves element chip 1-2, nervus opticus element chip 2-2 select for use all is the TMPN3150 of TOSHIBA, the model that the first display unit 1-3, the second display unit 2-3 select for use all is the AG12864A of ETC company, the model that the first transceiver 1-4, the second transceiver 2-4 select for use all is the MAX485 of MAXIM company, the model that eight road toggle switch 1-5 select for use is WT11-DS-08, and the model that transmission button 1-6 selects for use is OMRON B3F.
LonWorks I/O object under different transmission conditions communication and the method step of demonstration be:
Step 1, start-up system;
Step 3, receiving node 2 is carried out initialization, promptly to parallel bidirectional I/O object type of receiving node 2 definition, be specially multibus-Muxbus I/O object disLCD, definition statement is in the program: IO_0 muxbus disLCD; Be fan-in network variable byte-in of receiving node 2 definition again, definition statement is in the program: network input unsigned int byte-in;
Step 4, network variable to each node in the system is bound, be with the LonMaker instrument and carry out networking, after defining network channel and two equipment, adding a functional block Func Block1 makes it be connected with equipment Device1, adding a functional block Func Block 2 again makes it be connected with equipment Device2, the output network variable byte-out that on Func Block 1, adds Device1 then, on Func Block 2, add the fan-in network variable byte-in of Device2, then use template connector that network variable byte-out and network variable byte-in are coupled together;
Step 5, a transmission of eight road toggle switch 1-5 input fiducial value in the contact 1 of passing through to send; Step is: eight road toggle switch 1-5 are pushed one group of position, and non-0 value, the binary numeral of the byte that it is represented is designated as byte-set as fiducial value;
Step 6, the transmission button 1-6 that presses in the sending node 1 send, first nerves element chip 1-2 in the sending node 1 reads the value of input object io-key and becomes at 0 o'clock by 1, the io_changes incident is judged as TURE, the value of embedded variable i nput_value is composed to User Defined variable value-set, then the value of value-set is sent among the first liquid crystal cells 1-3 to show, simultaneously value-set is composed to output network variable byte-out; When the value that the nervus opticus element chip 2-2 in the receiving node 2 reads fan-in network variable byte-in changes, its initial value is 0, the nv_update_occurs incident is judged as TURE, the value of fan-in network variable byte-in is composed to User Defined variable value-set, then the value of value-set is sent the second liquid crystal cells 2-3 to show;
Step 7, import a numerical value again, be about to eight road toggle switch 1-5 and push one group of new position, and the binary numeral of the byte that it is represented is designated as byte-ran by eight road toggle switch 1-5 in the sending node 1;
Step 8, the transmission button 1-6 that presses in the sending node 1 sends, first nerves element chip 1-2 in the sending node 1 reads the value of input object io-key and becomes at 0 o'clock by 1, the io_changes incident is judged as TURE, the value of embedded variable i nput_value and User Defined variable-fiducial value value-set sent among the first display unit 1-3 show, simultaneously, if the value of input_value is more than or equal to fiducial value byte-set, then the value of input_value is composed to output network variable byte-out, if the value of input-_value is less than fiducial value byte-set, then the value of output network variable byte-out does not change; When the value that the nervus opticus element chip 2-2 in the receiving node 2 reads fan-in network variable byte-in changes, the nv_update_occurs incident is judged as TURE, the value of User Defined variable-fiducial value value-set and fan-in network variable byte-in is sent among the second display unit 2-3 show;
Step 9, repeating step seven and step 8 ten times finish.
Claims (2)
1. communication and the display system of a LonWorks I/O object under different transmission conditions is characterized in that it is made up of sending node (1), receiving node (2):
Described sending node (1) is made up of first memory (1-1), first nerves element chip (1-2), first display unit (1-3), first transceiver (1-4), eight road toggle switchs (1-5), transmission button (1-6);
First memory (1-1) data, control, address input/output bus end connects the data of first nerves element chip (1-2), control, address input/output bus end, the video data input of first display unit (1-3) connects the video data output of first nerves element chip (1-2), the output line terminal of eight road toggle switchs (1-5) connects the I/O input bus end of first nerves element chip (1-2), the output line terminal that sends button (1-6) connects the control input bus end of first nerves element chip (1-2), and the communication data output input bus end of first transceiver (1-4) connects the communication data output input bus end of first nerves element chip (1-2);
Receiving node (2) is made up of second memory (2-1), nervus opticus element chip (2-2), second display unit (2-3), second transceiver (2-4);
Second memory (2-1) data, control, address input/output bus end connect data, control, the address input/output bus end of nervus opticus element chip (2-2), the video data input of second display unit (2-3) connects the video data output of nervus opticus element chip (2-2), and the communication data output input bus end of second transceiver (2-4) connects the communication data output input bus end of nervus opticus element chip (2-2);
The LonWorks bus interface of the LonWorks bus interface of first transceiver (1-4) of sending node (1), second transceiver (2-4) of receiving node (2) all is connected on the LonWorks bus.
2. communication and the display packing of a LonWorks I/O object under different transmission conditions is characterized in that its method step is:
Step 1, start-up system;
Step 2, sending node (1) is carried out initialization, promptly to two direct I/O object types of sending node (1) definition, be respectively byte-byte input object io-switches and position-bit input object io-key, definition statement is in the program: IO_0input byte io-switches, IO_8 input bit io-key; Be output network variable byte-out of sending node (1) definition again, definition statement is in the program: networkoutput unsigned int byte-out;
Step 3, receiving node (2) is carried out initialization, promptly to parallel bidirectional I/O object type of receiving node (2) definition, be specially multibus-Muxbus I/O object disLCD, definition statement is in the program: IO_0 muxbus disLCD; Be fan-in network variable byte-in of receiving node (2) definition again, definition statement is in the program: network input unsigned int byte-in;
Step 4, network variable to each node in the system is bound, be with the LonMaker instrument and carry out networking, after defining network channel and two equipment, adding a functional block Func Block1 makes it be connected with equipment Device1, adding a functional block Func Block 2 again makes it be connected with equipment Device2, the output network variable byte-out that on Func Block 1, adds Device1 then, on Func Block 2, add the fan-in network variable byte-in of Device2, then use template connector that network variable byte-out and network variable byte-in are coupled together;
Step 5, a transmission of eight road toggle switchs (1-5) the input fiducial value in the contact (1) of passing through to send; Step is: eight road toggle switchs (1-5) are pushed one group of position, and non-0 value, the binary numeral of the byte that it is represented is designated as byte-set as fiducial value;
Step 6, the transmission button of pressing in the sending node (1) (1-6) send, first nerves element chip (1-2) in the sending node (1) is read the value of input object io-key and is become at 0 o'clock by 1, the io_changes incident is judged as TURE, the value of embedded variable i nput_value is composed to User Defined variable value-set, then the value of value-set is sent in first liquid crystal cells (1-3) to show, simultaneously value-set is composed to output network variable byte-out; When the value that the nervus opticus element chip (2-2) in the receiving node (2) is read fan-in network variable byte-in changes, its initial value is 0, the nv_update_occurs incident is judged as TURE, the value of fan-in network variable byte-in is composed to User Defined variable value-set, then the value of value-set is sent second liquid crystal cells (2-3) to show;
Step 7, import a numerical value again, be about to eight road toggle switchs (1-5) and push one group of new position, and the binary numeral of the byte that it is represented is designated as byte-ran by eight road toggle switchs (1-5) in the sending node (1);
Step 8, the transmission button of pressing in the sending node (1) (1-6) sends, first nerves element chip (1-2) in the sending node (1) is read the value of input object io-key and is become at 0 o'clock by 1, the io_changes incident is judged as TURE, the value of embedded variable i nput_value and User Defined variable-fiducial value value-set sent in first display unit (1-3) show, simultaneously, if the value of input_value is more than or equal to fiducial value byte-set, then the value of input_value is composed to output network variable byte-out, if the value of input_value is less than fiducial value byte-set, then the value of output network variable byte-out does not change; When the value that the nervus opticus element chip (2-2) in the receiving node (2) is read fan-in network variable byte-in changes, the nv_update_occurs incident is judged as TURE, the value of User Defined variable-fiducial value value-set and fan-in network variable byte-in is sent in second display unit (2-3) show;
Step 9, repeating step seven and step 8 ten times finish.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007101444033A CN100518122C (en) | 2007-09-30 | 2007-09-30 | Communication and display method of LonWorks I/O object under different transmission condition |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007101444033A CN100518122C (en) | 2007-09-30 | 2007-09-30 | Communication and display method of LonWorks I/O object under different transmission condition |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101136827A true CN101136827A (en) | 2008-03-05 |
CN100518122C CN100518122C (en) | 2009-07-22 |
Family
ID=39160675
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2007101444033A Expired - Fee Related CN100518122C (en) | 2007-09-30 | 2007-09-30 | Communication and display method of LonWorks I/O object under different transmission condition |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100518122C (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101916079A (en) * | 2010-07-26 | 2010-12-15 | 中国北车股份有限公司大连电力牵引研发中心 | Digital quantity output card based on FT3150 |
CN101621549B (en) * | 2008-07-03 | 2011-10-19 | 哈尔滨工业大学 | LonWorks node multi-I/O device based on nerve cell chip |
-
2007
- 2007-09-30 CN CNB2007101444033A patent/CN100518122C/en not_active Expired - Fee Related
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101621549B (en) * | 2008-07-03 | 2011-10-19 | 哈尔滨工业大学 | LonWorks node multi-I/O device based on nerve cell chip |
CN101916079A (en) * | 2010-07-26 | 2010-12-15 | 中国北车股份有限公司大连电力牵引研发中心 | Digital quantity output card based on FT3150 |
CN101916079B (en) * | 2010-07-26 | 2013-01-30 | 中国北车股份有限公司大连电力牵引研发中心 | Digital quantity output card based on FT3150 |
Also Published As
Publication number | Publication date |
---|---|
CN100518122C (en) | 2009-07-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN205450909U (en) | BMC based on FPGA realizes | |
CN103984240A (en) | Distributed real-time simulation method based on reflective memory network | |
CN100518122C (en) | Communication and display method of LonWorks I/O object under different transmission condition | |
CN107122069A (en) | Expansible portable intelligent device based on usb bus technology | |
CN101729339B (en) | Fieldbus communication card | |
CN110166467B (en) | PLC cross-platform control method based on HTML _ WEB gateway | |
CN202003259U (en) | Data management device | |
CN201163782Y (en) | Intelligent network gateway used for EPA/HART interconnection | |
CN102521960B (en) | Meter reading method based on intelligent park, communication managing machine and communication system | |
CN101197745B (en) | Method for implementing looped network redundant data transmission | |
CN202677114U (en) | Industrial control main board based on MSP430 single chip microcomputer | |
CN103178580A (en) | Interface circuit used for cascade connection and series battery management and method thereof | |
CN102981858B (en) | Integrated circuit programming system and method based on mobile device | |
CN101820373B (en) | Real-time collocation method for fieldbus modules | |
CN202353595U (en) | Gateway for EtherCAT (Ethernet for control and automation technology) and RS485 communication switching | |
CN104267609B (en) | A kind of method of simulation hardware control amount access transport | |
CN103929457A (en) | Internet of things application data interaction system and method based on mobile internet | |
CN103139943A (en) | Access gateway of internet of things | |
CN203084708U (en) | Integrated circuit programming system based on mobile device | |
CN201994958U (en) | Intelligent communication node between CAN (controller area network) bus and Ethernet | |
CN2655340Y (en) | Multi-machine serial slot communication apparatus | |
CN104158903A (en) | Method and system of encoding OAM (Operation Administration and Maintenance) protocol stack | |
CN202168097U (en) | Gateway for communication of EtherCAT and CAN | |
CN101750993A (en) | System debugging method and system of positive-impedance converter (PIC) controller | |
CN212659096U (en) | Device with one master-slave mode and multiple slave mode USB |
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: 20090722 Termination date: 20100930 |