CN102255784A - Field bus gateway using virtual serial field bus port and data transfer method thereof - Google Patents

Field bus gateway using virtual serial field bus port and data transfer method thereof Download PDF

Info

Publication number
CN102255784A
CN102255784A CN2010101894198A CN201010189419A CN102255784A CN 102255784 A CN102255784 A CN 102255784A CN 2010101894198 A CN2010101894198 A CN 2010101894198A CN 201010189419 A CN201010189419 A CN 201010189419A CN 102255784 A CN102255784 A CN 102255784A
Authority
CN
China
Prior art keywords
fieldbus
port
data
package
tandem
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.)
Pending
Application number
CN2010101894198A
Other languages
Chinese (zh)
Inventor
魏伯而
庄峻富
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
404 SCI-TECH Co Ltd
Moxa Inc
Original Assignee
404 SCI-TECH Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 404 SCI-TECH Co Ltd filed Critical 404 SCI-TECH Co Ltd
Priority to CN2010101894198A priority Critical patent/CN102255784A/en
Publication of CN102255784A publication Critical patent/CN102255784A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses a field bus gateway using a virtual serial field bus port and a data transfer method thereof. The technical process is characterized in that the field bus gateway is used for utilizing the virtual serial field bus port (a first field bus port) which is connected to a source device or target device to receive a packet containing target data, and then a second field bus port is used for transferring the packet containing target data to the source device or target device, thereby simultaneously controlling a same controlled device by two far-end devices and achieving a technical effect of simultaneous communication between the source device or target device and a plurality of target devices or source devices through a single virtual port.

Description

Use the fieldbus gateway and the data transmission method thereof at virtual tandem fieldbus port
Technical field
The present invention relates to a kind of fieldbus gateway and data transmission method thereof, mean a kind of fieldbus gateway and data transmission method thereof that uses virtual tandem fieldbus port especially.
Background technology
At the scene in the evolution of bus (Fieldbus), owing to be applied in the too fieldbus agreement of network (Industrial Ethernet-based) of industrial second, as ProfiNet, Modbus TCP, Ethernet/IP etc., the time that is suggested is applied in the fieldbus agreement of tandem transmission (serial-based), as Profibus, Modbus RTU/ASCII etc., the evening of coming, too network fieldbus agreement framework is comparatively complicated to add industrial second, therefore still there are many data acquisitions and supervisor control (SCADA) or man-machine interface (Human Machine Interface at present, HMI) only support the fieldbus of tandem transmission and do not support the too fieldbus of network of second, or need just can obtain the too support of network fieldbus of industrial second in the mode of additional payment, this makes the user of data acquisition and supervisor control and man-machine interface only can carry out communication with controlled device by the fieldbus port (serial Fieldbus port) of tandem.Yet, under present factory automation framework, for middle control center that far-end will be provided and the operator of factory control controlled device simultaneously, often need controlled device can accept the control of the man-machine interface of the data acquisition of a far-end and supervisor control and near-end simultaneously.Because the physical circuit characteristic at tandem fieldbus port can't be grown the transmission of distance, therefore need prolong the distance of transmission in the mode that increases repeater (repeater), so will cause the lifting of wiring cost.
In order to solve the problem that wiring cost promotes, some factory changes into and changes into far-end and near-end respectively uses a fieldbus gateway (Fieldbus gateway), between two fieldbus gateways with second too network carry out communication, so can save the wiring cost of long distance, but still need purchase at least two fieldbus gateways.For reducing the number of purchasing of gateway, to utilizing the tandem fieldbus agreement of RS-232/RS-422/RS-485, also some factory can change into and use device server (device server), the technology that is COMport redirection substitutes, as shown in Figure 1, the data acquisition of far-end and supervisor control 101a can utilize COM port redirection driver to produce mapping COM port (Mapped COM port), be mapped to the entity serial port on the device server 700 of near-end so as to the mapping COM port that will be produced, that is to say, carrying out identical operations on to the entity serial port that can be mapped to device server 700 by all operations of the mapping COM port that produced on data acquisition and the supervisor control by Network Synchronization, for example, data acquisition and supervisor control 101a set the RTS pin position (pin) of mapping COM port and go up output active signal, the output active signal that the RTS pin position on the entity serial port of device server 700 also can be synchronous then, promptly but the CTS pin position of the entity serial port of the program logic controller 301a (controlled device) that is connected with the entity serial port of device server 700 also can receive the active signal synchronously, otherwise, if but program logic controller 301a sends the entity serial port of data to device server 700 by its entity serial port, then the data that also its entity Port can be received of device server 700 is by the mapping COM port of network transfers to data acquisition and supervisor control 101a, but make data acquisition and supervisor control 101a can receive the data that program logic controller 301a (controlled device) is transmitted synchronously, technology by the tandem passage, can so that the entity serial port of the device server of near-end 700 as the entity serial port of remote data collection and supervisor control 101a, but so as to being connected with program logic controller 301a.
Though the technology of COM port redirection can only need to increase the distance that a device server promptly can extend the tandem communication, but because COM port redirection can set up the passage of a special use between the mapping COM port of the entity serial port of device server 700 and data acquisition and supervisor control 101a, therefore, when using the technology of COM port redirection, the entity serial port of device server 700 is monopolized the passage that is established, so, but the entity serial port of device server can only provide a data acquisition and supervisor control 101a (mapping COM port) at one time carry out the behavior of communication and/or control with program logic controller 301a, but this unusual inconvenience in the operating environment that many people's control program logic controller 301a are provided.
In sum, prior art existed since the midium or long term always as can be known can't provide two above far end devices to control the problem of same controlled device simultaneously, therefore is necessary to propose improved technological means, solves this problem.
Summary of the invention
Can't provide two above far end devices to control the problem of same controlled device simultaneously because prior art exists, the present invention discloses a kind of fieldbus gateway and data transmission method thereof that uses virtual tandem fieldbus port then, wherein:
The fieldbus gateway at the virtual tandem fieldbus of use disclosed in this invention port, at least comprise: bus port, at least one primary scene, be connected with each original device, each bus port, primary scene be network fieldbus port, virtual tandem or entity tandem fieldbus port one of them; Bus port, at least one secondary scene, be connected with each destination device respectively, each bus port, the secondary scene be network fieldbus port, virtual tandem fieldbus port or entity tandem fieldbus port one of them, and one of them is virtual tandem fieldbus port at least bus port, primary scene and bus port, the secondary scene; At least one first data processing module is responsible for handling the fieldbus agreement corresponding to bus port, primary scene, so as to the package that is transmitted by bus port, primary scene receipt source device; Path selection module is selected fieldbus agreement and bus port, the corresponding secondary scene in order to the foundation package; The package format converting module is used to the employed fieldbus agreement in bus port, primary scene and bus port, the secondary scene not simultaneously, and the conversion package is bus port, a secondary scene employed fieldbus package form; At least one second data processing module is reached an agreement in order to the fieldbus of handling corresponding each bus port, the secondary scene, and transmits package to each destination device by each bus port, the secondary scene.
The another kind of fieldbus gateway that uses virtual tandem fieldbus port disclosed in this invention comprises: storage module at least; Bus port, at least one primary scene is connected with each second device/each first device; Bus port, at least one secondary scene is connected with each first device/each second device, and one of them is virtual tandem fieldbus port at least for each bus port, primary scene and each kind line port, the secondary scene; At least one the 3rd data processing module is in order to periodic each bus port, primary scene receiving target data of passing through; Access control module is stored in the storage module and each first device/corresponding assigned address of each second device in order to the target data that each the 3rd data processing module is received, and with reading target data down to assigned address; At least one the 4th data processing module is in order to periodically to transmit the target data that access control module is read by each bus port, the secondary scene.
The data transmission method at the virtual tandem fieldbus of use disclosed in this invention port, its step comprises at least: connect original device and fieldbus gateway with each bus port, primary scene; Connect fieldbus gateway and destination device with this bus port, secondary scene respectively; Original device transmits by bus port, primary scene and comprises the package of target data to the fieldbus gateway; The fieldbus gateway is selected secondary scene bus agreement and bus port, the corresponding secondary scene according to package; After the fieldbus gateway judged that the employed fieldbus agreement in bus port, the secondary scene and bus port, primary scene is different, the conversion package was bus port, a secondary scene employed fieldbus package form; The fieldbus gateway transmits package to destination device by this bus port, secondary scene respectively.
Apparatus and method disclosed in this invention as above, after difference between the prior art is that the present invention passes through the fieldbus gateway and is connected original device and destination device with a virtual field bus port and arbitrary fieldbus port, between original device and destination device, pass on package, or it is the data on the destination device and self is synchronous, and provide the original device access to be stored in the data of self, so as to solving the existing in prior technology problem, promptly provide far-end original device or destination device to utilize virtual tandem fieldbus port, reach and use the long distance communication of tandem fieldbus agreement, and can reach allow original device/destination device use single virtual tandem fieldbus port can with the technology effect of a plurality of destination devices/original device communication simultaneously.
Description of drawings
Fig. 1 is the system architecture diagram of known tandem passage.
Fig. 2 is the system architecture diagram of the data transmission system at the virtual tandem fieldbus of the use port that the present invention carried.
Fig. 3 A is the element schematic diagram of the fieldbus gateway at the virtual tandem fieldbus of the use port that the present invention carried.
Fig. 3 B is the element schematic diagram at the virtual tandem fieldbus port that the present invention carried.
The Path selection hoist pennants that Fig. 4 carries for the embodiment of the invention.
Fig. 5 A is the method flow diagram of the data transmission method at the virtual tandem fieldbus of the use port that the present invention carried.
Fig. 5 B is the package inspection method flow chart that adds that the present invention carried.
Fig. 5 C is the purpose address inspection method flow chart that adds that the present invention carried.
Fig. 5 D is the detailed method flow chart of the transmission package that the present invention carried.
The element schematic diagram of the fieldbus gateway that Fig. 6 carries for the embodiment of the invention.
Fig. 7 A uses the system architecture diagram of the data transmission system at virtual tandem fieldbus port for the another kind that the present invention carried.
Fig. 7 B is the element schematic diagram that another kind that the embodiment of the invention is carried uses the fieldbus gateway at virtual tandem fieldbus port.
[main element symbol description]
101 first network equipments
101a data acquisition and supervisor control
102 second network equipments
200a fieldbus gateway
200b fieldbus gateway
200c fieldbus gateway
200d fieldbus gateway
200f fieldbus gateway
Bus port, 210 primary scene
The 210a first virtual tandem fieldbus port
211 sockets
212 virtual tandem fieldbus transport modules
The 212a first virtual tandem fieldbus transport module
The 212b second virtual tandem fieldbus transport module
2121 application command processing units
2122 fieldbus hyperlink information layer analogue unit
2123 fieldbus data and physics signal analogue unit
2124 fieldbus transportation simulator unit
221 first data processing modules
The 221a first virtual tandem fieldbus data processing module
The 221b second virtual tandem fieldbus data processing module
222 second data processing modules
The 222a first tandem fieldbus data processing module
The 222b second tandem fieldbus data processing module
Bus port, 240 secondary scene
The 240a first tandem fieldbus port
The 240b second tandem fieldbus port
250 path selection module
260 package format converting module
271 the 3rd data processing modules
272 the 4th data processing modules
280 storage modules
290 access control modules
301 first tandem fieldbus devices
But 301a program logic controller
302 second tandem fieldbus devices
303 the 3rd tandem fieldbus devices
400 networks
600 routing lists
610 target address fields
620 agreement type fields
630 destination fields
700 device servers
Embodiment
Below will cooperate graphic and embodiment describes feature of the present invention and execution mode in detail, content is enough to make any those skilled in the art can fully understand the applied technological means of technical solution problem of the present invention easily and implements according to this, realizes the attainable effect of the present invention whereby.
The present invention is in the system architecture that is applied in as Fig. 2, wherein, first network equipment 101 is to be connected with the virtual tandem fieldbus port (virtual serial Fieldbus port) of fieldbus gateway (Fieldbus gateway) 200a by network 400,301 of the first tandem fieldbus devices are directly to be connected with the entity tandem fieldbus port of fieldbus gateway 200a with tandem fieldbus connecting line, but the system architecture that the present invention carried is not as limit, that is to say, system architecture of the present invention might not be only limited to a network equipment and a tandem fieldbus devices, also can be by one first network equipment 101, a fieldbus gateway 200a and many tandem fieldbus devices are formed, or many network equipments and a fieldbus gateway 200a and one first tandem fieldbus devices 301 are formed, even by many network equipments, many tandem fieldbus devices and a fieldbus gateway 200a form etc., and the present invention is not as limit.It should be noted that, system architecture of the present invention only can comprise a fieldbus gateway 200a, wherein, first network equipment 101 also can use the virtual field bus port to carry out communication via fieldbus gateway 200a and other network equipments (as second network equipment 102), be not limited in and tandem fieldbus devices (301,302,303) communication, in addition, fieldbus gateway 200a can utilize virtual field bus port or network fieldbus port to be connected with 102 of second network equipments.
In the present invention, will call " original device " to data transmission to the device of fieldbus gateway 200a, and the device that will receive the data that is transmitted by fieldbus gateway 200a is called " destination device ".For example, when the main website in the bus (master) device is with the communication of slave station (slave) device at the scene, when the order of sending when master station device is sent to from station arrangement through fieldbus gateway 200a, master station device is " original device " and be " destination device " from station arrangement, and when the response of sending this order from station arrangement is passed master station device back through fieldbus gateway 200a, be " original device " and master station device is " destination device " from station arrangement then.In addition, if with Fig. 2, first network equipment, 101/ first tandem fieldbus devices 301 might not be original device/destination device, if the first tandem fieldbus devices 301 is passed on data to the first network equipment 101 by fieldbus gateway 200a, then the first tandem fieldbus devices 301 is original device, and first network equipment 101 is a destination device.
In Fig. 2, because first network equipment 101 is connected by network 400 with fieldbus gateway 200a system, in order to transmit the data or the signal of tandem fieldbus by network 400, therefore, first network equipment 101 can be carried out virtual tandem fieldbus port driver (driver) or the middle layer software (middleware), so as to producing the virtual tandem fieldbus port of using network 400 to transmit the tandem signal, fieldbus gateway 200a also can carry out virtual tandem fieldbus port driver or the middle layer software produces virtual tandem fieldbus port.
In Fig. 2, first network equipment 101 can use the virtual tandem fieldbus port of first network equipment 101 to transmit target data and give fieldbus gateway 200a, fieldbus gateway 200a can use the virtual tandem fieldbus port of fieldbus gateway 200a to receive the target data that first network equipment 101 is transmitted, and received target data is transferred to the first tandem fieldbus devices 301 by entity tandem fieldbus port, simultaneously, the first tandem fieldbus devices 301 can transmit target data by entity tandem fieldbus and give fieldbus gateway 200a, fieldbus gateway 200a can use the virtual tandem fieldbus port of fieldbus gateway 200a that the target data that the first tandem fieldbus devices 301 is transmitted is transferred to first network equipment 101 equally, first network equipment 101 also can use the virtual tandem fieldbus port of first network equipment 101 to receive the target data that fieldbus gateway 200a is passed on, and makes the network equipment 101 of winning can use the virtual tandem fieldbus port of first network equipment 101 to carry out and the directly use entity tandem identical communication behavior in fieldbus port.
First network equipment 101 transmits in the employed package of target data; usually can comprise purpose address and/or source address; fieldbus gateway 200a can be according to purpose address in the package and/or source address; target data is transferred to corresponding tandem fieldbus devices; so; when system architecture of the present invention comprised many tandem fieldbus devices, fieldbus gateway 200a still can transfer to correct destination device with the target data that first network equipment 101 is transmitted.In addition, fieldbus gateway 200a also can produce a plurality of virtual tandem fieldbus port, uses virtual tandem fieldbus port to set up line so as to many network equipments are provided respectively.It should be noted that, the network equipment that the present invention carried only need to fictionalize a virtual tandem fieldbus port promptly can with the communication of many tandem fieldbus devices, do not need to set up different virtual tandem fieldbus ports respectively for the different tandem fieldbus devices of desiring communication.
Below the element schematic diagram of the fieldbus gateway at the virtual tandem fieldbus of the use port that will be carried with Fig. 3 A the present invention illustrates first kind of operation of implementing aspect of the present invention.As shown in Figure 3A, the fieldbus gateway 200b that the present invention carried contains bus port, primary scene 210, first data processing module 221, second data processing module 222, bus port, the secondary scene 240, path selection module 250 and package format converting module 260.
What deserves to be mentioned is, fieldbus gateway 200b can comprise bus port, one or more primary scene 210 and bus port, one or more secondary scene 240, generally speaking, fieldbus gateway 200b can comprise the fieldbus ports such as tandem fieldbus port of network fieldbus port, a plurality of virtual tandem fieldbus ports and a plurality of entities simultaneously, but the fieldbus gateway that the present invention carried is not as limit.Wherein, various fieldbus port can use corresponding fieldbus to transmit data, for example, network fieldbus port map network fieldbus, the all corresponding tandem fieldbus in virtual tandem fieldbus port and entity tandem fieldbus port etc., and the tandem fieldbus that the present invention carried is including but not limited to the fieldbus of the physical layer (physical layer) at the special tandem of tool interface, as Profibus, CAN Bus, Foundation Fieldbus, Modbus Plus etc., or basic tandem interface such as utilization RS-232/RS-422/RS-485 etc. is the fieldbus of physical layer, as Modbus RTU/ASCII, DF1, CC-Link etc.
When bus port, primary scene 210 and bus port, the secondary scene 240 are network fieldbus port or entity tandem fieldbus port, be responsible for by corresponding fieldbus interface reception/transmission package at bus port, 210/ secondary scene, bus port, primary scene 240, for example, when bus port, 210/ secondary scene, bus port, primary scene 240 is network fieldbus port, can be the TCP/IP agreement on 240 real works of bus port, 210/ secondary scene, bus port, primary scene and stack (protocol stack) and socket driver, and by reception/transmission package in the socket; And when bus port, 210/ secondary scene, bus port, primary scene 240 is entity tandem fieldbus port, can be the driver at entity tandem fieldbus interface on 240 real works of bus port, 210/ secondary scene, bus port, primary scene, and by reception/transmission package in the entity tandem fieldbus interface, and the above-mentioned real example of doing only is for example, and the present invention is not as limit.
And when bus port, 210/ secondary scene, bus port, primary scene 240 is virtual tandem fieldbus port, entity tandem fieldbus can be simulated in bus port, 210/ secondary scene, bus port, primary scene 240, and carry out communication by network 400, comprise by network 400 and transmit document signal, physics signal and the behaviors such as (data link layer) of simulation data linking layer.When bus port, primary scene 210 or bus port, the secondary scene 240 are virtual tandem fieldbus port, bus port, primary scene 210 or bus port, the secondary scene 240 will comprise shown in Fig. 3 B: virtual tandem fieldbus transport module 212 and at least one socket 211.
Socket 211 is connected with original device/destination device by network 400, is responsible for the package of the virtual tandem fieldbus of reception/transmission.Socket 211 can be too interfaces such as network (ethernet), wireless network (wireless), satellite communication, infrared ray of second, but the present invention is not as limit.
Virtual tandem fieldbus transport module 212 can wherein comprise at least in fact as virtual tandem fieldbus driver or the middle layer software: application command processing unit 2121, fieldbus hyperlink information layer analogue unit 2122, fieldbus data and physics signal analogue unit 2123 and fieldbus transportation simulator unit 2124.
Application command processing unit 2121, responsible acceptance is executed in the order of the application program among the fieldbus gateway 200a, and, fieldbus data and physics signal analogue unit 2123 or fieldbus hyperlink information layer analogue unit 2122 are carried out the reading etc. of state of reading of the control of the reading and write of data, physics signal and setting, transmission state and physics signal according to performed order.
Fieldbus hyperlink information layer analogue unit 2122, the treatment mechanism of the hyperlink information layer that responsible simulation entity Fieldbus Control device (Fieldbus controller) is provided, message arbitration function as the controller of CAN Bus, be that last two nodes (node) of CAN Bus send bit " 0 " respectively (dominant) and bit " 1 " (recessive) time simultaneously, bus-bar (bus) is gone up the data that occurs will be bit " 0 ", and when the data on the discovery of the controller on the node bus-bar is inequality with the data of being sent, can stop the transmission data and etc. pending next time heavily give, so the message of tool higher-priority (message) just can be issued smoothly.That is to say, as virtual tandem fieldbus port with CAN Bus, fieldbus hyperlink information layer analogue unit 2122 can be compared each bit of the message of receiving simultaneously one by one, and the message that only keeps high priority, and pass the state value (status) that sends failure back and give the original device that sends the message that is rejected, so as to simulation entity CAN Bus controller.In addition, fieldbus hyperlink information layer analogue unit 2122 as virtual tandem fieldbus ports such as Profibus, CAN Bus, DF1 also can be as the entity Fieldbus Control device of being simulated, after successfully receiving message, pass back automatically and confirm that message (ACK message) is to the original device that sends message.
After the also responsible data that application command processing unit 2121 is transmitted of fieldbus hyperlink information layer analogue unit 2122 is packaged into the fieldbus package (Fieldbus frame) of being simulated, send fieldbus data and physics signal analogue unit 2123 to.
Fieldbus hyperlink information layer analogue unit 2122 can judge that also whether the fieldbus package received is legal package etc., if fieldbus hyperlink information layer analogue unit 2122 judges that packages are invalid, then can abandon package.
Fieldbus hyperlink information layer analogue unit 2122 can also be handled the hyperlink information layer behavior of the agreement institute standard of fieldbus, as Modbus RTU/ASCII, Profibus, DF1, the agreement of fieldbus such as CAN Bus, order/the Datagram that all has original device and sent must be received the response packet of destination device within a certain period of time, otherwise original device must heavily give this order/Datagram or abandon this order/Datagram and directly transmit the standard of Next Command/Datagram, and original device must wait for that the previous command/Datagram is successfully responded or overtime (timeout) just can be sent the mechanism of new order/Datagram again after abandoning.And more need after receiving the staff of authority (token) as the agreement of fieldbus such as Profibus, Modbus Plus, just can send order/Datagram also or the standard of the reception of its staff of authority and transfer behavior, also belong to the behavior of the Fieldbus Control device of fieldbus hyperlink information layer analogue unit 2122 required simulations.
Fieldbus hyperlink information layer analogue unit 2122 can also store the transmission success/status of fail of order/Datagram and the package that receives, and reads with program command processing unit 2121 so as to supply.
Above-mentioned fieldbus hyperlink information layer analogue unit 2122 executable functions are only for for example but as limit, such as the function that provided of the hyperlink information layer treatment mechanism that provided of the entity Fieldbus Control device fieldbus hyperlink information layer analogue unit 2122 that all can be the present invention and carried.
Fieldbus data and physics signal analogue unit 2123, be responsible for the behavior of simulated field bus physical layer, as the selection of pseudo-entity interface (virtual physical interface) and setting etc., selecting and set the pseudo-entity interface when fieldbus data and physics signal analogue unit 2123 is the entity interface of point-to-point (peer-to-peer), during as RS-232, fieldbus data and physics signal analogue unit 2123 can carry out man-to-man network communication by fieldbus transportation simulator unit 2124 and single destination device.In addition, selecting and set the pseudo-entity interface when fieldbus data and physics signal analogue unit 2123 is that multiple spot is when being connected the entity interface of (multi-drop), CAN Bus for example, Profibus, Modbus Plus, RS-422, entity interface such as RS485, fieldbus data and physics signal analogue unit 2123 can by fieldbus transportation simulator unit 2124 and single or multiple destination device carries out one to one or the network communication of one-to-many, network site that it should be noted that the selection at above-mentioned pseudo-entity interface and destination device all can obtain by reading that the user sets shelves or being preestablished by the user.
Fieldbus data and physics signal analogue unit 2123 can provide application command processing unit 2121 and fieldbus hyperlink information layer analogue unit 2122 to set/read the interface parameter at pseudo-entity interface, state, transmission rate (baud rate) and character element code etc. as interface kind, physics signal, but the present invention is not as limit, wherein, character element code is including but not limited to initial bit (start bits), end bit (stop bits), data bit (data bits), coordination bit (paritybits) etc.Similarly, the function of above-mentioned fieldbus data and physics signal analogue unit 2123 is only for for example but not as limit, the physical layer behavior of entity fieldbus all can be simulated by fieldbus data and physics signal analogue unit 2123 such as.
Fieldbus data and physics signal analogue unit 2123 also can utilize specific data to simulate the transmission of entity physics signal, the destination device that fieldbus data and physics signal analogue unit 2123 can be sent to data on the network by fieldbus transportation simulator unit 2124, or the data of the physics signal of this original device of expression that original device transmitted on the reception network, so as to setting the physical circuit signal state that fieldbus data and physics signal analogue unit 2123 itself are simulated, as fieldbus data and physics signal analogue unit 2123 desires with output pin position (output pin), as RTS pin position, when being made as active, can change the storage values (as being made as 1) of inner RTS earlier, then, to represent the destination device that the data of RTS active is sent on the network by fieldbus transportation simulator unit 2124 again, output pin position RTS so as to notice destination device original device internal simulation changes, and at input pin position (input pin), as CTS pin position, the variation of physics signal then changes by the data that receives the expression physics signal that original device transmitted on the network, after for example receiving that the RTS pin position of representing the original device on the network is the data of inactive, promptly change the storage values (as being made as 0) of inner CTS, pairing annexation as for the input pin position and the original device output pin position of internal simulation, connect the RTS pin position of original device as inner CTS, then can obtain by reading that the user sets shelves or preestablishing equally by the user.
Order, data or state value that data that fieldbus data and physics signal analogue unit 2123 can also be transmitted application command processing unit 2121 and fieldbus hyperlink information layer analogue unit 2122 are transmitted, be sent to destination device on the network by fieldbus transportation simulator unit 2124 and socket 211, simultaneously, data that the original device on the network can also be sent or state value exist inner, read with program command processing unit 2121 and fieldbus hyperlink information layer analogue unit 2122 so as to supply.
Fieldbus data and physics signal analogue unit 2123 more can be handled the software in the tandem field bus communication or the mechanism of hardware flow control (flow control), as be set at when carrying out flow control by hardware RTS/CTS, fieldbus data and physics signal analogue unit 2123 are after receiving that expression RTS pin position is the data of inactive, can change the storage values (as being made as 0) of inner CTS, and the data that application command processing unit 2121 and fieldbus hyperlink information layer analogue unit 2122 are transmitted is temporarily stored in inside, and wait for receive that once more expression RTS pin position is the data of active after, the destination device that temporary data is sent on the network by fieldbus transportation simulator unit 2124.
Fieldbus transportation simulator unit 2124, be responsible for setting according to fieldbus data and 2123 pairs of pseudo-entity interfaces of physics signal analogue unit, network connectivity between foundation and destination device, for example, when bus data and physics signal analogue unit 2123 setting pseudo-entity interfaces are point-to-point transmission at the scene, the network connectivity with single destination device is set up in the simulation point-to-point transmission, or when bus data and physics signal analogue unit 2123 set the pseudo-entity interfaces and be multicast communication at the scene, the simulation multicast communication set up network connectivity with a plurality of destination devices.
The demand that original device on the network is set up line also can be accepted in fieldbus transportation simulator unit 2124, and the foundation of line can be used as agreements such as TCP/IP, UDP/IP, PPP, but the present invention is not as limit.
The Datagram that fieldbus transportation simulator unit 2124 can also be transmitted fieldbus data and physics signal analogue unit 2123, order package, physics signal or state value reach single destination device (point-to-point transmission) or reach a plurality of destination devices (multicast communication) simultaneously by socket 211, can also with Datagram, order package, the physics signal of the original device received by socket 211 or state value is passed to the fieldbus data and physics signal analogue unit 2123 carries out subsequent treatment.
In addition, what be worth paying special attention to is, virtual tandem fieldbus port can also not comprise fieldbus hyperlink information layer analogue unit 2122 on real the work, so, the behavior of hyperlink information layer will be transferred to application program entirely and handle, and be the promptly normal next real virtual tandem fieldbus port of doing of this mode of using of fieldbus of physical layer as basic RS-232/RS-422/RS-485 of utilization such as Modbus RTU/ASCII, DF1, CC-Link.
Below will go on to say each module among Fig. 3 A.
First data processing module 221, be responsible for handling as ProfiNet, Ethernet/IP, ModbusTCP/UDP, Profibus, CAN Bus, Foundation Fieldbus, Modbus Plus, ModbusRTU/ASCII, standardizing behavior of fieldbus such as DF1 agreement, the agreement behavior of each layer of fieldbus that is not included by bus port, primary scene 210 just, do network fieldbus agreement strictly according to the facts " Ethernet/IP " data processing module, promptly need handle the behavior of all application layers (application layer) such as the Ethernet/IP of agreement institute standard and CIP, TCP/IP that application layer is following and physical layer etc. are then handled by bus port, primary scene 210.Do the agreement of tandem fieldbus and for example in fact " Profibus " data processing module the time, bus port, primary scene 210 is virtual tandem fieldbus port, it is virtual Profibus port, then the real Profibus data processing module of doing be responsible for handling the above behavior of hyperlink information layer by Profibus institute standard, hyperlink information layer and physical layer are then handled by virtual Profibus port (bus port, primary scene 210), when and for example making the data processing module of tandem fieldbus agreement " ModbusRTU/ASCII " in fact, the bus port, primary scene 210 that collocation is used is not for comprising the virtual tandem fieldbus port of fieldbus data binder couse analogue unit 2122, when being virtual Modbus port, then the real Modbus RTU/ASCII data processing module of doing need handle the behavior of the untreated hyperlink information layer of application layer and virtual Modbus port (bus port, primary scene 210) of ModbusRTU/ASCII institute standard, and the transmission rate in the hyperlink information layer, flow control, character element code and physical layer are then handled by virtual Modbus port, and above-mentioned all realities are made example only for giving an example, and the present invention is not as limit.
First data processing module 221, can also be by obtaining the received package in bus port, primary scene 210 with 210 corresponding application program interfaces, bus port, primary scene, and by the purpose address and/or the source address (if there is) that capture the target data that this package comprises in the package of obtaining.
In fact, first data processing module 221 can judge more whether the received package in bus port, primary scene 210 is effective.Generally speaking, first data processing module 221 is to judge with the form of foundation package whether package is effective, and for example, first data processing module 221 also can judge that whether effective package etc. according to the check code in the package.Whether effective and efficient manner is not as limit but first data processing module 221 is judged package.
In addition, first data processing module 221 also can abandon the package that path selection module 250 is passed back when path selection module 250 is passed package back.
Second data processing module 222 is similar to first data processing module 221, same being responsible for handled standardizing behavior of agreement of network fieldbus or the agreement of tandem fieldbus, promptly refers to not the agreement behavior of each layer of fieldbus of being included by bus port, the corresponding secondary scene 240.
Second data processing module 222 also is responsible for using and 240 corresponding application program interfaces, bus port, the secondary scene, give bus port, the secondary scene 240 with the package that path selection module 250 is provided, make package be sent to destination device by bus port, the secondary scene 240.
Whether second data processing module 222 more can judge that destination device is current with 240 corresponding application program interfaces, bus port, the secondary scene can receive package, if second data processing module 222 is judged the current package that can't transmit and is given destination device, for example, the CTS pin position at the bus port, the secondary scene 240 that is connected with destination device is during by active, or destination device is in busy (busy) state and does not pass back when confirming message, second data processing module 222 can be attempted transmitting package to destination device by bus port, the secondary scene 240 behind the special time of interval once more, just reuse and judge with 240 corresponding application program interfaces, bus port, the secondary scene that destination device is current and whether can receive package, if can, then second data processing module 222 can transmit package by bus port, the secondary scene 240, if cannot, then second data processing module, the 222 meeting trials that continuation transmits package by bus port, the secondary scene 240 behind the special time of interval.
Path selection module 250 is responsible for selecting corresponding second data processing module 222 according to first data processing module 221 by the purpose address that is captured in the package, source address or source and purpose address, and the package that will comprise target data offers by path selection module 250 selected second data processing modules 222, makes the selecteed second data module 222 by bus port, the secondary scene 240 package is sent to destination device.As being the foundation of judgement with the purpose address, path selection module 250 can use routing list (routing table) 600 as shown in Figure 4 to select second data processing module 222, for example, the purpose address that is captured when first data processing module 221 is during for " 21 ", path selection module 250 can find " 21 " in the target address field 610 in the routing list 600, and by the content choice and the second corresponding data processing module 222 of type " Modbus RTU " and destination " the first virtual tandem fieldbus port (virtual Modbus RTU port) " of corresponding agreement type field 620 and destination field 630, and the package that will comprise target data offers second data processing module 222 that is selected, make second data processing module 222 be selected by with corresponding application program interface, the first virtual tandem fieldbus port (bus port, the secondary scene 240), the package that will comprise target data is transferred to the first virtual tandem fieldbus port and is sent destination device to.Wherein, if second data processing module 222 can transmit package by bus port, a plurality of secondary scene 240, then path selection module 250 can also be when the package that will comprise target data provides second data processing module 222, the information that will transmit the bus port, the secondary scene 240 of package in the lump offers second data processing module 222, makes second data processing module 222 can learn that the package that needs will comprise target data by specified bus port, the secondary scene 240 is sent to destination device.
Path selection module 250 can judge that also first data processing module 221 is by the purpose address that is captured in package mistake whether, if it is wrong, then package can be return to first data processing module 221, make the data processing module 221 of winning abandon the package of purpose address mistake.For example, the purpose address that is captured when first data processing module 221 is during for " 61 ", path selection module 250 can't find the data of " 61 " in the target address field 610 in the routing list 600, therefore path selection module 25 can be judged purpose address mistakes, but path selection module 250 judge the purpose address whether the mode of mistake not as limit.
Path selection module 250 can also judge whether first data processing module 221 is identical with the 222 employed fieldbus agreements of second data processing module, when fieldbus agreement not simultaneously, path selection module 250 can also offer package format converting module 260 with receiving the type of first data processing module, 221 employed fieldbus agreements of package and the type that transmits second processing module, the 222 employed fieldbus agreements of package.For example, the type of first data processing module, 221 employed fieldbus agreements is that the type of " Modbus TCP ", the 222 employed fieldbus agreements of second data processing module is " Modbus RTU ", and the type " Modbus RTU " after type " Modbus TCP " that path selection module 250 can be current with package and the package conversion offers package format converting module 260.
The format conversion that package format converting module 260 is responsible for the package that path selection module 250 provided is to transmit second data processing module, the 222 employed package forms of package, i.e. the package form of 222 site of deployment buses of second data processing module.
Then explain orally operational devices of the present invention and method, and please refer to the data transmission method flow chart at the virtual tandem fieldbus of the use port that Fig. 5 A the present invention carried with an embodiment.
In the present embodiment, suppose that original device is first network equipment 101, destination device is the first tandem fieldbus devices 301, shown in the system architecture of Fig. 2.Wherein, first network equipment, 101 coefficients are according to collection and supervisor control (SCADA), but the first tandem fieldbus devices 301 is that (Programmable Logic Controller, PLC), but the present invention is not as limit for program logic controller.In addition, suppose fieldbus gateway 200c as shown in Figure 6, comprise a socket 211 and two tandem fieldbus interfaces, and network fieldbus transport module, the first virtual tandem fieldbus transport module 212a, the sending and receiving data is come at the second virtual tandem fieldbus transport module 212b community network interface 211, the first tandem fieldbus transport module and the second tandem fieldbus transport module use the first tandem fieldbus interface and the second tandem fieldbus interface to transmit data respectively, and the first tandem fieldbus transport module/second tandem fieldbus transport module is the first tandem fieldbus port 240a/, the second tandem fieldbus port with the first tandem fieldbus interface/second tandem fieldbus interface combinations respectively, in addition, the first virtual tandem fieldbus transport module 212a and the second virtual tandem fieldbus transport module 212b are combined as the first virtual tandem fieldbus port 210a and the second virtual tandem fieldbus port with socket 211 respectively.But the fieldbus gateway that the present invention carried does not exceed with Fig. 6.
When the user desire Usage data collection and supervisor control (first network equipment 101) but during operation program logic controller (the first tandem fieldbus devices 301), at first, but fieldbus gateway 200c need respectively to set up line (step 501) with data acquisition and supervisor control and program logic controller.Because in the present embodiment, fieldbus gateway 200c comprises two tandem fieldbus ports, but fieldbus gateway 200c system is connected with program logic controller with the first tandem fieldbus port 240a, fieldbus gateway 200c is connected with network 400 (Fig. 2) with supervisor control system with data acquisition, and between data acquisition and supervisor control and the fieldbus gateway 200c, can set up virtual tandem field bus communication between the first virtual tandem fieldbus port 210a of the 3rd virtual tandem fieldbus port of data acquisition and supervisor control and fieldbus gateway 200c by network 400, but the present invention is not as limit.
When user's operating data gather with supervisor control after, but data acquisition and supervisor control can be delivered to the first virtual tandem fieldbus port 210a (bus port, primary scene 210) (step 510) of fieldbus gateway 200c by the target data that program logic controller is given with tendency to develop in the 3rd virtual tandem fieldbus port.In the present embodiment, the target data that tentation data collection and supervisor control are transmitted is general operational order, but the present invention is not as limit.
Wherein, when data acquisition and supervisor control are transferred into fieldbus gateway 200c with operational order (target data), the socket 211 of fieldbus gateway 200c can receive the package that comprises operational order that data acquisition and supervisor control are transmitted.
Then, the first virtual tandem fieldbus transport module 212a of fieldbus gateway 200c can offer the first virtual tandem fieldbus data processing module 221a (in Fig. 3 A just first data processing module 221) of fieldbus gateway 200c by the package that corresponding Application Program Interface receives socket 211, and the first virtual tandem fieldbus data processing module 221a can be by purpose address that captures operational order in the package that comprises operational order and/or source address (step 530).In the present embodiment, suppose that the first virtual tandem fieldbus data processing module 221a only needs by capturing the purpose address in the package that comprises operational order, the purpose address that is captured is " 42 " for example, but the purpose address that the present invention carried is not as limit.
On practice, the purpose address and/or the source address (step 530) that capture operational order at the first virtual tandem fieldbus data processing module 221a in by the package that comprises operational order are preceding, the first virtual tandem fieldbus data processing module 221a is more shown in the flow process of Fig. 5 B, the invalid then first virtual tandem fieldbus data processing module 221a can judge package whether invalid (step 520) earlier, if need abandon package (step 590).In the present embodiment, suppose whether the first virtual tandem fieldbus data processing module 221a can judge correctly whether package is invalid with the package form, if package correct format, then the first virtual tandem fieldbus data processing module 221a can judge that package is effective, otherwise, if the package form is incorrect, then the first virtual tandem fieldbus data processing module 221a can judge that package is invalid, but the first virtual tandem fieldbus data processing module 221a judges that whether invalid package mode as limit.
After the first virtual tandem fieldbus data processing module 221a that gives fieldbus gateway 200c captures purpose address and/or source address (step 530) in by package, path selection module 250 can be selected fieldbus agreement and corresponding fieldbus port (step 560) according to purpose address and/or source address that the first virtual tandem fieldbus data processing module 221a is captured, so as to carrying out the work of follow-up transmission target data.In the present embodiment, because the first virtual tandem fieldbus data processing module 221a only need capture purpose address " 42 ", if path selection module 250 uses routing list 600 as shown in Figure 4 to select fieldbus agreement and corresponding fieldbus ports, then selected fieldbus agreement (secondary scene bus agreement) corresponding with purpose address " 42 " and the corresponding fieldbus port (bus port, the secondary scene) that goes out of path selection module 250 is respectively " ModbusASCII " and " the first tandem fieldbus port (240a) ".
On the practice, preceding in path selection module 250 selection fieldbus agreements and corresponding fieldbus port (step 560), path selection module 250 is more as " shown in the flow process of Fig. 5 C; can judge purpose address/source address/source and purpose address whether wrong (step 550) earlier; if path selection module 250 is judged purpose address/source address/source and purpose address mistake; then path selection module 250 is understood and be passed package back first virtual tandem fieldbus data processing module 221a; the first virtual tandem fieldbus data processing module 221a can abandon the package of being passed back by path selection module 250 (step 590) after receiving the package that path selection module 250 passes back.In the present embodiment, suppose whether path selection module 250 can be present in purpose address and source address and judge whether mistake of source and purpose address in the routing list 600, because the first virtual tandem fieldbus data processing module 221a does not capture the source address, therefore 250 of path selection module can be carried out false judgment to the purpose address, if the purpose address is present in the routing list 600, then path selection module 250 can judge that the purpose address is correct, otherwise, if the purpose address does not exist in the routing list 600, then path selection module 250 can be judged purpose address mistakes, but path selection module 250 judge purpose address or source address whether the mode of mistake do not exceed with the judgment mode that whether is present in the routing list 600.
After path selection module 250 is selected fieldbus agreement and corresponding fieldbus port (step 560), if path selection module 250 can be according in the agreement type field 620 in the routing list 600 as shown in Figure 4, the type " Modbus RTU " of the applied fieldbus agreement of the first virtual tandem fieldbus port 210a receiving target data and the first tandem fieldbus port 240a transmit the type " Modbus ASCII " of the applied fieldbus agreement of target data and judge the first virtual tandem fieldbus port 210a (bus port, primary scene) and the applied fieldbus agreement of the first tandem fieldbus port 240a (bus port, the secondary scene) different (steps 572), therefore, the package format converting module 260 package form that can will comprise operational order becomes the first tandem fieldbus applied package form of port 240a (step 576) by the package format conversion at the first virtual tandem fieldbus port 210.That is to say that in the present embodiment, package format converting module 260 can be reached an agreement on package by fieldbus type is the package form of the package format conversion of " Modbus RTU " for " Modbus ASCII ", but the present invention is not as limit.
After package format converting module 260 converted package to the first tandem fieldbus port 240a (bus port, the secondary scene) employed package form (step 576), the package that path selection module 250 can be carried out package format converting module 260 after the package format conversion offered the first tandem fieldbus data processing module 222a (being second data processing module 222 in Fig. 3 A).In addition, if path selection module 250 is judged the bus port, primary scene and the employed package form in bus port, the secondary scene identical (step 572) of receiving target data, then path selection module 250 can offer second data processing module 222 by direct package with unconverted package form.
After path selection module 250 offers package the first tandem fieldbus data processing module 222a (second data processing module 222), the first tandem fieldbus data processing module 222a can be by the first tandem fieldbus port 240a (bus port, the secondary scene) but the package that will comprise operational order is delivered to the entity tandem fieldbus port (step 580) of program logic controller, just use and the first tandem fieldbus transport module corresponding application program interface (tandem Application Program Interface), to offer the first tandem fieldbus transport module among the first tandem fieldbus port 240a through the package of conversion, but the first tandem fieldbus transport module can will comprise the entity tandem fieldbus port that the package of operational order is delivered to program logic controller by the first tandem fieldbus interface among the first tandem fieldbus port 240a, but makes that program logic controller moves according to operational order.
In fact, when but the package that the first tandem fieldbus data processing module 222a will comprise operational order by the first tandem fieldbus port 240a passes to program logic controller (step 580), the first tandem fieldbus data processing module 222a can be shown in the flow process of Fig. 5 D, but earlier by judging the current extremely program logic controller (step 581) of package that whether can transmit with 240a corresponding application program interface, the first tandem fieldbus port.In the present embodiment, suppose whether the CTS signal that the first tandem fieldbus data processing module 222a can be write down according to the first tandem fieldbus transport module among the first tandem fieldbus port 240a is that inactive judges that but the current package that whether can transmit is to program logic controller, if the first tandem fieldbus data processing module 222a is inactive by the CTS signal that the first obtained tandem fieldbus transport module of Application Program Interface is write down, then but the temporary storage of expression program logic controller is full, temporarily can't receive package, so the first tandem fieldbus data processing module 222a can judge and currently can't transmit package, therefore after the first tandem fieldbus data processing module 222a can wait for special time (step 589), once more by judging that with the first tandem fieldbus transport module corresponding application program interface but the current package that whether can transmit is to program logic controller (step 581), if the first tandem fieldbus data processing module 222a is active by the CTS signal that the first obtained tandem fieldbus transport module of Application Program Interface is write down, then but the expression program logic controller can receive package, but therefore the first tandem fieldbus data processing module 222a can send package to program logic controller (step 585) by the first tandem fieldbus port 240a.
According to above-mentioned, the process that data acquisition and supervisor control can be same transmits control command and gives the second tandem fieldbus devices 302 and/or the 3rd tandem fieldbus devices 303 etc.
In addition, when second network equipment 102 (is assumed to be computer, but the present invention is not as limit) use the second virtual tandem fieldbus port line of the 4th virtual tandem fieldbus port by network 400 and fieldbus gateway 200c after, but equally can data acquisition and supervisor control with program logic controller (the first tandem fieldbus devices 301) but in the interactive process with identical process to program logic controller transmission control command.
For example, when the second virtual tandem fieldbus transport module 212b of fieldbus gateway 200c after receiving the control command of the data of reading on the socket 211, the second virtual tandem fieldbus data processing module 221b can be " 48 " (step 530) by capturing the purpose address in the package that comprises control command, path selection module 250 can by the type of the fieldbus agreement of selecting to transmit control command in the routing list 600 as shown in Figure 4 be according to the purpose address " " Modbus ASCII " and the fieldbus port of transmitting control command be " " the first tandem fieldbus port 240a " (step 560), because path selection module 250 can be judged the reach an agreement on package form different (steps 572) of " Modbus ASCII " of the second virtual tandem fieldbus port applied fieldbus agreement " Modbus RTU " and the applied fieldbus of the first tandem fieldbus port 240a, therefore package format converting module 260 can be the package form (step 576) of the applied fieldbus agreement of the first tandem fieldbus port 240a with the package format conversion, then, the first tandem fieldbus data processing module 222a can offer the first tandem fieldbus transport module among the first tandem fieldbus port 240a with package by Application Program Interface, but the package that makes the tandem fieldbus port 240a that wins will comprise control command sends program logic controller (step 580) to, so, but program logic controller also can receive the control command of the data that reads that second network equipment 102 transmitted except the control command that receives first network equipment 101 and transmitted.
But receive the control command of the data of reading at program logic controller after, can target data be read out according to control command, and use entity tandem fieldbus port by tandem fieldbus connecting line, the response packet that will comprise target data is passed fieldbus gateway 200c (step 510) back.In the case, but because program logic controller is the data transmission end, but therefore program logic controller becomes the original device that the present invention carries, and the receiving terminal of response packet, just 102 of second network equipments become the destination device that the present invention carries.
But the first tandem fieldbus port 240a of bus gateway 200c is after receiving the response packet (step 510) that comprises target data that program logic controller transmits at the scene, the first tandem fieldbus transport module among the first tandem fieldbus port 240a can pass through Application Program Interface, but the target data that program logic controller is passed back is offered the first tandem fieldbus data processing module 222a (being first data processing module 221) in Fig. 3 A, the first tandem fieldbus data processing module 222a is after judging the response (response) of the received target data of the first tandem fieldbus port 240a for the existing control command that is transmitted, generally can be by capturing purpose address (step 530) in the response packet, but owing to the type of employed fieldbus agreement comprises the source address and do not have the purpose address for only having in the response packet of " Modbus RTU " or " Modbus ASCII ", therefore, in the present embodiment, to only comprise the source address in the response packet that the first tandem fieldbus port 240a is received and not have the purpose address, so, path selection module 250 is when but the existing package that will comprise control command offers the first tandem fieldbus data processing module 222a and is sent to program logic controller, can produce and the first virtual tandem fieldbus port 210a corresponding virtual address for the package that comprises control command, so as to source address as this package, be assumed to be " 22 ", and with this package, order ground address " 48 " and source address " 22 " are passed to the first tandem fieldbus data processing module 222a, but the first tandem fieldbus data processing module 222a is before or after being sent to program logic controller by the first tandem fieldbus port 240a, the order ground address " 48 " and the source address " 22 " of this package can be temporary in inside, after the first tandem fieldbus data processing module 222a judges that the package of being received is to have the response packet of the package that comprises control command now, can capture the source address " 48 " of response packet, and be temporary in inner order ground address and compare, so as to behind the source address of finding out the temporary order ground address package identical with the source address of response packet, with the source address " 22 " found out purpose address, and the response packet found out and the purpose address " 22 " of response packet passed to path selection module 250 as this response packet.
Package is after the first tandem fieldbus data processing module 222a offers path selection module 250 with the purpose address of response packet, path selection module 250 can be searched routing list 600 according to the purpose address, selecting the type of the fieldbus agreement of transmission response packet is " Modbus RTU ", and the fieldbus port of select transmitting response packet is behind the first virtual tandem fieldbus port 210a (step 560) corresponding with type " Modbus RTU ", path selection module 250 can be judged the package form different (steps 572) of the type of the applied fieldbus agreement of the first tandem fieldbus port 240a and the first virtual tandem fieldbus port 210a, so the form that package format converting module 260 is understood the response packet that will comprise target data is the first virtual tandem fieldbus applied package form of port 210a (step 576) by the applied package format conversion of the first tandem fieldbus port 240a, come again, path selection module 250 can will offer the first virtual tandem fieldbus data processing module 221a through the response packet after the format conversion, the first virtual tandem fieldbus data processing module 221a can use and the first virtual tandem fieldbus transport module 212a corresponding application program interface, to offer the first virtual tandem fieldbus transport module 212a through the package after the package format conversion, the package that makes the virtual tandem fieldbus port 210a that wins will comprise target data sends first network equipment 101 (step 580) that carries out virtual tandem field bus communication with the first virtual tandem fieldbus serial port 210a to.
In sum, the present invention is with after difference between the prior art is that the fieldbus gateway receives package by the virtual tandem fieldbus port that is connected with original device as can be known, judge to transmit fieldbus agreement and the bus port, the secondary scene that package need use and change package according to package and be bus port, the secondary scene employed fieldbus package form, re-use bus port, the secondary scene and transmit the technological means of package to destination device, can solve by this technological means that prior art is existing can't to be provided two far end devices to utilize the tandem fieldbus to reach an agreement on to control the problem of same controlled device simultaneously, provide far-end original device/destination device to utilize virtual tandem fieldbus port, reach and use the long distance communication of tandem fieldbus agreement, so reach allow original device/destination device use single virtual tandem fieldbus port promptly with the technology effect of a plurality of destination devices/original device communication simultaneously.
Below continue second kind of operation of implementing aspect of the present invention to be described with the element schematic diagram that Fig. 7 A the present invention is carried according to the device in purpose control access/memory space.Shown in Fig. 7 A, fieldbus gateway 200d of the present invention contains bus port, primary scene 210, bus port, the secondary scene 240, the 3rd data processing module 271, the 4th data processing module 272, storage module 280 and access control module 290.Wherein, bus port, primary scene 210 and bus port, the secondary scene 240 are identical with bus port, primary scene 210 and bus port 240, the secondary scene among Fig. 3 A respectively, so repeat no more.
The 3rd data processing module 271 and the 4th data processing module 272 are all similar to first data processing module 221, second data processing module 222, same responsible the standardizing behavior of agreement of network fieldbus or the agreement of tandem fieldbus of handling, this part also as hereinbefore, so repeat no more.
Different with first data processing module 221 is, the 3rd data processing module 271/ the 4th data processing module 272 also is responsible for receiving the request data input instruction that access control module 280 is sent, request data input that the 3rd data processing module 271/ the 4th data processing module 272 is received instruction comprises reading order, read address, read project such as length, but the request data input that the present invention carried instruction is not as limit.The 3rd data processing module 271/ the 4th data processing module 272 also is responsible for receiving the data output order that access control module 290 is sent, the data output order that the 3rd data processing module 271/ the 4th data processing module 272 is received comprises write command, writes address, writes length and writes projects such as content, but the data output order that the present invention carried is not as limit.
The 3rd data processing module 271/ the 4th data processing module 272 also can be set up according to the data output order that receives and source address and/or purpose address and meet institute's fieldbus that uses order package that the data of standard writes of reaching an agreement on; And give bus port, 210/ secondary scene, bus port, primary scene 240 by the Application Program Interface corresponding with fieldbus data processing module in the bus port, 210/ secondary scene, bus port, the primary scene 240 order package that writes of giving information, make bus port 240,210/ secondary scene, bus port, primary scene that the order package that data writes is sent to original device/destination device.
The 3rd data processing module 271/ the 4th data processing module 272 can also be set up according to the request data input instruction that receives and source address and/or purpose address and meet institute's fieldbus that uses order package that the data of standard reads of reaching an agreement on; And give bus port, 210/ secondary scene, bus port, primary scene 240 by the give information order package that reads of the Application Program Interface corresponding to fieldbus data processing module at bus port, 210/ secondary scene, bus port, primary scene 240, make bus port 240,210/ secondary scene, bus port, primary scene that the order package that data reads is sent to original device/destination device.
The 3rd data processing module 271/ the 4th data processing module 272 also is responsible for responding the response packet that comprises target data that data reading order package is transmitted by obtaining original device/destination device with the fieldbus data processing module corresponding application program interface at bus port, 210/ secondary scene, bus port, primary scene 240, and after in by response packet, obtaining target data, target data is returned to access control module 290.
The 3rd data processing module 271/ the 4th data processing module 272 also is responsible for the data that comprises by obtaining that original device/destination device responds that data write command package transmitted with the fieldbus data processing module corresponding application program interface at bus port, 210/ secondary scene, bus port, primary scene 240, and to write the result be successfully or the response packet of the state value of failing, and after in by response packet, obtaining state value, state value is returned to access control module 290.
The 3rd data processing module 271/ the 4th data processing module 272 also is responsible for meeting institute's fieldbus that uses order package that the data of standard reads of reaching an agreement on by what obtain with the fieldbus data processing module corresponding application program interface at bus port, 210/ secondary scene, bus port, primary scene 240 that original device/destination device transmits, and by reading out the data reading order in the data reading order package.The data reading order that the 3rd data processing module 271/ the 4th data processing module 272 is read comprises projects such as access address, data length, reading order, but the data reading order that the present invention carried is not as limit.
The 3rd data processing module 271/ the 4th data processing module 272 also is responsible for according to received data reading order access control module 290 being sent request data output order, and receive the response data of the request data output that access control module 290 transmitted, and respond data and source address and/or purpose address according to this and set up and meet the reach an agreement on response packet of data reading order of standard of institute's fieldbus that uses, and provide this response packet to bus port, 210/ secondary scene, bus port, primary scene 240 by fieldbus data processing module corresponding application program interface with bus port, 210/ secondary scene, bus port, primary scene 240, make bus port, 210/ secondary scene, bus port, primary scene 240 that this response packet is sent to original device/destination device.
The 3rd data processing module 271/ the 4th data processing module 272 also is responsible for meeting institute's fieldbus that uses order package that the data of standard writes of reaching an agreement on by what obtain with the fieldbus data processing module corresponding application program interface at bus port, 210/ secondary scene, bus port, primary scene 240 that original device/destination device transmits, and by reading out the data write command in the data write command package.The data write command that the 3rd data processing module 271/ the 4th data processing module 272 is read comprises access address, data length, write command, writes projects such as data content, but the data write command that the present invention carried is not as limit.
The 3rd data processing module 271/ the 4th data processing module 272 also is responsible for according to received data write command access control module 290 being sent the data input instruction, and to receive data input result that access control module 290 transmitted be successfully or the state value of failing, and set up according to this state value and source address and/or purpose address and to meet the reach an agreement on response packet of data write command of standard of institute's fieldbus that uses, and provide this response packet to bus port, 210/ secondary scene, bus port, primary scene 240 by fieldbus data processing module corresponding application program interface with bus port, 210/ secondary scene, bus port, primary scene 240, make bus port, 210/ secondary scene, bus port, primary scene 240 that this response packet is sent to original device/destination device.
Whether response packet, data write command package or data reading order package that the 272 more responsible judgements of the 3rd data processing module 271/ the 4th data processing module are received be effective, if invalid response packet, data write command package or the data reading order package of then can abandoning.Generally speaking, whether the 3rd data processing module 271/ the 4th data processing module 272 can judge correctly whether response packet, data write command package or data reading order package bag be effective according to the form of response packet, data write command package or data reading order package, and whether effective and efficient manner is not as limit but the 3rd data processing module 271/ the 4th data processing module 272 is judged response packet, data write command package or data reading order package.
Storage module 280 is responsible for storing synchronously the target data of original device/destination device, and provides access control module 290 accesses.
Access control module 290 is responsible for sending request data input instruction to the 3rd data processing module 271/ the 4th data processing module 272, and the target data corresponding with request data input instruction that the 3rd data processing module 271/ the 4th data processing module 272 is read according to request data input instruction is stored in the storage module 280.The storage address in access control module 290 each device of meeting definition and the corresponding relation of the storage address in the storage module 280, so, access control module 290 just can be when the target data of original device or a certain storage address of destination device desire access, this storage address of access corresponds to the storage address in the storage module 280, in the present invention, the storage address in the storage module 280 is called " assigned address ".Generally speaking, access control module 290 can periodically send request data input instruction to the 3rd data processing module 271/ the 4th data processing module 272, so as to making storage module 280 stored target data and the target data in original device/destination device synchronous.
Access control module 290 is responsible for sending data output order to the three data processing modules 271/ the 4th data processing module 272, pass to original device/destination device so as to converting data write command package to, in the data output order, can comprise the data write command, write length, write content and the assigned address of the original device/destination device corresponding with writing address by the 3rd data processing module 271/ the 4th data processing module 272.Generally speaking, access control module 290 can periodically send data output order to the three data processing modules 271/ the 4th data processing module 272, so as to making storage module 280 stored target data and the target data in original device/destination device synchronous.
Access control module 290 also is responsible for according to the obtained data write command of the 3rd data processing module 271/ the 4th data processing module 272, is write address, writes length and write content, and target data is stored into assigned address corresponding with original device/destination device in the storage module 280.Generally speaking, original device/destination device can periodically send data write command package to the three data processing modules 271/ the 4th data processing module 272, so as to making storage module 280 stored target data and the target data in original device/destination device synchronous.
Access control module 290 also is responsible for according to obtained data reading order, data length and the purpose address of the 3rd data processing module 271/ the 4th data processing module 272, read target data in the assigned address corresponding to the storage module 280, and pass the target data that reads out back the 3rd data processing module 271/ the 4th data processing module 272 with original device/destination device.
In sum, the exchange of the target data of original device and destination device can be undertaken by following manner:
1. fieldbus gateway 200d periodically sends the data reading order to destination device/original device, so as to reading target data and being stored in the storage module 280 of fieldbus gateway 200d, simultaneously, original device/destination device periodically sends the data reading order to fieldbus gateway 200d, so as to reading the target data that is stored in the storage module 280.
2. destination device/original device periodically sends the data write command to fieldbus gateway 200d, so as to target data being stored in the storage module 280, simultaneously, original device/destination device periodically sends the data reading order to fieldbus gateway 200d, so as to reading the target data that is stored in the storage module 280.
3. original device/destination device periodically sends the data write command to fieldbus gateway 200d, so as to target data being stored in the storage module 280, simultaneously, fieldbus gateway 200d periodically sends the data write command to destination device/original device, so as to storage module 280 stored target datas are passed to destination device/original device.
4. fieldbus gateway 200d periodically sends the data reading order to destination device/original device, so as to reading target data and being stored in the storage module 280, simultaneously, fieldbus gateway 200d periodically sends the data write command to original device/destination device, so as to storage module 280 stored target datas are passed to original device/destination device.
Then explain orally operational devices of the present invention and method with the embodiment of above-mentioned first kind of mode again.It is example that present embodiment reads the target data that stores in the second tandem fieldbus devices 302 with second network equipment 102 by fieldbus gateway 200f, but the present invention is not as limit.Wherein, the signal of the element of fieldbus gateway 200f is shown in Fig. 7 B.On practice, above-mentioned other modes and present embodiment are all similar, the content of passive relation of master when difference is original device/destination device and fieldbus gateway 200d transmission data and the data that is transmitted.
At first, the access control module 290 of fieldbus gateway 200f can store predefined device memory address correspondence table, suppose in device memory address correspondence table, the address 0x3200 to 0x4000 of record storage module 280 stores the data of the address 0x0000 to 0x0E00 of first network equipment 101, and the address 0x3001 to 0x4000 of storage module 280 stores the data of the address 0x0001 to 0x1000 of the second tandem fieldbus devices 302, but the present invention is not as limit.
Access control module 290 can periodically send the request data input instruction of the target data that reads the second tandem fieldbus devices 302 to the second tandem fieldbus data processing module 222b (the 4th data processing module 272).Suppose that request data input instruction that access control module 290 sent comprises the order kind of " reading data ", the data length " 28 bit group (bytes) " of the start memory address " 0x0410 " of the target data desiring to read, the target data desiring to read.
After the second tandem fieldbus data processing module 222b receives the request data input instruction that fieldbus gateway 200f transmitted, the second tandem fieldbus data processing module 222b can set up data reading order package according to the purpose address of the request data input instruction and the second tandem fieldbus devices 302, and the second tandem fieldbus transport module corresponding application program interface among the use and the second tandem fieldbus port 240b, data reading order package is offered the second tandem fieldbus port 240b, make the second tandem fieldbus port 240b transmit the entity tandem fieldbus port of data reading order package to the second tandem fieldbus devices 302.
The second tandem fieldbus devices 302 is after receiving the data reading order package that reads target data, can begin to read out target data by the 0x0410 place in the memory, and after the target data that reads formed the response packet corresponding with data reading order package, pass response packet back fieldbus gateway 200f with the entity tandem fieldbus port that is connected with fieldbus gateway 200f.
After the second tandem fieldbus port 240b of bus gateway 200f received response packet at the scene, the second tandem fieldbus transport module among the second tandem fieldbus port 240b can offer the second tandem fieldbus data processing module 222b with response packet by corresponding Application Program Interface.
Then, the second tandem fieldbus data processing module 222b can pass target data back access control module 290, access control module 290 is after receiving target data, target data can be write in the storage module 280 assigned address corresponding with the second tandem fieldbus devices 302, because in the access control module 290 definition storage modules 280, address 0x3001 to 0x4000 stores the data of the address 0x0001 to 0x1000 of the second tandem fieldbus devices 302, therefore, in the present embodiment, target data can be stored on the position of 0x3410 to 0x342B.
In the present embodiment, because access control module 290 can periodically be issued to the data reading order that the second tandem fieldbus devices 302 reads target data to the second tandem fieldbus data processing module 222b, therefore, the second tandem fieldbus data processing module 222b can be constantly reads target data to the second tandem fieldbus devices 302, and upgrade the locational target data that is stored in 0x3410 to 0x342B by access control module 290, so, stored target data will be synchronous with the second tandem fieldbus devices 302 in the storage module 280.
When first network equipment 101 uses the 5th virtual tandem fieldbus ports that it produced and the first virtual tandem fieldbus port 210a on the fieldbus gateway 200f to carry out virtual tandem field bus communication, if desiring to read the target data of the 28bytes that is begun by 0x0410 in the second tandem fieldbus devices 302, first network equipment 101 writes among the 28bytes that begins by 0x0210, then first network equipment 101 can be by the 5th virtual tandem fieldbus port, and the data reading order package that will comprise the data reading order that reads target data is sent to the first virtual tandem fieldbus port 210a of fieldbus gateway 200f.
After bus gateway 200f receives the data reading order package that comprises the data reading order from socket 211 at the scene, the first virtual tandem fieldbus transport module of fieldbus gateway 200f can pass through corresponding Application Program Interface, the data reading order package that transmission is comprised the data reading order is given the first virtual tandem fieldbus data processing module 221a (in Fig. 7 A, being the 3rd data processing module 271).
Then, the first virtual tandem fieldbus data processing module 221a can be by capturing the data reading order in the data reading order package, and send request data output order and send the purpose address of data reading order, data length and required data to access control module 290.Suppose that in the present embodiment the data reading order comprises the initial address of storage " 0x0210 ", the data length " 28 bit group " of target data, but the data reading order that the present invention carried is not as limit.
Access control module 290 can be according in the request data output order, the initial storage address of the target data that the first virtual tandem fieldbus data processing module 221a is transmitted " 0x0210 " and the data length " 28 bit group " of target data, because in the access control module 290 definition storage modules 280, address 0x3200 to 0x4000 corresponds to the address 0x0000 to 0x0E00 of first network equipment 101, therefore, access control module 290 can by with initial storage address " 0x0210 " assigned address of corresponding address 0x3410 begins to read the target data of 28 bit groups, so, access control module 290 just can be read target data and transmit target data and give the first virtual tandem fieldbus data processing module 221a.
The first virtual tandem fieldbus data processing module 221a can set up response packet according to the target data that access control module 290 is transmitted, and by with the first virtual tandem fieldbus port 210a in the first virtual tandem fieldbus transport module corresponding application program interface, provide response packet to the first virtual tandem fieldbus port 210a, make the virtual tandem fieldbus port 210a that wins pass response packet back first network equipment 101, so, first network equipment 101 just can be obtained the target data that the second tandem fieldbus devices 302 is write down by fieldbus gateway 200f.
In sum, the present invention is with after difference between the prior art is that the fieldbus gateway is by the virtual tandem fieldbus port receiving target data that is connected with original device or destination device as can be known, after the fieldbus agreement and fieldbus port of ordering package to judge that the transmission target data need use, comprise the technological means of the package of data with this fieldbus port transmission of judging to destination device or original device, can solve by this technological means that prior art is existing can't to be provided two far end devices to utilize the tandem fieldbus to reach an agreement on to control the problem of same controlled device simultaneously, provide far-end original device/destination device to utilize virtual tandem fieldbus port, reach and use the long distance communication of tandem fieldbus agreement, so reach allow original device/destination device use single virtual tandem fieldbus port promptly with the technology effect of a plurality of destination devices/original device communication simultaneously.
Moreover the data transmission method at the virtual tandem fieldbus of use of the present invention port can be implemented in the combination of hardware, software or hardware and software.
Though execution mode disclosed in this invention as above, only described content is not in order to direct qualification scope of patent protection of the present invention.Any persons of ordinary skill in the technical field of the present invention under the prerequisite that does not break away from spirit and scope disclosed in this invention, does a little change retouching to reaching of enforcement of the present invention in form on the details, all belong to scope of patent protection of the present invention.Scope of patent protection of the present invention, still must with appending claims the person of being defined be as the criterion.

Claims (17)

1. data transmission method that uses virtual tandem fieldbus port, system is applied to a fieldbus gateway (Fieldbus gateway), this fieldbus gateway comprises bus port, at least one primary scene and bus port, at least one secondary scene, this bus port, primary scene and bus port, the secondary scene have at least one to be virtual tandem fieldbus port (virtual serial Fieldbus port), it is characterized in that this method comprises the following step at least:
Connect at least one original device and this fieldbus gateway with this bus port, primary scene;
Connect this fieldbus gateway and at least one destination device with this bus port, secondary scene respectively;
This original device transmits by this bus port, primary scene and comprises a package of a target data to this fieldbus gateway;
This fieldbus gateway is selected the bus agreement of at least one secondary scene and corresponding at least one this bus port, secondary scene according to this package;
After this fieldbus gateway judges that the employed fieldbus agreement of this bus port, secondary scene and this bus port, primary scene is different, change this package and be this bus port, secondary scene employed fieldbus package form respectively; And
This fieldbus gateway transmits this package to this destination device respectively by this bus port, secondary scene respectively.
2. the data transmission method at the virtual tandem fieldbus of use as claimed in claim 1 port, it is characterized in that, this method in this fieldbus gateway select according to this package respectively the step at this bus port, secondary scene be this fieldbus gateway by this package in acquisition one a purpose address and/or a source address, and according to this purpose address and/or should select the respectively step at this bus port, secondary scene by the source address.
3. the data transmission method at the virtual tandem fieldbus of use as claimed in claim 2 port, it is characterized in that, this method in this fieldbus gateway by this package in the acquisition this purpose address and/or should the source address step before, or in this fieldbus gateway according to this purpose address and/or before should the source address selecting the step at this bus port, secondary scene respectively, after more comprising this fieldbus gateway and judging that this package is invalid, abandon the step of this package.
4. a fieldbus gateway that uses virtual tandem fieldbus port is that a target data is transferred at least one destination device by at least one original device, it is characterized in that this fieldbus gateway comprises at least:
Bus port, at least one primary scene is connected with this original device respectively, and respectively this bus port, primary scene is one of them of network fieldbus port, virtual tandem fieldbus port or entity tandem fieldbus port;
Bus port, at least one secondary scene, be connected with this destination device respectively respectively, respectively this bus port, secondary scene is one of them of network fieldbus port, virtual tandem fieldbus port and entity tandem fieldbus port, and one of them is virtual tandem fieldbus port at least this bus port, primary scene and this bus port, secondary scene;
At least one first data processing module is in order to handle corresponding fieldbus agreement, so as to receiving the package that respectively this original device transmitted by corresponding respectively this bus port, primary scene;
One path selection module is in order to select the bus agreement of at least one secondary scene and at least one this bus port, secondary scene according to this package;
One package format converting module is used to this bus port, primary scene and the employed fieldbus agreement in this bus port, secondary scene respectively not simultaneously, changes this package and is this bus port, secondary scene employed fieldbus package form respectively; And
At least one second data processing module in order to handling the agreement of corresponding fieldbus, and transmits this package to this destination device respectively by this bus port, secondary scene respectively.
5. the fieldbus gateway at the virtual tandem fieldbus of use as claimed in claim 4 port is characterized in that, bus port, primary scene or bus port, the secondary scene more comprise:
One socket is in order to be connected with this original device or this destination device;
One fieldbus transportation simulator unit is in order to receive or to transmit this target data by this socket;
One fieldbus data and physics signal analogue unit are in order to receive or to transmit this target data by this fieldbus transportation simulator unit; And
One application command processing unit is in order to read this target data that this fieldbus data and physics signal analogue unit receive or to export this target data to fieldbus data and physics signal analogue unit.
6. the fieldbus gateway at the virtual tandem fieldbus of use as claimed in claim 5 port, it is characterized in that, this fieldbus data and physics signal analogue unit are more in order to set a pseudo-entity interface, and provide this pseudo-entity interface interface parameter setting with read, and in order to produce and to handle a physics signal and a state value, so as to simulated field bus physical layer, this fieldbus transportation simulator unit is more in order to the line according to this pseudo-entity interface foundation and keyholed back plate and this original device or this destination device, and receive or transmit this physics signal and this state value, so as to the transport behavior of simulation entity fieldbus transmission, this application command processing unit is more in order to set or to read this interface parameter and this state value by this fieldbus data and physics signal analogue unit.
7. the fieldbus gateway at the virtual tandem fieldbus of use as claimed in claim 5 port, it is characterized in that, this bus port, primary scene or this bus port, secondary scene more comprise fieldbus hyperlink information layer analogue unit, are encapsulated as the treatment mechanism of the hyperlink information layer that a fieldbus package and simulation entity Fieldbus Control device provided in order to this target data that this application command processing unit is read.
8. the fieldbus gateway at the virtual tandem fieldbus of use as claimed in claim 4 port, it is characterized in that, this first data processing module more in order to judge whether this package is effective, if this first data processing module judges that this package is invalid, then abandons this package.
9. the fieldbus gateway at the virtual tandem fieldbus of use as claimed in claim 4 port, it is characterized in that, this path selection module is more in order to judge whether mistake of this purpose address and/or this source address, this first data processing module more is used to this path selection module when judging this purpose address and/or this source address mistake, abandons this package.
10. a fieldbus gateway that uses virtual tandem fieldbus port is that at least one first device read/write, one target data is provided, and this target data and at least one second device is characterized in that this fieldbus gateway comprises at least synchronously:
One storage module;
Bus port, at least one primary scene, with respectively this second the device/respectively this first device is connected;
Bus port, at least one secondary scene, with respectively this first device/respectively this second device is connected, respectively this bus port, primary scene reaches respectively this kind line port, secondary scene one of them is virtual tandem fieldbus port at least;
At least one the 3rd data processing module is in order to periodically to receive this target data by this bus port, primary scene respectively;
One access control module, in order to will be respectively this target data of being received of the 3rd data processing module be stored in this storage module and the corresponding assigned address of this second device of this first device respectively/respectively, reach with reading this target data down to this assigned address; And
At least one the 4th data processing module is in order to periodically to transmit this target data that this access control module is read by this bus port, secondary scene respectively.
11. the fieldbus gateway at the virtual tandem fieldbus of use as claimed in claim 10 port, it is characterized in that, the 3rd data processing module writes in the package by this target data system data that is contained in that this bus port, primary scene receives, and this target data system data that is contained in that the 4th data processing module transmits by this bus port, secondary scene reads in the response packet.
12. the fieldbus gateway at the virtual tandem fieldbus of use as claimed in claim 10 port, it is characterized in that, this access control module is more in order to periodically to send a request data input instruction, the 3rd data processing module more comprises one of this request data input instruction data and reads package to this first device or this second device in order to transmit by this bus port, primary scene, and receives this first device or this second and install this target data of being passed back.
13. the fieldbus gateway at the virtual tandem fieldbus of use as claimed in claim 10 port, it is characterized in that, this access control module more transmits one of this target data data output order in order to periodically to send, and the 4th data processing module more writes package to this first device or this second device in order to comprise one of this data output order and this target data data by this bus port, secondary scene transmission.
14. the fieldbus gateway at the virtual tandem fieldbus of use as claimed in claim 10 port is characterized in that, bus port, primary scene or bus port, the secondary scene more comprise:
One socket is in order to be connected with this first device or this second device;
One fieldbus transportation simulator unit is in order to pass through this this target data of socket reception/transmission;
One fieldbus data and physics signal analogue unit are in order to receive or to transmit this target data by this fieldbus transportation simulator unit; And
One application command processing unit reads this target data of this fieldbus data and the reception of physics signal analogue unit or exports this target data to fieldbus data and physics signal analogue unit in order to the instruction that produces according to this access control module.
15. the fieldbus gateway at the virtual tandem fieldbus of use as claimed in claim 14 port, it is characterized in that, this fieldbus data and physics signal analogue unit are more in order to set a pseudo-entity interface, and provide this pseudo-entity interface interface parameter setting with read, and in order to produce and to handle a physics signal and a state value, so as to simulated field bus physical layer, this fieldbus transportation simulator unit is more in order to the line according to this pseudo-entity interface foundation and keyholed back plate and this original device or this destination device, and receive or transmit this physics signal and this state value, so as to the transport behavior of simulation entity fieldbus transmission, this application command processing unit is more in order to set or to read this interface parameter and this state value by this fieldbus data and physics signal analogue unit.
16. the fieldbus gateway at the virtual tandem fieldbus of use as claimed in claim 14 port, it is characterized in that, this bus port, primary scene or this bus port, secondary scene more comprise fieldbus hyperlink information layer analogue unit, are encapsulated as the treatment mechanism of the hyperlink information layer that a fieldbus package and simulation entity Fieldbus Control device provided in order to this target data that this application command processing unit is read.
17. the fieldbus gateway at the virtual tandem fieldbus of use as claimed in claim 10 port, it is characterized in that, the 4th data processing module is more in order to judge that by this bus port, secondary scene current this target data that whether can transmit is to this first device or this second device, can't transmit this target data if the judgement of the 4th data processing module is current, then will behind a special time, transmit this target data by this bus port, secondary scene once more.
CN2010101894198A 2010-05-21 2010-05-21 Field bus gateway using virtual serial field bus port and data transfer method thereof Pending CN102255784A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101894198A CN102255784A (en) 2010-05-21 2010-05-21 Field bus gateway using virtual serial field bus port and data transfer method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101894198A CN102255784A (en) 2010-05-21 2010-05-21 Field bus gateway using virtual serial field bus port and data transfer method thereof

Publications (1)

Publication Number Publication Date
CN102255784A true CN102255784A (en) 2011-11-23

Family

ID=44982789

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101894198A Pending CN102255784A (en) 2010-05-21 2010-05-21 Field bus gateway using virtual serial field bus port and data transfer method thereof

Country Status (1)

Country Link
CN (1) CN102255784A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104135533A (en) * 2014-08-13 2014-11-05 北京金鸿泰科技有限公司 System and method of transmitting industrial data
TWI666959B (en) * 2017-05-31 2019-07-21 艾訊股份有限公司 Control system based upon industrial communication protocol
TWI817831B (en) * 2022-11-16 2023-10-01 旺玖科技股份有限公司 Serial-bus system having dynamic address table and its method for controlling the same

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1545263A (en) * 2003-11-20 2004-11-10 上海交通大学 Realtime monitoring system for distributed numerically-controlled machine tool in workshop local area network
US20050228509A1 (en) * 2004-04-07 2005-10-13 Robert James System, device, and method for adaptively providing a fieldbus link
CN1983998A (en) * 2005-12-13 2007-06-20 上海三菱电梯有限公司 Serial telecommunication server for monitoring equipment state by Ethernet
CN101414177A (en) * 2008-10-17 2009-04-22 上海纳杰电气成套有限公司 System for converting serial port to Ethernet based on field bus data acquisition
CN201230321Y (en) * 2008-06-13 2009-04-29 深圳市信义科技有限公司 Serial port communication adaptor
CN101425985A (en) * 2007-11-02 2009-05-06 北京数码大方科技有限公司 Data conversion apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1545263A (en) * 2003-11-20 2004-11-10 上海交通大学 Realtime monitoring system for distributed numerically-controlled machine tool in workshop local area network
US20050228509A1 (en) * 2004-04-07 2005-10-13 Robert James System, device, and method for adaptively providing a fieldbus link
CN1983998A (en) * 2005-12-13 2007-06-20 上海三菱电梯有限公司 Serial telecommunication server for monitoring equipment state by Ethernet
CN101425985A (en) * 2007-11-02 2009-05-06 北京数码大方科技有限公司 Data conversion apparatus
CN201230321Y (en) * 2008-06-13 2009-04-29 深圳市信义科技有限公司 Serial port communication adaptor
CN101414177A (en) * 2008-10-17 2009-04-22 上海纳杰电气成套有限公司 System for converting serial port to Ethernet based on field bus data acquisition

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
THRAMBOULIDIS, K.: "《Development of distributed industrial control applications: the CORFU framework》", 《FACTORY COMMUNICATION SYSTEMS, 2002. 4TH IEEE》, 28 August 2002 (2002-08-28), pages 39 - 46 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104135533A (en) * 2014-08-13 2014-11-05 北京金鸿泰科技有限公司 System and method of transmitting industrial data
TWI666959B (en) * 2017-05-31 2019-07-21 艾訊股份有限公司 Control system based upon industrial communication protocol
TWI817831B (en) * 2022-11-16 2023-10-01 旺玖科技股份有限公司 Serial-bus system having dynamic address table and its method for controlling the same

Similar Documents

Publication Publication Date Title
US8990444B2 (en) Fieldbus gateway using virtual serial fieldbus port and data transmission method thereof
US9667699B2 (en) Method for transmitting data via a CANopen bus
EP1097409B1 (en) Internet utility interconnect method
CN108847979B (en) Self-adaptive configuration system and method based on SCADA
CN101111807B (en) Control system having a plurality of spatially distributed stations, and method for transmitting data in such a control system
US10320584B2 (en) Device access by means of a generic communication driver
CN101454763A (en) Gateway for data transfer between serial buses
Jasperneite et al. PROFINET: an integration platform for heterogeneous industrial communication systems
CN107222458A (en) A kind of data processing method and system of the BACnet protocol stacks of compatible Modbus agreements
CN101013315A (en) General numerical control system based on full digital ring bus
CN105652785A (en) PLC (programmable logic controller) communication module based on IEC (international electrotechnical commission) 60870-5-104 telecontrol protocol
CN102546342A (en) Double-ring network system, method for determining transmission priority in double-ring network and transmission station device
CN107547475A (en) A kind of data processing equipment and its system for supporting more communication protocol conversions
CN102255784A (en) Field bus gateway using virtual serial field bus port and data transfer method thereof
CN114285695A (en) Communication method, device, equipment, system and storage medium
CN114095303B (en) Communication device, data transmission method and electronic device
JP2006171833A (en) Plc data exchange system and method for controlling it
CN103001839A (en) Automatic configuration setting system, automatic configuration setting gateway and automatic configuration setting method by means of command learning
KR100288158B1 (en) Fieldbus communication system and fieldbus communication control method over standard LAN
CN201514569U (en) Nonstandard-configuration PLC remote control system
TWI416907B (en) Field bus gateway using virtual serial filed bus port and data transmission method thereof
CN116235485B (en) Network for data transmission
Costa et al. Industrial network platform for monitoring and control of automated manufacturing systems
EP1610498A1 (en) Synchronization and communication protocol for remote process
KR20240016719A (en) Multi input/output device management method and apparatus using smart repeater

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20111123