{"id":6,"date":"2026-07-22T09:50:07","date_gmt":"2026-07-22T07:50:07","guid":{"rendered":"https:\/\/fankepa.com\/?p=6"},"modified":"2026-07-22T13:20:08","modified_gmt":"2026-07-22T11:20:08","slug":"chenillard-6-leds-siemens-s7-1200","status":"publish","type":"post","link":"https:\/\/fankepa.com\/?p=6","title":{"rendered":"Chenillard LED avec Siemens S7-1200"},"content":{"rendered":"<p><!-- Introduction --><\/p>\n<div style=\"background: linear-gradient(135deg, #1a1a2e 0%, #1e1b4b 100%); padding: 40px; border-radius: 20px; margin-bottom: 40px; border: 1px solid rgba(99,102,241,0.2);\">\n<p style=\"font-size: 19px; color: #a5b4fc; line-height: 1.8; margin: 0; font-style: italic;\">\n    \u2699\ufe0f Un premier projet concret en Ladder Diagram sur automate industriel Siemens &#8211; programm\u00e9 avec TIA Portal V20, c\u00e2bl\u00e9 sur une plaque \u00e9lectronique. L&rsquo;\u00e9quivalent du \u00ab\u00a0Hello World\u00a0\u00bb en automatisme industriel !\n  <\/p>\n<\/div>\n<p><!-- Vid\u00e9o YouTube --><\/p>\n<div style=\"margin: 40px 0;\">\n<h2 style=\"font-size: 26px; color: #a5b4fc; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid rgba(99,102,241,0.4);\">\n    \ud83c\udfa5 D\u00e9monstration vid\u00e9o<br \/>\n  <\/h2>\n<div style=\"display: flex; justify-content: center;\">\n<div style=\"position: relative; width: 100%; max-width: 450px; padding-bottom: 80%; height: 0; overflow: hidden; border-radius: 15px; border: 1px solid rgba(99,102,241,0.2); box-shadow: 0 4px 30px rgba(99,102,241,0.3);\">\n      <iframe style=\"position: absolute; top: 0; left: 0; width: 100%; height: 100%;\"\n        src=\"https:\/\/www.youtube.com\/embed\/iY8uecf_oAM\"\n        frameborder=\"0\"\n        allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\"\n        allowfullscreen><br \/>\n      <\/iframe>\n    <\/div>\n<\/p><\/div>\n<div style=\"text-align: center; margin-top: 15px;\">\n    <a href=\"https:\/\/www.youtube.com\/shorts\/iY8uecf_oAM\" target=\"_blank\" style=\"color: #a5b4fc; text-decoration: none; font-size: 14px;\"><br \/>\n      \ud83d\udd17 Voir sur YouTube Shorts<br \/>\n    <\/a>\n  <\/div>\n<\/div>\n<p><!-- Pourquoi ce projet --><\/p>\n<div style=\"background: linear-gradient(135deg, #1e1b4b 0%, #1a1a2e 100%); padding: 35px; border-radius: 15px; margin: 40px 0; border: 1px solid rgba(99,102,241,0.2);\">\n<h2 style=\"font-size: 26px; color: #a5b4fc; margin: 0 0 20px 0; padding-bottom: 15px; border-bottom: 2px solid rgba(99,102,241,0.4);\">\n    \ud83d\udca1 Pourquoi ce projet ?<br \/>\n  <\/h2>\n<p style=\"font-size: 16px; color: #cbd5e1; line-height: 1.8; margin-bottom: 15px;\">\n    Je suis dipl\u00f4m\u00e9 en informatique industrielle et je continue \u00e0 d\u00e9velopper mes comp\u00e9tences en programmation d&rsquo;automates. Le chenillard est le projet classique de d\u00e9marrage en automatisme \u2014 <strong style=\"color: #a5b4fc;\">l&rsquo;\u00e9quivalent du \u00ab\u00a0Hello World\u00a0\u00bb en programmation<\/strong>.\n  <\/p>\n<p style=\"font-size: 16px; color: #cbd5e1; line-height: 1.8; margin-bottom: 15px;\">\n    J&rsquo;ai choisi de commencer par le <strong style=\"color: #a5b4fc;\">Ladder Diagram (LD)<\/strong>, le langage graphique le plus utilis\u00e9 dans l&rsquo;industrie, avant de progresser vers le SCL (Structured Control Language), dont la syntaxe est proche du Pascal que je connais d\u00e9j\u00e0.\n  <\/p>\n<div style=\"background: rgba(99,102,241,0.1); padding: 20px; border-radius: 10px; border-left: 3px solid #6366f1; margin-top: 20px;\">\n<p style=\"font-size: 15px; color: #cbd5e1; line-height: 1.8; margin: 0;\">\n      \ud83d\udca1 Ce projet me permet de comprendre les bases du Ladder : <strong style=\"color: #a5b4fc;\">contacts, bobines, compteurs et comparateurs<\/strong> \u2014 les m\u00eames blocs qu&rsquo;on retrouve dans les machines industrielles r\u00e9elles.\n    <\/p>\n<\/p><\/div>\n<\/div>\n<p><!-- Mat\u00e9riel --><\/p>\n<div style=\"margin: 40px 0;\">\n<h2 style=\"font-size: 26px; color: #a5b4fc; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid rgba(99,102,241,0.4);\">\n    \ud83d\udd27 Mat\u00e9riel utilis\u00e9<br \/>\n  <\/h2>\n<div style=\"display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px;\">\n<div style=\"background: linear-gradient(135deg, #1e1b4b, #1a1a2e); padding: 25px; border-radius: 12px; border: 1px solid rgba(99,102,241,0.2);\">\n<div style=\"font-size: 36px; margin-bottom: 12px;\">\ud83d\udd37<\/div>\n<h3 style=\"color: #a5b4fc; font-size: 18px; margin: 0 0 8px 0;\">Siemens S7-1200<\/h3>\n<p style=\"color: #94a3b8; font-size: 14px; line-height: 1.6; margin: 0;\">CPU 1212C DC\/DC\/RLY<br \/>6ES7 212-1HE31-0XB0<br \/>Programm\u00e9 via TIA Portal V20<\/p>\n<\/p><\/div>\n<div style=\"background: linear-gradient(135deg, #1e1b4b, #1a1a2e); padding: 25px; border-radius: 12px; border: 1px solid rgba(99,102,241,0.2);\">\n<div style=\"font-size: 36px; margin-bottom: 12px;\">\u26a1<\/div>\n<h3 style=\"color: #a5b4fc; font-size: 18px; margin: 0 0 8px 0;\">Wanptek DPS3010U<\/h3>\n<p style=\"color: #94a3b8; font-size: 14px; line-height: 1.6; margin: 0;\">Alimentation de laboratoire r\u00e9glable<br \/>24V DC pour le PLC<\/p>\n<\/p><\/div>\n<div style=\"background: linear-gradient(135deg, #1e1b4b, #1a1a2e); padding: 25px; border-radius: 12px; border: 1px solid rgba(99,102,241,0.2);\">\n<div style=\"font-size: 36px; margin-bottom: 12px;\">\ud83d\udd34<\/div>\n<h3 style=\"color: #a5b4fc; font-size: 18px; margin: 0 0 8px 0;\">6 LEDs + r\u00e9sistances<\/h3>\n<p style=\"color: #94a3b8; font-size: 14px; line-height: 1.6; margin: 0;\">LEDs color\u00e9es sur plaque \u00e9lectronique<br \/>R\u00e9sistances 10k\u03a9 pour limiter le courant<\/p>\n<\/p><\/div>\n<div style=\"background: linear-gradient(135deg, #1e1b4b, #1a1a2e); padding: 25px; border-radius: 12px; border: 1px solid rgba(99,102,241,0.2);\">\n<div style=\"font-size: 36px; margin-bottom: 12px;\">\ud83d\udcbb<\/div>\n<h3 style=\"color: #a5b4fc; font-size: 18px; margin: 0 0 8px 0;\">TIA Portal V20<\/h3>\n<p style=\"color: #94a3b8; font-size: 14px; line-height: 1.6; margin: 0;\">Logiciel de programmation Siemens<br \/>Connexion WiFi via PROFINET<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<\/div>\n<p><!-- C\u00e2blage --><\/p>\n<div style=\"margin: 40px 0;\">\n<h2 style=\"font-size: 26px; color: #a5b4fc; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid rgba(99,102,241,0.4);\">\n    \ud83d\udd0c Connexion des LEDs<br \/>\n  <\/h2>\n<p style=\"font-size: 16px; color: #cbd5e1; line-height: 1.8; margin-bottom: 20px;\">\n    Chaque LED est connect\u00e9e \u00e0 une sortie relais du S7-1200. Le circuit suit le m\u00eame sch\u00e9ma pour les 6 LEDs :\n  <\/p>\n<div style=\"overflow-x: auto;\">\n<table style=\"width: 100%; border-collapse: collapse;\">\n<thead>\n<tr style=\"background: linear-gradient(135deg, #6366f1, #8b5cf6);\">\n<th style=\"padding: 15px; text-align: left; color: white;\">Sortie PLC<\/th>\n<th style=\"padding: 15px; text-align: left; color: white;\">LED<\/th>\n<th style=\"padding: 15px; text-align: left; color: white;\">R\u00e9sistance<\/th>\n<th style=\"padding: 15px; text-align: left; color: white;\">Connexion<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"background: rgba(99,102,241,0.08);\">\n<td style=\"padding: 12px 15px; color: #a5b4fc; font-weight: 600; border-bottom: 1px solid rgba(99,102,241,0.1);\">Q0.0<\/td>\n<td style=\"padding: 12px 15px; color: #cbd5e1; border-bottom: 1px solid rgba(99,102,241,0.1);\">LED 1<\/td>\n<td style=\"padding: 12px 15px; color: #94a3b8; border-bottom: 1px solid rgba(99,102,241,0.1);\">10k\u03a9<\/td>\n<td style=\"padding: 12px 15px; color: #94a3b8; font-size: 13px; border-bottom: 1px solid rgba(99,102,241,0.1);\">+24V \u2192 R \u2192 LED+ \u2192 LED- \u2192 Q0.0 \u2192 1M \u2192 GND<\/td>\n<\/tr>\n<tr style=\"background: rgba(99,102,241,0.05);\">\n<td style=\"padding: 12px 15px; color: #a5b4fc; font-weight: 600; border-bottom: 1px solid rgba(99,102,241,0.1);\">Q0.1<\/td>\n<td style=\"padding: 12px 15px; color: #cbd5e1; border-bottom: 1px solid rgba(99,102,241,0.1);\">LED 2<\/td>\n<td style=\"padding: 12px 15px; color: #94a3b8; border-bottom: 1px solid rgba(99,102,241,0.1);\">10k\u03a9<\/td>\n<td style=\"padding: 12px 15px; color: #94a3b8; font-size: 13px; border-bottom: 1px solid rgba(99,102,241,0.1);\">+24V \u2192 R \u2192 LED+ \u2192 LED- \u2192 Q0.1 \u2192 1M \u2192 GND<\/td>\n<\/tr>\n<tr style=\"background: rgba(99,102,241,0.08);\">\n<td style=\"padding: 12px 15px; color: #a5b4fc; font-weight: 600; border-bottom: 1px solid rgba(99,102,241,0.1);\">Q0.2<\/td>\n<td style=\"padding: 12px 15px; color: #cbd5e1; border-bottom: 1px solid rgba(99,102,241,0.1);\">LED 3<\/td>\n<td style=\"padding: 12px 15px; color: #94a3b8; border-bottom: 1px solid rgba(99,102,241,0.1);\">10k\u03a9<\/td>\n<td style=\"padding: 12px 15px; color: #94a3b8; font-size: 13px; border-bottom: 1px solid rgba(99,102,241,0.1);\">+24V \u2192 R \u2192 LED+ \u2192 LED- \u2192 Q0.2 \u2192 1M \u2192 GND<\/td>\n<\/tr>\n<tr style=\"background: rgba(99,102,241,0.05);\">\n<td style=\"padding: 12px 15px; color: #a5b4fc; font-weight: 600; border-bottom: 1px solid rgba(99,102,241,0.1);\">Q0.3<\/td>\n<td style=\"padding: 12px 15px; color: #cbd5e1; border-bottom: 1px solid rgba(99,102,241,0.1);\">LED 4<\/td>\n<td style=\"padding: 12px 15px; color: #94a3b8; border-bottom: 1px solid rgba(99,102,241,0.1);\">10k\u03a9<\/td>\n<td style=\"padding: 12px 15px; color: #94a3b8; font-size: 13px; border-bottom: 1px solid rgba(99,102,241,0.1);\">+24V \u2192 R \u2192 LED+ \u2192 LED- \u2192 Q0.3 \u2192 1M \u2192 GND<\/td>\n<\/tr>\n<tr style=\"background: rgba(99,102,241,0.08);\">\n<td style=\"padding: 12px 15px; color: #a5b4fc; font-weight: 600; border-bottom: 1px solid rgba(99,102,241,0.1);\">Q0.4<\/td>\n<td style=\"padding: 12px 15px; color: #cbd5e1; border-bottom: 1px solid rgba(99,102,241,0.1);\">LED 5<\/td>\n<td style=\"padding: 12px 15px; color: #94a3b8; border-bottom: 1px solid rgba(99,102,241,0.1);\">10k\u03a9<\/td>\n<td style=\"padding: 12px 15px; color: #94a3b8; font-size: 13px; border-bottom: 1px solid rgba(99,102,241,0.1);\">+24V \u2192 R \u2192 LED+ \u2192 LED- \u2192 Q0.4 \u2192 1M \u2192 GND<\/td>\n<\/tr>\n<tr style=\"background: rgba(99,102,241,0.05);\">\n<td style=\"padding: 12px 15px; color: #a5b4fc; font-weight: 600; border-bottom: 1px solid rgba(99,102,241,0.1);\">Q0.5<\/td>\n<td style=\"padding: 12px 15px; color: #cbd5e1; border-bottom: 1px solid rgba(99,102,241,0.1);\">LED 6<\/td>\n<td style=\"padding: 12px 15px; color: #94a3b8; border-bottom: 1px solid rgba(99,102,241,0.1);\">10k\u03a9<\/td>\n<td style=\"padding: 12px 15px; color: #94a3b8; font-size: 13px; border-bottom: 1px solid rgba(99,102,241,0.1);\">+24V \u2192 R \u2192 LED+ \u2192 LED- \u2192 Q0.5 \u2192 1M \u2192 GND<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<\/div>\n<p><!-- Logique Pascal --><\/p>\n<div style=\"margin: 40px 0;\">\n<h2 style=\"font-size: 26px; color: #a5b4fc; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid rgba(99,102,241,0.4);\">\n    \ud83d\udcdd D&rsquo;abord en Pascal &#8211; pour comprendre la logique<br \/>\n  <\/h2>\n<p style=\"font-size: 16px; color: #cbd5e1; line-height: 1.8; margin-bottom: 20px;\">\n    Avant de coder en Ladder, voici comment ce programme s&rsquo;\u00e9crirait en <strong style=\"color: #a5b4fc;\">Pascal<\/strong>. Cela permet de comprendre clairement la logique avant de la traduire graphiquement en Ladder :\n  <\/p>\n<div style=\"background: rgba(0,0,0,0.4); padding: 25px; border-radius: 12px; border: 1px solid rgba(99,102,241,0.2); overflow-x: auto;\">\n<pre style=\"color: #a5b4fc; font-size: 13px; line-height: 1.8; margin: 0; white-space: pre-wrap;\">{ Chenillard 6 LEDs : \u00e9quivalent Pascal du programme Ladder }\r\nprogram Chenillard;\r\nvar\r\n  compteur  : Integer;  { valeur de MW100, position de la LED active }\r\n  clock_1hz : Boolean;  { bit M0.5, clignote 1 fois par seconde }\r\n  reset     : Boolean;  { bit M20.0, signal de remise \u00e0 z\u00e9ro }\r\n  Q         : array[0..5] of Boolean; { sorties Q0.0 \u00e0 Q0.5 }\r\n\r\nbegin\r\n  compteur := 0;\r\n  while True do\r\n  begin\r\n    { === NETWORK 1 : Compteur CTU ===\r\n      \u00c0 chaque front montant de clock_1hz (M0.5),\r\n      on incr\u00e9mente le compteur }\r\n    if clock_1hz then\r\n      compteur := compteur + 1;\r\n\r\n    { === NETWORK 2 : Reset automatique ===\r\n      Quand le compteur atteint 6, on remet \u00e0 z\u00e9ro }\r\n    reset := (compteur >= 6);\r\n    if reset then\r\n      compteur := 0;\r\n\r\n    { === NETWORKS 3 \u00e0 8 : Allumage des LEDs ===\r\n      Une seule LED allum\u00e9e \u00e0 la fois }\r\n    Q[0] := (compteur = 0);  { Q0.0 \u2192 LED 1 }\r\n    Q[1] := (compteur = 1);  { Q0.1 \u2192 LED 2 }\r\n    Q[2] := (compteur = 2);  { Q0.2 \u2192 LED 3 }\r\n    Q[3] := (compteur = 3);  { Q0.3 \u2192 LED 4 }\r\n    Q[4] := (compteur = 4);  { Q0.4 \u2192 LED 5 }\r\n    Q[5] := (compteur = 5);  { Q0.5 \u2192 LED 6 }\r\n\r\n    { Attendre 1 seconde (g\u00e9r\u00e9 par le bit M0.5) }\r\n    Wait(1000);\r\n  end;\r\nend.<\/pre>\n<\/p><\/div>\n<div style=\"background: rgba(99,102,241,0.1); padding: 20px; border-radius: 10px; border-left: 3px solid #6366f1; margin-top: 20px;\">\n<p style=\"font-size: 15px; color: #cbd5e1; line-height: 1.8; margin: 0;\">\n      \ud83d\udca1 Le SCL de TIA Portal a une syntaxe quasi identique au Pascal. C&rsquo;est le chemin naturel vers lequel je me dirige apr\u00e8s avoir ma\u00eetris\u00e9 le Ladder.\n    <\/p>\n<\/p><\/div>\n<\/div>\n<p><!-- Programme Ladder --><\/p>\n<div style=\"margin: 40px 0;\">\n<h2 style=\"font-size: 26px; color: #a5b4fc; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid rgba(99,102,241,0.4);\">\n    \ud83d\udcca Le programme en Ladder &#8211; Network par Network<br \/>\n  <\/h2>\n<p style=\"font-size: 16px; color: #cbd5e1; line-height: 1.8; margin-bottom: 25px;\">\n    Voici chaque r\u00e9seau du programme expliqu\u00e9. Chaque Network correspond \u00e0 une \u00e9tape de la logique Pascal ci-dessus.\n  <\/p>\n<p>  <!-- Network 1 --><\/p>\n<div style=\"background: linear-gradient(135deg, #1e1b4b, #1a1a2e); padding: 25px; border-radius: 12px; border: 1px solid rgba(99,102,241,0.2); margin-bottom: 20px;\">\n<div style=\"display: flex; align-items: center; gap: 15px; margin-bottom: 15px;\">\n      <span style=\"background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 700;\">N\u00b01<\/span><\/p>\n<h3 style=\"color: #a5b4fc; font-size: 20px; margin: 0;\">COMPTEUR &#8211; Compteur CTU cadenc\u00e9 par M0.5<\/h3>\n<\/p><\/div>\n<p style=\"font-size: 15px; color: #94a3b8; line-height: 1.7; margin-bottom: 15px;\">\n      Le bit d&rsquo;horloge <strong style=\"color: #a5b4fc;\">%M0.5<\/strong> (Clock_1Hz) est g\u00e9n\u00e9r\u00e9 automatiquement par le CPU. Il bascule entre 0 et 1 toutes les 500ms. \u00c0 chaque front montant, le compteur CTU incr\u00e9mente sa valeur <strong style=\"color: #a5b4fc;\">%MW100<\/strong> de 1. La valeur maximale PV est fix\u00e9e \u00e0 6.\n    <\/p>\n<div style=\"background: rgba(0,0,0,0.3); padding: 15px; border-radius: 8px; border: 1px solid rgba(99,102,241,0.15);\">\n<pre style=\"color: #86efac; font-size: 13px; margin: 0;\">%M0.5 \"Clock_1Hz\"    CTU Int    %MW100\r\n\u2500| |\u2500 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u25ba CU    CV \u2500\u2500\u2500\u2500\u2500\u2500\u25ba \"Tag_5\"\r\n%M20.0 \"Tag_4\"\r\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u25ba R\r\n6 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u25ba PV<\/pre>\n<\/p><\/div>\n<\/p><\/div>\n<p>  <!-- Network 2 --><\/p>\n<div style=\"background: linear-gradient(135deg, #1e1b4b, #1a1a2e); padding: 25px; border-radius: 12px; border: 1px solid rgba(99,102,241,0.2); margin-bottom: 20px;\">\n<div style=\"display: flex; align-items: center; gap: 15px; margin-bottom: 15px;\">\n      <span style=\"background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 700;\">N\u00b02<\/span><\/p>\n<h3 style=\"color: #a5b4fc; font-size: 20px; margin: 0;\">RESET &#8211; Remise \u00e0 z\u00e9ro automatique<\/h3>\n<\/p><\/div>\n<p style=\"font-size: 15px; color: #94a3b8; line-height: 1.7; margin-bottom: 15px;\">\n      Quand <strong style=\"color: #a5b4fc;\">%MW100 >= 6<\/strong>, le comparateur active le bit <strong style=\"color: #a5b4fc;\">%M20.0<\/strong>. Ce bit est connect\u00e9 \u00e0 l&rsquo;entr\u00e9e R (Reset) du compteur \u2014 il remet CV \u00e0 z\u00e9ro. Le cycle recommence ind\u00e9finiment : <strong style=\"color: #a5b4fc;\">0 \u2192 1 \u2192 2 \u2192 3 \u2192 4 \u2192 5 \u2192 0&#8230;<\/strong>\n    <\/p>\n<div style=\"background: rgba(0,0,0,0.3); padding: 15px; border-radius: 8px; border: 1px solid rgba(99,102,241,0.15);\">\n<pre style=\"color: #86efac; font-size: 13px; margin: 0;\">%MW100 >= 6          %M20.0 \"Tag_4\"\r\n\u2500\u2500\u2524 >=Int \u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500( )\u2500\u2500<\/pre>\n<\/p><\/div>\n<\/p><\/div>\n<p>  <!-- Network 3 --><\/p>\n<div style=\"background: linear-gradient(135deg, #1e1b4b, #1a1a2e); padding: 25px; border-radius: 12px; border: 1px solid rgba(99,102,241,0.2); margin-bottom: 20px;\">\n<div style=\"display: flex; align-items: center; gap: 15px; margin-bottom: 15px;\">\n      <span style=\"background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 700;\">N\u00b03<\/span><\/p>\n<h3 style=\"color: #a5b4fc; font-size: 20px; margin: 0;\">LED 1 &#8211; Allumage Q0.0<\/h3>\n<\/p><\/div>\n<p style=\"font-size: 15px; color: #94a3b8; line-height: 1.7; margin-bottom: 15px;\">\n      Quand <strong style=\"color: #a5b4fc;\">%MW100 == 0<\/strong>, la sortie relais <strong style=\"color: #a5b4fc;\">%Q0.0<\/strong> s&rsquo;active. Le relais ferme le circuit \u2192 la LED 1 s&rsquo;allume. D\u00e8s que le compteur passe \u00e0 1, Q0.0 s&rsquo;\u00e9teint et Q0.1 s&rsquo;allume.\n    <\/p>\n<div style=\"background: rgba(0,0,0,0.3); padding: 15px; border-radius: 8px; border: 1px solid rgba(99,102,241,0.15);\">\n<pre style=\"color: #86efac; font-size: 13px; margin: 0;\">%MW100 == 0           %Q0.0 \"Tag_2\"\r\n\u2500\u2500\u2524 ==Int \u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500( )\u2500\u2500<\/pre>\n<\/p><\/div>\n<\/p><\/div>\n<p>  <!-- Networks 4-8 --><\/p>\n<div style=\"background: linear-gradient(135deg, #1e1b4b, #1a1a2e); padding: 25px; border-radius: 12px; border: 1px solid rgba(99,102,241,0.2);\">\n<div style=\"display: flex; align-items: center; gap: 15px; margin-bottom: 15px;\">\n      <span style=\"background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 700;\">N\u00b04\u21928<\/span><\/p>\n<h3 style=\"color: #a5b4fc; font-size: 20px; margin: 0;\">LEDs 2 \u00e0 6 &#8211; Q0.1 \u00e0 Q0.5<\/h3>\n<\/p><\/div>\n<p style=\"font-size: 15px; color: #94a3b8; line-height: 1.7; margin-bottom: 15px;\">\n      M\u00eame logique r\u00e9p\u00e9t\u00e9e 5 fois, avec les valeurs 1, 2, 3, 4 et 5. Chaque r\u00e9seau compare <strong style=\"color: #a5b4fc;\">%MW100<\/strong> avec une valeur fixe et active la sortie correspondante.\n    <\/p>\n<div style=\"background: rgba(0,0,0,0.3); padding: 15px; border-radius: 8px; border: 1px solid rgba(99,102,241,0.15);\">\n<pre style=\"color: #86efac; font-size: 13px; margin: 0;\">MW100==1 \u2192 ( Q0.1 )  LED 2\r\nMW100==2 \u2192 ( Q0.2 )  LED 3\r\nMW100==3 \u2192 ( Q0.3 )  LED 4\r\nMW100==4 \u2192 ( Q0.4 )  LED 5\r\nMW100==5 \u2192 ( Q0.5 )  LED 6<\/pre>\n<\/p><\/div>\n<\/p><\/div>\n<\/div>\n<p><!-- R\u00e9sultat --><\/p>\n<div style=\"background: linear-gradient(135deg, #1e1b4b 0%, #1a1a2e 100%); padding: 35px; border-radius: 15px; margin: 40px 0; border: 1px solid rgba(76,175,80,0.2);\">\n<h2 style=\"font-size: 26px; color: #86efac; margin: 0 0 20px 0; padding-bottom: 15px; border-bottom: 2px solid rgba(76,175,80,0.3);\">\n    \ud83c\udfaf Ce que \u00e7a donne en pratique<br \/>\n  <\/h2>\n<p style=\"font-size: 16px; color: #cbd5e1; line-height: 1.8; margin-bottom: 20px;\">\n    Une fois le programme t\u00e9l\u00e9charg\u00e9 dans le PLC via TIA Portal et le c\u00e2blage v\u00e9rifi\u00e9, les 6 LEDs s&rsquo;allument l&rsquo;une apr\u00e8s l&rsquo;autre toutes les secondes, cr\u00e9ant un effet chenillard continu.\n  <\/p>\n<div style=\"background: rgba(76,175,80,0.08); padding: 20px; border-radius: 10px; border-left: 3px solid #4caf50;\">\n<p style=\"font-size: 15px; color: #cbd5e1; line-height: 1.8; margin: 0;\">\n      \ud83c\udfaf Ce projet m&rsquo;a permis de ma\u00eetriser les bases du Ladder : le <strong style=\"color: #86efac;\">bit d&rsquo;horloge, le compteur CTU, le comparateur et les sorties relais<\/strong>. La prochaine \u00e9tape est de refaire ce programme en <strong style=\"color: #86efac;\">SCL<\/strong> \u2014 dont la syntaxe Pascal rendra la transition naturelle.\n    <\/p>\n<\/p><\/div>\n<\/div>\n<p><!-- Stack technique --><\/p>\n<div style=\"margin: 40px 0;\">\n<h2 style=\"font-size: 26px; color: #a5b4fc; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid rgba(99,102,241,0.4);\">\n    \ud83d\udcbb Stack technique<br \/>\n  <\/h2>\n<div style=\"display: flex; flex-wrap: wrap; gap: 12px;\">\n    <span style=\"background: rgba(99,102,241,0.2); color: #a5b4fc; padding: 10px 20px; border-radius: 25px; font-size: 14px; font-weight: 600; border: 1px solid rgba(99,102,241,0.3);\">\u2699\ufe0f Siemens S7-1200<\/span><br \/>\n    <span style=\"background: rgba(139,92,246,0.2); color: #c4b5fd; padding: 10px 20px; border-radius: 25px; font-size: 14px; font-weight: 600; border: 1px solid rgba(139,92,246,0.3);\">\ud83d\udda5\ufe0f TIA Portal V20<\/span><br \/>\n    <span style=\"background: rgba(99,102,241,0.2); color: #a5b4fc; padding: 10px 20px; border-radius: 25px; font-size: 14px; font-weight: 600; border: 1px solid rgba(99,102,241,0.3);\">\ud83d\udcca Ladder (LAD)<\/span><br \/>\n    <span style=\"background: rgba(139,92,246,0.2); color: #c4b5fd; padding: 10px 20px; border-radius: 25px; font-size: 14px; font-weight: 600; border: 1px solid rgba(139,92,246,0.3);\">\ud83d\udcdd SCL<\/span><br \/>\n    <span style=\"background: rgba(99,102,241,0.2); color: #a5b4fc; padding: 10px 20px; border-radius: 25px; font-size: 14px; font-weight: 600; border: 1px solid rgba(99,102,241,0.3);\">\ud83d\udd0c Sorties Relais<\/span><br \/>\n    <span style=\"background: rgba(139,92,246,0.2); color: #c4b5fd; padding: 10px 20px; border-radius: 25px; font-size: 14px; font-weight: 600; border: 1px solid rgba(139,92,246,0.3);\">\u23f1\ufe0f Timers CTU<\/span><br \/>\n    <span style=\"background: rgba(99,102,241,0.2); color: #a5b4fc; padding: 10px 20px; border-radius: 25px; font-size: 14px; font-weight: 600; border: 1px solid rgba(99,102,241,0.3);\">\ud83d\udce1 PROFINET<\/span><br \/>\n    <span style=\"background: rgba(139,92,246,0.2); color: #c4b5fd; padding: 10px 20px; border-radius: 25px; font-size: 14px; font-weight: 600; border: 1px solid rgba(139,92,246,0.3);\">\ud83d\udd22 IEC 61131-3<\/span>\n  <\/div>\n<\/div>\n<p><!-- Ce que j'ai appris --><\/p>\n<div style=\"background: linear-gradient(135deg, #1e1b4b 0%, #1a1a2e 100%); padding: 35px; border-radius: 15px; margin: 40px 0; border: 1px solid rgba(99,102,241,0.2);\">\n<h2 style=\"font-size: 26px; color: #a5b4fc; margin: 0 0 20px 0; padding-bottom: 15px; border-bottom: 2px solid rgba(99,102,241,0.4);\">\n    \ud83d\udcda Ce que j&rsquo;ai appris<br \/>\n  <\/h2>\n<div style=\"display: flex; flex-direction: column; gap: 12px;\">\n<div style=\"display: flex; align-items: center; gap: 12px; background: rgba(99,102,241,0.1); padding: 15px; border-radius: 10px; border-left: 3px solid #6366f1;\">\n      <span style=\"color: #86efac;\">\u2705<\/span><br \/>\n      <span style=\"color: #cbd5e1; font-size: 15px;\">Programmation Ladder avec compteur CTU et comparateurs<\/span>\n    <\/div>\n<div style=\"display: flex; align-items: center; gap: 12px; background: rgba(99,102,241,0.1); padding: 15px; border-radius: 10px; border-left: 3px solid #8b5cf6;\">\n      <span style=\"color: #86efac;\">\u2705<\/span><br \/>\n      <span style=\"color: #cbd5e1; font-size: 15px;\">Utilisation du bit d&rsquo;horloge M0.5 (Clock_1Hz)<\/span>\n    <\/div>\n<div style=\"display: flex; align-items: center; gap: 12px; background: rgba(99,102,241,0.1); padding: 15px; border-radius: 10px; border-left: 3px solid #6366f1;\">\n      <span style=\"color: #86efac;\">\u2705<\/span><br \/>\n      <span style=\"color: #cbd5e1; font-size: 15px;\">Utilisation de TIA Portal V20<\/span>\n    <\/div>\n<div style=\"display: flex; align-items: center; gap: 12px; background: rgba(99,102,241,0.1); padding: 15px; border-radius: 10px; border-left: 3px solid #8b5cf6;\">\n      <span style=\"color: #86efac;\">\u2705<\/span><br \/>\n      <span style=\"color: #cbd5e1; font-size: 15px;\">Gestion des sorties relais DC\/DC\/RLY<\/span>\n    <\/div>\n<div style=\"display: flex; align-items: center; gap: 12px; background: rgba(99,102,241,0.1); padding: 15px; border-radius: 10px; border-left: 3px solid #6366f1;\">\n      <span style=\"color: #86efac;\">\u2705<\/span><br \/>\n      <span style=\"color: #cbd5e1; font-size: 15px;\">C\u00e2blage \u00e9lectrique industriel 24V DC<\/span>\n    <\/div>\n<div style=\"display: flex; align-items: center; gap: 12px; background: rgba(99,102,241,0.1); padding: 15px; border-radius: 10px; border-left: 3px solid #8b5cf6;\">\n      <span style=\"color: #86efac;\">\u2705<\/span><br \/>\n      <span style=\"color: #cbd5e1; font-size: 15px;\">Connexion PROFINET WiFi entre PC et automate<\/span>\n    <\/div>\n<div style=\"display: flex; align-items: center; gap: 12px; background: rgba(99,102,241,0.1); padding: 15px; border-radius: 10px; border-left: 3px solid #6366f1;\">\n      <span style=\"color: #86efac;\">\u2705<\/span><br \/>\n      <span style=\"color: #cbd5e1; font-size: 15px;\">Simulation et d\u00e9bogage en mode RUN avec TIA Portal<\/span>\n    <\/div>\n<\/p><\/div>\n<\/div>\n<p><!-- \u00c9volutions --><\/p>\n<div style=\"background: linear-gradient(135deg, #1e1b4b 0%, #1a1a2e 100%); padding: 35px; border-radius: 15px; margin: 40px 0; border: 1px solid rgba(245,158,11,0.2);\">\n<h2 style=\"font-size: 26px; color: #fcd34d; margin: 0 0 20px 0; padding-bottom: 15px; border-bottom: 2px solid rgba(245,158,11,0.3);\">\n    \ud83d\ude80 Prochaine \u00e9tape<br \/>\n  <\/h2>\n<div style=\"display: flex; flex-direction: column; gap: 12px;\">\n<div style=\"display: flex; align-items: center; gap: 12px; background: rgba(245,158,11,0.08); padding: 15px; border-radius: 10px; border-left: 3px solid #f59e0b;\">\n      <span style=\"color: #fcd34d;\">\ud83d\udd1c<\/span><br \/>\n      <span style=\"color: #cbd5e1; font-size: 15px;\">Refaire ce programme en <strong style=\"color: #fcd34d;\">SCL<\/strong> dont la syntaxe Pascal rendra la transition naturelle<\/span>\n    <\/div>\n<div style=\"display: flex; align-items: center; gap: 12px; background: rgba(245,158,11,0.08); padding: 15px; border-radius: 10px; border-left: 3px solid #f59e0b;\">\n      <span style=\"color: #fcd34d;\">\ud83d\udd1c<\/span><br \/>\n      <span style=\"color: #cbd5e1; font-size: 15px;\">Communication PROFINET avec d&rsquo;autres automates<\/span>\n    <\/div>\n<div style=\"display: flex; align-items: center; gap: 12px; background: rgba(245,158,11,0.08); padding: 15px; border-radius: 10px; border-left: 3px solid #f59e0b;\">\n      <span style=\"color: #fcd34d;\">\ud83d\udd1c<\/span><br \/>\n      <span style=\"color: #cbd5e1; font-size: 15px;\">Interface HMI pour visualisation et contr\u00f4le<\/span>\n    <\/div>\n<div style=\"display: flex; align-items: center; gap: 12px; background: rgba(245,158,11,0.08); padding: 15px; border-radius: 10px; border-left: 3px solid #f59e0b;\">\n      <span style=\"color: #fcd34d;\">\ud83d\udd1c<\/span><br \/>\n      <span style=\"color: #cbd5e1; font-size: 15px;\">Int\u00e9gration avec Home Assistant via Modbus TCP<\/span>\n    <\/div>\n<\/p><\/div>\n<\/div>\n<p><!-- CTA --><\/p>\n<div style=\"background: linear-gradient(135deg, #1e1b4b 0%, #0f3460 100%); padding: 50px 30px; border-radius: 20px; text-align: center; margin: 40px 0; border: 1px solid rgba(99,102,241,0.3); box-shadow: 0 4px 30px rgba(99,102,241,0.2);\">\n<h2 style=\"font-size: 32px; margin: 0 0 15px 0; color: #a5b4fc;\">\ud83d\udce6 Code source disponible !<\/h2>\n<p style=\"font-size: 17px; color: #94a3b8; margin: 0 0 30px 0; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.7;\">\n    Le programme TIA Portal et les sch\u00e9mas de connexion sont disponibles gratuitement sur GitHub !\n  <\/p>\n<div style=\"display: flex; gap: 15px; justify-content: center; flex-wrap: wrap;\">\n    <a href=\"https:\/\/github.com\/FILSTOGNO\" target=\"_blank\" style=\"background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; padding: 15px 35px; border-radius: 30px; text-decoration: none; font-weight: 700; font-size: 16px; box-shadow: 0 4px 20px rgba(99,102,241,0.4);\"><br \/>\n      \ud83d\udce6 Voir sur GitHub<br \/>\n    <\/a><br \/>\n    <a href=\"https:\/\/www.youtube.com\/shorts\/iY8uecf_oAM\" target=\"_blank\" style=\"background: #ff0000; color: white; padding: 15px 35px; border-radius: 30px; text-decoration: none; font-weight: 700; font-size: 16px;\"><br \/>\n      \ud83c\udfa5 Voir la vid\u00e9o<br \/>\n    <\/a><br \/>\n    <a href=\"https:\/\/fankepa.com\/?page_id=16\" style=\"background: rgba(99,102,241,0.2); color: #a5b4fc; padding: 15px 35px; border-radius: 30px; text-decoration: none; font-weight: 700; font-size: 16px; border: 2px solid rgba(99,102,241,0.4);\"><br \/>\n      \u2709\ufe0f Me contacter<br \/>\n    <\/a>\n  <\/div>\n<p style=\"font-size: 13px; color: #64748b; margin-top: 20px;\">\n    Projet r\u00e9alis\u00e9 par <strong style=\"color: #a5b4fc;\">Angelbert Fankepa<\/strong> \u00b7 Dipl\u00f4m\u00e9 en Informatique Industrielle<br \/>\n    Siemens S7-1200 \u00b7 TIA Portal V20 \u00b7 Ladder Diagram \u00b7 IEC 61131-3\n  <\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u2699\ufe0f Un premier projet concret en Ladder Diagram sur automate industriel Siemens &#8211; programm\u00e9 avec TIA Portal V20, c\u00e2bl\u00e9 sur [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6","post","type-post","status-publish","format-standard","hentry","category-non-classe"],"_links":{"self":[{"href":"https:\/\/fankepa.com\/index.php?rest_route=\/wp\/v2\/posts\/6","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fankepa.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fankepa.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fankepa.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fankepa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6"}],"version-history":[{"count":4,"href":"https:\/\/fankepa.com\/index.php?rest_route=\/wp\/v2\/posts\/6\/revisions"}],"predecessor-version":[{"id":53,"href":"https:\/\/fankepa.com\/index.php?rest_route=\/wp\/v2\/posts\/6\/revisions\/53"}],"wp:attachment":[{"href":"https:\/\/fankepa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fankepa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fankepa.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}