{"id":11829,"date":"2024-01-09T05:43:00","date_gmt":"2024-01-09T04:43:00","guid":{"rendered":"https:\/\/sklep-plcspace.pl\/?p=11829"},"modified":"2024-01-07T10:44:57","modified_gmt":"2024-01-07T09:44:57","slug":"tia-portal-first-project","status":"publish","type":"post","link":"https:\/\/sklep-plcspace.pl\/en\/blog\/tia-portal-first-project\/","title":{"rendered":"TIA Portal - First project"},"content":{"rendered":"<p>we will focus on creating the first draft, going through the steps one by one. It is crucial to go through this stage step by step. I have highlighted the most important points, which I covered in detail earlier, while we have already examined the key aspects of the environment. The following tabs also offer additional options, which will be presented here.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What does the project involve?<\/h2>\n\n\n\n<p><strong>0. Algorithm for machine\/line operation (<\/strong>written on a piece of paper<strong>)<\/strong><\/p>\n\n\n\n<p><strong>1. creation of the project in the development environment<\/strong><\/p>\n\n\n\n<p><strong>2. Hardware configuration<\/strong><\/p>\n\n\n\n<p>a) Selecting a PLC (e.g. S7-1200)<\/p>\n\n\n\n<p>(b) Assignment of an IP address (if applicable)<\/p>\n\n\n\n<p>c) Address setting for digital inputs and outputs (if applicable)<\/p>\n\n\n\n<p>(d) Other settings (if any)<\/p>\n\n\n\n<p><strong>3 Writing programme code<\/strong><\/p>\n\n\n\n<p>-Creation of symbolic names for digital inputs\/outputs (according to point 2c)<\/p>\n\n\n\n<p>-Input and output tests (IO test)<\/p>\n\n\n\n<p>-Coding<\/p>\n\n\n\n<p><strong>4. PC-PLC connection configuration <\/strong>(when using the actual PLC)<\/p>\n\n\n\n<p><strong>5. download <\/strong>(uploading data to the controller)<\/p>\n\n\n\n<p><strong>6. tests and possible amendments<\/strong><\/p>\n\n\n\n<p>-<\/p>\n\n\n\n<p>Before we create the first project, I have prepared a step-by-step breakdown, showing how the working procedure from the concept phase to the creation of the project should look like. The next steps are marked, and it is a good idea to start by preparing an algorithm that defines how the project should work. This algorithm can be general at the beginning, but will become more and more detailed over time. It is useful to have an idea at the outset of how we want the project to work.<\/p>\n\n\n\n<p>We then proceed to the stage of putting the project down in the environment. This project consists of two main parts: the hardware configuration and the software part.<\/p>\n\n\n\n<p>Here, in tab two, we focus on the hardware configuration. This configuration is divided into several smaller parts. The first step is to add a driver. We need to select the appropriate driver from the available options. In this lesson, we will focus on the 1200 controller. If you are working on an actual controller, you may need to give it an IP address, which is sometimes required by a customer project. If there are no specific IP address requirements, the controller usually has a default address of 192.168.0.1.<\/p>\n\n\n\n<p>Another important point (2c) is the setting of addresses for inputs and outputs. This issue often causes difficulties for beginners because it requires an understanding of addressing. The addresses should match the design assumptions, which is crucial for the subsequent programming of the controller. For more advanced applications, point 2d involves additional settings in the PLC. These are advanced configurations that can be customised according to the needs of the project.<\/p>\n\n\n\n<p>It is worth noting that more advanced settings can be configured later, with the initial focus on running and testing the basic functions. We can approach the configuration in stages, checking the operation of each functionality before moving on to the next. Such a step-by-step procedure makes it easier to identify possible problems and enables more effective correction.<\/p>\n\n\n\n<p>Point 3 covers the creation of symbolic names, i.e. links between the address we have configured in the hardware part and a name to make it easier to understand. This is a preparation for easier programming. In the next step (3B), an important step is to test the inputs and outputs to check that all signals are correctly reaching the controller. It is worth verifying the correct operation of sensors, buttons and other actuators, especially when working on real hardware.<\/p>\n\n\n\n<p>If you are working on real hardware, you will also need to ensure that the computer is properly prepared and the interfaces are set up to allow for a correct connection (point 4). If you are working on a virtual controller, this step is usually automatic, but it is worth making sure that all settings are correct. If necessary, you can adjust the settings in the control panel, under the pg-pc tab.<\/p>\n\n\n\n<p>We then move on to step 5, which involves the download process, i.e. uploading the prepared programme from the PC to the controller, whether it is a real or virtual controller. This stage is important because it allows us to input our work into the controller so that it starts to perform according to our design intentions.<\/p>\n\n\n\n<p>Point 6 covers the testing stage, where we check that our work works as designed. If we encounter errors, corrections need to be made. This process may require going back to the coding stage, but it is important to make corrections in small steps, testing each change. The key is to have an algorithm and to go through each task consciously.<\/p>\n\n\n\n<p>When we start working with PLCs, it is important to have a list of next steps prepared. Throughout the course we will progress gradually through the steps, some of the more advanced ones appearing in later lessons. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">LAD programming language (ladder)<\/h2>\n\n\n\n<p>During the first project, we will be using the LAD (ladder) language, which is dedicated to electricians. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"568\" height=\"484\" src=\"https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image2.png\" alt=\"\" class=\"wp-image-11830\" srcset=\"https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image2.png 568w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image2-300x256.png 300w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image2-14x12.png 14w\" sizes=\"(max-width: 568px) 100vw, 568px\" \/><\/figure>\n\n\n\n<p>Although the S7 1200 controller allows programming in three languages (LAD, FBD, SCL), we will mainly focus on the graphical language, specifically Ladder. This language is the default for the OB1 file, which we will learn more about in the following sections of the course.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Project premise<\/h2>\n\n\n\n<p>Here we see the view of the development environment, i.e. the Project View. The easiest way to navigate this environment is to use the numbered points that mark out the key steps. We start with function number one, where we create a new project in the first step.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"810\" src=\"https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image4-1024x810.png\" alt=\"\" class=\"wp-image-11831\" srcset=\"https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image4-1024x810.png 1024w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image4-300x237.png 300w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image4-768x608.png 768w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image4-15x12.png 15w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image4-600x475.png 600w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image4.png 1077w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>To do this, we click on the card icon marked with a red rectangle. Once clicked, a new window will open where we can initiate the project creation process.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Name of the project<\/h2>\n\n\n\n<p>W oknie 'Create New Project&#8217;, wpisujemy nazw\u0119 projektu (patrz pole 'Project Name&#8217;), na przyk\u0142ad 'First Project&#8217;.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"502\" height=\"238\" src=\"https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image5.png\" alt=\"\" class=\"wp-image-11832\" srcset=\"https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image5.png 502w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image5-300x142.png 300w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image5-18x9.png 18w\" sizes=\"(max-width: 502px) 100vw, 502px\" \/><\/figure>\n\n\n\n<p>Kolejne pole to \u015bcie\u017cka, w kt\u00f3rej projekt b\u0119dzie zapisywany. Domy\u015blnie projekty zapisywane s\u0105 w folderze 'My Documents\/Automation Projects&#8217;. Mo\u017cemy pozostawi\u0107 t\u0119 \u015bcie\u017ck\u0119 lub utworzy\u0107 nowy folder w celu organizacji projekt\u00f3w. Kolejne pola obejmuj\u0105 wersj\u0119 TIA Portal, autora oraz opcjonalny komentarz.<\/p>\n\n\n\n<p>Nast\u0119pnie klikamy przycisk 'Create New Project&#8217;, zaznaczony numerem dwa na czerwonym tle. Teraz przechodzimy do konfiguracji sprz\u0119towej, co stanowi kolejny etap po utworzeniu projektu. Warto podkre\u015bli\u0107, \u017ce proces tworzenia projektu mo\u017ce chwil\u0119 potrwa\u0107, dlatego potrzebujemy odrobin\u0119 cierpliwo\u015bci, zw\u0142aszcza gdy niekt\u00f3re zadania w TIA Portal wymagaj\u0105 wi\u0119cej czasu. Po utworzeniu projektu, pojawi si\u0119 widok TIA Portal.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Stage - hardware configuration<\/h2>\n\n\n\n<p>Podczas prezentacji widzimy kolejne zadanie, a mianowicie dodanie nowego urz\u0105dzenia, co stanowi trzeci krok w procesie. W drzewie projektu mamy ju\u017c utworzony nasz projekt, kt\u00f3ry zazwyczaj jest rozwini\u0119ty. Przy nazwie projektu, na przyk\u0142ad 'First Project&#8217;, widzimy czarny tr\u00f3jk\u0105t. Mo\u017cemy go rozwin\u0105\u0107 lub zwin\u0105\u0107, co dzia\u0142a r\u00f3wnie\u017c dla innych folder\u00f3w, takich jak urz\u0105dzenia. Klikaj\u0105c na tr\u00f3jk\u0105t, mo\u017cemy schowa\u0107 lub rozwija\u0107 widok danego obiektu.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Adding a device<\/h2>\n\n\n\n<p>Teraz przechodzimy do dodania nowego urz\u0105dzenia. W drzewie projektu klikamy na 'Add New Device&#8217;.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"810\" src=\"https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image7-1024x810.png\" alt=\"\" class=\"wp-image-11833\" srcset=\"https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image7-1024x810.png 1024w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image7-300x237.png 300w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image7-768x608.png 768w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image7-15x12.png 15w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image7-600x475.png 600w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image7.png 1077w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Warto zauwa\u017cy\u0107, \u017ce je\u017celi pracujemy na licencji testowej, mo\u017ce pojawi\u0107 si\u0119 okno zwi\u0105zane z automatycznym managerem licencji, takie jak 'STEP 7 Basic&#8217;. Tutaj wybieramy odpowiedni\u0105 licencj\u0119, na przyk\u0142ad 'STEP 7 Professional&#8217;, kt\u00f3ra jest pod\u015bwietlona na niebiesko.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"489\" height=\"236\" src=\"https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image8.png\" alt=\"\" class=\"wp-image-11834\" srcset=\"https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image8.png 489w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image8-300x145.png 300w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image8-18x9.png 18w\" sizes=\"(max-width: 489px) 100vw, 489px\" \/><\/figure>\n\n\n\n<p>Po zaznaczeniu klikamy przycisk 'Activate&#8217;, co daje nam 21 dni na prac\u0119 w TIA Portal z licencj\u0105 Trial<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">CPU selection<\/h2>\n\n\n\n<p>Nast\u0119pnie przechodzimy do kolejnego okna, 'Add New Device&#8217;, klikaj\u0105c czerwony przycisk, co oznacza czwarty krok<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"709\" height=\"697\" src=\"https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image9.png\" alt=\"\" class=\"wp-image-11835\" srcset=\"https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image9.png 709w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image9-300x295.png 300w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image9-12x12.png 12w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image9-70x70.png 70w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image9-600x590.png 600w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image9-50x50.png 50w\" sizes=\"(max-width: 709px) 100vw, 709px\" \/><\/figure>\n\n\n\n<p>W folderze 'Controllers&#8217; rozwijamy odpowiednie foldery, a nast\u0119pnie wybieramy CPU z rodziny simatic S7 1200, na kt\u00f3rym b\u0119dziemy pracowa\u0107. Pami\u0119tajmy o rozwini\u0119ciu CPU przy jednostce centralnej, kt\u00f3ra zawiera podprogramy z rodziny 1200.<\/p>\n\n\n\n<p>Now we need to choose the model of controller on which we will work on the project. I have chosen a 1212 DC DC CPU, which is a slightly higher unit, but within the smaller units, and sufficient to run this course. We will be working on a virtual controller, so you can choose any controller to work through all the tasks in this course. However, if we have an actual controller available, we need to choose exactly the hardware we have physically.<\/p>\n\n\n\n<p>To find out what equipment we have based on the order number, these numbers are visible in the equipment selection window. The order number, highlighted here, e.g. 6ES7 212, is located under the bottom flap on the right side of the controller. Expanding the CPU 1212 DC-DC-DC folder, we see three generations of controllers available for purchase. For the purposes of this course, I have chosen the third generation, which is the latest.<\/p>\n\n\n\n<p>If we do not plan to buy a new controller, but only want to work on a virtual one, we can choose any generation. For the virtual controller, I will focus on the third generation. Once the controller is selected, the description box on the right provides key information about the controller, such as the number of built-in inputs\/outputs (8 inputs and 6 outputs in this case) and working memory information (75 kilobytes).<\/p>\n\n\n\n<p>This information is important especially at the initial programming stage, allowing us to adapt the hardware to our needs and see which CPU to choose depending on the type of project. Fifth point. I suggest that at the beginning you carefully choose the same model of controller that I will be presenting in this course, and also work on a virtual controller in PLC SIM. These items will be useful if you are testing your application, even if you plan to work on the actual controller. There is some functionality here that is very helpful when testing, which will also be covered in the course.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Device configuration<\/h2>\n\n\n\n<p>We now move on to the next step, where the hardware configuration view of the driver appears by default. This is set by default when adding a new driver, and I have highlighted the most important places to note in the TIA Portal hardware configuration view.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"716\" src=\"https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image10-1024x716.png\" alt=\"\" class=\"wp-image-11836\" srcset=\"https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image10-1024x716.png 1024w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image10-300x210.png 300w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image10-768x537.png 768w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image10-18x12.png 18w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image10-600x419.png 600w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image10.png 1306w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>As far as Point A is concerned, we have three tabs: Device, Network, and Topology. The Device tab is for settings relating to the PLC itself. The next tab, Network, allows us to configure network settings, which is important when we want to connect the controller to another network device. The last tab, Topology, is dedicated to the physical connection, specifying the cable locations, slots, and RJ45 ports on the device. In this course, we will mainly use the Device tab, which is necessary for setting up addresses. Although addresses can also be configured in other places, we will discuss this later. In general, the Device tab covers a summary of addressing at this level.<\/p>\n\n\n\n<p>Point B shows a view of the virtual bus on which devices such as the PLC (CPU) and additional modules are mounted. Here there are virtual slots where modules can be mounted. The hardware configuration is built according to the actual layout, and everything must match. This hardware configuration is related to tab B, which I mentioned earlier, and in this phase we mainly focus on addressing.<\/p>\n\n\n\n<p>It is worth noting that the items indicated only apply to the Device tab, which is key in the context of addressing at this level of hardware configuration.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Default I\/O addressing<\/h2>\n\n\n\n<p>The most important aspect in this phase is addressing, which is a key starting point for many students, especially at the beginning of their automation-related learning. Addresses are essentially assigned to the signals connected to the controller's inputs and outputs, which we will discuss in more detail later.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"802\" src=\"https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image11-1024x802.png\" alt=\"\" class=\"wp-image-11837\" srcset=\"https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image11-1024x802.png 1024w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image11-300x235.png 300w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image11-768x602.png 768w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image11-15x12.png 15w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image11-600x470.png 600w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image11.png 1306w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>On the Device View, we can see where the inputs and outputs are located. The inputs are highlighted in green and their addresses are visible when we zoom into the workspace. If we mark the controller as Focus, the addresses associated with the outputs, highlighted in green, appear in the inspector window on the Properties tab. In the PLC, we have a compact unit, characterised by a TSO unit, as well as inputs and outputs. The addresses for the input signals are shown in green and those for the outputs in blue. A green arrow is visible in the project tree, symbolising the addresses needed for the PLC. We will focus on this later in the course. The PLC has inputs and outputs, which is typical of compact controllers. The addresses for the outputs are set to 0 by default, as are those for the inputs. However, these addresses can be adjusted, which we will discuss in the following sections.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Stage - Software<\/h2>\n\n\n\n<p>We now move on to the Software area, the software configuration stage. We have now completed the hardware configuration stage.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"764\" src=\"https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image12-1024x764.png\" alt=\"\" class=\"wp-image-11838\" srcset=\"https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image12-1024x764.png 1024w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image12-300x224.png 300w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image12-768x573.png 768w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image12-16x12.png 16w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image12-600x447.png 600w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image12.png 1372w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The first step is to run a simple programme. We leave the default addresses as they are. In the Software area, we see the link to Hardware and the addressing. It is crucial that the addresses are set correctly so that the hardware configuration is correct, allowing us to move on to the Software stage later.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"689\" height=\"411\" src=\"https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image13.png\" alt=\"\" class=\"wp-image-11839\" srcset=\"https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image13.png 689w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image13-300x179.png 300w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image13-18x12.png 18w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image13-600x358.png 600w\" sizes=\"(max-width: 689px) 100vw, 689px\" \/><\/figure>\n\n\n\n<p>In the figure we can see how this part (Network) is related to our hardware, indicated by the black box. The arrow illustrates the relationship between the hardware and the programme code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Block OB1<\/h2>\n\n\n\n<p>We enter the programme code into the organisational block OB1, which we see on Programme Blocks. We click on Main OB1 to go to the place where the programme code can be entered.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"764\" src=\"https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image14-1024x764.png\" alt=\"\" class=\"wp-image-11840\" srcset=\"https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image14-1024x764.png 1024w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image14-300x224.png 300w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image14-768x573.png 768w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image14-16x12.png 16w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image14-600x447.png 600w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image14.png 1372w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Next, we move to step six, where we click on Main OB1. In the work area, we see the programme code editor. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Editor<\/h2>\n\n\n\n<p>I have highlighted the most important elements of this editor. The icon bar contains shortcuts to the most frequently used functions, such as adding another line of code or adding another network. If we want to add a new network, we use the Network icon.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1005\" src=\"https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image15-1024x1005.png\" alt=\"\" class=\"wp-image-11841\" srcset=\"https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image15-1024x1005.png 1024w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image15-300x295.png 300w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image15-768x754.png 768w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image15-12x12.png 12w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image15-70x70.png 70w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image15-600x589.png 600w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image15-50x50.png 50w, https:\/\/sklep-plcspace.pl\/wp-content\/uploads\/2024\/01\/03c_TIA_Pierwszy-Projekt_image15.png 1042w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>In the interface area, depending on the block, parameters and variables can be opened. The Interface section is a bar of favourite instructions, and the Favorites Instructions section makes it easy to add frequently used instructions. Icons in the Instructions tab facilitate access to instructions. In the Function (F) tab, we have access to extended instructions. Point G is the Inspector window, where we see the properties of the block we have selected. This is the first project that has gone through the stages of hardware configuration and where to write the program code.<\/p>","protected":false},"excerpt":{"rendered":"<p>we will focus on creating the first draft, going through the steps one by one. It is crucial to go through this stage step by step. I have highlighted the most important points, which I covered in detail earlier, while we have already examined the key aspects of the environment. The subsequent tabs also offer additional options, which will be presented here. What is involved ? 0. Algorithm for [...].<\/p>","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","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":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"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":""},"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-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":"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":""},"mobile":{"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":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-11829","post","type-post","status-publish","format-standard","hentry","category-bez-kategorii"],"acf":[],"_links":{"self":[{"href":"https:\/\/sklep-plcspace.pl\/en\/wp-json\/wp\/v2\/posts\/11829","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sklep-plcspace.pl\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sklep-plcspace.pl\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sklep-plcspace.pl\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/sklep-plcspace.pl\/en\/wp-json\/wp\/v2\/comments?post=11829"}],"version-history":[{"count":0,"href":"https:\/\/sklep-plcspace.pl\/en\/wp-json\/wp\/v2\/posts\/11829\/revisions"}],"wp:attachment":[{"href":"https:\/\/sklep-plcspace.pl\/en\/wp-json\/wp\/v2\/media?parent=11829"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sklep-plcspace.pl\/en\/wp-json\/wp\/v2\/categories?post=11829"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sklep-plcspace.pl\/en\/wp-json\/wp\/v2\/tags?post=11829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}