PLC equipment link protection switching method and PLC equipment
Technical Field
The invention relates to the field of PLC control, in particular to a PLC device link protection switching method and a PLC device.
Background
Data transmission between the car of the elevator and the control cabinet can be performed by a PLC (Power Line Carrier, i.e., power Line communication technology) device, and the PLC device requires a set of PLC devices (an a-side PLC access device and a B-side PLC access device) to transmit data. In the prior art, data are transmitted between the A-end PLC access equipment and the B-end PLC access equipment through a single link, once the transmitted link fails or fails, the data cannot be transmitted between the A-end PLC access equipment and the B-end PLC access equipment, so that the whole PLC system cannot work normally, the safety and the reliability of the operation of the elevator are directly influenced, the elevator serving as one of special equipment has quite high requirements on the reliability and the stability of data transmission, and the existing transmission mode obviously cannot meet the requirements of the elevator on the reliability and the stability of the data.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The invention aims to provide a PLC (programmable logic controller) equipment link protection switching method and PLC equipment, which are used for solving the technical problem of low reliability and stability caused by the fact that the PLC equipment in the prior art transmits data through a single link.
The technical scheme of the invention is as follows:
a PLC device comprises an A-end PLC access device and a B-end PLC access device connected with the A-end PLC access device, wherein the A-end PLC access device and the B-end PLC access device are respectively provided with a bus interface, a configuration management module and a cable transmission carrier function module, the bus interface is connected with an elevator control cabinet and a lift car, the cable transmission carrier function module is used for transmitting analog signals or digital signals in a carrier mode, the bus interface, the configuration management module and the cable transmission carrier function module are in communication connection, a working link is arranged between the A-end PLC access device and the B-end PLC access device, elevator operation data are transmitted between the A-end PLC access device and the B-end PLC access device through the working link, and a protection link is further arranged between the A-end PLC access device and the B-end PLC access device and used for carrying out data transmission instead of the working link when the working link fails or fails.
The PLC device further includes a protection switching detection module, where the protection switching detection module sends a heartbeat signal to the working link at intervals to determine whether the working link is operating normally, and switches to the protection link for data transmission when the working link fails or fails.
The PLC device, wherein the working link and the protection link are dc power lines.
PLC equipment, wherein, bus interface includes CAN bus interface, RS485 communication interface and RJ45 ethernet interface, passes through between elevator control cabinet and the car CAN bus interface, RS485 communication interface and RJ45 ethernet interface connection, CAN bus interface, RS485 communication interface and RJ45 ethernet interface pass through the control information of switch board the power line transmits to the car.
A link protection switching method of a PLC device comprises the following steps:
step A00: the PLC access equipment at the A end and the PLC access equipment at the B end are electrified and operated;
step B00: the method comprises the steps that configuration information is respectively read by an A-end PLC access device and a B-end PLC access device;
step C00: establishing a communication link;
d00, simultaneously establishing a protection link and a working link for transmitting data;
step E00: judging whether the protection link and the working link are successfully established or not, if the protection link and the working link are not successfully established, returning to the step C00, and if the protection link and the working link are successfully established, executing the step F00;
step F00: reading elevator operation data from a CAN bus interface, an RS485 communication interface and an RJ45 Ethernet interface;
g00, the protection switching detection module sends heartbeat signals to the working link at intervals;
step H00: if the working link sends a response signal, returning to the step G00, otherwise, executing the step I00;
step I00: and switching to the protection link to continue data transmission.
In the link protection switching method of the PLC device, in step G00, the protection switching detection module sends a heartbeat signal to the working link every 0.5 s.
The invention has the beneficial effects that: the invention provides a PLC equipment link protection switching method and PLC equipment, a protection link for replacing a working link to transmit data is arranged under the condition that the working link fails or fails, and the protection link is switched to the protection link to continue data transmission when a protection switching detection module detects that the working link cannot work normally, so that the reliability and continuity of data transmission in the operation of an elevator are ensured, and the safety of the elevator is improved. In addition, the working link and the protection link both use direct-current power lines, the transmission distance is long, the transmission rate is greatly improved compared with that of cables in the prior art, the transmission requirements of big data such as audio and video data and advertisement data are met, the original elevator control cable is saved, and the production and installation cost is reduced.
Drawings
Fig. 1 is a schematic view of a PLC apparatus according to the present invention.
Fig. 2 is a flowchart of a method for link protection switching according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples.
Referring to fig. 1, the present invention provides a PLC (Power Line Carrier, i.e., power Line communication technology) device, which includes an a-side PLC access device 1 and a B-side PLC access device 2 connected to the a-side PLC access device 1, where the a-side PLC access device 1 and the B-side PLC access device 2 are both provided with a bus interface 100 connected to an elevator control cabinet and a car, a configuration management module 101, and a cable transmission Carrier function module 102 that transmits an analog signal or a digital signal in a Carrier mode, the bus interface 100, the configuration management module 101, and the cable transmission Carrier function module 102 are in communication connection, a working link 3 is provided between the a-side PLC access device 1 and the B-side PLC access device 2, elevator operation data is transmitted between the a-side PLC access device 1 and the B-side PLC access device 2 through the working link 3, and a protection link 4 that replaces the working link 3 to perform data transmission when the working link 3 fails or fails is further provided between the a-side PLC access device 1 and the B-side PLC access device 2. Due to the arrangement of the protection link 4, the working link 3 is immediately switched to the protection link 4 to continue data transmission when the working link cannot work normally, so that the data transmission process of the elevator cannot be interrupted due to emergency, the reliability and continuity of data transmission in the operation of the elevator are ensured, and the safety of the elevator is improved.
In order to monitor the operating condition of the working link 3 in real time, in this embodiment, the PLC device further includes a protection switching detection module 5, where the protection switching detection module 5 sends a heartbeat signal to the working link 3 at intervals to determine whether the working link 3 operates normally, if the working link 3 operates normally, a response signal is returned, and if the working link 3 does not return a response signal, it indicates that the working link 3 fails or fails, and at this time, the working link 3 is switched to the protection link 4 for data transmission. Further, if the interval time for the protection switching detection module 5 to send the heartbeat signal to the working link 3 is too long, the reaction time is too long and the monitoring function cannot be achieved, and after the technical staff pass through repeated tests, the protection switching detection module 5 is most suitable for sending the heartbeat signal to the working link 3 every 0.5 s.
In order to enable the data transmission rate to be qualitatively leap, the working link 3 and the protection link 4 are direct-current power lines, so that the direct-current power lines are used as transmission carriers for data transmission, the transmission distance can reach 350m, the broadband rate on the power lines can reach 200Mbps, the transmission requirements on large data such as audio and video data and advertisement data can be completely met, the traditional elevator control cables are saved, and the use and installation cost is reduced.
Further, bus interface includes CAN bus interface, RS485 communication interface and RJ45 ethernet interface, passes through between elevator control cabinet and the car CAN bus interface, RS485 communication interface and RJ45 ethernet interface connection, CAN bus interface, RS485 communication interface and RJ45 ethernet interface pass through the control information of switch board the power line transmission to the car.
Referring to fig. 2, the present invention further provides a link protection switching method for a PLC (Power Line Carrier, i.e., power Line communication technology) device, wherein the method includes the following steps:
step A00: the A-end PLC access equipment 1 and the B-end PLC access equipment 2 are powered on to operate;
step B00: the method comprises the steps that configuration information is respectively read by an A-end PLC access device 1 and a B-end PLC access device 2;
step C00: establishing a communication link;
d00, simultaneously establishing a protection link 4 and a working link 3 for transmitting data;
step E00: judging whether the protective link 4 and the working link 3 are successfully established or not, if the establishment fails, returning to the step C00, and if the establishment succeeds, executing the step F00;
step F00: reading elevator operation data from a CAN bus interface, an RS485 communication interface and an RJ45 Ethernet interface;
g00, the protection switching detection module 5 sends heartbeat signals to the working link 3 at intervals so as to monitor whether the working link 3 is smooth;
step H00: if the working link 3 sends a response signal, returning to the step G00, otherwise, executing the step I00;
step I00: switching to the protection link 4 continues the data transmission.
Further, in step G00, the protection switching detection module 5 sends a heartbeat signal to the working link 3 every 0.5s, so as to ensure that the working link 3 is in a normal working state at any time.
The invention provides a PLC (Power Line Carrier) equipment link protection switching method and PLC equipment, a protection link for replacing a working link to transmit data under the condition that the working link fails or fails is arranged, and when a protection switching detection module detects that the working link cannot work normally, the protection switching detection module is immediately switched to the protection link to continue data transmission, so that the reliability and continuity of data transmission in the operation of an elevator are ensured, and the safety of the elevator is improved. In addition, the working link and the protection link are both set to be direct-current power lines, the transmission distance is long, the transmission rate is improved by a lot compared with cables in the prior art, the transmission requirements of big data such as audio and video data and advertisement data are met, the original elevator control cable is saved, and the production and installation cost is reduced.
It will be understood that the invention is not limited to the examples described above, but that modifications and variations will occur to those skilled in the art in light of the above teachings, and that all such modifications and variations are considered to be within the scope of the invention as defined by the appended claims.