CN115050243A - Method for establishing PLC cloud experiment platform based on S7 protocol - Google Patents
Method for establishing PLC cloud experiment platform based on S7 protocol Download PDFInfo
- Publication number
- CN115050243A CN115050243A CN202111369734.3A CN202111369734A CN115050243A CN 115050243 A CN115050243 A CN 115050243A CN 202111369734 A CN202111369734 A CN 202111369734A CN 115050243 A CN115050243 A CN 115050243A
- Authority
- CN
- China
- Prior art keywords
- plc
- soft
- middleware
- virtual
- control
- 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.)
- Pending
Links
- 238000002474 experimental method Methods 0.000 title claims abstract description 20
- 238000000034 method Methods 0.000 title claims abstract description 15
- 230000003993 interaction Effects 0.000 claims description 6
- 238000006243 chemical reaction Methods 0.000 claims description 3
- 238000005516 engineering process Methods 0.000 abstract description 2
- 238000004364 calculation method Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000013178 mathematical model Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09B—EDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
- G09B19/00—Teaching not covered by other main groups of this subclass
- G09B19/0053—Computers, e.g. programming
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Computer Hardware Design (AREA)
- Entrepreneurship & Innovation (AREA)
- Physics & Mathematics (AREA)
- Educational Administration (AREA)
- Educational Technology (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Programmable Controllers (AREA)
Abstract
The invention discloses a method for combining teaching models, experimental models, internet + education, big data and other emerging technologies, constructing a virtual control object scene on a cloud server, and simultaneously implementing data exchange between the virtual scene and PLC development software by using a soft PLC middleware aiming at common PLC development software. The method establishes data exchange between common PLC programming software and a virtual control object scene, realizes that the PLC experiment is not limited by time, field, equipment and the like, better develops on-line experiment teaching about the PLC, and achieves the aim of integrating the in-class and out-of-class experiments and not isolating theoretical links from practical links.
Description
Technical Field
The invention relates to the technical field of experiment teaching, in particular to a method for building a PLC virtual simulation experiment cloud platform by using soft middleware.
Background
Programmable Logic Controllers (PLCs) have found wide applications in various fields of industrial control due to their high reliability, wide application, powerful functionality, and convenient use. At the present stage, PLC courses are set up in each of the universities and colleges in China in a dispute, the courses are professional compulsory courses for students in the professions of electrical, automation and machinery, teaching contents mainly include PLC basic knowledge and PLC operation and use, and the proportion of experiment teaching is large and the practice is very strong. The professional student can be competent for post-employment work or effectively carry out next research learning only through a large amount of practice teaching and relevant programming skills in a skillful mastery area.
At present, PLC control experiment teaching in colleges and universities faces practical problems of high investment cost, large occupied area, simple and few experiment contents, fixed experiment duration and the like. The experimental equipment is processed by using a virtual simulation technology, data interaction between a virtual control object and PLC development software is performed by using a soft middle part, the problems can be better solved by building an experimental cloud platform, and the experimental cloud platform can also respond to a national call, so that class halt and learning avoidance can be realized, and online experiments are performed.
Disclosure of Invention
Aiming at the defects of the existing PLC on-line experiment teaching, the invention aims to provide a method for realizing data interaction between a virtual control object and PLC development software. Meanwhile, a method for connecting a virtual control object with a webpage when a PLC cloud platform is built and an anti-cheating question bank of a PLC experiment are also provided.
In order to achieve the purpose, the invention provides a method for communicating with PLC development software based on an S7 protocol and forwarding the acquired data to a background server.
The S7 message received by the TCP protocol by using the soft intermediate method comprises three parts, namely TPKT, COTP and S7 PDU, wherein the S7 PDU is a part which actually acts. And S7 PDU is divided into HEADER, PARAMETER and DATA. And enabling the virtual control object to exchange data with the network background.
The method for building the virtual simulation object comprises the steps of utilizing modeling software to build a model of the experimental object, utilizing 3DMAX to carry out required format conversion, exporting a suffix FBX file, and then utilizing Unity3D to package animation into a WEBGL packet embedded webpage.
The anti-cheating question bank is used for acquiring corresponding questions according to the question ids, then users answer the questions according to the acquired questions, the answers are uploaded to the background to be intelligently checked, and then the webpage is used for acquiring judgment results to be displayed.
Drawings
Fig. 1 is a soft intermediate principle schematic.
FIG. 2 is a flow chart of web page 3D animation development;
Detailed Description
The cloud platform constructed by the method realizes online teaching of PLC experiments, and the method comprises the following steps:
1. building a 3D animation model, modeling by using modeling software, performing required format conversion by using 3DMAX software, and performing logic writing by using Unity3D, so that a webpage can load Unity3D animation and obtain an instance; after receiving the background information, the webpage sends corresponding data to the Unity to ensure that the animation is matched with the experimental data; carrying out corresponding animation after the Unity3D receives the information;
2. establishing a soft middleware to perform data interaction between a virtual control object and PLC development software, wherein the interaction is characterized in that the data of the PLC development software can control an animation model established on a webpage, and the action of the animation model is directly fed back to the soft middleware so as to control a writing program of the PLC development software;
3. based on different virtual control objects, a random question appears by utilizing an anti-cheating question library, and the question comprises different control logics;
4. the student writes a program on the PLC development software to realize control logic;
5. and the cloud experiment platform completes state calculation in a mathematical model according to the obtained control information and judges whether the control logic is correct or incorrect. And feeding back the data to obtain an experimental result.
It will be understood by those skilled in the art that the foregoing is only an exemplary embodiment of the present invention, and is not intended to limit the invention to the particular forms disclosed, since various modifications, substitutions and improvements within the spirit and scope of the invention are possible and within the scope of the appended claims.
Claims (3)
1. A method for establishing a PLC cloud experiment platform based on an S7 protocol is characterized by comprising the following steps:
1) the cloud experiment platform establishes the 2D/3D model in a network page according to the method, presents random control logic based on an anti-cheating question bank, controls the virtual simulation experiment model by using a program written by PLC programming software and counts control results.
2) And the soft middleware reads the control data from the PLC programming software and sends the control data to the virtual control object, and meanwhile, the control result of the virtual object can be fed back to the soft middleware, so that the actual data interaction condition can be observed.
2. The cloud platform of claim 1, wherein the data flow is characterized by:
1) the cloud experiment platform is deployed in a wide area network, and the soft middleware is connected with the virtual control object and the PLC programming software is connected with the soft middleware through a TCP/IP communication protocol;
2) the 2D/3D model is built in a network page, modeling is carried out by using modeling software, required format conversion is carried out by using 3DMAX, an FBX file with a suffix is exported, and animation is packaged into a WEBGL package embedded webpage by using Unity 3D.
3) The random control logic utilizes the anti-cheating question bank to compile different PLC virtual control objects, so that different students can compile different logics to prevent cheating.
3. The cloud experiment platform of claim 1, wherein the experiment process is characterized in that:
1) the trainee observes the control logic needed by the virtual control object on the webpage;
2) the student compiles a logic program on the PLC programming software;
3) opening the soft middleware, and reading the compiled program by the PLC soft middleware;
4) and opening a webpage, connecting a soft middleware in the webpage, carrying out data interaction, feeding back data information to the soft middleware, judging whether the compiling program is correct or incorrect, counting experimental results, and feeding back.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111369734.3A CN115050243A (en) | 2021-11-16 | 2021-11-16 | Method for establishing PLC cloud experiment platform based on S7 protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111369734.3A CN115050243A (en) | 2021-11-16 | 2021-11-16 | Method for establishing PLC cloud experiment platform based on S7 protocol |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115050243A true CN115050243A (en) | 2022-09-13 |
Family
ID=83156247
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111369734.3A Pending CN115050243A (en) | 2021-11-16 | 2021-11-16 | Method for establishing PLC cloud experiment platform based on S7 protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115050243A (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030066026A1 (en) * | 2001-08-13 | 2003-04-03 | David Jaffe | System and method for simulating a laboratory experiment |
CN103019102A (en) * | 2012-11-28 | 2013-04-03 | 河南科技大学东海硅产业节能技术研究院 | Semi-physical computer simulation network experimental apparatus |
CN107976917A (en) * | 2017-12-19 | 2018-05-01 | 长沙理工大学 | A kind of half control class specialized comprehensive experiment cloud service platform in kind |
CN108319161A (en) * | 2018-02-05 | 2018-07-24 | 浙江大学 | A kind of industry SCADA system emulation platform |
CN108418807A (en) * | 2018-02-05 | 2018-08-17 | 浙江大学 | A kind of industrial control system popular protocol is realized and monitoring analyzing platform |
CN109683545A (en) * | 2018-11-30 | 2019-04-26 | 安徽智训机器人技术有限公司 | A kind of Virtual Intelligent manufacture system for intelligent tutoring |
CN110932958A (en) * | 2019-12-05 | 2020-03-27 | 浙江中控科教仪器设备有限公司 | Cloud virtual sharing practice teaching platform and remote control method |
CN111223358A (en) * | 2019-12-02 | 2020-06-02 | 中国计量大学现代科技学院 | Virtual-real combined remote experiment teaching information processing system and method and intelligent terminal |
CN112068457A (en) * | 2020-08-17 | 2020-12-11 | 杭州电子科技大学 | WebGL-based PLC configuration virtual simulation experiment system |
US20210168175A1 (en) * | 2015-10-28 | 2021-06-03 | Qomplx, Inc. | Ai-driven defensive cybersecurity strategy analysis and recommendation system |
AU2021102525A4 (en) * | 2021-05-12 | 2021-07-01 | Hefei Zhonglu Information Technology Co., Ltd. | Virtuality and Reality Combination Remote Experiment Teaching Information Processing System, Method and Intelligent Terminal |
CN113075915A (en) * | 2021-03-31 | 2021-07-06 | 西安建筑科技大学 | Em-plant based virtual simulation implementation method, system and equipment |
-
2021
- 2021-11-16 CN CN202111369734.3A patent/CN115050243A/en active Pending
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030066026A1 (en) * | 2001-08-13 | 2003-04-03 | David Jaffe | System and method for simulating a laboratory experiment |
CN103019102A (en) * | 2012-11-28 | 2013-04-03 | 河南科技大学东海硅产业节能技术研究院 | Semi-physical computer simulation network experimental apparatus |
US20210168175A1 (en) * | 2015-10-28 | 2021-06-03 | Qomplx, Inc. | Ai-driven defensive cybersecurity strategy analysis and recommendation system |
CN107976917A (en) * | 2017-12-19 | 2018-05-01 | 长沙理工大学 | A kind of half control class specialized comprehensive experiment cloud service platform in kind |
CN108319161A (en) * | 2018-02-05 | 2018-07-24 | 浙江大学 | A kind of industry SCADA system emulation platform |
CN108418807A (en) * | 2018-02-05 | 2018-08-17 | 浙江大学 | A kind of industrial control system popular protocol is realized and monitoring analyzing platform |
CN109683545A (en) * | 2018-11-30 | 2019-04-26 | 安徽智训机器人技术有限公司 | A kind of Virtual Intelligent manufacture system for intelligent tutoring |
CN111223358A (en) * | 2019-12-02 | 2020-06-02 | 中国计量大学现代科技学院 | Virtual-real combined remote experiment teaching information processing system and method and intelligent terminal |
CN110932958A (en) * | 2019-12-05 | 2020-03-27 | 浙江中控科教仪器设备有限公司 | Cloud virtual sharing practice teaching platform and remote control method |
CN112068457A (en) * | 2020-08-17 | 2020-12-11 | 杭州电子科技大学 | WebGL-based PLC configuration virtual simulation experiment system |
CN113075915A (en) * | 2021-03-31 | 2021-07-06 | 西安建筑科技大学 | Em-plant based virtual simulation implementation method, system and equipment |
AU2021102525A4 (en) * | 2021-05-12 | 2021-07-01 | Hefei Zhonglu Information Technology Co., Ltd. | Virtuality and Reality Combination Remote Experiment Teaching Information Processing System, Method and Intelligent Terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100929252B1 (en) | 3D stereoscopic content-based interactive technology education | |
CN107886821A (en) | Towards the simulation test stand and its data communications method of PLC school duty rooms | |
KR100929256B1 (en) | 3D stereoscopic content-based interactive technology education system | |
CN104575150A (en) | Multi-user online cooperating method, device and system for power simulation training | |
Stadnicka et al. | Human factor in industry of the future: Knowledge acquisition and motivation | |
Tran et al. | An interactive approach to teach automation in the training of the industry 4.0 | |
CN115050243A (en) | Method for establishing PLC cloud experiment platform based on S7 protocol | |
Ostrowski et al. | Lesson learned from semester of online teaching of automation using simulators | |
Ostojic et al. | Development and implementation of didactic sets in mechatronics and industrial engineering courses | |
CN112581850A (en) | Virtual debugging system of multifunctional production line and equipment | |
Haack et al. | Remote laboratory for activating lecture hall teaching and distance learning | |
Palma et al. | WEB PLC simulator for ST programming | |
CN111951656B (en) | Electric power network safety practical training teaching system and method based on sand table simulation and AR | |
Antkowiak et al. | Cyber-physical production systems: a teaching concept in engineering education | |
Dietz et al. | Teaching digitalization and systems modeling for virtual commissioning using virtual labs | |
CN203405975U (en) | A PLC technology application teaching apparatus | |
Popescu et al. | Remote vs. simulated, virtual or real-time automation laboratory | |
KR20210117650A (en) | Virtual reality (VR) 3D stereoscopic content-based interactive technology education method that can maximize education and practice effects | |
CN113965600B (en) | Experimental teaching method and system based on real-time construction of Internet of things | |
Väänänen et al. | Virtual learning environment concept for PLC-programming-case: Building automation | |
Zieringer et al. | Development of an application for teaching PLC and robot programming based on OPC UA | |
Covanich et al. | Using ANSI/ISA-S88 in reconfigurable immersive learning: A pathway from substation operation simulator to reconfigurable product and production demo line for learning factory | |
Gurocak | E Lab: Technology Assisted Delivery Of A Laboratory Course At A Distance | |
García et al. | Cyber-Physical Labs to enhance engineering training and education | |
CN207337732U (en) | A kind of industry control network is set up and debugging actual training device |
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 |