{"id":2346,"date":"2019-09-11T22:03:48","date_gmt":"2019-09-11T20:03:48","guid":{"rendered":"http:\/\/www.gtronic.it\/test\/?page_id=2346"},"modified":"2025-01-09T12:03:55","modified_gmt":"2025-01-09T11:03:55","slug":"gpl-tank-level-with-fb","status":"publish","type":"page","link":"https:\/\/www.gtronic.it\/test\/index.php\/gpl-tank-level-with-fb\/","title":{"rendered":"GPL Tank Level with FB"},"content":{"rendered":"<p>In this exercise we want to highlight the potential of the &#8220;Calculated&#8221; function available in Step 7 starting from the S7-1200 CPUs.<br \/>\nConsider a spherical tank for LPG gas.<br \/>\nWe want to show on an HMI and subsequently on the SCADA the actual volume of liquefied gas inside the tank tank.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2347\" src=\"http:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-GLP.png\" alt=\"tank GLP\" width=\"266\" height=\"189\" \/><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2343\" src=\"http:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2016\/06\/tank.gif\" alt=\"tank\" width=\"221\" height=\"228\" \/><\/p>\n<p>The images above show typical LPG technical tanks. The stairs to climb over the tank give an idea of the actual size.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-5616\" src=\"http:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2025\/01\/serbatoio-sferico.jpg\" alt=\"\" width=\"800\" height=\"800\" srcset=\"https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2025\/01\/serbatoio-sferico.jpg 800w, https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2025\/01\/serbatoio-sferico-300x300.jpg 300w, https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2025\/01\/serbatoio-sferico-150x150.jpg 150w, https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2025\/01\/serbatoio-sferico-768x768.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p style=\"text-align: center;\"><strong>Use this image for HMI background<\/strong><\/p>\n<p>There are two main ways of proceeding, the first involves the acquisition of the load cells inserted on the pedestals of the tank, for example with the Laumas scales introduced in this text, and a second method in which the measurement of the liquid level is used. inside the tank.<br \/>\nIn this example we will use this method.<br \/>\nIn geometry, each of the parts in which the surface of a sphere is subdivided by a secant plane is called a spherical cap. If the secant plane passes through a diameter of the sphere, the two parts are called hemispheres. The volume between the cap and the secant plane is called the spherical segment.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2344\" src=\"http:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2016\/06\/sfera.png\" alt=\"sfera\" width=\"626\" height=\"227\" srcset=\"https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2016\/06\/sfera.png 626w, https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2016\/06\/sfera-300x109.png 300w, https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2016\/06\/sfera-500x181.png 500w\" sizes=\"(max-width: 626px) 100vw, 626px\" \/><\/p>\n<p>We need to implement these formulas using the Calculated function.<br \/>\nThe level is shown using a bargraph on the touch. The HMI panel also shows the economic value of the stored material, calculated according to the current price per liter of LPG.<br \/>\nThe value is entered through the appropriate field in the touch.<br \/>\nThe system consists of a PLC model S7-1200 1212C AC \/ DC \/ rel and a KTP400 basic touch panel.<br \/>\nIn the network they are inserted with the IPs shown in the figure<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2348\" src=\"http:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-net.jpg\" alt=\"tank net\" width=\"444\" height=\"158\" srcset=\"https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-net.jpg 444w, https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-net-300x107.jpg 300w\" sizes=\"(max-width: 444px) 100vw, 444px\" \/><\/p>\n<p>Block OB1 contains only the unconditional jump to FC1.<br \/>\nIn FC1 we use the calculate function.<br \/>\nThis has the appearance of a block to which it is possible to add, by acting on the yellow star, a rather large number of topics to be used in the function we want to implement.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2349\" src=\"http:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/calcolate-tank.jpg\" alt=\"calcolate tank\" width=\"386\" height=\"358\" srcset=\"https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/calcolate-tank.jpg 386w, https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/calcolate-tank-300x278.jpg 300w, https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/calcolate-tank-323x300.jpg 323w\" sizes=\"(max-width: 386px) 100vw, 386px\" \/><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2350\" src=\"http:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/imposta-calcolate.png\" alt=\"imposta calcolate\" width=\"647\" height=\"226\" srcset=\"https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/imposta-calcolate.png 647w, https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/imposta-calcolate-300x105.png 300w, https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/imposta-calcolate-500x175.png 500w\" sizes=\"(max-width: 647px) 100vw, 647px\" \/><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2351\" src=\"http:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-seg-1.png\" alt=\"tank seg 1\" width=\"382\" height=\"249\" srcset=\"https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-seg-1.png 382w, https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-seg-1-300x196.png 300w\" sizes=\"(max-width: 382px) 100vw, 382px\" \/><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2352\" src=\"http:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-seg-2.png\" alt=\"tank seg 2\" width=\"622\" height=\"169\" srcset=\"https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-seg-2.png 622w, https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-seg-2-300x82.png 300w, https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-seg-2-500x136.png 500w\" sizes=\"(max-width: 622px) 100vw, 622px\" \/><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2353\" src=\"http:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-seg-3.png\" alt=\"tank seg 3\" width=\"505\" height=\"287\" srcset=\"https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-seg-3.png 505w, https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-seg-3-300x170.png 300w, https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-seg-3-500x284.png 500w\" sizes=\"(max-width: 505px) 100vw, 505px\" \/><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2354\" src=\"http:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-seg-4.png\" alt=\"tank seg 4\" width=\"547\" height=\"222\" srcset=\"https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-seg-4.png 547w, https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-seg-4-300x122.png 300w, https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-seg-4-500x203.png 500w\" sizes=\"(max-width: 547px) 100vw, 547px\" \/><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2355\" src=\"http:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-seg-5.png\" alt=\"tank seg 5\" width=\"505\" height=\"287\" srcset=\"https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-seg-5.png 505w, https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-seg-5-300x170.png 300w, https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-seg-5-500x284.png 500w\" sizes=\"(max-width: 505px) 100vw, 505px\" \/><\/p>\n<p>By double clicking inside the calculated block, the formula setting window appears in the &#8220;OUT: =&#8221; field in which we set.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2356\" src=\"http:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-table.png\" alt=\"tank table\" width=\"667\" height=\"310\" srcset=\"https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-table.png 667w, https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-table-300x139.png 300w, https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-table-500x232.png 500w\" sizes=\"(max-width: 667px) 100vw, 667px\" \/><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2357\" src=\"http:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-display-gottardo.jpg\" alt=\"tank display gottardo\" width=\"959\" height=\"553\" srcset=\"https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-display-gottardo.jpg 959w, https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-display-gottardo-300x173.jpg 300w, https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-display-gottardo-768x443.jpg 768w, https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2019\/09\/tank-display-gottardo-500x288.jpg 500w\" sizes=\"(max-width: 959px) 100vw, 959px\" \/><\/p>\n<p>The panel shows the value in cubic meters of the current content, the price in euros of the current content, and a field in which to input the current price of LPG for normal liter.<br \/>\nThe analog channel animation shows the internal level.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-5618 size-full\" src=\"http:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2025\/01\/Advanced-PLC-programming-2021.jpg\" alt=\"\" width=\"386\" height=\"499\" srcset=\"https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2025\/01\/Advanced-PLC-programming-2021.jpg 386w, https:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2025\/01\/Advanced-PLC-programming-2021-232x300.jpg 232w\" sizes=\"(max-width: 386px) 100vw, 386px\" \/><\/p>\n<p>Go to Amazon page to read about the book -&gt;\u00a0 <a href=\"https:\/\/www.amazon.it\/dp\/B08QRYT14D\">Advanced PLC programming 2021<\/a><\/p>\n<p>Italian tutorial youtube, activate inline translator.<\/p>\n<p><iframe loading=\"lazy\" title=\"Miscelatore per aranciata: Corsi di PLC Padova, semaforo con PLC Siemens S7-1200\" width=\"584\" height=\"329\" src=\"https:\/\/www.youtube.com\/embed\/-P-20oy-p00?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>download multi tank with FB complete\u00a0S7-1214C DC\/DC\/DC TIA V15.\u00a0<a href=\"http:\/\/www.gtronic.it\/test\/wp-content\/uploads\/2016\/06\/gpl-tank_1_20190911_1848.zip\">gpl tank_1_20190911_1848<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this exercise we want to highlight the potential of the &#8220;Calculated&#8221; function available in Step 7 starting from the S7-1200 CPUs. Consider a spherical tank for LPG gas. We want to show on an HMI and subsequently on the &hellip; <a href=\"https:\/\/www.gtronic.it\/test\/index.php\/gpl-tank-level-with-fb\/\">Continua a leggere<span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/www.gtronic.it\/test\/index.php\/wp-json\/wp\/v2\/pages\/2346"}],"collection":[{"href":"https:\/\/www.gtronic.it\/test\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.gtronic.it\/test\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.gtronic.it\/test\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gtronic.it\/test\/index.php\/wp-json\/wp\/v2\/comments?post=2346"}],"version-history":[{"count":6,"href":"https:\/\/www.gtronic.it\/test\/index.php\/wp-json\/wp\/v2\/pages\/2346\/revisions"}],"predecessor-version":[{"id":5619,"href":"https:\/\/www.gtronic.it\/test\/index.php\/wp-json\/wp\/v2\/pages\/2346\/revisions\/5619"}],"wp:attachment":[{"href":"https:\/\/www.gtronic.it\/test\/index.php\/wp-json\/wp\/v2\/media?parent=2346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}