{"id":68174,"date":"2026-01-29T08:00:00","date_gmt":"2026-01-29T02:30:00","guid":{"rendered":"https:\/\/ye1o34zhk8.onrocket.site\/?p=68174"},"modified":"2025-07-21T16:29:42","modified_gmt":"2025-07-21T10:59:42","slug":"omron-plc-sample-code","status":"publish","type":"post","link":"https:\/\/instrumentationtools.com\/omron-plc-sample-code\/","title":{"rendered":"Omron PLC Sample Code: Liquid Temperature Control System"},"content":{"rendered":"\n<p><strong>This article will discuss an Omron PLC sample code related to Liquid Temperature Control System in a tank using CX-Programmer.<\/strong> The PLC system aims to maintain the liquid temperature within the range of 30-40 degrees Celsius. In this system, the liquid can only be manually added to or removed from the tank using a valve. The system can provide a <a href=\"https:\/\/instrumentationtools.com\/fire-detection-alarm-system\/\">warning alarm<\/a> if the temperature exceeds the maximum limit or falls below the minimum limit.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-program-objective\">Program Objective<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"1919\" height=\"1079\" src=\"https:\/\/instrumentationtools.com\/wp-content\/uploads\/2026\/01\/Liquid-Temperature-Control-System.jpg\" alt=\"Liquid Temperature Control System\" class=\"wp-image-68179\"\/><\/figure>\n\n\n\n<p>This system has an Input Valve and an Output Valve to control the <a href=\"https:\/\/instrumentationtools.com\/determine-level-of-liquid-in-the-vessel-and-its-specific-gravity\/\">liquid in the tank<\/a>. The heater is used to heat the liquid, and the exhaust fan is used to reduce the liquid temperature.<\/p>\n\n\n\n<p>Input Valve and Output Valve can be operated manually using buttons<\/p>\n\n\n\n<p><strong>Manual Mode:<\/strong><\/p>\n\n\n\n<p>In Manual mode, the Heater and Exhaust Fan can only be operated using buttons.<\/p>\n\n\n\n<p><strong>Auto Mode:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In Auto Mode, the <a href=\"https:\/\/instrumentationtools.com\/hand-switches\/\">Selector Switch<\/a> must be changed to Auto Mode.<\/li>\n\n\n\n<li>Next, the Heater or Exhaust Fan will automatically turn ON to adjust the fluid temperature.<\/li>\n\n\n\n<li>When the fluid temperature is above 40 degrees, the exhaust fan will turn ON to reduce the temperature.<\/li>\n\n\n\n<li>When the liquid temperature is below 30 degrees, the heater will turn ON to increase the liquid temperature.<\/li>\n<\/ul>\n\n\n\n<p>When the liquid temperature is above 50 degrees or below 25 degrees, the alarm will turn ON, this indicates that the liquid temperature is not within normal limits.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-omron-plc-sample-code\">Omron PLC Sample Code<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"1615\" height=\"2560\" src=\"https:\/\/instrumentationtools.com\/wp-content\/uploads\/2026\/01\/Omron-PLC-Sample-Code-scaled.png\" alt=\"Omron PLC Sample Code\" class=\"wp-image-68190\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-io-mapping\">IO Mapping<\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>S.No.<\/th><th>Comment<\/th><th>Input (I)<\/th><th>Output (Q)<\/th><th>Memory Bit<\/th><th>Memory Word<\/th><\/tr><\/thead><tbody><tr><td>1<\/td><td>PB_START<\/td><td>0.00<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr><td>2<\/td><td>PB_STOP<\/td><td>0.01<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr><td>3<\/td><td>AUTO\/MANUAL<\/td><td>0.02<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr><td>4<\/td><td>HEATER_BUTTON<\/td><td>0.03<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr><td>5<\/td><td>EXHAUST_FAN_BUTTON<\/td><td>0.04<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr><td>6<\/td><td>PB_VALVE_IN<\/td><td>0.05<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr><td>7<\/td><td>PB_VALVE_OUT<\/td><td>0.06<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr><td>8<\/td><td>VALVE_INPUT<\/td><td>&nbsp;<\/td><td>100.00<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr><td>9<\/td><td>VALVE_OUTPUT<\/td><td>&nbsp;<\/td><td>100.01<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr><td>10<\/td><td>HEATER<\/td><td>&nbsp;<\/td><td>100.02<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr><td>11<\/td><td>EXHAUST_FAN<\/td><td>&nbsp;<\/td><td>100.03<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr><td>12<\/td><td>ALARM_OVER_HEAT<\/td><td>&nbsp;<\/td><td>100.04<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr><td>13<\/td><td>ALARM_LOW_TEMPERATURE<\/td><td>&nbsp;<\/td><td>100.05<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr><td>14<\/td><td>SYSTEM_ON<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>W0.00<\/td><td>&nbsp;<\/td><\/tr><tr><td>15<\/td><td>HEATER_MANUAL<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>W0.01<\/td><td>&nbsp;<\/td><\/tr><tr><td>16<\/td><td>EXHAUST_FAN_MANUAL<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>W0.02<\/td><td>&nbsp;<\/td><\/tr><tr><td>17<\/td><td>EXHAUST_FAN_AUTO<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>W0.03<\/td><td>&nbsp;<\/td><\/tr><tr><td>18<\/td><td>HEATER_AUTO<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>W0.04<\/td><td>&nbsp;<\/td><\/tr><tr><td>19<\/td><td>PV_TEMPERATURE<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>D0<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-liquid-temperature-control-system\">Liquid Temperature Control System<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"1020\" src=\"https:\/\/instrumentationtools.com\/wp-content\/uploads\/2026\/01\/CX-Programmer-Logic-for-Liquid-Temperature-Monitoring.png\" alt=\"CX-Programmer Logic for Liquid Temperature Monitoring\" class=\"wp-image-68183\"\/><\/figure>\n\n\n\n<p><strong>RUNG 0 (SYSTEM ON)<\/strong><\/p>\n\n\n\n<p>In this Rung, the memory bit SYSTEM_ON (W0.00) will be in the HIGH state when the PB_START (0.00) button is Pressed. Because it uses the KEEP(011) instruction, the memory bit <a href=\"https:\/\/instrumentationtools.com\/automatic-paper-cutting-machine\/\">SYSTEM_ON<\/a> (W0.00) will remain in the HIGH state even though the PB_START (0.00) button has been Released.<\/p>\n\n\n\n<p>The memory bit SYSTEM_ON (W0.00) will be in the LOW state if the PB_STOP (0.01) button is Pressed.<\/p>\n\n\n\n<p><strong>RUNG 1 (HEATER &amp; EXHAUST FAN MANUAL MODE)<\/strong><\/p>\n\n\n\n<p>In this Rung, the memory bit HEATER_MANUAL (W0.01) will be in the HIGH state if the NO contact of the memory bit SYSTEM_ON (W0.00) is in the HIGH state and the HEATER_BUTTON (0.03) button is Pressed.<\/p>\n\n\n\n<p>The memory bit EXHAUST_FAN_MANUAL (W0.02) will be in the HIGH state if the NO contact of the memory bit SYSTEM_ON (W0.00) is in the HIGH state and the EXHAUST_FAN_BUTTON (0.04) button is Pressed.<\/p>\n\n\n\n<p><strong>RUNG 2 (VALVE INPUT AND OUTPUT OPEN)<\/strong><\/p>\n\n\n\n<p>In this Rung, the Output VALVE_INPUT (100.00) will be OPEN if the NO contact of the memory bit SYSTEM_ON (W0.00) is in the HIGH state and the PB_VALVE_IN (0.05) button is Pressed.<\/p>\n\n\n\n<p>The VALVE_OUTPUT (100.01) output will be OPEN if the NO contact of the memory bit SYSTEM_ON (W0.00) is in the HIGH state and the <a href=\"https:\/\/instrumentationtools.com\/marking-machine\/\">PB_VALVE_OUT<\/a> (0.06) button is Pressed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"1917\" height=\"1016\" src=\"https:\/\/instrumentationtools.com\/wp-content\/uploads\/2026\/01\/Temperature-Control-Using-Omron-PLC.png\" alt=\"Temperature Control Using Omron PLC\" class=\"wp-image-68184\"\/><\/figure>\n\n\n\n<p><strong>RUNG 3 (EXHAUST FAN AND HEATER AUTO MODE)<\/strong><\/p>\n\n\n\n<p>In this Rung, the memory bit EXHAUST_FAN_AUTO (W0.03) will be in the HIGH state if the NO contacts of the memory bit SYSTEM_ON (W0.00) and the Selector Switch AUTO\/MANUAL (0.02) are in the HIGH state and the value in the memory word PV_TEMPERATURE (D0) is Greater Than 40.<\/p>\n\n\n\n<p>The memory bit <a href=\"https:\/\/instrumentationtools.com\/plc-program-for-tank-heating-control-using-heater\/\">HEATER_AUTO<\/a> (W0.04) will be in the HIGH state if the NO contacts of the memory bit SYSTEM_ON (W0.00) and Selector Switch AUTO\/MANUAL (0.02) are in the HIGH state and the value of the memory word PV_TEMPERATURE (D0) is Less Than 30.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"1018\" src=\"https:\/\/instrumentationtools.com\/wp-content\/uploads\/2026\/01\/Tank-Temperature-Monitoring-System-with-Omron-PLC.png\" alt=\"Tank Temperature Monitoring System with Omron PLC\" class=\"wp-image-68186\"\/><\/figure>\n\n\n\n<p><strong>RUNG 4 (HEATER AND EXHAUST FAN OUTPUT)<\/strong><\/p>\n\n\n\n<p>In this Rung, the HEATER (100.02) output will be ON if the NO contacts of the memory bits SYSTEM_ON (W0.00), HEATER_AUTO (W0.04), and <a href=\"https:\/\/instrumentationtools.com\/plc-exercise-on-heater-and-cooler\/\">HEATER_MANUAL<\/a> (W0.01) are in the HIGH state.<\/p>\n\n\n\n<p>In this Rung, the output EXHAUST_FAN (100.03) will be ON if the NO contacts of the memory bits SYSTEM_ON (W0.00), EXHAUST_FAN_AUTO (W0.03), and EXHAUST_FAN_MANUAL (W0.02) are in the HIGH state.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"1012\" src=\"https:\/\/instrumentationtools.com\/wp-content\/uploads\/2026\/01\/How-to-Control-Liquid-Temperature-with-PLC-Logic.png\" alt=\"How to Control Liquid Temperature with PLC Logic?\" class=\"wp-image-68187\"\/><\/figure>\n\n\n\n<p><strong>RUNG 5 (ALARM)<\/strong><\/p>\n\n\n\n<p>In this Rung, the output ALARM_OVER_HEAT (100.04) will be ON if the NO contact of the memory bit SYSTEM_ON (W0.00) and Selector Switch AUTO\/MANUAL (0.02) are in the HIGH state and the value in the memory word <a href=\"https:\/\/instrumentationtools.com\/ladder-logic-programming-examples\/\">PV_TEMPERATURE<\/a> (D0) is Greater Than 50.<\/p>\n\n\n\n<p>The ALARM_LOW_TEMPERATURE (100.05) output will be ON if the NO contact of the memory bit SYSTEM_ON (W0.00) and the AUTO\/MANUAL (0.02) Selector Switch in the HIGH state, and the value in the memory word PV_TEMPERATURE (D0) is Less Than 25.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/instrumentationtools.com\/wp-content\/uploads\/PDF\/PLC\/PDF\/Omron%20PLC%20Liquid%20Temperature.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">Omron Sample Program PDF<\/a><\/div>\n<\/div>\n\n\n\n<p><strong>Read Next:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/instrumentationtools.com\/plc-programming-for-storage-and-supply-tank-system\/\">PLC Programming for Storage and Supply Tank System<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/instrumentationtools.com\/omron-plc-exercise\/\">Omron PLC Exercise to Sort Products by 10g, 15g, 20g<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/instrumentationtools.com\/omron-plc-logic-for-dual-conveyor-packing-system\/\">Omron PLC Logic for Dual Conveyor Packing System<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/instrumentationtools.com\/data-comparison-instructions-in-omron-plc\/\">Data Comparison Instructions in Omron PLC Example<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/instrumentationtools.com\/modbus-poll-software-with-mitsubishi-plc\/\">Communicate Modbus Poll Software with Mitsubishi PLC<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Learn a CX-Programmer sample code to control liquid temperature between 30 &#8211; 40\u00b0C  in a tank using Omron PLC with alarm and safety features.<\/p>\n","protected":false},"author":1,"featured_media":68179,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mo_disable_npp":"","footnotes":""},"categories":[6],"tags":[],"class_list":{"0":"post-68174","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-plc"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Omron PLC Sample Code: Liquid Temperature Control System<\/title>\n<meta name=\"description\" content=\"Learn a CX-Programmer sample code to control liquid temperature between 30 - 40\u00b0C in a tank using Omron PLC with alarm and safety features.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/instrumentationtools.com\/omron-plc-sample-code\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Omron PLC Sample Code: Liquid Temperature Control System\" \/>\n<meta property=\"og:description\" content=\"Learn a CX-Programmer sample code to control liquid temperature between 30 - 40\u00b0C in a tank using Omron PLC with alarm and safety features.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/instrumentationtools.com\/omron-plc-sample-code\/\" \/>\n<meta property=\"og:site_name\" content=\"Inst Tools\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/instrumentationtoolss\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/instrumentationtoolss\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-29T02:30:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/instrumentationtools.com\/wp-content\/uploads\/2026\/01\/Liquid-Temperature-Control-System.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1919\" \/>\n\t<meta property=\"og:image:height\" content=\"1079\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Editorial Staff\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Omron PLC Sample Code: Liquid Temperature Control System\" \/>\n<meta name=\"twitter:description\" content=\"Learn a CX-Programmer sample code to control liquid temperature between 30 - 40\u00b0C in a tank using Omron PLC with alarm and safety features.\" \/>\n<meta name=\"twitter:creator\" content=\"@insttools\" \/>\n<meta name=\"twitter:site\" content=\"@insttools\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Editorial Staff\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/omron-plc-sample-code\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/omron-plc-sample-code\\\/\"},\"author\":{\"name\":\"Editorial Staff\",\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/#\\\/schema\\\/person\\\/41ad3dac301c219e8d41b1ace61655b2\"},\"headline\":\"Omron PLC Sample Code: Liquid Temperature Control System\",\"datePublished\":\"2026-01-29T02:30:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/omron-plc-sample-code\\\/\"},\"wordCount\":901,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/omron-plc-sample-code\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/instrumentationtools.com\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/Liquid-Temperature-Control-System.jpg\",\"articleSection\":[\"PLC Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/instrumentationtools.com\\\/omron-plc-sample-code\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/omron-plc-sample-code\\\/\",\"url\":\"https:\\\/\\\/instrumentationtools.com\\\/omron-plc-sample-code\\\/\",\"name\":\"Omron PLC Sample Code: Liquid Temperature Control System\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/omron-plc-sample-code\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/omron-plc-sample-code\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/instrumentationtools.com\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/Liquid-Temperature-Control-System.jpg\",\"datePublished\":\"2026-01-29T02:30:00+00:00\",\"description\":\"Learn a CX-Programmer sample code to control liquid temperature between 30 - 40\u00b0C in a tank using Omron PLC with alarm and safety features.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/omron-plc-sample-code\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/instrumentationtools.com\\\/omron-plc-sample-code\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/omron-plc-sample-code\\\/#primaryimage\",\"url\":\"https:\\\/\\\/instrumentationtools.com\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/Liquid-Temperature-Control-System.jpg\",\"contentUrl\":\"https:\\\/\\\/instrumentationtools.com\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/Liquid-Temperature-Control-System.jpg\",\"width\":1919,\"height\":1079,\"caption\":\"Liquid Temperature Control System\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/omron-plc-sample-code\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/instrumentationtools.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Omron PLC Sample Code: Liquid Temperature Control System\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/#website\",\"url\":\"https:\\\/\\\/instrumentationtools.com\\\/\",\"name\":\"Instrumentation Tools\",\"description\":\"Instrumentation, Electrical, PLC, Tutorials\",\"publisher\":{\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/#organization\"},\"alternateName\":\"Inst Tools\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/instrumentationtools.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/#organization\",\"name\":\"Instrumentation Tools\",\"alternateName\":\"Inst Tools\",\"url\":\"https:\\\/\\\/instrumentationtools.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/instrumentationtools.com\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/Instrumentation-Tools-Logo.png\",\"contentUrl\":\"https:\\\/\\\/instrumentationtools.com\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/Instrumentation-Tools-Logo.png\",\"width\":1024,\"height\":1024,\"caption\":\"Instrumentation Tools\"},\"image\":{\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/instrumentationtoolss\\\/\",\"https:\\\/\\\/x.com\\\/insttools\",\"https:\\\/\\\/mastodon.social\\\/@InstrumentationTools\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/instrumentationtools\\\/\",\"https:\\\/\\\/whatsapp.com\\\/channel\\\/0029VaAbUecLNSa4rDPOV31o\",\"https:\\\/\\\/t.me\\\/+u3qORX5FKec1NjA1\",\"https:\\\/\\\/www.instagram.com\\\/instrumentationtools\\\/\",\"https:\\\/\\\/youtube.com\\\/instrumentationtools\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/instrumentationtools.com\\\/#\\\/schema\\\/person\\\/41ad3dac301c219e8d41b1ace61655b2\",\"name\":\"Editorial Staff\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7d7b78a0bf6b95aebc68e7790f9094403ae40b3fcb9c436cb6956873b90826de?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7d7b78a0bf6b95aebc68e7790f9094403ae40b3fcb9c436cb6956873b90826de?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7d7b78a0bf6b95aebc68e7790f9094403ae40b3fcb9c436cb6956873b90826de?s=96&d=mm&r=g\",\"caption\":\"Editorial Staff\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/instrumentationtoolss\",\"https:\\\/\\\/x.com\\\/insttools\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/InstrumentationTools\\\/\"],\"url\":\"https:\\\/\\\/instrumentationtools.com\\\/author\\\/editorial\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Omron PLC Sample Code: Liquid Temperature Control System","description":"Learn a CX-Programmer sample code to control liquid temperature between 30 - 40\u00b0C in a tank using Omron PLC with alarm and safety features.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/instrumentationtools.com\/omron-plc-sample-code\/","og_locale":"en_US","og_type":"article","og_title":"Omron PLC Sample Code: Liquid Temperature Control System","og_description":"Learn a CX-Programmer sample code to control liquid temperature between 30 - 40\u00b0C in a tank using Omron PLC with alarm and safety features.","og_url":"https:\/\/instrumentationtools.com\/omron-plc-sample-code\/","og_site_name":"Inst Tools","article_publisher":"https:\/\/www.facebook.com\/instrumentationtoolss\/","article_author":"https:\/\/www.facebook.com\/instrumentationtoolss","article_published_time":"2026-01-29T02:30:00+00:00","og_image":[{"width":1919,"height":1079,"url":"https:\/\/instrumentationtools.com\/wp-content\/uploads\/2026\/01\/Liquid-Temperature-Control-System.jpg","type":"image\/jpeg"}],"author":"Editorial Staff","twitter_card":"summary_large_image","twitter_title":"Omron PLC Sample Code: Liquid Temperature Control System","twitter_description":"Learn a CX-Programmer sample code to control liquid temperature between 30 - 40\u00b0C in a tank using Omron PLC with alarm and safety features.","twitter_creator":"@insttools","twitter_site":"@insttools","twitter_misc":{"Written by":"Editorial Staff","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/instrumentationtools.com\/omron-plc-sample-code\/#article","isPartOf":{"@id":"https:\/\/instrumentationtools.com\/omron-plc-sample-code\/"},"author":{"name":"Editorial Staff","@id":"https:\/\/instrumentationtools.com\/#\/schema\/person\/41ad3dac301c219e8d41b1ace61655b2"},"headline":"Omron PLC Sample Code: Liquid Temperature Control System","datePublished":"2026-01-29T02:30:00+00:00","mainEntityOfPage":{"@id":"https:\/\/instrumentationtools.com\/omron-plc-sample-code\/"},"wordCount":901,"commentCount":0,"publisher":{"@id":"https:\/\/instrumentationtools.com\/#organization"},"image":{"@id":"https:\/\/instrumentationtools.com\/omron-plc-sample-code\/#primaryimage"},"thumbnailUrl":"https:\/\/instrumentationtools.com\/wp-content\/uploads\/2026\/01\/Liquid-Temperature-Control-System.jpg","articleSection":["PLC Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/instrumentationtools.com\/omron-plc-sample-code\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/instrumentationtools.com\/omron-plc-sample-code\/","url":"https:\/\/instrumentationtools.com\/omron-plc-sample-code\/","name":"Omron PLC Sample Code: Liquid Temperature Control System","isPartOf":{"@id":"https:\/\/instrumentationtools.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/instrumentationtools.com\/omron-plc-sample-code\/#primaryimage"},"image":{"@id":"https:\/\/instrumentationtools.com\/omron-plc-sample-code\/#primaryimage"},"thumbnailUrl":"https:\/\/instrumentationtools.com\/wp-content\/uploads\/2026\/01\/Liquid-Temperature-Control-System.jpg","datePublished":"2026-01-29T02:30:00+00:00","description":"Learn a CX-Programmer sample code to control liquid temperature between 30 - 40\u00b0C in a tank using Omron PLC with alarm and safety features.","breadcrumb":{"@id":"https:\/\/instrumentationtools.com\/omron-plc-sample-code\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/instrumentationtools.com\/omron-plc-sample-code\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/instrumentationtools.com\/omron-plc-sample-code\/#primaryimage","url":"https:\/\/instrumentationtools.com\/wp-content\/uploads\/2026\/01\/Liquid-Temperature-Control-System.jpg","contentUrl":"https:\/\/instrumentationtools.com\/wp-content\/uploads\/2026\/01\/Liquid-Temperature-Control-System.jpg","width":1919,"height":1079,"caption":"Liquid Temperature Control System"},{"@type":"BreadcrumbList","@id":"https:\/\/instrumentationtools.com\/omron-plc-sample-code\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/instrumentationtools.com\/"},{"@type":"ListItem","position":2,"name":"Omron PLC Sample Code: Liquid Temperature Control System"}]},{"@type":"WebSite","@id":"https:\/\/instrumentationtools.com\/#website","url":"https:\/\/instrumentationtools.com\/","name":"Instrumentation Tools","description":"Instrumentation, Electrical, PLC, Tutorials","publisher":{"@id":"https:\/\/instrumentationtools.com\/#organization"},"alternateName":"Inst Tools","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/instrumentationtools.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/instrumentationtools.com\/#organization","name":"Instrumentation Tools","alternateName":"Inst Tools","url":"https:\/\/instrumentationtools.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/instrumentationtools.com\/#\/schema\/logo\/image\/","url":"https:\/\/instrumentationtools.com\/wp-content\/uploads\/2018\/10\/Instrumentation-Tools-Logo.png","contentUrl":"https:\/\/instrumentationtools.com\/wp-content\/uploads\/2018\/10\/Instrumentation-Tools-Logo.png","width":1024,"height":1024,"caption":"Instrumentation Tools"},"image":{"@id":"https:\/\/instrumentationtools.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/instrumentationtoolss\/","https:\/\/x.com\/insttools","https:\/\/mastodon.social\/@InstrumentationTools","https:\/\/www.linkedin.com\/company\/instrumentationtools\/","https:\/\/whatsapp.com\/channel\/0029VaAbUecLNSa4rDPOV31o","https:\/\/t.me\/+u3qORX5FKec1NjA1","https:\/\/www.instagram.com\/instrumentationtools\/","https:\/\/youtube.com\/instrumentationtools"]},{"@type":"Person","@id":"https:\/\/instrumentationtools.com\/#\/schema\/person\/41ad3dac301c219e8d41b1ace61655b2","name":"Editorial Staff","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/7d7b78a0bf6b95aebc68e7790f9094403ae40b3fcb9c436cb6956873b90826de?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/7d7b78a0bf6b95aebc68e7790f9094403ae40b3fcb9c436cb6956873b90826de?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7d7b78a0bf6b95aebc68e7790f9094403ae40b3fcb9c436cb6956873b90826de?s=96&d=mm&r=g","caption":"Editorial Staff"},"sameAs":["https:\/\/www.facebook.com\/instrumentationtoolss","https:\/\/x.com\/insttools","https:\/\/www.youtube.com\/c\/InstrumentationTools\/"],"url":"https:\/\/instrumentationtools.com\/author\/editorial\/"}]}},"_links":{"self":[{"href":"https:\/\/instrumentationtools.com\/wp-json\/wp\/v2\/posts\/68174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/instrumentationtools.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/instrumentationtools.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/instrumentationtools.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/instrumentationtools.com\/wp-json\/wp\/v2\/comments?post=68174"}],"version-history":[{"count":1,"href":"https:\/\/instrumentationtools.com\/wp-json\/wp\/v2\/posts\/68174\/revisions"}],"predecessor-version":[{"id":69642,"href":"https:\/\/instrumentationtools.com\/wp-json\/wp\/v2\/posts\/68174\/revisions\/69642"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/instrumentationtools.com\/wp-json\/wp\/v2\/media\/68179"}],"wp:attachment":[{"href":"https:\/\/instrumentationtools.com\/wp-json\/wp\/v2\/media?parent=68174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/instrumentationtools.com\/wp-json\/wp\/v2\/categories?post=68174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/instrumentationtools.com\/wp-json\/wp\/v2\/tags?post=68174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}