CN105388833A - Method for obtaining power station ID flexibly by employing S7 200PLC - Google Patents

Method for obtaining power station ID flexibly by employing S7 200PLC Download PDF

Info

Publication number
CN105388833A
CN105388833A CN201510748488.0A CN201510748488A CN105388833A CN 105388833 A CN105388833 A CN 105388833A CN 201510748488 A CN201510748488 A CN 201510748488A CN 105388833 A CN105388833 A CN 105388833A
Authority
CN
China
Prior art keywords
power station
status word
program
address
assignment
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.)
Granted
Application number
CN201510748488.0A
Other languages
Chinese (zh)
Other versions
CN105388833B (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 method for obtaining a power station ID flexibly by employing an S7 200PLC. And thus the previous processing way in which a fixed ID address is set in a program is broken. The provided method comprises: a status word MW0 is set and corresponding ID values are assigned to the status word MW0 by corresponding to different power station ID addresses; and in a communication program with a remote end, an ID address in upper computer data is compared with the data value of the status word MW0; if the ID address in upper computer data is consistent with the data value of the status word MW0, feedback of the power station data is carried out; and otherwise, no data feedback is carried out. Because all power stations can share one S7 200 PLC program, the number of archived programs is reduced, the operation requirements of the operator downloading programs are reduced, the workload of the operator downloading programs is reduced, and resources are saved. And more power stations with more extended ID addresses can be connected to carry out communication with the remote end.

Description

A kind of method being obtained power station ID by S7 200PLC flexibly
Technical field
The present invention relates to a kind of method obtaining power station ID, be specially a kind of method being obtained power station ID by S7200PLC flexibly.
Background technology
Current user's request can carry out communication (see accompanying drawing 1) with several power stations by a set of remote port surveillance equipment 3 simultaneously, and the structure in power station, electrically, function, output interface be all consistent, the communication of question-response formula is carried out by remote-control communication cable 2, S7200PLC module 1 in remote port surveillance equipment 3 and power station, so necessarily require the ID address in each power station different.
Several power stations need to carry out remote-control communication with remote port surveillance equipment 3 simultaneously, for remote port equipment 3, need the data message being distinguished different power station by the ID address that identification power station is different.For power station, need to identify ID address in the data of remote port inquiry consistent with the ID address set in self program after the data message in just corresponding this power station of feedback.
Way is before: in a program for the power station of different ID addresses sets fixing ID address, as 1# power station (2# power station, 3# power station), setting software I D address be 16#1001(2# power station setting ID address be 16#1002,3# power station setting ID address be 16#1003), the ID address in host computer data and numerical value 16#1001(16#1002,16#1003 is judged in PLC program) equal, then the corresponding corresponding data of PLC program feedback are to remote port, otherwise not feedback information.A few cover power station if supplied simultaneously, require that the program of different (ID arranged in program is consistent with the hardware ID in power station) is downloaded in the power station of corresponding different I D address, then must preserve the program of several different I D address simultaneously, or when only having the program of an ID address, will corresponding ID address (numerical value 16#1001 is adjusted to 16#1002 or 16#1003) in first change program before downloading, then continue to download in the power station of corresponding ID address.How require that the operating personnel downloaded have grasped downloads outside S7200PLC program, also requires that operating personnel simply can understand program and can do simple program change work, improves the requirement of the operating personnel downloaded.If power station is on-the-spot user, there is the identical ID address of the programming in two (or more than two) power stations simultaneously, the on-the-spot program again downloading different I D address must be arrived, or change and again downloaded the S7200PLC module of different I D address program, human and material resources, the consumption of financial resources and stand-by period certainly will be increased.
Summary of the invention
The object of the invention is to address the aforementioned drawbacks, and propose a kind of method being obtained power station ID by S7200PLC flexibly, the program quantity the method reducing filing, the operation requirements reducing the operating personnel downloaded, decrease the operating personnel downloaded workload, economize on resources.
The technical scheme that the present invention solves is: a kind of method being obtained power station ID by S7200PLC flexibly, by doing following process in S7200PLC program, can guarantee that the power station of different ID addresses shares a program, it is characterized in that method step is as follows:
(1) the concrete ID value in power station is represented with a status word MW0, according to the different hardware ID in power station, corresponding ID value assignment is carried out to status word MW0;
(2) suppose that the ID arranging the 1st power station is 1#, then status word MW0 assignment is 16#1001; Suppose that the ID arranging the 2nd power station is 2#, then status word MW0 assignment is 16#1002; Suppose that the ID arranging the 3rd power station is 3#, then status word MW0 assignment is 16#1003; The like, remote port communication apparatus simultaneously will with 10 power station communications, then the ID in the 10th power station is 10#, then status word MW0 assignment is 16#100A;
(3) with the program of remote port communication, compared with the value of status word MW0 the ID address in the host computer data of reception, identical, then the corresponding data of feedback are to remote port communication apparatus, otherwise not feedback information;
(4), after downloading, the ID address in automatic program identification power station, does not need first to identify that power station ID downloads the program being provided with corresponding ID address more artificially.
Technique effect of the present invention: the program quantity decreasing filing, the operation requirements reducing the operating personnel downloaded, the workload decreasing the operating personnel downloaded, the possibility decreasing user's Site Service of going on business, the power station access immediately can expanding more ID address and remote port carry out communication.
Accompanying drawing explanation
Fig. 1 is power station of the present invention and the supporting connection diagram of remote port surveillance equipment.
Fig. 2 is the method enforcement schematic diagram that S7200PLC of the present invention obtains the ID address in power station flexibly.
Wherein (a) assigned state word MW0 schematic diagram; B () is for comparing status word MW0 schematic diagram whether equal to the ID of host computer data.
In the drawings, 1, S7200PLC module; 2, remote port surveillance equipment; 3, remote-control communication cable.
Embodiment
As shown in Figure 2, the present invention this come work and enforcement like this, a kind of method being obtained power station ID by S7200PLC flexibly, by doing following process in S7200PLC program, can guarantee that the power station of different ID addresses shares a program, as long as the operating personnel downloaded know that the operation how to download is all right, the phenomenon that the hardware ID in the ID of program and power station is inconsistent can not be caused.If the power station that existence two (or more than two) ID addresses are identical is on-the-spot user simultaneously, as long as the hardware ID address in adjustment hardware setting power station, automatic program identification power station hardware ID thus the ID of reprogramming, complete different power stations, ID address and the communication of remote port surveillance equipment; It is characterized in that method step is as follows:
(1) the concrete ID value in power station is represented with a status word MW0, according to the different hardware ID in power station, corresponding ID value assignment is carried out to status word MW0;
(2) suppose that the ID arranging the 1st power station is 1#, then status word MW0 assignment is 16#1001; Suppose that the ID arranging the 2nd power station is 2#, then status word MW0 assignment is 16#1002; Suppose that the ID arranging the 3rd power station is 3#, then status word MW0 assignment is 16#1003; The like, remote port communication apparatus simultaneously will with 10 power station communications, then the ID in the 10th power station is 10#, then status word MW0 assignment is 16#100A;
(3) with the program of remote port communication, compared with the value of status word MW0 the ID address in the host computer data of reception, identical, then the corresponding data of feedback are to remote port communication apparatus, otherwise not feedback information;
(4), after downloading, the ID address in automatic program identification power station, does not need first to identify that power station ID downloads the program being provided with corresponding ID address more artificially.

Claims (1)

1. obtained a method of power station ID by S7200PLC flexibly, by doing following process in S7200PLC program, can guarantee that the power station of different ID addresses shares a program, it is characterized in that method step is as follows:
(1) the concrete ID value in power station is represented with a status word MW0, according to the different hardware ID in power station, corresponding ID value assignment is carried out to status word MW0;
(2) suppose that the ID arranging the 1st power station is 1#, then status word MW0 assignment is 16#1001; Suppose that the ID arranging the 2nd power station is 2#, then status word MW0 assignment is 16#1002; Suppose that the ID arranging the 3rd power station is 3#, then status word MW0 assignment is 16#1003; The like, remote port communication apparatus simultaneously will with 10 power station communications, then the ID in the 10th power station is 10#, then status word MW0 assignment is 16#100A;
(3) with the program of remote port communication, compared with the value of status word MW0 the ID address in the host computer data of reception, identical, then the corresponding data of feedback are to remote port communication apparatus, otherwise not feedback information;
(4), after downloading, the ID address in automatic program identification power station, does not need first to identify that power station ID downloads the program being provided with corresponding ID address more artificially.
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 true CN105388833A (en) 2016-03-09
CN105388833B 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
CN105388833B (en) 2018-07-06

Similar Documents

Publication Publication Date Title
CN102694861B (en) A kind of terminal application software sorting technique, Apparatus and system based on cloud
CN102571996B (en) IP (Internet Protocol) address assignment method, IP address assignment device and network system
US10038754B2 (en) Method of establishing communication session using active connection of mobile terminal to relay server
CN111865736B (en) Equipment control method and device
CN105404258A (en) Intelligent household management method and platform
CN102567061B (en) The method and system of televisor and the two-way upgrading of telepilot
CN103048959A (en) Method for configuring a control device
CN109981360B (en) Internet of things equipment site opening method, device and system and storage medium
CN104767756A (en) Equipment information processing method, client side device and server side device
CN104426927A (en) Intercom terminal parameter arrangement method and 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
CN109361585A (en) A kind of method that child node baud rate and address is arranged in host node automatically
CN104660683A (en) Data transmission control method, device and system
CN105357664A (en) Wireless control system and data communication method thereof
CN105553684A (en) Communication system and applied router upgrading method thereof
CN104486383A (en) Method for installing application program on smart mobile device
CN108965403A (en) O&M monitors establishment of connection method and terminal device
CN105554151A (en) Keep-alive time determining method and electronic device
CN105451215A (en) Communication method and electronic device
CN104301419A (en) Non-local-machine remote download control system and method
CN109788034B (en) Configuration method for gateway access equipment, electronic equipment and storage medium
EP3180659B1 (en) Mobile device, engineering tool device, system and methods for cable configuration in a process control system
CN105388833A (en) Method for obtaining power station ID flexibly by employing S7 200PLC
CN113965571B (en) Management method, device, equipment and medium of distributed embedded equipment
CN115268951A (en) Installation method, device, equipment and storage medium of operating system

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