{"id":235,"date":"2023-03-24T11:11:27","date_gmt":"2023-03-24T10:11:27","guid":{"rendered":"https:\/\/cristian-perez.com\/?p=235"},"modified":"2023-03-24T11:11:29","modified_gmt":"2023-03-24T10:11:29","slug":"el-ciclo-scan-en-plcs","status":"publish","type":"post","link":"https:\/\/cristian-perez.com\/en\/el-ciclo-scan-en-plcs\/","title":{"rendered":"The SCAN cycle in PLC&#039;s"},"content":{"rendered":"<p>Para profundizar en los elementos f\u00edsicos referidos a la ciberseguridad industrial y todo lo que tenga que ver con IIOT, empezaremos a explicar como funciona un PLC o automatismo. Para, en posteriores entradas, desarrollar toda un red de seguridad en el \u00e1mbito industrial poco a poco.<\/p>\n\n\n\n<p>Por recordar un poco conceptos, recomiendo leer la entrada <a href=\"https:\/\/cristian-perez.com\/microcontroladores-y-plcs\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u00abMicrocontroladores y PLC&#8217;s\u00bb<\/a>, donde podremos repasar acerca de diversos conceptos que es importante tenerlos presentes.<\/p>\n\n\n\n<p>Una vez hecho esto vamos a definir que es el <strong>ciclo SCAN<\/strong>.<\/p>\n\n\n\n<p>El ciclo de SCAN es un proceso que se utiliza en algunos aut\u00f3matas programables (PLC) para controlar y monitorizar dispositivos y procesos industriales. Se refiere al proceso en el que el PLC escanea y procesa la informaci\u00f3n en su programa, desde el inicio hasta el final del ciclo, y luego repite el proceso.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">El ciclo de SCAN se divide en tres fases principales:<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Lectura de entradas:<\/strong> en esta fase, el PLC lee el estado actual de todas las entradas que est\u00e1n conectadas a \u00e9l. Las entradas pueden ser interruptores, sensores o cualquier otro dispositivo que detecte un cambio en el estado de un proceso.<\/li>\n\n\n\n<li><strong>Ejecuci\u00f3n del programa:<\/strong> una vez que se han le\u00eddo todas las entradas, el PLC ejecuta el programa que se ha cargado en su memoria. El programa puede contener instrucciones para controlar dispositivos de salida, como motores, v\u00e1lvulas, luces, etc. El programa tambi\u00e9n puede contener instrucciones para realizar c\u00e1lculos o para tomar decisiones basadas en los valores de las entradas.<\/li>\n\n\n\n<li><strong>Escritura de salidas: <\/strong>despu\u00e9s de que se haya ejecutado el programa, el PLC escribe el estado de las salidas en funci\u00f3n de las instrucciones que se han dado en el programa. Las salidas pueden ser motores, v\u00e1lvulas, luces, alarmas u otros dispositivos que se utilicen para controlar un proceso, por ejemplo tipo HMI.<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"275\" height=\"576\" src=\"https:\/\/cristian-perez.com\/wp-content\/uploads\/2023\/03\/imagen-3.png\" alt=\"\" class=\"wp-image-236\" srcset=\"https:\/\/cristian-perez.com\/wp-content\/uploads\/2023\/03\/imagen-3.png 275w, https:\/\/cristian-perez.com\/wp-content\/uploads\/2023\/03\/imagen-3-143x300.png 143w, https:\/\/cristian-perez.com\/wp-content\/uploads\/2023\/03\/imagen-3-6x12.png 6w\" sizes=\"auto, (max-width: 275px) 100vw, 275px\" \/><\/figure>\n<\/div>\n\n\n<p>Una vez que se ha completado la fase de escritura de salidas, el ciclo de SCAN comienza de nuevo y el PLC repite todo el proceso de manera constante y en tiempo real.<\/p>\n\n\n\n<p>Como hemos visto en el post anteriormente mencionado, sabemos que la velocidad de estos dispositivos es clave, ya que permite ejecutar ciertas tareas, si hiciera falta, en cuesti\u00f3n de milisegundos.<\/p>\n\n\n\n<p>Con esto asentamos las bases para entender el siguiente post, que ser\u00e1 acerca de la programaci\u00f3n de los PLC&#8217;s, y su comunicaci\u00f3n con los HMI&#8217;s. Ya que en este punto es donde se pueden crear sin pretenderlo posibles vectores de ataque, vi\u00e9ndose as\u00ed la infraestructura vulnerada.<\/p>","protected":false},"excerpt":{"rendered":"<p>Operation of the SCAN cycle referred to the PLC&#039;s<\/p>","protected":false},"author":1,"featured_media":237,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,21],"tags":[24,77,87,58],"class_list":["post-235","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-articulo","category-estudios","tag-ciberseguridad","tag-iiot","tag-plc","tag-scada"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>El ciclo SCAN en PLC&#039;s - Cristian Perez<\/title>\n<meta name=\"description\" content=\"Funcionamiento y explicaci\u00f3n del ciclo SCAN referido a los PLC&#039;s.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cristian-perez.com\/en\/el-ciclo-scan-en-plcs\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"El ciclo SCAN en PLC&#039;s - Cristian Perez\" \/>\n<meta property=\"og:description\" content=\"Funcionamiento y explicaci\u00f3n del ciclo SCAN referido a los PLC&#039;s.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cristian-perez.com\/en\/el-ciclo-scan-en-plcs\/\" \/>\n<meta property=\"og:site_name\" content=\"Cristian Perez\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-24T10:11:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-24T10:11:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cristian-perez.com\/wp-content\/uploads\/2023\/03\/salud.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"656\" \/>\n\t<meta property=\"og:image:height\" content=\"410\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Cristian P\u00e9rez\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Cristian P\u00e9rez\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/cristian-perez.com\/el-ciclo-scan-en-plcs\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cristian-perez.com\/el-ciclo-scan-en-plcs\/\"},\"author\":{\"name\":\"Cristian P\u00e9rez\",\"@id\":\"https:\/\/cristian-perez.com\/#\/schema\/person\/7d97cc065f256a22ec12e1879176b989\"},\"headline\":\"El ciclo SCAN en PLC&#8217;s\",\"datePublished\":\"2023-03-24T10:11:27+00:00\",\"dateModified\":\"2023-03-24T10:11:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cristian-perez.com\/el-ciclo-scan-en-plcs\/\"},\"wordCount\":432,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/cristian-perez.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/cristian-perez.com\/el-ciclo-scan-en-plcs\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cristian-perez.com\/wp-content\/uploads\/2023\/03\/salud.jpg\",\"keywords\":[\"ciberseguridad\",\"IIoT\",\"PLC\",\"scada\"],\"articleSection\":[\"Art\u00edculo\",\"Estudios\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/cristian-perez.com\/el-ciclo-scan-en-plcs\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cristian-perez.com\/el-ciclo-scan-en-plcs\/\",\"url\":\"https:\/\/cristian-perez.com\/el-ciclo-scan-en-plcs\/\",\"name\":\"El ciclo SCAN en PLC's - Cristian Perez\",\"isPartOf\":{\"@id\":\"https:\/\/cristian-perez.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cristian-perez.com\/el-ciclo-scan-en-plcs\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cristian-perez.com\/el-ciclo-scan-en-plcs\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cristian-perez.com\/wp-content\/uploads\/2023\/03\/salud.jpg\",\"datePublished\":\"2023-03-24T10:11:27+00:00\",\"dateModified\":\"2023-03-24T10:11:29+00:00\",\"description\":\"Funcionamiento y explicaci\u00f3n del ciclo SCAN referido a los PLC's.\",\"breadcrumb\":{\"@id\":\"https:\/\/cristian-perez.com\/el-ciclo-scan-en-plcs\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cristian-perez.com\/el-ciclo-scan-en-plcs\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/cristian-perez.com\/el-ciclo-scan-en-plcs\/#primaryimage\",\"url\":\"https:\/\/cristian-perez.com\/wp-content\/uploads\/2023\/03\/salud.jpg\",\"contentUrl\":\"https:\/\/cristian-perez.com\/wp-content\/uploads\/2023\/03\/salud.jpg\",\"width\":656,\"height\":410},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cristian-perez.com\/el-ciclo-scan-en-plcs\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\/\/cristian-perez.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"El ciclo SCAN en PLC&#8217;s\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cristian-perez.com\/#website\",\"url\":\"https:\/\/cristian-perez.com\/\",\"name\":\"Cristian Perez\",\"description\":\"Aprendiendo y securizando\",\"publisher\":{\"@id\":\"https:\/\/cristian-perez.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cristian-perez.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/cristian-perez.com\/#organization\",\"name\":\"Cristian Perez\",\"url\":\"https:\/\/cristian-perez.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/cristian-perez.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cristian-perez.com\/wp-content\/uploads\/2023\/03\/cropped-yo002.png\",\"contentUrl\":\"https:\/\/cristian-perez.com\/wp-content\/uploads\/2023\/03\/cropped-yo002.png\",\"width\":612,\"height\":612,\"caption\":\"Cristian Perez\"},\"image\":{\"@id\":\"https:\/\/cristian-perez.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/cristian-perez.com\/#\/schema\/person\/7d97cc065f256a22ec12e1879176b989\",\"name\":\"Cristian P\u00e9rez\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/cristian-perez.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5d3dde543a7853c4f2e561df53831076d96d972e0111acaf01818332912a2c60?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5d3dde543a7853c4f2e561df53831076d96d972e0111acaf01818332912a2c60?s=96&d=mm&r=g\",\"caption\":\"Cristian P\u00e9rez\"},\"sameAs\":[\"http:\/\/cristian-perez.com\"],\"url\":\"https:\/\/cristian-perez.com\/en\/author\/chrisprez\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"El ciclo SCAN en PLC's - Cristian Perez","description":"Funcionamiento y explicaci\u00f3n del ciclo SCAN referido a los PLC's.","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:\/\/cristian-perez.com\/en\/el-ciclo-scan-en-plcs\/","og_locale":"en_GB","og_type":"article","og_title":"El ciclo SCAN en PLC's - Cristian Perez","og_description":"Funcionamiento y explicaci\u00f3n del ciclo SCAN referido a los PLC's.","og_url":"https:\/\/cristian-perez.com\/en\/el-ciclo-scan-en-plcs\/","og_site_name":"Cristian Perez","article_published_time":"2023-03-24T10:11:27+00:00","article_modified_time":"2023-03-24T10:11:29+00:00","og_image":[{"width":656,"height":410,"url":"https:\/\/cristian-perez.com\/wp-content\/uploads\/2023\/03\/salud.jpg","type":"image\/jpeg"}],"author":"Cristian P\u00e9rez","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Cristian P\u00e9rez","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cristian-perez.com\/el-ciclo-scan-en-plcs\/#article","isPartOf":{"@id":"https:\/\/cristian-perez.com\/el-ciclo-scan-en-plcs\/"},"author":{"name":"Cristian P\u00e9rez","@id":"https:\/\/cristian-perez.com\/#\/schema\/person\/7d97cc065f256a22ec12e1879176b989"},"headline":"El ciclo SCAN en PLC&#8217;s","datePublished":"2023-03-24T10:11:27+00:00","dateModified":"2023-03-24T10:11:29+00:00","mainEntityOfPage":{"@id":"https:\/\/cristian-perez.com\/el-ciclo-scan-en-plcs\/"},"wordCount":432,"commentCount":0,"publisher":{"@id":"https:\/\/cristian-perez.com\/#organization"},"image":{"@id":"https:\/\/cristian-perez.com\/el-ciclo-scan-en-plcs\/#primaryimage"},"thumbnailUrl":"https:\/\/cristian-perez.com\/wp-content\/uploads\/2023\/03\/salud.jpg","keywords":["ciberseguridad","IIoT","PLC","scada"],"articleSection":["Art\u00edculo","Estudios"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/cristian-perez.com\/el-ciclo-scan-en-plcs\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/cristian-perez.com\/el-ciclo-scan-en-plcs\/","url":"https:\/\/cristian-perez.com\/el-ciclo-scan-en-plcs\/","name":"El ciclo SCAN en PLC's - Cristian Perez","isPartOf":{"@id":"https:\/\/cristian-perez.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cristian-perez.com\/el-ciclo-scan-en-plcs\/#primaryimage"},"image":{"@id":"https:\/\/cristian-perez.com\/el-ciclo-scan-en-plcs\/#primaryimage"},"thumbnailUrl":"https:\/\/cristian-perez.com\/wp-content\/uploads\/2023\/03\/salud.jpg","datePublished":"2023-03-24T10:11:27+00:00","dateModified":"2023-03-24T10:11:29+00:00","description":"Funcionamiento y explicaci\u00f3n del ciclo SCAN referido a los PLC's.","breadcrumb":{"@id":"https:\/\/cristian-perez.com\/el-ciclo-scan-en-plcs\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cristian-perez.com\/el-ciclo-scan-en-plcs\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/cristian-perez.com\/el-ciclo-scan-en-plcs\/#primaryimage","url":"https:\/\/cristian-perez.com\/wp-content\/uploads\/2023\/03\/salud.jpg","contentUrl":"https:\/\/cristian-perez.com\/wp-content\/uploads\/2023\/03\/salud.jpg","width":656,"height":410},{"@type":"BreadcrumbList","@id":"https:\/\/cristian-perez.com\/el-ciclo-scan-en-plcs\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/cristian-perez.com\/"},{"@type":"ListItem","position":2,"name":"El ciclo SCAN en PLC&#8217;s"}]},{"@type":"WebSite","@id":"https:\/\/cristian-perez.com\/#website","url":"https:\/\/cristian-perez.com\/","name":"Cristian Perez","description":"Aprendiendo y securizando","publisher":{"@id":"https:\/\/cristian-perez.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cristian-perez.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/cristian-perez.com\/#organization","name":"Cristian Perez","url":"https:\/\/cristian-perez.com\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/cristian-perez.com\/#\/schema\/logo\/image\/","url":"https:\/\/cristian-perez.com\/wp-content\/uploads\/2023\/03\/cropped-yo002.png","contentUrl":"https:\/\/cristian-perez.com\/wp-content\/uploads\/2023\/03\/cropped-yo002.png","width":612,"height":612,"caption":"Cristian Perez"},"image":{"@id":"https:\/\/cristian-perez.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/cristian-perez.com\/#\/schema\/person\/7d97cc065f256a22ec12e1879176b989","name":"Cristian P\u00e9rez","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/cristian-perez.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5d3dde543a7853c4f2e561df53831076d96d972e0111acaf01818332912a2c60?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5d3dde543a7853c4f2e561df53831076d96d972e0111acaf01818332912a2c60?s=96&d=mm&r=g","caption":"Cristian P\u00e9rez"},"sameAs":["http:\/\/cristian-perez.com"],"url":"https:\/\/cristian-perez.com\/en\/author\/chrisprez\/"}]}},"_links":{"self":[{"href":"https:\/\/cristian-perez.com\/en\/wp-json\/wp\/v2\/posts\/235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cristian-perez.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cristian-perez.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cristian-perez.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cristian-perez.com\/en\/wp-json\/wp\/v2\/comments?post=235"}],"version-history":[{"count":1,"href":"https:\/\/cristian-perez.com\/en\/wp-json\/wp\/v2\/posts\/235\/revisions"}],"predecessor-version":[{"id":238,"href":"https:\/\/cristian-perez.com\/en\/wp-json\/wp\/v2\/posts\/235\/revisions\/238"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cristian-perez.com\/en\/wp-json\/wp\/v2\/media\/237"}],"wp:attachment":[{"href":"https:\/\/cristian-perez.com\/en\/wp-json\/wp\/v2\/media?parent=235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cristian-perez.com\/en\/wp-json\/wp\/v2\/categories?post=235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cristian-perez.com\/en\/wp-json\/wp\/v2\/tags?post=235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}