A kind of PLC device link protection change method and PLC device
Technical field
Set the present invention relates to PLC control fields, more particularly to a kind of PLC device link protection change method and PLC
It is standby.
Background technology
Data transfer between the car and switch board of elevator can be by PLC (Power Line Carrier, i.e. electric power
Line communication technology) equipment is carried out, and PLC device needs one group of PLC device(A ends PLC access devices and B ends PLC access devices)
Data could be transmitted.And only passed by single link between A ends PLC access devices and B ends PLC access devices in existing technology
Transmission of data, once the link of this transmission breaks down or fails, between A ends PLC access devices and B ends PLC access devices just
Cannot transmit data cause whole PLC system cannot normal work, this directly influence elevator operation safety and reliability,
And as the elevator of one of special equipment, to reliability and stability at a relatively high, the existing transmission means of requirement of data transfer
Obviously requirement of the elevator for data reliability and stability can not be met.
Therefore, prior art has yet to be improved and developed.
The content of the invention
It is an object of the invention to provide a kind of PLC device link protection change method and PLC device, to solve existing skill
The PLC device of art causes reliability and stability technical problem not high by single link transmission data.
Technical scheme is as follows:
A kind of PLC device, wherein, including A ends PLC access devices and the B ends PLC that is connected with the A ends PLC access devices access
Equipment, the A ends PLC access devices and B ends PLC access devices are provided with the bus being connected with elevator control cabinet and car and connect
Mouth, Configuration Manager and the cable transmission carrier wave function mould for being transmitted analog signal or data signal by carrier system
Block, is communicated to connect between the EBI, Configuration Manager and cable transmission carrier wave functional module, and the A ends PLC is accessed
Active link is provided between equipment and B ends PLC access devices, between the A ends PLC access devices and B ends PLC access devices
Car movement data is transmitted by the active link, is also set up between the A ends PLC access devices and B ends PLC access devices
There is the protection link carried out data transmission for active link in active link failure or epoch of breaking down.
Described PLC device, wherein, the PLC device also includes pretection switch detection module, the pretection switch detection
Module at regular intervals to active link send heartbeat signal with confirm active link whether normal operation, active link lose
Imitate or protection link is switched to when breaking down and carry out data transmission.
Described PLC device, wherein, the active link and protection link are DC power line.
Described PLC device, wherein, the EBI include CAN interface, RS485 communication interfaces and RJ45 with
Too network interface, is connect between elevator control cabinet and car by the CAN interface, RS485 communication interfaces and RJ45 Ethernets
The control information of switch board is passed through institute by mouth connection, the CAN interface, RS485 communication interfaces and RJ45 Ethernet interfaces
State power line transmission to car.
A kind of link protection change method of PLC device, wherein, comprise the following steps:
Step A00:Electricity operation on A ends PLC access devices and B ends PLC access devices;
Step B00:A ends PLC access devices and B ends PLC access devices read configuration information respectively;
Step C00:Set up communication link;
Step D00:The protection link and active link for transmitting data are created simultaneously;
Step E00:Judge whether protection link and active link create successfully, if creating failure, return to step C00, if creating
Success, performs step F00;
Step F00:Car movement data is read from CAN interface, RS485 communication interfaces and RJ45 Ethernet interfaces;
Step G00:Pretection switch detection module sends heartbeat signal to active link at regular intervals;
Step H00:If active link sends back-signalling, return to step G00 otherwise, performs I00;
Step I00:It is switched to protection link and proceeds data transfer.
The link protection change method of described PLC device, wherein, in step G00, pretection switch detection module is every
Every 0.5s heartbeat signal is sent to active link.
Beneficial effects of the present invention:The present invention by providing a kind of PLC device link protection change method and PLC device,
There is provided replace active link to transmit the protection link of data in the case of active link failure or failure, in pretection switch inspection
Surveying to be switched at once when module detects active link cisco unity malfunction protects link to proceed data transfer, it is ensured that electricity
The reliability and continuity of data transfer, improve the security of elevator in ladder operation.Additionally, active link and protection link are all
Using DC power line, transmission range is long, and transmission rate cable compared with the prior art improves many, meets audio frequency and video number
According to the transmission demand of the big datas such as, ad data, original elevator control cable is also saved, reduce production installation cost.
Brief description of the drawings
Fig. 1 is the structural representation of PLC device in the present invention.
Fig. 2 is the method flow diagram of link pretection switch method of the present invention.
Specific embodiment
To make the objects, technical solutions and advantages of the present invention clearer, clear and definite, develop simultaneously embodiment pair referring to the drawings
The present invention is further described.
Refering to Fig. 1, the present invention provides a kind of PLC (Power Line Carrier, i.e. power line communication technology) equipment, its
In, including A ends PLC access device 1 and the B ends PLC access device 2 that is connected with the A ends PLC access devices 1, the A ends PLC
Access device 1 and B ends PLC access device 2 are provided with EBI 100, the configuration pipe being connected with elevator control cabinet and car
Reason module 101 and the cable transmission carrier wave functional module 102 for being transmitted analog signal or data signal by carrier system,
Communicated to connect between the EBI 100, Configuration Manager 101 and cable transmission carrier wave functional module 102, the A ends
Active link 3, the A ends PLC access devices 1 and B ends PLC are provided between PLC access devices 1 and B ends PLC access device 2
Car movement data is transmitted by the active link 3 between access device 2, the A ends PLC access devices 1 and B ends PLC connect
Enter to be additionally provided between equipment 2 and fail or break down what the epoch carried out data transmission for active link 3 in the active link 3
Protection link 4.Protection link 4 is switched at once due to being provided with protection link 4, during 3 cisco unity malfunction of active link to continue
Carry out data transmission, it is ensured that the data transmission procedure of elevator will not be interrupted because of emergency situations, it is ensured that number in elevator operation
According to the reliability and continuity of transmission, the security of elevator is improve.
In order to real-time monitor the operation conditions of active link 3, in the present embodiment, PLC device also includes protection
Detection module 5 is switched, the pretection switch detection module 5 sends heartbeat signal to confirm to active link 3 at regular intervals
Active link 3 whether normal operation, back-signalling can be returned to if the normal work of active link 3, if active link 3 is without returning back
Induction signal then illustrates that active link 3 fails or breaks down, and is at this moment switched to protection link 4 and carries out data transmission.Further,
If pretection switch detection module 5 to active link 3 send heartbeat signal interval time it is oversize if cause the reaction time long and
The effect of monitoring is not had, through technical staff by repetition test, pretection switch detection module 5 is every 0.5s to active link 3
Send heartbeat signal most appropriate.
There is qualitative leap to allow message transmission rate, active link 3 and protection link 4 are DC power line, so, directly
Stream power line carries out data transmission for transport vehicle, transmission range up to 350m, on power line broadband speed up to 200Mbps,
The transmission demand to big datas such as audio, video data, ad datas can be met completely, and also saves traditional elevator control
Cable processed, reduces use and installation cost.
Further, the EBI includes CAN interface, RS485 communication interfaces and RJ45 Ethernet interfaces, electricity
Connected by the CAN interface, RS485 communication interfaces and RJ45 Ethernet interfaces between terraced switch board and car, it is described
The control information of switch board is passed through the power line transmission by CAN interface, RS485 communication interfaces and RJ45 Ethernet interfaces
To car.
Refering to Fig. 2, the present invention also provides a kind of PLC (Power Line Carrier, i.e. power line communication technology) chain of equipment
Road pretection switch method, wherein, comprise the following steps:
Step A00:Electricity operation on A ends PLC access device 1 and B ends PLC access device 2;
Step B00:A ends PLC access device 1 and B ends PLC access device 2 read configuration information respectively;
Step C00:Set up communication link;
Step D00:The protection link 4 and active link 3 for transmitting data are created simultaneously;
Step E00:Judge whether protection link 4 and active link 3 create successfully, if creating failure, return to step C00, if wound
Work(is built up, step F00 is performed;
Step F00:Car movement data is read from CAN interface, RS485 communication interfaces and RJ45 Ethernet interfaces;
Step G00:Pretection switch detection module 5 sends heartbeat signal to active link 3 at regular intervals, with monitoring
Whether link 3 is unimpeded;
Step H00:If active link 3 sends back-signalling, return to step G00 otherwise, performs I00;
Step I00:It is switched to protection link 4 and proceeds data transfer.
Further, in step G00, pretection switch detection module 5 sends heartbeat every 0.5s to active link 3 to be believed
Number, it is ensured that the moment of active link 3 is in normal working condition.
The present invention is protected by providing a kind of PLC (Power Line Carrier, i.e. power line communication technology) device link
Protective switching method and PLC device, there is provided replacing active link transmission data in the case of active link failure or failure
Protection link, protection link continuation is switched to when pretection switch detection module detects active link cisco unity malfunction at once
Carry out data transmission, it is ensured that the reliability and continuity of data transfer in elevator operation, improve the security of elevator.This
Outward, active link and protection link are all set to DC power line, and transmission range is long, transmission rate cable compared with the prior art
Many is improve, the transmission demand of the big datas such as audio, video data, ad data is met, original elevator controlling is also saved
Cable, reduces production installation cost.
It should be appreciated that application of the invention is not limited to above-mentioned citing, and for those of ordinary skills, can
To be improved according to the above description or converted, all these modifications and variations should all belong to the guarantor of appended claims of the present invention
Shield scope.