CN105388833B - A kind of method that power station ID is flexibly obtained by S7 200PLC - Google Patents

A kind of method that power station ID is flexibly obtained by S7 200PLC Download PDF

Info

Publication number
CN105388833B
CN105388833B CN201510748488.0A CN201510748488A CN105388833B CN 105388833 B CN105388833 B CN 105388833B CN 201510748488 A CN201510748488 A CN 201510748488A CN 105388833 B CN105388833 B CN 105388833B
Authority
CN
China
Prior art keywords
power station
program
addresses
status word
assigned
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
CN201510748488.0A
Other languages
Chinese (zh)
Other versions
CN105388833A (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.)
Jiangxi Tsinghua Taihao Sanbo Motor Co Ltd
Original Assignee
Jiangxi Tsinghua Taihao Sanbo Motor 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 Jiangxi Tsinghua Taihao Sanbo Motor Co Ltd filed Critical Jiangxi Tsinghua Taihao Sanbo Motor Co Ltd
Priority to CN201510748488.0A priority Critical patent/CN105388833B/en
Publication of CN105388833A publication Critical patent/CN105388833A/en
Application granted granted Critical
Publication of CN105388833B publication Critical patent/CN105388833B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/058Safety, monitoring
    • 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/14Plc safety
    • G05B2219/14006Safety, monitoring in general

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)
  • Small-Scale Networks (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)

Abstract

The invention discloses a kind of methods for flexibly obtaining power station ID by 200 PLC programs of S7, mainly break the pervious processing mode for setting fixed ID addresses in a program.Method is:Status word MW0 is set, and corresponding ID values are assigned in corresponding different power station ID addresses to status word MW0;It is consistent with the data value of status word MW0 in the communication program of remote port, comparing the ID addresses in host computer data, then feedback power station data, otherwise not feedback information.All power stations can share 200 PLC program of S7, reduce the program quantity of filing, reduce download program operating personnel operation requirement, reduce download program operating personnel workload, economize on resources, more ID addresses can be extended immediately power station access communicated with remote port.

Description

A kind of method that power station ID is flexibly obtained by S7 200PLC
Technical field
The present invention relates to a kind of method for obtaining power station ID, specially one kind flexibly obtains power station ID by S7 200PLC Method.
Background technology
User demand at present can be communicated by a set of remote port supervision equipment 2 with several power stations simultaneously(See attached drawing 1), And the structure in power station, electrical, function, output interface are all consistent, remote port supervision equipment 2 and power station by remote-control communication cable 3, S7 200PLC modules 1 carry out question-response formula communication, so necessarily requiring the ID addresses in each power station different.
Several power stations need to be remotely controlled communication with remote port supervision equipment 2 simultaneously, for long-range end equipment 2, need to lead to Cross the data information that different power stations are distinguished in the different ID addresses in identification power station.For power station, need to identify remote port inquiry Data in ID addresses it is consistent with the ID addresses set in itself program after just correspond to the data information in this power station of feedback.
Way before is:Fixed ID addresses are set for the power station of different ID addresses in a program, such as 1# power stations (2# power stations, 3# power stations), 16#1001 is in the software I D addresses set(16#1002,3# is in the ID addresses that 2# power stations are set 16#1003 is in the ID addresses that power station is set), the ID addresses in host computer data and numerical value 16#1001 are judged in PLC program(16# 1002、16#1003)Equal, then the corresponding corresponding data of PLC program feedback are to remote port, otherwise not feedback information.It is if same When supply a few set power stations, it is desirable that download different in the power station of corresponding different ID addresses(The ID and the hardware ID in power station set in program Unanimously)Program, then must preserve simultaneously several difference ID addresses program or when only there are one ID addresses program when, The corresponding ID address in program is first changed before downloading program(Numerical value 16#1001 is adjusted to 16#1002 or 16# 1003), it is further continued in the power station for downloading to corresponding ID addresses.It is required that the operating personnel for downloading program have grasped how to download S7 Outside 200PLC programs, also require operating personnel that can simply understand program and simple program change work can be done, to downloading program The requirement of operating personnel improve.If power station is live in user, two are existed simultaneously(Or two or more)The program in power station There is provided identical ID addresses, it is necessary to re-download the program of different ID addresses to scene or replacement has re-downloaded difference The S7 200PLC modules of ID address programs, certainly will increase human and material resources, the consumption of financial resources and stand-by period.
Invention content
It is an object of the invention to solve drawbacks described above, and propose one kind and power station ID is flexibly obtained by S7 200PLC Method, program quantity the method reduce filing, the operation requirement for reducing the operating personnel for downloading program, under reducing It carries the workload of the operating personnel of program, economize on resources.
The technical solution of the present invention that solves the problems, such as is:A kind of method that power station ID is flexibly obtained by S7 200PLC, passes through Following processing is done in S7 200PLC programs, it can be ensured that the power station of different ID addresses shares a program, it is characterised in that Method and step is as follows:
(1)The specific ID values in power station are represented with a status word MW0, according to the different hardware IDs in power station, to state Word MW0 carries out corresponding ID values assignment;
(2)Assuming that the ID in the 1st power station of setting is 1#, then status word MW0 is assigned a value of 16#1001;Assuming that the 2nd electricity of setting The ID to stand is 2#, then status word MW0 is assigned a value of 16#1002;Assuming that the ID in the 3rd power station of setting is 3#, then status word MW0 assignment For 16#1003;And so on, remote port communication apparatus will communicate simultaneously with 10 power stations, then the ID in the 10th power station is 10#, Then status word MW0 is assigned a value of 16#100A;
(3)With in the program of long-range end communication, by the value ratio of the ID addresses in the host computer data of reception and status word MW0 Compared with identical, then the corresponding data of feedback give remote port communication apparatus, otherwise not feedback information;
(4)After downloading program, the ID addresses in automatic program identification power station do not need to artificially first identify that power station ID is downloaded again There is provided the programs of corresponding ID address.
The technique effect of the present invention:Reduce the program quantity of filing, the operation for reducing the operating personnel for downloading program It is required that, reduce download program operating personnel workload, reduce go on business to user's Site Service possibility, can be i.e. When extend more ID addresses power station access communicated with remote port.
Description of the drawings
Fig. 1 is power station of the present invention and the mating connection diagram of remote port supervision equipment.
Fig. 2 is that the method for the ID addresses that S7 200PLC of the present invention flexibly obtain power station implements schematic diagram.
Wherein(a)For assigned state word MW0 schematic diagrames;(b)For compare status word MW0 and host computer data ID whether phase Wait schematic diagrames.
In the figure 1, S7 200PLC modules;2nd, remote port supervision equipment;3rd, remote-control communication cable.
Specific embodiment
As shown in Fig. 2, of the invention this comes work and implementation in this way, one kind flexibly obtains power station ID by S7 200PLC Method, by doing following processing in S7 200PLC programs, it can be ensured that the power station of different ID addresses shares a journey Sequence as long as the operating personnel for downloading program know how that the operation for downloading program is all right, will not cause ID and the power station of program The phenomenon that hardware ID is inconsistent.If exist simultaneously two(Or two or more)The identical power station in ID addresses is live in user, only The hardware ID address in hardware setting power station is adjusted, automatic program identification power station hardware ID is completed not so as to the ID of reprogramming Same ID addresses power station and the communication of remote port supervision equipment;It is characterized in that method and step is as follows:
(1)The specific ID values in power station are represented with a status word MW0, according to the different hardware IDs in power station, to state Word MW0 carries out corresponding ID values assignment;
(2)Assuming that the ID in the 1st power station of setting is 1#, then status word MW0 is assigned a value of 16#1001;Assuming that the 2nd electricity of setting The ID to stand is 2#, then status word MW0 is assigned a value of 16#1002;Assuming that the ID in the 3rd power station of setting is 3#, then status word MW0 assignment For 16#1003;And so on, remote port communication apparatus will communicate simultaneously with 10 power stations, then the ID in the 10th power station is 10#, Then status word MW0 is assigned a value of 16#100A;
(3)With in the program of long-range end communication, by the value ratio of the ID addresses in the host computer data of reception and status word MW0 Compared with identical, then the corresponding data of feedback give remote port communication apparatus, otherwise not feedback information;
(4)After downloading program, the ID addresses in automatic program identification power station do not need to artificially first identify that power station ID is downloaded again There is provided the programs of corresponding ID address.

Claims (1)

1. a kind of method that power station ID is flexibly obtained by S7 200PLC, by doing following processing in 200 PLC programs of S7, It may insure that the power station of different ID addresses shares a program, it is characterised in that method and step is as follows:
(1)The specific ID values in power station are represented with a status word MW0, according to the different hardware IDs in power station, to status word MW0 Carry out corresponding ID values assignment;
(2)Assuming that the ID in the 1st power station of setting is 1#, then status word MW0 is assigned a value of 16#1001;Assuming that the 2nd power station of setting ID is 2#, then status word MW0 is assigned a value of 16#1002;Assuming that the ID in the 3rd power station of setting is 3#, then status word MW0 is assigned a value of 16#1003;And so on, remote port communication apparatus will communicate simultaneously with 10 power stations, then the ID in the 10th power station is 10#, then Status word MW0 is assigned a value of 16#100A;
(3)With in the program of long-range end communication, by the ID addresses in the host computer data of reception compared with the value of status word MW0, Identical, then the corresponding data of feedback give remote port communication apparatus, otherwise not feedback information;
(4)After downloading program, the ID addresses in automatic program identification power station do not need to artificially first identify that power station ID downloads setting again The program of corresponding ID address.
CN201510748488.0A 2015-11-07 2015-11-07 A kind of method that power station ID is flexibly obtained by S7 200PLC Active CN105388833B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510748488.0A CN105388833B (en) 2015-11-07 2015-11-07 A kind of method that power station ID is flexibly obtained by S7 200PLC

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510748488.0A CN105388833B (en) 2015-11-07 2015-11-07 A kind of method that power station ID is flexibly obtained by S7 200PLC

Publications (2)

Publication Number Publication Date
CN105388833A CN105388833A (en) 2016-03-09
CN105388833B true CN105388833B (en) 2018-07-06

Family

ID=55421222

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510748488.0A Active CN105388833B (en) 2015-11-07 2015-11-07 A kind of method that power station ID is flexibly obtained by S7 200PLC

Country Status (1)

Country Link
CN (1) CN105388833B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101944775A (en) * 2010-09-21 2011-01-12 深圳市华力特电气股份有限公司 Method for monitoring sub transformer substation by master dispatching station in power system as well as relative device and system
US7895290B2 (en) * 2005-11-25 2011-02-22 Robopac S.P.A. System for transmitting and remotely managing data of a machine
CN103605622A (en) * 2013-11-19 2014-02-26 北京邮电大学 Method and equipment for data transmission
CN104601420A (en) * 2014-12-31 2015-05-06 江西清华泰豪三波电机有限公司 Method for flexibly reading power station data by utilizing Modbus
CN104932407A (en) * 2015-05-27 2015-09-23 苏州荣威工贸有限公司 Modular robot driving control system and method based on PLC

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7895290B2 (en) * 2005-11-25 2011-02-22 Robopac S.P.A. System for transmitting and remotely managing data of a machine
CN101944775A (en) * 2010-09-21 2011-01-12 深圳市华力特电气股份有限公司 Method for monitoring sub transformer substation by master dispatching station in power system as well as relative device and system
CN103605622A (en) * 2013-11-19 2014-02-26 北京邮电大学 Method and equipment for data transmission
CN104601420A (en) * 2014-12-31 2015-05-06 江西清华泰豪三波电机有限公司 Method for flexibly reading power station data by utilizing Modbus
CN104932407A (en) * 2015-05-27 2015-09-23 苏州荣威工贸有限公司 Modular robot driving control system and method based on PLC

Also Published As

Publication number Publication date
CN105388833A (en) 2016-03-09

Similar Documents

Publication Publication Date Title
AU2014228186B2 (en) Modular pool/spa control system
CN103048959B (en) For configuring the method and apparatus of control or automated system
CN104243616A (en) Wi-Fi (wireless fidelity) communication based cloud air conditioner system
CN105305418A (en) Power distribution terminal self-description method based on IEC61850 standard
CN104811357B (en) A kind of Internet of things system
CN104506516A (en) Gateway for conversion between Modbus RTU/ASCII (remote terminal unit/American standard code for information interchange) communication protocol and Modbus TCP (transmission control protocol) communication protocol and implementation method for gateway
CN102567061B (en) The method and system of televisor and the two-way upgrading of telepilot
CN105389278A (en) CAN bus based serial communication method for master and slave machines
CN104267701A (en) Method and device for controlling smart home added devices
CN105357664A (en) Wireless control system and data communication method thereof
CN103873592A (en) Data transmission method and system
CN105785905A (en) Configurable field bus system and configuration method thereof
CN105577717A (en) Control method and system having compatibility with various electric appliances
CN105278339B (en) Method and device for generating and controlling sub-device description information of composite household appliance
CN110069288A (en) USB device sharing method, apparatus and system
CN202975723U (en) Household intelligent controller and remote household control system
CN105388833B (en) A kind of method that power station ID is flexibly obtained by S7 200PLC
CN104516850A (en) Connecting method for modularized products, modularized products using method and family service bus for method
CN205377930U (en) Be transformed into MODBUS stipulations from TCPIP link serial link's equipment
CN105827461A (en) Method for upgrading power line carrier communication module
CN203552252U (en) Data conversion device based on internet of things
CN106997179A (en) The method and intelligence control system of intelligent control platform management equipment
CN105226819A (en) A kind of distributed power source monitoring management system based on IEC61850
CN104300341A (en) Operating control method based on wall outlet and wall outlet
CN105282647B (en) A kind of MPP speaker control method and access controller

Legal Events

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