CN114002994B - PLC-based system and networking and communication method thereof - Google Patents

PLC-based system and networking and communication method thereof Download PDF

Info

Publication number
CN114002994B
CN114002994B CN202111637529.0A CN202111637529A CN114002994B CN 114002994 B CN114002994 B CN 114002994B CN 202111637529 A CN202111637529 A CN 202111637529A CN 114002994 B CN114002994 B CN 114002994B
Authority
CN
China
Prior art keywords
module
auxiliary communication
communication line
bus
processor module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111637529.0A
Other languages
Chinese (zh)
Other versions
CN114002994A (en
Inventor
徐大江
方毅然
梁恩泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Phoenix Nanjing Intelligent Manufacturing Technology Engineering Co ltd
Original Assignee
Phoenix Nanjing Intelligent Manufacturing Technology Engineering 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 Phoenix Nanjing Intelligent Manufacturing Technology Engineering Co ltd filed Critical Phoenix Nanjing Intelligent Manufacturing Technology Engineering Co ltd
Priority to CN202111637529.0A priority Critical patent/CN114002994B/en
Publication of CN114002994A publication Critical patent/CN114002994A/en
Application granted granted Critical
Publication of CN114002994B publication Critical patent/CN114002994B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/054Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/11Plc I-O input output
    • G05B2219/1167Pulse wave output

Abstract

The invention relates to a PLC-based system, comprising: a processor module; IO modules with the number of N; a bus configured to connect the processor module and the IO module according to a bus-type topology; and a first auxiliary communication line and a second auxiliary communication line, when N is 1: the first auxiliary communication line is configured to connect the processor module with the IO module; the second auxiliary communication line is configured to connect the IO module with the processor module; when N is greater than or equal to 2: the first auxiliary communication line is configured to connect the processor module with a first IO module of the plurality of IO modules, and sequentially connect the first IO module with the remaining N-1 IO modules of the plurality of IO modules; the second auxiliary communication line is configured to connect an nth IO module of the plurality of IO modules with the processor module.

Description

PLC-based system and networking and communication method thereof
Technical Field
The present application relates to the field of automation control technologies, and more particularly, to a PLC-based system and networking and communication methods thereof.
Background
A Programmable Logic Controller (PLC) is a digital arithmetic operation electronic system designed specifically for use in an industrial environment. It uses a programmable memory, in which the instructions for implementing logical operation, sequence control, timing, counting and arithmetic operation are stored, and utilizes digital or analog input and output to control various mechanical equipments or production processes.
In practical applications, the PLC is typically networked with a plurality of extended IO modules via a bus (e.g., a half-duplex bus). In this case, the addresses of the individual IO modules typically need to be set manually before bus networking. For example, fig. 1 shows a schematic diagram 100 of a PLC networking with a plurality of IO modules through a bus in the prior art. By way of example, FIG. 1 shows four IO modules 204, 206, 208, and 210 having addresses, e.g., 1, 2, 3, and 4, respectively, which may be set using software or a dial switch, generally. However, manually setting the address of the IO module is time consuming and error prone.
After the networking of the bus 212 is completed, the CPU module 202 of the PLC generally transmits a query message in a polling manner, and each IO module passively responds. However, since the rate of the serial port is not high, this method wastes a lot of time for sending the query message, thereby resulting in a long whole bus cycle.
Disclosure of Invention
The invention relates to a PLC-based system, comprising: a processor module; IO modules with the number of N; a bus configured to connect the processor module and the IO module according to a bus-type topology; and a first auxiliary communication line and a second auxiliary communication line, the first auxiliary communication line configured to connect the processor module with the IO module when N is 1; the second auxiliary communication line is configured to connect the IO module with the processor module; when the N is greater than or equal to 2, the first auxiliary communication line is configured to connect the processor module with a first IO module of a plurality of IO modules, and connect the first IO module with the remaining N-1 IO modules of the plurality of IO modules in sequence; the second auxiliary communication line is configured to connect an Nth IO module of the plurality of IO modules with the processor module.
The PLC-based system as described above, the bus comprising a half-duplex bus.
The PLC-based system as described above, the bus comprising an RS485 bus.
As with the PLC-based system described above, the first auxiliary communication line and the second auxiliary communication line form a closed communication loop.
The PLC-based system as described above, the first auxiliary communication line and the second auxiliary communication line are configured to transmit a unidirectional auxiliary communication signal, the auxiliary communication signal comprising a pulse.
The PLC-based system as described above, the IO module comprising a timer, the IO module configured to automatically release the bus when a timed time set by the timer expires.
The PLC-based system as described above, the processor module including a timer to time a bus cycle, the processor module configured to determine whether the bus cycle has timed out based on the time of the time.
The PLC-based system as described above, the processor module configured to: broadcasting an address configuration command via the bus; and transmitting an auxiliary address configuration signal to the connected IO module via the first auxiliary communication line; the IO module is configured to: receiving an address configuration command via the bus; and configuring its own address according to an address value included in an address configuration command received via the bus when an auxiliary address configuration signal is received via the first auxiliary communication line.
In the PLC-based system, the IO module is further configured to send an address configuration command including a configured self address value +1 to the bus after configuring the self address; and transmitting an auxiliary address configuration signal to a connected next IO module via the first auxiliary communication line or to the connected processor module via the second auxiliary communication line.
The PLC-based system as described above, the processor module being further configured to: and after receiving the address configuration command through the bus and receiving the auxiliary address configuration signal through the second auxiliary communication line, determining that networking is finished.
The PLC-based system as described above, the processor module configured to: broadcasting a query command via the bus; and transmitting an auxiliary communication signal to the connected IO module via the first auxiliary communication line; the IO module is configured to send corresponding data to the processor module via the bus when the broadcast query command is received via the bus and the auxiliary communication signal is received via the first auxiliary communication line; and transmitting the auxiliary communication signal to the connected next IO module via the first auxiliary communication line or to the connected processor module via the second auxiliary communication line.
The PLC-based system as described above, the processor module being further configured to: determining that an inquiry cycle is complete upon receiving the data via the bus and the auxiliary communication signal via the second auxiliary communication line.
The invention also relates to a networking method based on the PLC, which comprises the following steps: broadcasting an address configuration command to IO modules with the number of N connected to a bus by a processor module of the PLC through a bus, wherein when the number of N is 1, the processor module is connected with the IO modules through a first auxiliary communication line, and the IO modules are further connected with the processor module through a second auxiliary communication line; when the N is more than or equal to 2, the processor module is connected with a first IO module in the plurality of IO modules through a first auxiliary communication line, the first IO module is sequentially connected with the rest N-1 IO modules in the plurality of IO modules through the first auxiliary communication line, and an Nth IO module in the plurality of IO modules is connected with the processor module through a second auxiliary communication line; sending, by a processor module of the PLC, an auxiliary address configuration signal to a connected IO module via the first auxiliary communication line; receiving, by the IO module, the address configuration command via the bus; and configuring its own address according to an address value included in the address configuration command received via the bus when the auxiliary address configuration signal is received via the first auxiliary communication line; sending an address configuration command including the configured self address value +1 to the bus; and transmitting the auxiliary address configuration signal to the connected next IO module via the first auxiliary communication line or to the connected processor module via the second auxiliary communication line.
The PLC-based networking method as described above, the method further comprising: and determining that networking is finished by the processor module after receiving the address configuration command through the bus and receiving the auxiliary address configuration signal through the second auxiliary communication line.
The invention also relates to a PLC-based communication method, which comprises the following steps: broadcasting query commands to IO modules with the number of N connected to a bus by a processor module of the PLC through a bus, wherein when the number of N is 1, the processor module is connected with the IO modules through a first auxiliary communication line, and the IO modules are further connected with the processor module through a second auxiliary communication line; when the N is more than or equal to 2, the processor module is connected with a first IO module in the plurality of IO modules through a first auxiliary communication line, the first IO module is sequentially connected with the rest N-1 IO modules in the plurality of IO modules through the first auxiliary communication line, and an Nth IO module in the plurality of IO modules is connected with the processor module through a second auxiliary communication line; sending, by the processor module, an auxiliary communication signal to the connected IO module via the first auxiliary communication line; receiving, by an IO module, the query command via the bus; and when receiving the auxiliary address configuration signal via the first auxiliary communication line, sending corresponding data to the processor module via the bus, and sending an auxiliary communication signal to the connected next IO module via the first auxiliary communication line or to the connected processor module via the second auxiliary communication line.
The PLC-based communication method as described above, the method further comprising: determining, by the processor module, that an inquiry cycle is complete upon receiving the data via the bus and the auxiliary communication signal via the second auxiliary communication line.
Drawings
To further clarify embodiments of the present invention, a more particular description of embodiments of the present invention will be rendered by reference to the appended drawings. It is appreciated that these drawings depict only typical embodiments of the invention and are therefore not to be considered limiting of its scope as claimed.
Fig. 1 shows a schematic structural diagram 100 of a PLC networking with a plurality of IO modules through a bus in the prior art.
Fig. 2 shows a schematic diagram 200 of a PLC-based system in which a PLC is networked with a plurality of IO modules via a bus and an auxiliary communication line according to an embodiment of the present invention.
Fig. 3 shows a flow diagram of a method of networking using a PLC-based system, according to an embodiment of the invention.
Fig. 4 shows a flowchart of a method of communicating using a PLC-based system, according to an embodiment of the present invention.
Detailed Description
The following detailed description refers to the accompanying drawings. The drawings show, by way of illustration, specific embodiments in which the claimed subject matter may be practiced. It is to be understood that the following detailed description is intended for purposes of illustration, and is not to be construed as limiting the invention; those skilled in the art, having the benefit of this disclosure, may effect numerous modifications thereto and changes may be made without departing from the scope and spirit of the claimed subject matter.
In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of various described embodiments. It will be apparent, however, to one skilled in the art that the various embodiments described may be practiced without these specific details. Unless defined otherwise, technical and scientific terms used herein shall have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs.
The terms "first," "second," and the like in the description and in the claims of the present application do not denote any order, quantity, or importance, but rather are used to distinguish one element from another. An embodiment is an example implementation or example. Reference in the specification to "an embodiment," "one embodiment," "some embodiments," "various embodiments," or "other embodiments" means that a particular feature, structure, or characteristic described in connection with the embodiments is included in at least some embodiments, but not necessarily all embodiments, of the technology. The various appearances "an embodiment," "one embodiment," or "some embodiments" are not necessarily all referring to the same embodiments. Elements or aspects from one embodiment may be combined with elements or aspects of another embodiment.
The terms "connected" or "coupled" are defined herein as connected, although not necessarily directly, between two entities and may include indirect connections made through other intermediate nodes or devices.
The terms "comprising," "having," "including," and "containing" are used herein as open-ended linking verbs. Thus, a method or apparatus "comprising," "having," "including," or "containing" one or more steps or components means: the method or apparatus has those one or more steps or components, but not only those one or more steps or components, but may also include other one or more steps or components not mentioned herein.
The invention will be further described with reference to the accompanying drawings.
Fig. 2 shows a schematic diagram 200 of a PLC-based system in which a PLC is networked with a plurality of IO modules via a bus and auxiliary communication lines, according to an embodiment of the invention. The PLC may include a CPU module 202. For convenience of description, this document exemplifies four IO modules 204, 206, 208, and 210 as shown in fig. 2. However, it is understood that embodiments of the invention may include any other number of IO modules. For example, the embodiment of the present invention may include only one IO module, and the embodiment of the present invention may also include two or more IO modules. The bus 212 is configured to connect the CPU module 202 and the plurality of IO modules 204, 206, 208, and 210 according to a bus-type topology. In one embodiment, the bus may comprise a half-duplex bus. In a preferred embodiment, the bus comprises an RS485 bus. In addition, the networking and communication structure and method of the PLC-based system according to the present application may also be used for other buses, such as a CAN bus.
A PLC-based system 200 according to an embodiment of the present invention may include an additional pair of auxiliary communication lines, a first auxiliary communication line 214 and a second auxiliary communication line 216. The first auxiliary communication line 214 is configured to connect the CPU module 202 with a first IO module 204 of the four IO modules 204, 206, 208, and 210, and to connect the first IO module 204 with the remaining 3 IO modules 206, 208, and 210 in sequence. That is, the first auxiliary communication line 214 may include a plurality of lines 2142, 2144, 2146, 2148, and the first line 2142 is configured to connect the CPU module 202 with the first IO module 204, so that the CPU module 202 transmits signals to the first IO module 204; the second line 2144 is configured to connect the first IO module 204 with the second IO module 206 for the first IO module 204 to transmit a signal to the second IO module 206; the third wire 2146 is configured to connect the second IO module 206 with the third IO module 208 for the second IO module 206 to transmit a signal to the third IO module 208; the fourth line 2148 is configured to connect the third IO module 208 with the fourth IO module 210 for the third IO module 208 to transmit signals to the fourth IO module 210.
The PLC-based system 200 according to an embodiment of the present invention may further include a second auxiliary communication line 216. The second auxiliary communication line 216 is configured to connect the fourth IO module 210 with the CPU module 202, so that the fourth IO module 210 transmits signals to the CPU module 202.
In case the system 200 comprises only one IO module, the first auxiliary communication line 214 may be configured for connecting the CPU module 202 with this IO module for the CPU module 202 to transmit signals to this IO module. The second auxiliary communication line 216 may be configured to connect the IO module with the CPU module 202 for the IO module to transmit signals to the CPU module 202.
In embodiments of the present invention, the signals transmitted by the first auxiliary communication line 214 and the second auxiliary communication line 216 may include auxiliary communication signals. The first auxiliary communication line 214 and the second auxiliary communication line 216 may be configured to transmit unidirectional auxiliary communication signals. The first auxiliary communication line 214 and the second auxiliary communication line 216 may form a closed communication loop. In a preferred embodiment, the auxiliary communication signal comprises a pulsed signal. By using the first auxiliary communication line 214 and the second auxiliary communication line 216, the automatic allocation of the IO module address can be completed, and meanwhile, a large amount of query message transmission is reduced, thereby reducing the bus communication period and improving the communication efficiency of the system, as described in more detail below.
Fig. 3 shows a flow diagram 300 of a method for networking using a PLC-based system, in accordance with an embodiment of the present invention. At step 302, the CPU module 202 may broadcast an address configuration command, for example, over the bus 212. The address configuration command informs all the IO modules of entering the state of the module address, and the internal state machine of the IO module should enter the address configuration state.
At step 304, the CPU module 202 may send a message with address 1, for example, over the bus 212. The message indicates the address value of the module currently to be assigned, e.g., the address value is 1. Other field information of the message and the relative position of each other may be set as required, which is not limited by the present invention.
In step 306, the CPU module 202 may send an auxiliary address configuration signal through the first line 2142 of the first auxiliary communication line 214. As described above, the auxiliary communication signal (e.g., the auxiliary address configuration signal herein) transmitted through the first auxiliary communication line 214 may be a pulse.
In step 308, the first IO module 204 may configure its own address according to an address value (e.g., 1) included in the address configuration command received via the bus 212, for example, configure its own address value to 1, when receiving an address configuration command (including receiving a message that an address value to be configured is 1) from the CPU via the bus and receiving an auxiliary address configuration signal via the first line 2142 of the first auxiliary communication line 214. As mentioned above, the auxiliary address configuration signal may be a pulse. Accordingly, the first IO module 204 may detect the auxiliary address configuration signal by detecting a rising edge (e.g., high level, which may have a value of 1) of the pulse.
At step 310, the first IO module 204 may send an address configuration command including the configured self address value +1 to the bus 212. For example, the first IO module 204 may send an address configuration command including an address value of 2 to the bus 212. The address configuration command informs other modules on the bus 212 (including the CPU module and other IO modules) that an IO module with an address of 2 is to be configured.
In step 312, the first IO module 204 may send an auxiliary address configuration signal to the connected second IO module 206 through the second line 2144 of the first auxiliary communication line 214.
At step 314, the second IO module 206 may configure its address according to the address value (e.g., 2) included in the address configuration command received via the bus 212, for example, configure its address value to 2, when receiving the address configuration command (e.g., including address value 2) issued by the first IO module via the bus 212 and receiving the auxiliary address configuration signal via the second line 2144 of the first auxiliary communication line 214. As mentioned above, the auxiliary address configuration signal may be a pulse. Accordingly, the second IO module 206 may detect the auxiliary address configuration signal by detecting a rising edge (e.g., high level, which may have a value of 1) of the pulse.
In steps 316 and 318, the second IO module 206 may perform similar operations as the first IO module. That is, in step 316, the second IO module 206 may send an address configuration command including the configured own address value +1 to the bus 212. For example, the second IO module 206 may send an address configuration command including an address value of 3 to the bus 212. The address configuration command informs other modules on the bus 212 (including the CPU module and other IO modules) that an IO module with an address of 3 is to be configured. At step 318, the second IO module 206 may send an auxiliary address configuration signal to the connected third IO module 208 via the third line 2146 of the first auxiliary communication line 214.
At step 320, the third IO module 208 may perform operations similar to the first IO module 204 and the second IO module 206, which are not described herein again.
At step 322, the fourth IO module 210 may perform similar operations as the first IO module 204, the second IO module 206, and the third IO module 208. The difference from the previous IO module is that, when sending the auxiliary address configuration signal, the fourth IO module 210 sends the auxiliary address configuration signal to the connected CPU module 202 through the second auxiliary communication line 216.
At step 324, the CPU module 202 may determine that networking is complete after receiving the address configuration command (including the address value of 5) sent by the fourth IO module 210 via the bus 212 and receiving the assisted address configuration signal sent by the fourth IO module 210 via the second auxiliary communication line 216.
Therefore, the PLC-based system and the networking method can complete automatic allocation of a plurality of IO module addresses.
Further, after networking is completed, the CPU module 202 may determine how many IO modules (address value 5 minus 1) are on the bus 212 in total. In addition, the CPU module 202 may confirm the type or address of the corresponding IO through a communication packet specifying the address.
Fig. 4 shows a flow diagram 400 of a method for communicating using a PLC-based system, in accordance with an embodiment of the present invention. As a non-limiting example, the communication flow 400 shown in fig. 4 may be performed after networking is complete.
At step 402, a query command may be broadcast by the CPU module 202 via the bus 212 to the four IO modules 204, 206, 208 and 210 accessed on the bus 212. The query command may include a command to collect data for all IO modules on the bus 212.
In step 404, an auxiliary communication signal is sent by the CPU module 202 to the connected first IO module 204 via the first auxiliary communication line 214. Similarly, the auxiliary communication signal may have the pulse form described above.
At step 406, the first IO module 204 may receive the broadcast query command through the bus 212 and receive the auxiliary communication signal through the first auxiliary communication line 214, so as to respond, i.e., the first IO module 204 may transmit corresponding data to the CPU module 202 via the bus 212. As one example and not by way of limitation, the data may include status data of IO immunity.
At step 408, the first IO module 204 may send an auxiliary communication signal to the connected second IO module 206 via the first auxiliary communication line 214.
Similarly, in steps 410 and 412, when an auxiliary communication is received by each of the second IO module 206 and the third IO module 210 via the first auxiliary communication line 214, respectively, corresponding data is transmitted to the CPU module 202 through the bus 212, and an auxiliary communication signal is transmitted to the next IO module connected through the first auxiliary communication line 214.
In step 414, when the fourth IO module 210 receives the auxiliary communication signal via the first auxiliary communication line 214, the fourth IO module 210 may transmit corresponding data to the CPU module 202 via the bus 212 and transmit the auxiliary communication signal to the connected CPU module via the second auxiliary communication line 216.
In step 416, the CPU 212 determines that the polling period is completed after receiving the data transmitted by the fourth IO module 210 via the bus 212 and receiving the auxiliary communication signal transmitted by the fourth IO module 210 via the second auxiliary communication line 216.
Therefore, the system and the communication method based on the PLC avoid that the CPU sends the query command to each IO module independently through the bus, thereby reducing the transmission of a large amount of query messages through the bus, avoiding the waste of bus communication bandwidth, reducing bus communication time and improving bus communication efficiency.
In further embodiments of the present invention, each IO module may further include a timer (not shown). Each IO module may be configured to automatically release the bus when the timer-set timing time expires, thereby avoiding a situation in which a certain IO module occupies the bus for a long time. In addition, the CPU module 202 may also include a timer for timing the bus cycle. The CPU module 202 may be configured to monitor the bus cycle by determining whether the bus cycle has timed out according to the timing.
It will be appreciated that while the above methods 300 and 400 are illustrated in the form of steps, the present invention is not intended to limit the order of the steps, nor is it intended to illustrate that the methods 300 and 400 require each of these operational steps. For example, as described above, one or more of some steps may be performed concurrently or sequentially in other sequences. Moreover, certain steps in methods 300 and 400 may be omitted without departing from the inventive concept.
Although the implementation of the present invention is described above by taking "CPU module" as an example, those skilled in the art will appreciate that "CPU module" is to be understood in a broad sense, and can be understood as various processor modules with computing power capable of implementing the functions or operations described above.
Accordingly, those skilled in the art can make appropriate modifications and adaptations to the embodiments described specifically above without departing from the spirit and substance of the present invention. Therefore, it is intended that claimed subject matter not be limited to the particular examples disclosed, but that such claimed subject matter may also include all implementations falling within the scope of the appended claims, and equivalents thereof.

Claims (16)

1. A PLC-based system, comprising:
a processor module;
IO modules with the number of N;
a bus configured to connect the processor module and the IO module according to a bus-type topology; and
a first auxiliary communication line and a second auxiliary communication line,
when the number of N is 1, the number of N,
the first auxiliary communication line is configured to connect the processor module with the IO module;
the second auxiliary communication line is configured to connect the IO module with the processor module;
when the N is greater than or equal to 2,
the first auxiliary communication line is configured to connect the processor module with a first IO module of a plurality of IO modules, and to sequentially connect the first IO module with the remaining N-1 IO modules of the plurality of IO modules;
the second auxiliary communication line is configured to connect an Nth IO module of the plurality of IO modules with the processor module,
the processor module is configured to:
broadcasting an address configuration command via the bus; and is
Transmitting an auxiliary address configuration signal to the connected IO module via the first auxiliary communication line;
the IO module is configured to:
receiving an address configuration command via the bus; and is
Configuring its address according to an address value included in an address configuration command received via the bus when an auxiliary address configuration signal is received via the first auxiliary communication line,
the IO module is further configured to: after the self address is configured,
sending an address configuration command including the configured self address value +1 to the bus; and
transmitting an auxiliary address configuration signal to a connected next IO module via the first auxiliary communication line or to the connected processor module via the second auxiliary communication line.
2. The PLC-based system of claim 1, wherein the bus comprises a half-duplex bus.
3. The PLC-based system of claim 2, wherein the bus comprises an RS485 bus.
4. The PLC-based system of claim 1, wherein the first auxiliary communication line and the second auxiliary communication line form a closed communication loop.
5. The PLC-based system of claim 1, wherein the first auxiliary communication line and the second auxiliary communication line are configured to transmit unidirectional auxiliary communication signals, the auxiliary communication signals comprising pulses.
6. The PLC-based system of claim 1, wherein the IO module includes a timer, the IO module configured to automatically release the bus when a timed time set by the timer expires.
7. The PLC-based system of claim 1, wherein the processor module includes a timer to time a bus cycle, the processor module configured to determine whether the bus cycle has timed out based on the timed out time.
8. The PLC-based system of any one of claims 1-7, wherein the processor module is further configured to:
and after receiving the address configuration command through the bus and receiving the auxiliary address configuration signal through the second auxiliary communication line, determining that networking is finished.
9. The PLC-based system of claim 8, wherein the processor module is further configured to: after the networking is determined to be completed, the number of IO modules is determined as the address value-1 received from the bus.
10. The PLC-based system of any one of claims 1-7,
the processor module is configured to:
broadcasting a query command via the bus; and is
Transmitting an auxiliary communication signal to the connected IO module via the first auxiliary communication line;
the IO module is configured to: when receiving the polling command via the bus and the auxiliary communication signal via the first auxiliary communication line,
sending respective data to the processor module via the bus; and is
Transmitting the auxiliary communication signal to the connected next IO module via the first auxiliary communication line or to the connected processor module via the second auxiliary communication line.
11. The PLC-based system of claim 10, wherein the processor module is further configured to:
determining that an inquiry cycle is complete upon receiving the data via the bus and the auxiliary communication signal via the second auxiliary communication line.
12. A networking method based on PLC is characterized in that the method comprises the following steps:
broadcasting an address configuration command to IO modules with the number of N accessed to a bus by a processor module of the PLC through a bus, wherein when the N is 1, the processor module is connected with the IO modules through a first auxiliary communication line, and the IO modules are further connected with the processor module through a second auxiliary communication line; when the N is more than or equal to 2, the processor module is connected with a first IO module in the plurality of IO modules through the first auxiliary communication line, the first IO module is sequentially connected with the rest N-1 IO modules in the plurality of IO modules through the first auxiliary communication line, and an Nth IO module in the plurality of IO modules is connected with the processor module through the second auxiliary communication line;
sending, by a processor module of the PLC, an auxiliary address configuration signal to a connected IO module via the first auxiliary communication line;
receiving, by the IO module, the address configuration command via the bus; and is
Configuring a self address according to an address value included in the address configuration command received via the bus when the auxiliary address configuration signal is received via the first auxiliary communication line; sending an address configuration command including the configured self address value +1 to the bus; and transmitting the auxiliary address configuration signal to the connected next IO module via the first auxiliary communication line or to the connected processor module via the second auxiliary communication line.
13. The PLC-based networking method of claim 12, wherein the method further comprises:
and determining that networking is finished by the processor module after receiving the address configuration command through the bus and receiving the auxiliary address configuration signal through the second auxiliary communication line.
14. The PLC-based networking method of claim 13, wherein the method further comprises: and after the processor module determines that networking is finished, determining the number of IO modules as an address value-1 received from the bus.
15. A PLC-based communication method, the method comprising:
broadcasting query commands to IO modules with the number of N connected to a bus by a processor module of the PLC through a bus, wherein when the number of N is 1, the processor module is connected with the IO modules through a first auxiliary communication line, and the IO modules are further connected with the processor module through a second auxiliary communication line; when the N is more than or equal to 2, the processor module is connected with a first IO module in the plurality of IO modules through the first auxiliary communication line, the first IO module is sequentially connected with the rest N-1 IO modules in the plurality of IO modules through the first auxiliary communication line, and an Nth IO module in the plurality of IO modules is connected with the processor module through the second auxiliary communication line;
sending, by the processor module, an auxiliary communication signal to the connected IO module via the first auxiliary communication line;
receiving, by an IO module, the query command via the bus; and is
When the auxiliary communication signal is received via the first auxiliary communication line, transmitting corresponding data to the processor module via the bus, and transmitting the auxiliary communication signal to a next IO module connected via the first auxiliary communication line or to the processor module connected via the second auxiliary communication line.
16. The PLC-based communication method of claim 15, wherein the method further comprises:
determining, by the processor module, that an inquiry cycle is complete upon receiving the data via the bus and the auxiliary communication signal via the second auxiliary communication line.
CN202111637529.0A 2021-12-30 2021-12-30 PLC-based system and networking and communication method thereof Active CN114002994B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111637529.0A CN114002994B (en) 2021-12-30 2021-12-30 PLC-based system and networking and communication method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111637529.0A CN114002994B (en) 2021-12-30 2021-12-30 PLC-based system and networking and communication method thereof

Publications (2)

Publication Number Publication Date
CN114002994A CN114002994A (en) 2022-02-01
CN114002994B true CN114002994B (en) 2022-04-22

Family

ID=79932238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111637529.0A Active CN114002994B (en) 2021-12-30 2021-12-30 PLC-based system and networking and communication method thereof

Country Status (1)

Country Link
CN (1) CN114002994B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050216631A1 (en) * 2004-03-24 2005-09-29 Analog Devices, Inc. Serial digital communication system and method
CN101399854A (en) * 2007-09-30 2009-04-01 杭州士兰微电子股份有限公司 Method for dynamically configuring address and system thereof
CN101669398A (en) * 2007-04-24 2010-03-10 株式会社Ntt都科摩 Mobile communication method, radio base station, mobile station, processor
CN102347879A (en) * 2011-05-23 2012-02-08 大连理工计算机控制工程有限公司 D-BUS high-speed bus technology based on ring type Ethernet and auxiliary network
CN102868780A (en) * 2012-09-07 2013-01-09 深圳睿立方智能科技有限公司 RS-485 slave computer addressing network system and addressing method thereof
CN103926906A (en) * 2014-04-28 2014-07-16 宜科(天津)电子有限公司 Industrial field bus system
CN108462621A (en) * 2018-03-01 2018-08-28 航天柏克(广东)科技有限公司 A kind of method of the distribution of communication apparatus address and number of devices statistics
CN208061195U (en) * 2017-12-12 2018-11-06 深圳市正浩创新科技有限公司 System bus addresses device
CN109359073A (en) * 2018-09-18 2019-02-19 深圳吉迪思电子科技有限公司 A kind of communication between devices method and apparatus topological structure based on spi bus
CN113075904A (en) * 2021-03-22 2021-07-06 深圳市英威腾电气股份有限公司 PLC extension system, PLC system communication method and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050216631A1 (en) * 2004-03-24 2005-09-29 Analog Devices, Inc. Serial digital communication system and method
CN101669398A (en) * 2007-04-24 2010-03-10 株式会社Ntt都科摩 Mobile communication method, radio base station, mobile station, processor
CN101399854A (en) * 2007-09-30 2009-04-01 杭州士兰微电子股份有限公司 Method for dynamically configuring address and system thereof
CN102347879A (en) * 2011-05-23 2012-02-08 大连理工计算机控制工程有限公司 D-BUS high-speed bus technology based on ring type Ethernet and auxiliary network
CN102868780A (en) * 2012-09-07 2013-01-09 深圳睿立方智能科技有限公司 RS-485 slave computer addressing network system and addressing method thereof
CN103926906A (en) * 2014-04-28 2014-07-16 宜科(天津)电子有限公司 Industrial field bus system
CN208061195U (en) * 2017-12-12 2018-11-06 深圳市正浩创新科技有限公司 System bus addresses device
CN108462621A (en) * 2018-03-01 2018-08-28 航天柏克(广东)科技有限公司 A kind of method of the distribution of communication apparatus address and number of devices statistics
CN109359073A (en) * 2018-09-18 2019-02-19 深圳吉迪思电子科技有限公司 A kind of communication between devices method and apparatus topological structure based on spi bus
CN113075904A (en) * 2021-03-22 2021-07-06 深圳市英威腾电气股份有限公司 PLC extension system, PLC system communication method and storage medium

Also Published As

Publication number Publication date
CN114002994A (en) 2022-02-01

Similar Documents

Publication Publication Date Title
CN108733604B (en) 485 bus intelligent expansion method and device based on modbus communication protocol
US8065455B2 (en) Method for data communication of bus users in an open automation system
EP2455832B1 (en) Programmable controller
US4799052A (en) Method for communicating data on a communication network by token passing
CN201957057U (en) Distributed remote I/O (input/output) unit
US7508824B2 (en) Method and system for transmitting data via switchable data networks
CN108614789B (en) Communication system and method of serial port bus with handshake mechanism
US20100146225A1 (en) Acyclic data transfer via a field bus coupler
CN111108450A (en) Circuit for coupling a field bus and a local bus
US7206882B2 (en) Triggered communication network for CANOpen networks
CN114002994B (en) PLC-based system and networking and communication method thereof
US6907485B2 (en) Hybrid change of state protocol for CANOpen networks
US11947475B2 (en) Synchronized processing of process data and delayed transmission
CN113589743B (en) On-site bus system
CN110663226B (en) Data bus user device
CN105357093B (en) A kind of bus termination equipment communication protocol automatic identification conversion equipment and control method
CN210780847U (en) EtherCAT bus clock distribution system
CN110855540B (en) 485 multi-master communication method and system based on single-ring network
US10872044B1 (en) Distributed processing via open ring bus structure
CN112764385A (en) System and method for realizing small PLC bus
CN101820373B (en) Real-time collocation method for fieldbus modules
US11080061B2 (en) Pre-loading of instructions
CN116366393A (en) High-speed bus communication method capable of automatically networking
CN117762099A (en) Wire drawing machine control system and method
CN110663230B (en) Local bus master and method for operating a local bus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant