CN111107177B - Method for modifying HMI self IP and PLC IP through HMI - Google Patents

Method for modifying HMI self IP and PLC IP through HMI Download PDF

Info

Publication number
CN111107177B
CN111107177B CN201911382488.8A CN201911382488A CN111107177B CN 111107177 B CN111107177 B CN 111107177B CN 201911382488 A CN201911382488 A CN 201911382488A CN 111107177 B CN111107177 B CN 111107177B
Authority
CN
China
Prior art keywords
plc
hmi
address
register
instruction
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
CN201911382488.8A
Other languages
Chinese (zh)
Other versions
CN111107177A (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.)
Wuxi Xinje Electric Co Ltd
Original Assignee
Wuxi Xinje Electric 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 Wuxi Xinje Electric Co Ltd filed Critical Wuxi Xinje Electric Co Ltd
Priority to CN201911382488.8A priority Critical patent/CN111107177B/en
Publication of CN111107177A publication Critical patent/CN111107177A/en
Application granted granted Critical
Publication of CN111107177B publication Critical patent/CN111107177B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5053Lease time; Renewal aspects
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)

Abstract

The invention discloses a method for modifying an own IP of an HMI and an IP of a PLC through the HMI, which belongs to the technical field of communication of the Internet of things, and connects an HMI device with the PLC and establishes communication; setting a register corresponding to the HMI IP address and the PLC IP address on the HMI interface in a linking way; setting a new PLC IP address through the register and storing the new PLC IP address; and triggering the PLC IP address instruction through the HMI to complete the change of the new PLC IP address. The method does not occupy extra communication port resources, and does not need to install corresponding serial port configuration tools through a PC or connect PLC upper computer software to realize the change of the PLC IP address, thereby achieving the purposes of reducing the operation time and facilitating the use.

Description

Method for modifying HMI self IP and PLC IP through HMI
Technical Field
The invention relates to the technical field of Internet of things communication, in particular to a method for modifying an own IP of an HMI and a PLC IP through the HMI.
Background
At present, the existing PLC IP addresses all need to be changed by installing corresponding serial port configuration tools through a PC or connecting with PLC upper computer software. In industrial control sites, if the requirement of changing the PLCIP address is met, the requirement of changing the IP cannot be met under the condition that the site is temporarily not provided with a PC. If the IP of the PLC is changed by adopting a PC mode, additional communication port resources are occupied.
Therefore, there is an urgent need for a way to solve the above problems.
Disclosure of Invention
The invention aims to overcome the problems in the prior art, and the method for modifying the own IP of the HMI and the PLC IP through the HMI equipment is used for realizing the requirement that a user needs to modify the PLC IP.
The above purpose is realized by the following technical scheme:
a method for modifying HMI own IP and PLC IP through HMI, comprising the steps of:
s101: connecting the HMI equipment with the PLC and establishing communication;
s102: setting a register corresponding to the HMI IP address and the PLC IP address on the HMI interface in a linking way;
s103: setting a new PLC IP address through the register and storing the new PLC IP address;
s104: and triggering the PLC IP address instruction through the HMI to complete the change of the new PLC IP address.
Preferably, the HMI device is connected to the PLC via an ethernet network.
Preferably, the register comprises a register which is opened by the HMI device and stores the IP address of the touch screen system and a register which sets the IP address of the PLC in the Ethernet device connected with the HMI device.
Preferably, the setting of the register is specifically: registers for which IP addresses need to be set are linked on a screen of the HMI device, and corresponding data is input into these registers.
Preferably, the data is a register address customized when a user writes an IP instruction, and after writing a new IP address, the monitoring PLC IP address range is: SD 1905-SD 1910 (hexadecimal monitoring), or SD 1930-SD 1941 (decimal monitoring).
Preferably, the PLC IP address instruction, specifically, by using an edge of a soft element as a trigger condition, needs to determine a register in the instruction as a first address of parameter input such as an IP address, a subnet mask, a default gateway, etc., and needs to specify the number of registers, so as to determine an address where the IP parameter needs to be changed; the PLC IP instruction sets a fixed COM9 as an Ethernet communication port.
Preferably, the registers are 4 or 12.
Preferably, the step of triggering the PLC IP address instruction through the HMI to complete the change of the new PLC IP address specifically includes: and displaying the triggering soft element of the PLC IP address instruction on a screen of the HMI equipment in a button mode, and changing the new PLC IP address through the mode of triggering the button.
Advantageous effects
The method for modifying the own IP of the HMI and the PLC IP through the HMI is manufactured by utilizing the technical scheme of the invention, and the method for modifying the own IP of the HMI and the PLC IP through the HMI equipment is utilized to realize the requirement that a user needs to change the PLC IP.
Drawings
FIG. 1 is a flow chart of a method of modifying HMI own IP and PLC IP through HMI according to the present invention;
FIG. 2 is a schematic diagram of an HMI interface for a method of modifying the HMI's own IP and the PLC IP via the HMI according to the present invention;
fig. 3 is a PLC IP address command interface diagram of a method for modifying an HMI own IP and a PLC IP through an HMI according to the present invention.
Detailed Description
It should be noted that the description of the specific structure and the order of description in this section are merely illustrative of specific embodiments and should not be construed as limiting the scope of the invention in any way. Furthermore, the embodiments in this section and the features in the embodiments may be combined with each other without conflict.
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
The technical scheme relies on advanced Ethernet technology and networking communication of industrial Internet of things equipment. The HMI and the PLC trigger the PLC IP address instruction to modify the PLC IP address through the HMI in an Ethernet (wired) communication mode, and the function of modifying the self IP through the HMI is also realized in the same scheme in order to ensure that the PLC after modifying the IP address can still normally communicate with the HMI through the Ethernet. The method can directly replace the method of changing the PLC IP by using a PC in the industrial field, reduces the operation time and is convenient for customers to use.
As shown in fig. 1, a method for modifying HMI own IP and PLC IP through HMI includes the steps of:
s101: connecting the HMI equipment with the PLC and establishing communication;
s102: setting a register corresponding to the HMI IP address and the PLC IP address on the HMI interface in a linking way;
s103: setting a new PLC IP address through the register and storing the new PLC IP address;
s104: and triggering the PLC IP address instruction through the HMI to complete the change of the new PLC IP address.
Specifically, in the scenario where multiple HMI devices with touch screens are connected to multiple PLCs, both the touch screens and PLCs may be connected to the same lan through a switch and successfully communicate. Each HMI device may modify its own IP or may designate any PLC to change its PLC IP address.
The HMI device is connected with the PLC through an Ethernet. Specifically, the HMI device and the PLC are both provided with Ethernet communication ports, and support Ethernet communication, and may be connected together by a switch through a network cable. In addition, in order to ensure that the touch screen and the PLC can successfully communicate, the touch screen IP and the current IP of the PLC are necessarily located in the same gateway and the same network segment.
The HMI opens a register for storing the IP of the touch screen system itself and a register for setting the IP address of the ethernet device connected to the HMI, and the object of the data input box of the HMI can link these registers and place them on the HMI screen to facilitate data input (as shown in fig. 2), thereby realizing modification of the IP address of the HMI itself and searching for the IP of the desired ethernet device.
The specific implementation of modifying the PLC IP address is realized by starting a special instruction for setting the PLC IP, where the instruction of the PLC IP address is shown in fig. 3, specifically, an edge of a soft element is used as a trigger condition, and a register is required to be determined in the instruction as a first address for inputting parameters such as an IP address, a subnet mask, a default gateway, and the like, and the number of registers is required to be specified, so as to determine an address where the PLC IP parameter needs to be modified for storage.
The number of the specified registers is specifically as follows: 4 or 12. Specifically, since the IP address, the subnet mask, and the default gateway each need 4 parameters, that is, 4 registers, if the user only needs to modify the IP address, the number of the designated registers may be changed to 4, if the subnet mask or the gateway also needs to be modified, the number of the designated registers may be changed to 12, and it should be noted that the number of the designated registers may only be 4 or 12, and may not be set to other data. In this embodiment, the data stored in the register is a register address customized by a user when writing an IP instruction, and after writing a new IP address, the monitoring PLC IP address range is: SD 1905-SD 1910 (hexadecimal monitoring), or SD 1930-SD 1941 (decimal monitoring); the PLC IP instruction sets a fixed COM9 as an Ethernet communication port.
Finally, the user can display the address for determining to change parameter storage in the trigger soft element of the PLC IP address instruction and the instruction on the HMI in a button and data input mode respectively, and change the new address of the PLC IP by inputting the IP parameter to be changed and restarting the button. The internal IP of the PLC is changed by triggering the instruction, and the PLC data can be validated by restarting after the modification is completed.
While the invention has been described with respect to the preferred embodiments, it is to be understood that the invention is not limited thereto, but is capable of modification and substitution within the spirit and scope of the invention as will be apparent to those skilled in the art. Therefore, the protection scope of the present invention should be subject to the claims.

Claims (5)

1. A method for modifying HMI own IP and PLC IP through HMI, characterized by:
connecting the HMI equipment with the PLC and establishing communication;
setting a register corresponding to the HMI IP address and the PLC IP address on the HMI interface in a linking way;
setting a new PLC IP address through the register and storing the new PLC IP address;
triggering a PLC IP address instruction through the HMI to complete the change of a new PLC IP address;
the HMI equipment is connected with the PLC through an Ethernet;
the register comprises a register which is opened by the HMI equipment and stores the IP address of the touch screen system and a register which sets the IP address of the PLC in the Ethernet equipment connected with the HMI equipment;
the PLC IP address instruction specifically uses the edge of a soft element as a trigger condition, and a register is required to be determined in the instruction as an IP address, a subnet mask, a first address input by default gateway parameters and the number of registers required to be specified, so as to determine the address where the IP parameters are required to be changed; the PLC IP instruction sets a fixed COM9 as an Ethernet communication port.
2. A method of modifying HMI own IP and PLC IP through an HMI according to claim 1, wherein: the setting of the register is specifically as follows: registers for which IP addresses need to be set are linked on a screen of the HMI device, and corresponding data is input into these registers.
3. A method of modifying HMI own IP and PLC IP through an HMI according to claim 2, wherein: the data is a self-defined register address when a user writes an IP instruction, and after a new IP address is written, the IP address range of the monitoring PLC is as follows: SD 1905-SD 1910, or SD 1930-SD 1941.
4. A method of modifying HMI own IP and PLC IP through an HMI according to claim 1, wherein: there are 4 or 12 registers.
5. A method of modifying HMI own IP and PLC IP through an HMI according to claim 1, wherein: the PLC IP address instruction is triggered by the HMI to finish the change of the new PLC IP address, specifically: and displaying the triggering soft element of the PLC IP address instruction on a screen of the HMI equipment in a button mode, and changing the new PLC IP address through the mode of triggering the button.
CN201911382488.8A 2019-12-27 2019-12-27 Method for modifying HMI self IP and PLC IP through HMI Active CN111107177B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911382488.8A CN111107177B (en) 2019-12-27 2019-12-27 Method for modifying HMI self IP and PLC IP through HMI

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911382488.8A CN111107177B (en) 2019-12-27 2019-12-27 Method for modifying HMI self IP and PLC IP through HMI

Publications (2)

Publication Number Publication Date
CN111107177A CN111107177A (en) 2020-05-05
CN111107177B true CN111107177B (en) 2023-06-30

Family

ID=70423450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911382488.8A Active CN111107177B (en) 2019-12-27 2019-12-27 Method for modifying HMI self IP and PLC IP through HMI

Country Status (1)

Country Link
CN (1) CN111107177B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114363429B (en) * 2022-01-13 2024-02-09 浦林成山(山东)轮胎有限公司 Method and system for carrying out interactive sharing data of data interface through Ethernet
CN115567481A (en) * 2022-11-08 2023-01-03 三一石油智能装备有限公司 Upper computer PLC address binding method and device and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101276216A (en) * 2007-03-28 2008-10-01 台达电子工业股份有限公司 Internal memory address conversing method of human-machine interface corresponding to different specifications PLC
WO2014207572A2 (en) * 2013-06-19 2014-12-31 Schneider Electric Industries Sas Universal ethernet solution
CN203728426U (en) * 2014-03-11 2014-07-23 山东煤机装备集团有限公司 PLC (programmable logic controller) and touch screen-based monorail crane control system
CN106790319A (en) * 2015-11-19 2017-05-31 上海巴安水务股份有限公司 A kind of remote transmission method and its system for realizing industrial control equipment data
CN109343460B (en) * 2018-11-23 2023-07-25 无锡信捷电气股份有限公司 Method for establishing communication with a PLC

Also Published As

Publication number Publication date
CN111107177A (en) 2020-05-05

Similar Documents

Publication Publication Date Title
US7987305B2 (en) Remote virtual placeholder configuration for distributed input/output modules
CN111107177B (en) Method for modifying HMI self IP and PLC IP through HMI
JP2017520061A (en) Numerical control system and control method based on virtualization technology
CN105045614A (en) Operating system installation method and system
WO2022002173A1 (en) Intelligent device networking method and apparatus, and intelligent device control system and method
CN103716418A (en) Method and apparatus for configuring address information of display unit of splicing wall system
CN108494607A (en) The design method and system of big double layer network framework based on container
US11165745B2 (en) Control system, controller, and control method
CN110519148B (en) Method, system and storage medium for establishing VPN channel by multilink backup
CN109901830B (en) Signal configuration method and system for scada system development
CN114978925A (en) Object model creating method and system
JP3739897B2 (en) Programmable controller
JP3618632B2 (en) CONTROL TERMINAL DEVICE, CONTROL SYSTEM, AND RECORDING MEDIUM CONTAINING THE PROGRAM
JP2010258865A (en) Field apparatus
CN107370623A (en) A kind of method and device for realizing system installation
CN114650223A (en) Network configuration method and device of Kubernetes cluster and electronic equipment
JP2000137508A (en) Controller
US10659306B2 (en) Information processing device and method for setting the environment of the device
JP2020149227A (en) Information processing apparatus, information processing system and program
CN103853139A (en) Air conditioner gateway and building centralized control system
TW589538B (en) Distributed field tool data accessing method
JP3797907B2 (en) Data creation apparatus for control system, data creation program, and recording medium recording the program
CN115242696A (en) Network card test environment building method, device and medium
JP2007252162A (en) Motor drive device
CN109343888B (en) FPGA program remote online updating system and method based on DSP

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