CN110890902B - PLC equipment testing system and method - Google Patents

PLC equipment testing system and method Download PDF

Info

Publication number
CN110890902B
CN110890902B CN201911300510.XA CN201911300510A CN110890902B CN 110890902 B CN110890902 B CN 110890902B CN 201911300510 A CN201911300510 A CN 201911300510A CN 110890902 B CN110890902 B CN 110890902B
Authority
CN
China
Prior art keywords
plc
test
machine
human
equipment
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
CN201911300510.XA
Other languages
Chinese (zh)
Other versions
CN110890902A (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.)
Shenzhen Samkoon Technology Corp ltd
Original Assignee
Shenzhen Samkoon Technology Corp 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 Shenzhen Samkoon Technology Corp ltd filed Critical Shenzhen Samkoon Technology Corp ltd
Priority to CN201911300510.XA priority Critical patent/CN110890902B/en
Publication of CN110890902A publication Critical patent/CN110890902A/en
Application granted granted Critical
Publication of CN110890902B publication Critical patent/CN110890902B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/02Details
    • H04B3/46Monitoring; Testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/54Systems for transmission via power distribution lines

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Engineering (AREA)
  • Programmable Controllers (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

The invention discloses a PLC device testing system and a method. Relates to the field of industrial control, wherein the system comprises: the system comprises a PLC device, an all-in-one machine and a human-computer interaction device, wherein the human-computer interaction device is used for establishing communication connection with the all-in-one machine and transmitting a test instruction, and the all-in-one machine is in communication connection with the PLC device and used for receiving the test instruction sent by the human-computer interaction device and controlling the PLC device to test according to the test instruction in real time. Through with PLC equipment, human-computer interaction equipment, all-in-one communication connection, the unified test system of coupling one-tenth realizes the interactive connection control, establishes data information's input-output stream, carries out PLC equipment functional test, reduces the cost of labor for product efficiency of software testing, the appearance of product is quickened. Can be widely applied to the field of industrial control.

Description

PLC equipment testing system and method
Technical Field
The invention relates to the field of industrial control, in particular to a PLC (programmable logic controller) equipment testing system and method.
Background
With the advent of industrial manufacturing 4.0, automatic control products such as human-machine interaction devices (e.g., HMI screens) and programmable logic controllers (PLC devices) are constantly being updated with the aim of achieving faster, more accurate, and more stable accurate control. The PLC device is used as an executing actuator, and the application field of the PLC device comprises a plurality of fields such as medical treatment, production and manufacturing, power communication, intelligent control and the like. After the product is researched and developed, equipment testing is needed, the purpose is to find out the possible problems of the product in the actual use process, find the problems in advance, and release the product after solving the problem of predictability. The existing PLC equipment test is more mechanized, single function test is mostly carried out by single manpower, the test efficiency is too low for companies for intelligent product production and research and development, and the manpower expenditure is too large, so that a method and a system capable of improving the test efficiency of the PLC equipment are required to be provided.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides a PLC equipment testing system which can improve the PLC equipment testing efficiency.
In a first aspect, an embodiment of the present invention provides a: a PLC device test system, comprising: PLC equipment, an all-in-one machine and human-computer interaction equipment;
the human-computer interaction equipment is used for establishing communication connection with the all-in-one machine and transmitting a test instruction;
the all-in-one machine is in communication connection with the PLC equipment and is used for receiving the test instruction sent by the human-computer interaction equipment and controlling the PLC equipment to test in real time according to the test instruction.
Further, the human-computer interaction device is connected with the all-in-one machine through a serial port, and the test instruction comprises at least one of the following: historical alarm testing, data acquisition, formula testing and data transmission.
Furthermore, the all-in-one machine comprises a screen end and an internal controller, the external address of the human-computer interaction device is the same as the address of the internal controller, and the screen end is connected with the internal controller.
The PLC test system further comprises a first device, wherein the first device is connected with the PLC device and is used for monitoring the test state and the test process of the PLC device.
Further, the first device is further configured to change an address value of the PLC device and/or switch an operating state of the PLC device.
The embodiment A of the invention has at least the following beneficial effects: through with PLC equipment, human-computer interaction equipment, all-in-one communication connection, the unified test system of coupling one-tenth realizes the interactive connection control, establishes data information's input-output stream, carries out PLC equipment functional test, reduces the cost of labor for product efficiency of software testing, the appearance of product is quickened.
In a second aspect, an embodiment of the present invention provides a PLC apparatus testing method, including:
receiving a test instruction of the human-computer interaction equipment sent by the all-in-one machine;
and carrying out the test process of the PLC equipment according to the test instruction.
Further, still include: and sending the test state and the test process data to the first equipment for testing and monitoring on the first equipment.
And further, completing a testing process according to the testing instruction of the human-computer interaction equipment by utilizing the created macro command.
In a third aspect, an embodiment of the present invention provides a PLC device, which is characterized by being tested by using a PLC device testing system according to any one of the first aspect.
The beneficial effects of the invention are:
the PLC equipment test system of the invention comprises: the system comprises a PLC device, an all-in-one machine and a human-computer interaction device, wherein the human-computer interaction device is used for establishing communication connection with the all-in-one machine and transmitting a test instruction, and the all-in-one machine is in communication connection with the PLC device and used for receiving the test instruction sent by the human-computer interaction device and controlling the PLC device to test according to the test instruction in real time. Through with PLC equipment, human-computer interaction equipment, all-in-one communication connection, the unified test system of coupling one-tenth realizes the interactive connection control, establishes data information's input-output stream, carries out PLC equipment functional test, reduces the cost of labor for product efficiency of software testing, the appearance of product is quickened.
Can be widely applied to the field of industrial control.
Drawings
Fig. 1 is a schematic block diagram of a specific embodiment of a PLC device test system according to an embodiment of the present invention;
fig. 2 is a schematic signal flow diagram of an embodiment of a PLC device testing system according to the present invention.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will be made with reference to the accompanying drawings. It is obvious that the drawings in the following description are only some examples of the invention, and that for a person skilled in the art, other drawings and embodiments can be derived from them without inventive effort.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
The first embodiment is as follows:
because a fixed test system and a stable test flow are not formed in the current test of a new PLC device product, and more, each prototype is mechanically tested repeatedly, the time cost and labor cost spent in the test are high, and the appearance speed of the product is accelerated simultaneously in order to avoid the problems.
Fig. 1 is a block diagram of a test system of a PLC device 300 according to an embodiment of the present invention, and as shown in fig. 1, the test system includes: the PLC equipment 300, the all-in-one machine 200, the human-computer interaction equipment 100 and the first equipment 400 are connected in the following relationship:
the man-machine interaction device 100 establishes communication connection with the all-in-one machine 200 to transmit a test instruction; the all-in-one machine 200 is in communication connection with the PLC device 300 and is configured to receive a test instruction sent by the human-computer interaction device 100 and control the PLC device 300 to perform a test according to the test instruction in real time; the first device 400 is connected to the PLC device 300, and is configured to monitor a test status and a test procedure of the PLC device 300, and the first device 400 is further configured to change an address value of the PLC device 300 and/or switch an operating status of the PLC device 300.
Specifically, the all-in-one machine 200 includes a screen end 210 and an internal controller 220, an external address of the human-computer interaction device 100 is the same as an address of the internal controller 220, the screen end 210 is connected to the internal controller 220, for example, communication and power connection can be performed optionally through internal female and male pins, after connection, the screen end 210 can display an address value of the internal controller 220, and meanwhile, the address value of the internal controller 220 can be modified through the screen end 210.
Further, an interface of the internal controller 220 of the all-in-one machine 200 may be an RS485 communication interface, which is connected to a serial communication port of the human-computer interaction device 100, for example, an optional COM port conversion RS485 communication line connects the human-computer interaction device 100 and the internal controller 220 of the all-in-one machine 200, and establishes communication between the human-computer interaction device 100 and the internal controller 220 of the all-in-one machine 200, where COM is a shorthand of cluster communication, that is, a serial communication port, and further, a COM port may select a 9-pin mode. It is understood that RS485 can be replaced by an interface of the same type as RS232 and RS422, and is not limited herein.
Further, the all-in-one machine 200 and the PLC device 300 are optionally connected through an RS485 communication line, and communication between the screen end 210 of the all-in-one machine 200 and the PLC is established.
Further, the PLC device 300 may be selectively connected to the first device 400 through a USB socket to perform USB communication, the first device 400 may be a computer, and one of the functions of the first device 400 is to monitor a test state of the PLC device 300 during a test process, so as to conveniently and intuitively check whether a test action of the PLC device 300 is correct. In addition, the first device 400 can also achieve the purpose of controlling the functions of the electronic devices connected to the PLC by changing the address value of the PLC device 300 or switching the state of the PLC device 300 as needed, where the test includes a functional test and a coupling test with products such as the all-in-one machine 200 and the human-computer interaction device 100.
Specifically, the Human-Machine interaction device 100 may be an HMI screen, which is fully called a Human Machine Interface and means Human-Machine interaction, and the corresponding HMI screen is a Human-Machine interaction screen, which is also called a touch screen. The all-in-one machine 200 comprises a screen and an internal controller 220, and also has the control functions of temperature and analog quantity, and the functions of the three are connected with the screen end 210 through the internal controller 220, so that the mutual control effect is achieved, and the coupling is realized.
As shown in fig. 2, which is a schematic diagram of a signal flow direction of the PLC device 300 testing system of this embodiment, it can be seen that all signal flows in this embodiment are bidirectional flows, so that mutual transmission of information can be realized, and thus information sharing is realized. For example, the information of the PLC device 300 and the data during the test process may be transmitted to the human-computer interaction device 100 through the all-in-one machine 200 for display, and the all-in-one machine 200 may directly display the information of the human-computer interaction device 100 and the PLC device 300. In addition, the control information flow of the test system in the embodiment is also bidirectional, thereby realizing mutual control among all the components. For example, the human-computer interaction device 100 may control the switching value, the address value, etc. of the PLC device 300 through the all-in-one machine 200, and the all-in-one machine 200 may also directly control the human-computer interaction device 100 and the PLC device 300.
The control process between the respective components is described in detail below.
1) The human-computer interaction device 100 is connected with the all-in-one machine 200, and can perform direct interaction of information flow and control information flow, and meanwhile, the external address of the human-computer interaction device 100 is the same as the address of the internal controller 220 of the all-in-one machine 200, and the address is a memory serial number used for data access in the device. For example, the external address can be selected by the human-computer interaction device 100, or the address of the internal controller 220 can be selected by the all-in-one machine 200, so that the human-computer interaction device 100 and the all-in-one machine 200 can be tested at the same time. In a specific application scenario, the human-computer interaction device 100 may invoke a macro command to execute a test operation, and issue a test instruction, where the test instruction includes at least one of the following: historical alarm testing, data acquisition, formula testing and data transmission. Further, the embodiment may further encapsulate the test instruction into a functional module, and the user clicks the corresponding functional module to perform the corresponding test.
2) The all-in-one machine 200 is directly connected with the human-computer interaction device 100 and the PLC device 300, and can perform direct interaction, and the all-in-one machine 200 receives a test instruction sent by the human-computer interaction device 100 in real time and controls the PLC device 300 to perform a test according to the test instruction in real time, or receives an instruction of the PLC device 300, for example, an instruction sent by an electronic device connected with the PLC device 300. Further, addresses of the PLC device 300 and the internal controller 220 are set at the screen end 210, so that the screen end 210 can directly control the internal controller 220 of the all-in-one machine 200 and the external PLC device 300. Similarly, the all-in-one machine 200 and the PLC device 300 can be simultaneously tested by creating a macro, and the testing process is controlled by the screen end 210.
3) The PLC device 300 is used as a test executor, performs a corresponding test according to the test instruction, and simultaneously, visually displays the test process through the first device 400, and verifies whether each test instruction is correctly executed. After the communication is successful, the test instruction is transmitted to the corresponding address, and when the PLC device 300 receives the test instruction, the operation test is started, and the test state and the test process data are transmitted to the first device 400. Further, in this embodiment, the PLC device 300 may also control the human-computer interaction device 100 to perform relevant operations.
By using the test system of the embodiment, when another PLC device 300 needs to be tested, only the program related to the test needs to be downloaded to the PLC device 300 to be tested for testing, thereby saving the program writing time.
Through the test system of the PLC equipment 300 of this embodiment, connect human-computer interaction equipment 100, all-in-one 200 and PLC equipment 300 as an organic whole, realize the interactive connection control, establish the input/output stream of data information, carry out the functional test of PLC equipment 300, reduce the cost of labor for product test efficiency accelerates the appearance of product.
Example two:
the embodiment provides a PLC device testing method, including:
S1: receiving a test instruction of the human-computer interaction equipment sent by the all-in-one machine;
s2: and carrying out the test process of the PLC equipment according to the test instruction.
Further, the method also comprises the step of sending the test state and the test process data to the first equipment for test monitoring on the first equipment.
Further, the created macro command can be used for completing the test process according to the test instruction of the human-computer interaction device.
The present embodiment is applied to the PLC device testing system described in the first embodiment, and the information flow and the control information flow in the PLC device testing process performed by the system are already described in detail in the foregoing embodiments, and are not described again here.
Example three:
the embodiment provides a PLC device, which can be tested by using the PLC testing device according to the first embodiment, where the testing includes a functional testing and a coupling testing with products such as an all-in-one machine and a human-computer interaction device.
The PLC equipment test system of the invention comprises: the system comprises a PLC device, an all-in-one machine and a human-computer interaction device, wherein the human-computer interaction device is used for establishing communication connection with the all-in-one machine and transmitting a test instruction, and the all-in-one machine is in communication connection with the PLC device and used for receiving the test instruction sent by the human-computer interaction device and controlling the PLC device to test according to the test instruction in real time. Through with PLC equipment, human-computer interaction equipment, all-in-one communication connection, the unified test system of coupling one-tenth realizes the interactive connection control, establishes data information's input-output stream, carries out PLC equipment functional test, reduces the cost of labor for product efficiency of software testing, the appearance of product is quickened. Can be widely applied to the field of industrial control.
The above embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same, although the present invention is described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.

Claims (8)

1. A PLC device test system, comprising: PLC equipment, an all-in-one machine and human-computer interaction equipment;
the human-computer interaction equipment is used for establishing communication connection with the all-in-one machine and transmitting a test instruction;
the all-in-one machine is in communication connection with the PLC equipment and is used for receiving a test instruction sent by the human-computer interaction equipment and controlling the PLC equipment to test in real time according to the test instruction, and the all-in-one machine is also used for receiving the instruction of the PLC equipment;
the all-in-one machine comprises a screen end and an internal controller, wherein an external address of the human-computer interaction device is the same as an address of the internal controller, the screen end is connected with the internal controller, the all-in-one machine is in communication connection with the PLC device and establishes communication between the screen end of the all-in-one machine and the PLC device, the screen end is used for setting the addresses of the PLC device and the internal controller so that the screen end directly controls the PLC device and the internal controller, the all-in-one machine and the PLC device can also carry out simultaneous testing through a macro instruction, the screen end is also used for controlling the testing process of the all-in-one machine and the PLC device, and the PLC device is also used for controlling the human-computer interaction device so that the human-computer interaction device can carry out corresponding operation;
And the information of the PLC equipment and the data in the test process are transmitted to the human-computer interaction equipment through the all-in-one machine to be displayed, and the information of the human-computer interaction equipment and the information of the PLC equipment are displayed by the all-in-one machine.
2. The PLC device test system of claim 1, wherein the human-computer interaction device is connected with the all-in-one machine through a serial port, and the test instruction comprises at least one of the following: historical alarm testing, data acquisition, formula testing and data transmission.
3. The PLC device testing system according to claim 1, further comprising a first device connected to the PLC device for monitoring a test status and a test process of the PLC device.
4. The PLC device test system of claim 3, wherein the first device is further configured to change the address value of the PLC device and/or switch the operating state of the PLC device.
5. A PLC device testing method applied to the PLC device testing system according to any one of claims 1 to 4, comprising:
receiving a test instruction of the human-computer interaction equipment sent by the all-in-one machine;
And carrying out the test process of the PLC equipment according to the test instruction.
6. The PLC device testing method according to claim 5, further comprising: and sending the test state and the test process data to the first equipment for testing and monitoring on the first equipment.
7. The PLC device testing method of claim 6, wherein a testing process is performed according to a testing instruction of the human-computer interaction device by using the created macro command.
8. A PLC device characterised by being tested using a PLC device testing system as claimed in any one of claims 1 to 4.
CN201911300510.XA 2019-12-17 2019-12-17 PLC equipment testing system and method Active CN110890902B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911300510.XA CN110890902B (en) 2019-12-17 2019-12-17 PLC equipment testing system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911300510.XA CN110890902B (en) 2019-12-17 2019-12-17 PLC equipment testing system and method

Publications (2)

Publication Number Publication Date
CN110890902A CN110890902A (en) 2020-03-17
CN110890902B true CN110890902B (en) 2022-05-24

Family

ID=69752194

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911300510.XA Active CN110890902B (en) 2019-12-17 2019-12-17 PLC equipment testing system and method

Country Status (1)

Country Link
CN (1) CN110890902B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008084276A (en) * 2006-09-29 2008-04-10 Omron Corp Programmable logic controller device
CN204666719U (en) * 2015-06-04 2015-09-23 北京华电天仁电力控制技术有限公司 A kind of device for testing power for Wind Turbine Electric Pitch System system
CN106601068A (en) * 2017-01-22 2017-04-26 山东交通学院 Ship handling simulator driving and controlling device simulation test system
CN107391211A (en) * 2017-08-17 2017-11-24 昌辉汽车电气***(安徽)有限公司 The general detection traceability system and method for a kind of intelligent switch group
CN108562763A (en) * 2018-06-29 2018-09-21 陈伟 Automobile wheel speed sensor tests system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008084276A (en) * 2006-09-29 2008-04-10 Omron Corp Programmable logic controller device
CN204666719U (en) * 2015-06-04 2015-09-23 北京华电天仁电力控制技术有限公司 A kind of device for testing power for Wind Turbine Electric Pitch System system
CN106601068A (en) * 2017-01-22 2017-04-26 山东交通学院 Ship handling simulator driving and controlling device simulation test system
CN107391211A (en) * 2017-08-17 2017-11-24 昌辉汽车电气***(安徽)有限公司 The general detection traceability system and method for a kind of intelligent switch group
CN108562763A (en) * 2018-06-29 2018-09-21 陈伟 Automobile wheel speed sensor tests system

Also Published As

Publication number Publication date
CN110890902A (en) 2020-03-17

Similar Documents

Publication Publication Date Title
CN102360046B (en) General test method for motor vehicle electrical product
CN105005280B (en) A kind of industrial equipment man-machine interactive system and its control method based on intelligent wireless terminal
CN103024544B (en) Interaction system of television
CN103440812B (en) A kind of industrial network tutoring system
CN205959050U (en) All -in -one controlling means
CN103941648A (en) Multi-axis motion control system and control method thereof
CN107037795A (en) A kind of industrial stokehold technique guides system
CN108247632A (en) A kind of cooperation robot control system based on ROS
CN201518506U (en) Test equipment for stabilization of software of set top box
CN106774118B (en) Robot manipulation's box and operating system
CN110890902B (en) PLC equipment testing system and method
CN105938678A (en) Multi-platform numerical control simulator
CN103744387A (en) Intelligent electric control executing system with redundant site bus and analog quantity control functions
CN106547218B (en) Direct-current transmission field layer real-time simulation system, simulation system and closed-loop test system
CN206671808U (en) A kind of wireless remote switch executing agency
CN211086953U (en) Intelligent remote signal breakpoint controller
KR20100125722A (en) Hmi system
CN104021050A (en) Server
CN102622937A (en) Robot demonstrator
CN106125662A (en) Intelligent touch display programmable logic controller (PLC) and using method
CN112986724A (en) Electric power secondary equipment test control management device
CN210038522U (en) Virtual debugging system for cement plant equipment
CN206134100U (en) Novel multi -platform numerical control emulation ware
CN104932467A (en) Method for controlling program-controlled equipment in centralized way
CN109910007A (en) Joint of robot communication switching device and method

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
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Song Bin

Inventor after: Wei Xianfeng

Inventor before: Song Bin

Inventor before: Wei Xianfeng

GR01 Patent grant
GR01 Patent grant