{"id":313149,"date":"2020-11-14T21:01:08","date_gmt":"2020-11-14T21:01:08","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=313149"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=313149","title":{"rendered":"\u041a\u0430\u043a \u044f \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Google \u0441\u0434\u0435\u043b\u0430\u043b OPC2WEB \u043a\u043b\u0438\u0435\u043d\u0442"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\u042f \u0440\u0430\u0431\u043e\u0442\u0430\u044e \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043e\u043c \u0410\u0421\u0423\u0422\u041f \u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0443\u0432\u043b\u0435\u043a\u0430\u044e\u0441\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c: \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0413\u0443\u0433\u043b\u0430 \u0438 Stack Overflow \u0434\u0435\u043b\u0430\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440\u043e\u0432 \u043d\u0430 HTML \u0438 javascript, \u0434\u0435\u043b\u0430\u043b \u0431\u043e\u0442\u0430 \u0434\u043b\u044f \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c\u0430 \u043d\u0430 php, \u0434\u0430\u0436\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043b \u043d\u0430 c# \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435. \u0412 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0437\u0430\u0434\u0430\u0447\u0430 \u0431\u044b\u043b\u0430 \u043a\u0443\u0434\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435 \u0438 \u0441\u043b\u043e\u0436\u043d\u0435\u0435, \u0445\u043e\u0442\u044f \u0438 \u0437\u0432\u0443\u0447\u0430\u043b\u0430 \u043f\u0440\u043e\u0441\u0442\u043e: \u00ab\u0445\u043e\u0447\u0443 \u0432\u0438\u0434\u0435\u0442\u044c \u0432 \u0441\u0432\u043e\u0435\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0430\u0433\u0440\u0435\u0433\u0430\u0442\u0430\u00bb. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0438\u0441\u043a\u0430\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u0441\u043e\u0444\u0442: \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0442\u0430\u043a\u043e\u0435 \u0443\u0436\u0435 \u0434\u0430\u0432\u043d\u043e \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043d\u043e, \u0435\u0441\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u0438 \u0434\u0430\u0436\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0435 SCADA \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0432\u0435\u0431 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043d\u043e \u043e\u043d\u0438 \u0432\u0441\u0435 \u0431\u044b\u043b\u0438 \u0441\u0438\u043b\u044c\u043d\u043e \u043d\u0430\u0432\u043e\u0440\u043e\u0447\u0435\u043d\u044b \u0438 \u0441\u043b\u043e\u0436\u043d\u044b \u0434\u043b\u044f \u043c\u043e\u0435\u0433\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f, \u043a \u0442\u043e\u043c\u0443 \u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043f\u043e\u0434\u0443\u043c\u0430\u043b \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0441\u0430\u043c\u043e\u043c\u0443 \u0438 \u0432\u043e\u0442 \u0447\u0442\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0432\u044b\u0448\u043b\u043e:<\/p>\n<h3>Backend<\/h3>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u044f \u0440\u0435\u0448\u0438\u043b \u0447\u0442\u043e \u0431\u0443\u0434\u0443 \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0430\u043c, \u0441\u043d\u043e\u0432\u0430 \u043e\u0442\u043a\u0440\u044b\u043b \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a \u0438 \u0441\u0442\u0430\u043b \u0438\u0441\u043a\u0430\u0442\u044c \u043a\u0430\u043a \u0441\u0430\u043c\u043e\u043c\u0443 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0432\u043e\u0439 OPC \u043a\u043b\u0438\u0435\u043d\u0442. <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/jb\/oc\/wy\/jbocwy4qwoiq19-60gawbg2f8og.jpeg\"\/><br \/>  <a name=\"habracut\"><\/a><br \/>  \u041f\u043e\u0438\u0441\u043a\u0438 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u0432\u0435\u043b\u0438 \u043c\u0435\u043d\u044f \u043d\u0430 \u0445\u0430\u0431\u0440, \u0433\u0434\u0435 \u044f \u0443\u0437\u043d\u0430\u043b \u043f\u0440\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 OPCDOTNET. \u0412 \u0430\u0440\u0445\u0438\u0432\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043b\u0435\u0436\u0430\u043b \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043b \u043d\u0430 \u0441\u0432\u043e\u0435\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b \u043f\u0440\u043e\u0441\u0442\u043e\u0439 OPC \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440 (gray-box)\u2026 \u0438 \u043e \u0447\u0443\u0434\u043e! \u044f \u0443\u0432\u0438\u0434\u0435\u043b \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u044f\u044e\u0449\u0438\u0435\u0441\u044f \u0447\u0438\u0441\u043b\u0430. \u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u044f \u0441\u043c\u043e\u0433\u0443 \u0438\u0445 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u0442\u0432\u0435\u0442\u0430 \u043f\u043e \u0432\u0435\u0431\u0437\u0430\u043f\u0440\u043e\u0441\u0443. \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0437\u0430\u0445\u043e\u0434\u043e\u043c \u0432 \u0433\u0443\u0433\u043b \u0441\u0442\u0430\u043b \u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0432\u0435\u0431 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0433\u0434\u0435 \u043d\u0430\u0442\u043a\u043d\u0443\u043b\u0441\u044f \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f HttpListener. \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043b \u043f\u0440\u0438\u043c\u0435\u0440 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435, \u043f\u043e\u043d\u044f\u043b \u043a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0438 \u0441\u0442\u0430\u043b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0432\u0441\u0435 \u044d\u0442\u043e \u043a \u0441\u0432\u043e\u0435\u043c\u0443 OPC \u043a\u043b\u0438\u0435\u043d\u0442\u0443. \u0427\u0435\u0440\u0435\u0437 \u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043f\u044b\u0442\u043e\u043a \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0439, \u043f\u043e\u0438\u0441\u043a\u0430 \u043e\u0448\u0438\u0431\u043e\u043a \u043d\u0430 Stack Overflow \u0443 \u043c\u0435\u043d\u044f \u0432\u0441\u0435 \u0436\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u0437\u0430\u0432\u0435\u0442\u043d\u0443\u044e \u00ab\u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u00bb. \u042d\u0442\u043e \u0431\u044b\u043b\u0430 \u043f\u043e\u0431\u0435\u0434\u0430! \u041d\u043e \u044f \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u043e\u0434\u043d\u0430 \u043b\u0438\u0448\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u044d\u0442\u043e \u043d\u0435 \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u043e, \u0447\u0435\u0440\u0435\u0437 \u0432\u0440\u0435\u043c\u044f \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438 \u0437\u0430\u0445\u043e\u0442\u044f\u0442 \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043b\u0438\u043d\u0438\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u0442\u044c \u043a\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044b, \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b. \u041d\u0430 \u043f\u043e\u043c\u043e\u0449\u044c \u043f\u0440\u0438\u0448\u043b\u0438 \u0444\u0430\u0439\u043b\u044b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u0433\u0434\u0435 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0437\u0430\u0434\u0430\u0442\u044c \u043a\u0430\u043a\u0438\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u0445\u043e\u0442\u0438\u043c \u0432\u0438\u0434\u0435\u0442\u044c, \u0437\u0430\u0434\u0430\u0442\u044c \u043f\u043e\u0440\u0442 \u043f\u0440\u043e\u0441\u043b\u0443\u0448\u0438\u0432\u0430\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0432\u0440\u0435\u043c\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u043f\u0440\u043e\u0447\u0435\u0435. \u041e\u043f\u044b\u0442 \u0432 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0444\u0430\u0439\u043b\u043e\u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0443\u0436\u0435 \u0438\u043c\u0435\u043b\u0441\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0434\u0435\u043b\u0430\u043b \u0442\u0430\u043a \u043a\u0430\u043a \u0440\u0430\u043d\u0435\u0435 \u0434\u0435\u043b\u0430\u043b \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e. \u0422\u0430\u043a \u0436\u0435 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043a \u0434\u0440\u0443\u0433\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0443, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u0430\u043b \u0447\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u043b\u0441\u044f \u043f\u043e\u043b\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u0430 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0447\u0442\u043e \u043c\u0435\u043d\u044f\u043b\u0438\u0441\u044c (\u0432 \u0433\u043e\u0442\u043e\u0432\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 OPC \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u043b\u0438\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f). <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/5w\/js\/th\/5wjsthna6g26b0hgub4axegl9wy.png\"\/><\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0442\u0430\u043a\u0438\u0445 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0441\u0442\u0430\u043b\u0430 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0432 HTML \u0438\u0437 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432: \u043e\u0431\u0440\u0430\u0442\u0438\u0432\u0448\u0438\u0441\u044c \u0447\u0435\u0440\u0435\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0433\u0434\u0435 \u0431\u044b\u043b \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u044d\u0442\u043e\u0442 \u043a\u043b\u0438\u0435\u043d\u0442, \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0432\u0438\u0434\u0435\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0443, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u044b\u043b\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432 \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432 \u0441\u043e\u0441\u0435\u0434\u043d\u0435\u043c \u0441\u0442\u043e\u043b\u0431\u0446\u0435. \u042d\u0442\u043e \u0431\u044b\u043b\u043e \u0443\u0436\u0435 \u043d\u0435\u043f\u043b\u043e\u0445\u043e, \u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u043f\u0440\u043e\u043c\u0430\u0440\u0433\u0438\u0432\u0430\u043b\u0438, \u0430 \u0441\u0430\u043c\u0438 \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u0442\u0443\u043f\u043e \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u043b\u0438\u0441\u044c \u0434\u0440\u0443\u0433 \u0437\u0430 \u0434\u0440\u0443\u0433\u043e\u043c \u0445\u043e\u0442\u044c \u0438 \u0431\u044b\u043b\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0432 \u0432\u0438\u0434\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b. \u041a\u0441\u0442\u0430\u0442\u0438, \u0447\u0442\u043e\u0431\u044b \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u043b\u0438\u0441\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0435\u0436\u0435\u0441\u0435\u043a\u0443\u043d\u0434\u043d\u043e, \u0430 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043e\u0431\u043d\u043e\u0432\u0438\u0442 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0432 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0443\u044e \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0442\u0435\u0433 meta \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c Refresh. \u041d\u043e \u043c\u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0447\u0442\u043e\u0431\u044b \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u043b\u0438\u0441\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0438 \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043a\u0440\u043e\u043c\u0435 \u0431\u044d\u043a\u0435\u043d\u0434\u0430 \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u0435\u043b\u0430\u0442\u044c \u0438 \u0444\u0440\u043e\u043d\u0442: \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0437\u0430\u043f\u0440\u043e\u0441 \u043a \u043a\u043b\u0438\u0435\u043d\u0442\u0443, \u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0432\u0441\u0435 \u044d\u0442\u043e \u0432 \u043a\u0440\u0430\u0441\u0438\u0432\u043e\u043c \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u043c \u0432\u0438\u0434\u0435, \u0433\u0434\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u0430\u043a \u0437\u0430\u0431\u043b\u0430\u0433\u043e\u0440\u0430\u0441\u0441\u0443\u0434\u0438\u0442\u0441\u044f, \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0446\u0432\u0435\u0442\u0430, \u0448\u0440\u0438\u0444\u0442\u044b \u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u2014 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0432\u0441\u0435 \u0447\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e \u043f\u0440\u0438 \u0442\u0430\u043a\u043e\u043c-\u0442\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0435.<\/p>\n<h3>Frontend<\/h3>\n<p>  \u041f\u0440\u0438\u0448\u0435\u043b \u044f \u043a \u044d\u0442\u043e\u043c\u0443 \u043d\u0435 \u0441\u0440\u0430\u0437\u0443: \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0442\u0430\u043b \u0433\u0443\u0433\u043b\u0438\u0442\u044c \u043a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a \u0447\u0442\u043e\u0431\u044b \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u043b\u0438\u0441\u044c \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438. \u041a\u0430\u043a \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c AJAX, \u0442\u043e \u0435\u0441\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0447\u0435\u0440\u0435\u0437 javascript, \u0430 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0438\u0445 \u0447\u0435\u0440\u0435\u0437 JSON. \u0412 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043a\u043e\u043d\u043a\u0430\u0442\u0435\u043d\u0430\u0446\u0438\u0435\u0439 \u0441\u0442\u0440\u043e\u043a \u0441\u0434\u0435\u043b\u0430\u043b \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e JSON, \u043f\u0440\u0438\u0447\u0435\u043c \u0434\u043b\u044f \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0440\u0435\u0448\u0438\u043b \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443 \u0437\u0430\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435 \u0442\u0435\u0433\u0438. \u041f\u043e\u0442\u043e\u043c \u043d\u0430\u0448\u0435\u043b \u043f\u0440\u0438\u043c\u0435\u0440 \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0447\u0435\u0440\u0435\u0437 javascript \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0435\u0436\u0435\u0441\u0435\u043a\u0443\u043d\u0434\u043d\u043e JSON \u0441\u0442\u0440\u043e\u043a\u0430 \u0438 \u0432\u044b\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438\u0437 \u043d\u0435\u0435. \u041f\u043e\u043c\u0435\u043d\u044f\u0432 \u043a\u043e\u0434 \u043f\u043e\u0434 \u0441\u0432\u043e\u0438 \u043d\u0443\u0436\u0434\u044b \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0432 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u044f \u0443\u0432\u0438\u0434\u0435\u043b \u0447\u0442\u043e \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u2014 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b (!). \u042d\u0442\u043e \u0431\u044b\u043b\u0430 \u0435\u0449\u0435 \u043e\u0434\u043d\u0430 \u043f\u043e\u0431\u0435\u0434\u0430. \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u0434\u0435\u043b\u043e \u0437\u0430 \u043c\u0430\u043b\u044b\u043c \u2014 \u0433\u0440\u0430\u043c\u043e\u0442\u043d\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u0442\u043e \u0435\u0441\u0442\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0432 \u0432\u0438\u0434\u0435 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u0440\u0435\u0448\u0438\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a \u0436\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u0443, \u043d\u043e \u043f\u043e\u0442\u043e\u043c \u043f\u043e\u043d\u044f\u043b \u0447\u0442\u043e \u0431\u043b\u043e\u0447\u043d\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0441\u044f \u043a\u0440\u0430\u0441\u0438\u0432\u0435\u0435 \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0435\u0435. \u0411\u043b\u043e\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u043e\u043a\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u0432 \u0440\u0430\u0437\u043d\u044b\u0435 \u0446\u0432\u0435\u0442\u0430 \u0438 \u043c\u0435\u043d\u044f\u0442\u044c \u0438\u0445 \u0440\u0430\u0437\u043c\u0435\u0440. \u0410 \u0435\u0449\u0435 \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0433 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0438 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443, \u043d\u0435 \u0431\u0443\u0434\u0443 \u0436\u0435 \u044f \u043d\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u043d\u043e\u0432\u0443\u044e \u0445\u043e\u0442\u0435\u043b\u043a\u0443 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c HTML \u0444\u0430\u0439\u043b. \u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0442\u0430\u043a\u043e\u0439 \u0432\u043e\u0442 \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u043a\u0430\u043a \u043d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \u043d\u0438\u0436\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ct\/qe\/yl\/ctqeyl91-puc268iwwwhme08tjo.png\"\/><\/p>\n<p>  \u0417\u0434\u0435\u0441\u044c \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0431\u043b\u043e\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0442\u044c \u043c\u0430\u043b\u044b\u0435 \u0431\u043b\u043e\u043a\u0438 \u0441 \u043e\u0434\u043d\u0438\u043c \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u043e\u043c. \u0422\u0430\u043a\u0438\u0435 \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0431\u043b\u043e\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u043e\u0437\u0430\u0433\u043b\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0443\u0436\u043d\u043e, \u043c\u0435\u043d\u044f\u0442\u044c \u0438\u0445 \u0446\u0432\u0435\u0442\u0430 (\u0435\u0441\u043b\u0438 \u0449\u0435\u043b\u043a\u043d\u0443\u0442\u044c \u043f\u043e \u0431\u043b\u043e\u043a\u0443 \u0441 \u0437\u0430\u0436\u0430\u0442\u043e\u0439 \u043a\u043b\u0430\u0432\u0438\u0448\u0435\u0439 shift) \u0438 \u043c\u0435\u043d\u044f\u0442\u044c \u0438\u0445 \u0440\u0430\u0437\u043c\u0435\u0440. \u0411\u043b\u043e\u043a\u0438 \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u0434\u0432\u043e\u0439\u043d\u043e\u043c \u043a\u043b\u0438\u043a\u0435 \u043f\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u043c\u0443 \u0431\u043b\u043e\u043a\u0443. \u0412 \u043d\u0438\u0445 \u0442\u0430\u043a \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0438 \u0435\u0434\u0438\u043d\u0438\u0446\u044b \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f. \u0415\u0441\u043b\u0438 \u043d\u0435\u0447\u0430\u044f\u043d\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043d\u0435 \u0442\u043e\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0438\u043b\u0438 \u043d\u0435 \u0442\u0443\u0434\u0430, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0435\u0433\u043e \u2014 \u044f \u043f\u043e\u0434\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432 \u043e\u0434\u043d\u043e\u043c \u0431\u0443\u043a\u043c\u0430\u0440\u043a\u043b\u0435\u0442\u0435, \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u044f \u0435\u0433\u043e \u043a\u043e\u0434 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443. \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0432\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438\u0441\u0447\u0435\u0437\u043d\u0435\u0442 \u0438 \u0434\u043b\u044f \u0435\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043d\u0430\u0448\u0435\u043b \u0442\u0430\u043a\u0443\u044e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043a\u0430\u043a \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435. \u0410 \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0433\u043e\u0442\u043e\u0432\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0441\u0434\u0435\u043b\u0430\u043b \u0438\u043c\u043f\u043e\u0440\u0442 \u0438 \u044d\u043a\u0441\u043f\u043e\u0440\u0442 \u044d\u043a\u0440\u0430\u043d\u0430 \u0438\u0437 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430.<\/p>\n<p>  \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u0430\u0441\u044c \u0441 \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u043d\u0438\u0435\u043c \u0431\u043b\u043e\u043a\u043e\u0432 \u2014 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u043e drag and drop, \u043d\u043e \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043d\u0435\u043f\u043e\u0441\u0438\u043b\u044c\u043d\u043e. \u0412\u044b\u0448\u0435\u043b \u0438\u0437 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0442\u0430\u043a: \u0435\u0441\u043b\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0432 \u0445\u0440\u043e\u043c\u0435, \u0442\u043e \u0431\u043b\u043e\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0442\u044c. \u042d\u0442\u043e \u043d\u0430\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u043e \u043d\u0430 \u043c\u044b\u0441\u043b\u044c \u0447\u0442\u043e \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0432 \u043f\u0440\u0430\u0432\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443 \u043c\u044b\u0448\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u0435\u043d\u044f\u0442\u044c \u0431\u043b\u043e\u043a\u0438 \u043c\u0435\u0441\u0442\u0430\u043c\u0438. \u0421\u0435\u0439\u0447\u0430\u0441 \u0442\u0430\u043a\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0432\u043f\u043e\u043b\u043d\u0435 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u0430\u044f: \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u0441\u0438\u0433\u043d\u0430\u043b \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0439 OPC \u0442\u0435\u0433 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433 \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043a\u043b\u0438\u0435\u043d\u0442\u0430. \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0442\u0435\u0433 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 JSON \u0438 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u0432\u044b\u0432\u043e\u0434\u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u043d\u0438\u0437\u0443 \u043d\u043e\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u043a\u043b\u0438\u043a\u0430\u043c\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0438\u043b\u0438 \u043d\u043e\u0432\u044b\u0439 \u0431\u043b\u043e\u043a \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435. \u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0435 60 \u0442\u0435\u0433\u043e\u0432 \u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u044b \u0438\u0437 \u043d\u0438\u0445 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u043b \u0443\u0436\u0435 \u043d\u0435 \u044f, \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u0438 \u043d\u0435 \u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439, \u043d\u043e \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0432\u044b\u0432\u043e\u0434\u0430. \u041f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u043e\u0434 \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043c\u043e\u0436\u043d\u043e <a href=\"https:\/\/jsfiddle.net\/Weron2\/3cLv957k\/5\/\">\u0442\u0443\u0442<\/a><\/p>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>  \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0434\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0432\u0440\u043e\u0434\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438, \u043a\u0430\u043a \u043d\u0435\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \u0432\u0440\u043e\u0434\u0435 \u043c\u0435\u043d\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a\u043e\u0432 \u043c\u043e\u0436\u0435\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0435, \u0442\u043e \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u043b\u043e\u0432 \u043e \u0442\u043e\u043c \u043a\u0430\u043a \u0438\u043c\u0435\u043d\u043d\u043e \u044f \u0438\u0441\u043a\u0430\u043b \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e. \u0422\u0443\u0442 \u0432\u043f\u043e\u0440\u0443 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043a\u0430\u043a \u043d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \u0432 \u0441\u0430\u043c\u043e\u043c \u043d\u0430\u0447\u0430\u043b\u0435: \u0434\u0443\u043c\u0430\u0435\u0448\u044c \u0447\u0442\u043e \u0442\u044b \u0445\u043e\u0447\u0435\u0448\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438 \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0448\u044c \u043e\u0431 \u044d\u0442\u043e\u043c\u0443 \u0443 \u0433\u0443\u0433\u043b\u0430, \u0430 \u0435\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0433\u0434\u0435-\u0442\u043e \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u0442\u043e \u0441\u043c\u043e\u0442\u0440\u0438\u0448\u044c \u043d\u0430 \u043a\u043e\u0434\u044b \u043e\u0448\u0438\u0431\u043e\u043a \u0438 \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0448\u044c \u0441\u043d\u043e\u0432\u0430. \u041e\u0447\u0435\u043d\u044c \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u043f\u043e\u0438\u0441\u043a \u043d\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u043c \u044f\u0437\u044b\u043a\u0435 \u2014 \u0434\u0430\u0436\u0435 \u0432\u0431\u0438\u0432 \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0441\u043b\u043e\u0432\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043f\u043e\u0434\u043e\u0431\u043d\u0443\u044e \u0440\u0435\u0448\u0435\u043d\u043d\u0443\u044e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043d\u0430 \u0441\u0442\u0430\u043a\u043e\u0432\u0435\u0440\u0444\u043b\u043e\u0443 \u0441 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c\u044e 80%. \u0414\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432, \u043a\u043e\u0434 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0442\u0443\u043f\u043e \u0432\u0437\u044f\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0432 \u0441\u0432\u043e\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0441\u043b\u043e\u0432\u0430 \u043a\u0430\u043a \u00abexample\u00bb \u0438\u043b\u0438 \u043f\u043e-\u0440\u0443\u0441\u0441\u043a\u0438 \u00ab\u043f\u0440\u0438\u043c\u0435\u0440\u00bb. \u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0445\u043e\u0440\u043e\u0448\u0438\u0445 \u0438\u0434\u0435\u0439 \u043d\u0430\u0448\u043b\u043e\u0441\u044c \u043d\u0430 \u0445\u0430\u0431\u0440\u0435, \u0442\u043e \u0435\u0441\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0432 \u0437\u0430\u043f\u0440\u043e\u0441 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e \u00abhabr\u00bb, \u043d\u043e \u044f \u0442\u0430\u043a\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e\u0433\u0434\u0430 \u043a\u043e\u0433\u0434\u0430 \u0442\u043e\u0447\u043d\u043e \u0437\u043d\u0430\u043b \u0447\u0442\u043e \u043d\u0430 \u0445\u0430\u0431\u0440\u0435 \u0432\u0438\u0434\u0435\u043b \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0438\u0449\u0443. \u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043b\u044e\u0431\u0430\u044f \u043c\u0435\u043b\u043a\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u0438\u0437 \u0432\u0441\u0435\u0433\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e, \u0440\u0435\u0448\u0430\u043b\u0430\u0441\u044c \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a: \u00abchange div color shift click js\u00bb, \u00abmake div resizeable\u00bb, \u00ab\u043a\u0430\u043a \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0435\u0431 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443\u00bb\u2026 \u0441\u043e\u0442\u043d\u044f \u0432\u0430\u0440\u0438\u0430\u0446\u0438\u0439 \u0440\u0430\u0437\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u043f\u0440\u043e\u0444\u0438 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441\u0432\u043e\u0438\u043c\u0438 \u0441\u043e\u0432\u0435\u0442\u0430\u043c\u0438.<\/p>\n<p>  \u0418 \u0434\u0430, \u0440\u0430\u0437 \u0443\u0436 \u0440\u0435\u0447\u044c \u0437\u0430\u0448\u043b\u0430 \u043e \u0441\u043e\u0432\u0435\u0442\u0430\u0445, \u0442\u043e \u043c\u043d\u0435 \u0431\u044b \u0435\u0449\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0442 \u0432\u0430\u0441 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u0438\u0432\u043d\u0443\u044e \u043a\u0440\u0438\u0442\u0438\u043a\u0443 \u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0441\u043e\u0432\u0435\u0442\u044b. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043a\u0442\u043e-\u0442\u043e \u0437\u0430\u0445\u043e\u0447\u0435\u0442 \u0440\u0430\u0437\u043c\u044f\u0442\u044c \u043c\u043e\u0437\u0433\u0438 \u0438 \u0441\u043c\u043e\u0436\u0435\u0442 \u0437\u0430 \u043f\u0430\u0440\u0443 \u0447\u0430\u0441\u043e\u0432 \u043d\u0430\u043a\u0438\u0434\u0430\u0442\u044c \u043a\u0443\u0434\u0430 \u0431\u043e\u043b\u0435\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435. \u0418\u043b\u0438 \u043c\u043e\u0436\u0435\u0442 \u043a\u043e\u0433\u043e-\u0442\u043e \u044d\u0442\u043e\u0442 \u043f\u043e\u0441\u0442 \u043d\u0430\u0442\u043e\u043b\u043a\u043d\u0435\u0442 \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0438\u0434\u0435\u0438, \u0432\u0435\u0434\u044c \u0442\u0430\u043a\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0439 JSON \u0437\u0430\u043f\u0440\u043e\u0441 \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430 \u0435\u0433\u043e \u043e\u0441\u043d\u043e\u0432\u0435 \u043b\u044e\u0431\u0443\u044e \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443. \u0411\u044b\u043b\u043e \u0431\u044b \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0443\u0442\u043e \u0437\u0430\u0438\u043c\u0435\u0442\u044c \u043f\u043e\u0445\u043e\u0436\u0435\u0435 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u0433\u0434\u0435 \u043c\u043e\u0436\u043d\u043e \u043b\u044e\u0431\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0442\u0430\u043a \u043a\u0430\u043a \u0442\u0435\u0431\u0435 \u044d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u043e, \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u043c\u0438 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0444\u043e\u0440\u043c\u0430\u043c\u0438, drag and drop, resize \u0438 \u0432\u0441\u0435 \u0442\u0430\u043a\u043e\u0435 \u043f\u0440\u043e\u0447\u0435\u0435, \u0447\u0442\u043e\u0431\u044b \u043a\u0440\u0430\u0441\u0438\u0432\u043e \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e, \u0430 \u043d\u0435 \u0432\u043e\u0442 \u044d\u0442\u043e \u0432\u043e\u0442 \u0432\u0441\u0435. \u0425\u043e\u0442\u044f \u0438 \u0442\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043d\u0435\u043f\u043b\u043e\u0445\u043e, \u044f \u0441\u0447\u0438\u0442\u0430\u044e. \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0430\u0433\u0440\u0435\u0433\u0430\u0442\u0430, \u043a\u0430\u043a \u0438 \u043f\u0440\u043e\u0441\u0438\u043b \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a, \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c \u0438\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043d\u043e\u0432\u043e\u0435 \u043d\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u0442 \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u0442\u0440\u0443\u0434\u0430.<\/p>\n<p>  \u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 <a href=\"https:\/\/dotnetfiddle.net\/47kRkR\">\u043a\u043e\u0434 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043d\u0430 C#<\/a><\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041b\u0438\u0431\u043e \u043f\u043e\u0434 \u0441\u043f\u043e\u0439\u043b\u0435\u0440\u043e\u043c<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">\/*=====================================================================   File:      OPCCSharp.cs    Summary:   OPC sample client for C#  -----------------------------------------------------------------------   This file is part of the Viscom OPC Code Samples.    Copyright(c) 2001 Viscom (www.viscomvisual.com) All rights reserved.  THIS CODE AND INFORMATION ARE PROVIDED &quot;AS IS&quot; WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND\/OR FITNESS FOR A PARTICULAR PURPOSE. ======================================================================*\/  using System; using System.Threading; using System.Runtime.InteropServices; using System.Configuration; using OPC.Common; using OPC.Data; using System.Net; using System.Globalization; using System.Data.SqlClient; using System.Data; using System.Net.Sockets;   namespace CSSample {     class Tester     {         \/\/ ***********************************************************\tEDIT THIS :         string serverProgID = ConfigurationManager.AppSettings[&quot;opcID&quot;];         \/\/ ProgID of OPC server          private OpcServer theSrv;         private OpcGroup theGrp;         private static float[] currentValues;         private static string responseStringG =&quot;&quot;;         private static HttpListener listener = new HttpListener();          private static string consoleOut = ConfigurationManager.AppSettings[&quot;consoleOutput&quot;];         private static string answerType = ConfigurationManager.AppSettings[&quot;answerType&quot;];         private static string portNumb = ConfigurationManager.AppSettings[&quot;portNumber&quot;];         private static int timeref = Int32.Parse(ConfigurationManager.AppSettings[&quot;refreshTime&quot;]);         private static string[] tagsNames = ConfigurationManager.AppSettings[&quot;tagsNames&quot;].Split(','); \/\/ tags from config         private static string[] ratios = ConfigurationManager.AppSettings[&quot;ratios&quot;].Split(',');          private static string sqlSend = ConfigurationManager.AppSettings[&quot;sqlSend&quot;];         private static string udpSend = ConfigurationManager.AppSettings[&quot;udpSend&quot;];         private static string webSend = ConfigurationManager.AppSettings[&quot;webSend&quot;];         private static string table_name = ConfigurationManager.AppSettings[&quot;table&quot;]; \/\/ \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0438\u0437 \u043a\u043e\u043d\u0444\u0438\u0433\u0430;         private static string column_name = ConfigurationManager.AppSettings[&quot;column&quot;];         private static int sendtags = Int32.Parse(ConfigurationManager.AppSettings[&quot;tags2send&quot;]);                  private static IPAddress remoteIPAddress = IPAddress.Parse(ConfigurationManager.AppSettings[&quot;remoteIP&quot;]); \/\/ Ip from config         private static int remotePort = Convert.ToInt16(ConfigurationManager.AppSettings[&quot;remotePort&quot;]); \/\/ remote port from config          public static SqlConnection myConn = new SqlConnection(ConfigurationManager.ConnectionStrings[&quot;connstr&quot;].ConnectionString); \/\/\u0441\u0442\u0440\u043e\u043a\u0430 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0441 SQL \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0435\u0440\u0435\u0442\u0441\u044f \u0438\u0437 \u043a\u043e\u043d\u0444\u0438\u0433\u0430         SqlCommand myCommand = new SqlCommand(&quot;Command String&quot;, myConn);          public void Work()         {             \/*\ttry\t\t\t\t\t\t\/\/ disabled for debugging                 {\t*\/              theSrv = new OpcServer();             theSrv.Connect(serverProgID);             Thread.Sleep(500);              \/\/ we are faster then some servers!              \/\/ add our only working group             theGrp = theSrv.AddGroup(&quot;OPCCSharp-Group&quot;, false, timeref);              string[] tags = ConfigurationManager.AppSettings[&quot;tags&quot;].Split(','); \/\/ tags from config             if (sendtags &gt; tags.Length) sendtags = tags.Length;                  var itemDefs = new OPCItemDef[tags.Length];             for (var i = 0; i &lt; tags.Length; i++)             {                 itemDefs[i] = new OPCItemDef(tags[i], true, i, VarEnum.VT_EMPTY);             }              OPCItemResult[] rItm;             theGrp.AddItems(itemDefs, out rItm);             if (rItm == null)                 return;             if (HRESULTS.Failed(rItm[0].Error) || HRESULTS.Failed(rItm[1].Error))             {                 Console.WriteLine(&quot;OPC Tester: AddItems - some failed&quot;); theGrp.Remove(true); theSrv.Disconnect(); return;              };              var handlesSrv = new int[itemDefs.Length];             for (var i = 0; i &lt; itemDefs.Length; i++)             {                 handlesSrv[i] = rItm[i].HandleServer;             }              currentValues = new Single[itemDefs.Length];              \/\/ asynch read our two items             theGrp.SetEnable(true);             theGrp.Active = true;             theGrp.DataChanged += new DataChangeEventHandler(this.theGrp_DataChange);             theGrp.ReadCompleted += new ReadCompleteEventHandler(this.theGrp_ReadComplete);               int CancelID;              int[] aE;             theGrp.Read(handlesSrv, 55667788, out CancelID, out aE);              \/\/ some delay for asynch read-complete callback (simplification)             Thread.Sleep(500);              while (webSend==&quot;yes&quot;)             {                 HttpListenerContext context = listener.GetContext();                 HttpListenerRequest request = context.Request;                 HttpListenerResponse response = context.Response;                 context.Response.AddHeader(&quot;Access-Control-Allow-Origin&quot;, &quot;*&quot;);                   byte[] buffer = System.Text.Encoding.UTF8.GetBytes(responseStringG);                 \/\/ Get a response stream and write the response to it.                 response.ContentLength64 = buffer.Length;                 System.IO.Stream output = response.OutputStream;                 output.Write(buffer, 0, buffer.Length);                 \/\/ You must close the output stream.                 output.Close();             }             \/\/ disconnect and close             Console.WriteLine(&quot;************************************** hit &lt;return&gt; to close...&quot;);             Console.ReadLine();             theGrp.ReadCompleted -= new ReadCompleteEventHandler(this.theGrp_ReadComplete);             theGrp.RemoveItems(handlesSrv, out aE);             theGrp.Remove(false);             theSrv.Disconnect();             theGrp = null;             theSrv = null;               \/*\t}             catch( Exception e )                 {                 Console.WriteLine( &quot;EXCEPTION : OPC Tester &quot; + e.ToString() );                 return;                 }\t*\/         }          \/\/ ------------------------------ events -----------------------------          public void theGrp_DataChange(object sender, DataChangeEventArgs e)         {              foreach (OPCItemState s in e.sts)             {                 if (HRESULTS.Succeeded(s.Error))                 {                     if (consoleOut == &quot;yes&quot;)                     {                         Console.WriteLine(&quot; ih={0} v={1} q={2} t={3}&quot;, s.HandleClient, s.DataValue, s.Quality, s.TimeStamp); \/\/ \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c                     }                     currentValues[s.HandleClient] = Convert.ToSingle(s.DataValue) * Single.Parse(ratios[s.HandleClient], CultureInfo.InvariantCulture.NumberFormat); \/\/\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0435\u0433\u0430                 }                 else                     Console.WriteLine(&quot; ih={0}    ERROR=0x{1:x} !&quot;, s.HandleClient, s.Error);             }             string responseString = &quot;{&quot;;             if (answerType == &quot;table&quot;)             {                 responseString = &quot;&lt;HTML&gt;&lt;head&gt;&lt;meta charset=\\&quot;UTF-8\\&quot;&gt;&lt;meta http-equiv=\\&quot;Refresh\\&quot; content=\\&quot;&quot; + timeref \/ 1000 + &quot;\\&quot;\/&gt;&lt;\/head&gt;&quot; +             &quot;&lt;BODY&gt;&lt;table border&gt;&lt;tr&gt;&lt;td&gt;&quot; + string.Join(&quot;&lt;br&gt;&quot;, tagsNames) + &quot;&lt;\/td&gt;&lt;td &gt;&quot; + string.Join(&quot;&lt;br&gt;&quot;, currentValues) + &quot;&lt;\/td&gt;&lt;\/tr&gt;&lt;\/table&gt;&lt;\/BODY&gt;&lt;\/HTML&gt;&quot;;                 responseStringG = responseString;             }             else             {                 for (int i = 0; i &lt; currentValues.Length - 1; i++) responseString = responseString + &quot;\\&quot;tag&quot; + i + &quot;\\&quot;:\\&quot;&quot; + currentValues[i] + &quot;\\&quot;, &quot;;                 responseString = responseString + &quot;\\&quot;tag&quot; + (currentValues.Length - 1) + &quot;\\&quot;:\\&quot;&quot; + currentValues[currentValues.Length - 1] + &quot;\\&quot;}&quot;;                 responseStringG = responseString;             }             byte[] byteArray = new byte[sendtags * 4];             Buffer.BlockCopy(currentValues, 0, byteArray, 0, byteArray.Length);             if (sqlSend == &quot;yes&quot;)             {                 try                 {                     SqlCommand cmd = new SqlCommand(&quot;INSERT INTO &quot; + table_name + &quot; (&quot; + column_name + &quot;) values (@bindata)&quot;, myConn);                     myConn.Open();                     var param = new SqlParameter(&quot;@bindata&quot;, SqlDbType.Binary)                     { Value = byteArray };                     cmd.Parameters.Add(param);                     cmd.ExecuteNonQuery();                     myConn.Close();                 }                 catch (Exception err)                 {                     Console.WriteLine(&quot;SQL-exception: &quot; + err.ToString());                     return;                 }             }              if (udpSend == &quot;yes&quot;)  UDPsend(byteArray);         }          private static void UDPsend(byte[] datagram)         {             \/\/ \u0421\u043e\u0437\u0434\u0430\u0435\u043c UdpClient             UdpClient sender = new UdpClient();              \/\/ \u0421\u043e\u0437\u0434\u0430\u0435\u043c endPoint \u043f\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e\u0431 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u043c \u0445\u043e\u0441\u0442\u0435             IPEndPoint endPoint = new IPEndPoint(remoteIPAddress, remotePort);              try             {                  sender.Send(datagram, datagram.Length, endPoint);                 \/\/Console.WriteLine(&quot;Sended&quot;, datagram);             }             catch (Exception ex)             {                 Console.WriteLine(&quot;\u0412\u043e\u0437\u043d\u0438\u043a\u043b\u043e \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435: &quot; + ex.ToString() + &quot;\\n  &quot; + ex.Message);             }             finally             {                 \/\/ \u0417\u0430\u043a\u0440\u044b\u0442\u044c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435                 sender.Close();             }         }         public void theGrp_ReadComplete(object sender, ReadCompleteEventArgs e)         {             Console.WriteLine(&quot;ReadComplete event: gh={0} id={1} me={2} mq={3}&quot;, e.groupHandleClient, e.transactionID, e.masterError, e.masterQuality);             foreach (OPCItemState s in e.sts)             {                 if (HRESULTS.Succeeded(s.Error))                 {                     Console.WriteLine(&quot; ih={0} v={1} q={2} t={3}&quot;, s.HandleClient, s.DataValue, s.Quality, s.TimeStamp);                 }                 else                     Console.WriteLine(&quot; ih={0}    ERROR=0x{1:x} !&quot;, s.HandleClient, s.Error);             }         }          static void Main(string[] args)         {             string url = &quot;http:\/\/*&quot;;             string port = portNumb;             string prefix = String.Format(&quot;{0}:{1}\/&quot;, url, port);             listener.Prefixes.Add(prefix);             listener.Start();                          Tester tst = new Tester();             tst.Work();         }     } }  \/* add this code to app.exe.config file &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;configuration&gt;   &lt;startup&gt;     &lt;supportedRuntime version=&quot;v4.0&quot; sku=&quot;.NETFramework,Version=v4.6.1&quot; \/&gt;   &lt;\/startup&gt;   &lt;appSettings&gt;     &lt;add key=&quot;opcID&quot; value=&quot;Graybox.Simulator&quot; \/&gt;     &lt;add key=&quot;tagsNames&quot; value=&quot;Line Speed,Any name,\u041b\u044e\u0431\u043e\u0435 \u0438\u043c\u044f&quot; \/&gt;     &lt;add key=&quot;tags&quot; value=&quot;numeric.sin.int16,numeric.sin.int16,numeric.sin.int16&quot; \/&gt;     &lt;!-- ratios for tags --&gt;     &lt;add key=&quot;ratios&quot; value=&quot;1,0.5,0.1&quot; \/&gt;     &lt;add key=&quot;portNumber&quot; value=&quot;45455&quot; \/&gt;     &lt;add key=&quot;refreshTime&quot; value=&quot;1000&quot; \/&gt;     &lt;!-- &quot;yes&quot; or no to show values in console--&gt;     &lt;add key=&quot;consoleOutput&quot; value=&quot;yes&quot; \/&gt;     &lt;add key=&quot;webSend&quot; value=&quot;no&quot; \/&gt;      &lt;!-- &quot;table&quot; or json (actually any other word for json)--&gt;     &lt;add key=&quot;answerType&quot; value=&quot;json&quot; \/&gt;      &lt;add key=&quot;sqlSend&quot; value=&quot;no&quot; \/&gt;     &lt;add key=&quot;table&quot; value=&quot;raw_tbl&quot; \/&gt;     &lt;add key=&quot;column&quot; value=&quot;data&quot; \/&gt;          &lt;add key=&quot;udpSend&quot; value=&quot;yes&quot; \/&gt;     &lt;add key=&quot;remotePort&quot; value=&quot;3310&quot;\/&gt;     &lt;add key=&quot;remoteIP&quot; value=&quot;127.0.0.1&quot;\/&gt;      &lt;add key=&quot;tags2send&quot; value=&quot;2&quot; \/&gt;        &lt;\/appSettings&gt;      &lt;connectionStrings&gt;     &lt;add connectionString=&quot;Password=12345;Persist Security Info=True;User ID=user12345;Initial Catalog=amt;Data Source=W7-VS2017&quot; name=&quot;connstr&quot; \/&gt;   &lt;\/connectionStrings&gt;     &lt;\/configuration&gt;      *\/  <\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/528064\/\"> https:\/\/habr.com\/ru\/post\/528064\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\u042f \u0440\u0430\u0431\u043e\u0442\u0430\u044e \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043e\u043c \u0410\u0421\u0423\u0422\u041f \u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0443\u0432\u043b\u0435\u043a\u0430\u044e\u0441\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c: \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0413\u0443\u0433\u043b\u0430 \u0438 Stack Overflow \u0434\u0435\u043b\u0430\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440\u043e\u0432 \u043d\u0430 HTML \u0438 javascript, \u0434\u0435\u043b\u0430\u043b \u0431\u043e\u0442\u0430 \u0434\u043b\u044f \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c\u0430 \u043d\u0430 php, \u0434\u0430\u0436\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043b \u043d\u0430 c# \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435. \u0412 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0437\u0430\u0434\u0430\u0447\u0430 \u0431\u044b\u043b\u0430 \u043a\u0443\u0434\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435 \u0438 \u0441\u043b\u043e\u0436\u043d\u0435\u0435, \u0445\u043e\u0442\u044f \u0438 \u0437\u0432\u0443\u0447\u0430\u043b\u0430 \u043f\u0440\u043e\u0441\u0442\u043e: \u00ab\u0445\u043e\u0447\u0443 \u0432\u0438\u0434\u0435\u0442\u044c \u0432 \u0441\u0432\u043e\u0435\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0430\u0433\u0440\u0435\u0433\u0430\u0442\u0430\u00bb. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0438\u0441\u043a\u0430\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u0441\u043e\u0444\u0442: \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0442\u0430\u043a\u043e\u0435 \u0443\u0436\u0435 \u0434\u0430\u0432\u043d\u043e \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043d\u043e, \u0435\u0441\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u0438 \u0434\u0430\u0436\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0435 SCADA \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0432\u0435\u0431 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043d\u043e \u043e\u043d\u0438 \u0432\u0441\u0435 \u0431\u044b\u043b\u0438 \u0441\u0438\u043b\u044c\u043d\u043e \u043d\u0430\u0432\u043e\u0440\u043e\u0447\u0435\u043d\u044b \u0438 \u0441\u043b\u043e\u0436\u043d\u044b \u0434\u043b\u044f \u043c\u043e\u0435\u0433\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f, \u043a \u0442\u043e\u043c\u0443 \u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043f\u043e\u0434\u0443\u043c\u0430\u043b \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0441\u0430\u043c\u043e\u043c\u0443 \u0438 \u0432\u043e\u0442 \u0447\u0442\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0432\u044b\u0448\u043b\u043e:<\/p>\n<h3>Backend<\/h3>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u044f \u0440\u0435\u0448\u0438\u043b \u0447\u0442\u043e \u0431\u0443\u0434\u0443 \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0430\u043c, \u0441\u043d\u043e\u0432\u0430 \u043e\u0442\u043a\u0440\u044b\u043b \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a \u0438 \u0441\u0442\u0430\u043b \u0438\u0441\u043a\u0430\u0442\u044c \u043a\u0430\u043a \u0441\u0430\u043c\u043e\u043c\u0443 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0432\u043e\u0439 OPC \u043a\u043b\u0438\u0435\u043d\u0442. <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/jb\/oc\/wy\/jbocwy4qwoiq19-60gawbg2f8og.jpeg\"\/>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-313149","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/313149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=313149"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/313149\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=313149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=313149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=313149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}