
The machine of the course on one diagram: a rotary table with four positions, two stations built the same way, and where the course ends. The order of the eight sections.
TIA Portal V18 with STEP 7 Professional and WinCC, S7-PLCSIM instead of hardware, the devices in the project, and what you should know before you start.
We create the project, add the CPU with its exact article number and firmware, set the security wizard for a training machine, give the PROFINET interface an address and a short device name, switch on system and clock memory, add 16 inputs and 16 outputs and compile the hardware.
The three homes of a value: tag table, global data block, instance data. We build Machine_Data with state bits, retentive counters and a cycle time, and see why a flat list of station fields does not scale.
Two tag tables by area, the Unit_Signal pattern, Booleans named for their TRUE state, and the rule that an address is written exactly once.
UDT_Station: step number, five status bits, a cycle counter and two parameters with their defaults. Status first, parameters last, and no sensors in the type.
Station_Data with two stations of one type, a per-station start value, the difference between start value and actual value, and one edit in the type that reaches both stations.
The eight naming rules used in the project, shown on the objects built so far.
Who calls whom and where the data lives: the five roles of the blocks, drawn step by step.
FB_Station is created and its interface is designed before any logic: commands and sensors in, two outputs, the station record as InOut, the step timer in Static.
What an instance is, where its memory lives, and why each call of the block has its own.
Two calls of FB_Station, each with its instance data block, its tags and its record in Station_Data.
The first download to PLCSIM, online and offline, a watch table and a force table, and the first proof that one block drives two stations.
AND, OR, set and reset in the station: the start conditions, the Busy bit and its reset.
Why a start is an event, the positive edge with its memory bit in Static, and the test that shows the difference.
The station cycle as numbered steps, one network per step, the outputs derived from the step, and a walk through the cycle with forced sensors.
The hold step with a TON whose time is a parameter of the station, and a cycle counter per station.
One release for both stations, a stop that always ends at home, and outputs that need the release.
The mode as an input of the station, manual commands in the record, and the manual interlock.
An alarm word in the station record, fixed bit numbers, the first alarm and the fault bit as a summary.
Step timeout, one reset button for both stations, acknowledge on a rising edge, and the test with a missing sensor.
The diagnostics buffer, the online/offline comparison and block monitoring: look first, then change.
The station measures its own cycle time; scan time is not cycle time; a check of the structure built so far.
The machine sequence above the two station sequences: release, wait for both, one index per part.
A part to start with, a part to count: good parts and rejects counted at the outfeed, retentive.
A record per part, an array of four positions, the shift on every index and the result read at the outfeed.
No new code: the whole machine is run in the simulator, with one table to drive it.
Five groups of checks before anyone touches the real machine, and the archive of the tested state.
A TP700 Comfort panel is added and connected, and the overview screen is built: four positions, counters and three lamps, live against PLCSIM.
One faceplate for the station, its interface, two instances bound to the two station records, and a change released to both.
HMI tags for the alarm words, one discrete alarm per bit, an alarm screen with a Reset button, and the test from the panel.
The station parameters as a recipe with two data records, loaded from the panel while the machine is stopped.
UDT_Station and FB_Station become versioned types and move, with the faceplate, to a global library.
Offline against offline down to the line, the IO list as an export, the final archive and the handover package.
The finished project in the order it was built, three exercises on the structure, and the downloads.
This course contains the use of artificial intelligence.
Most PLC courses stop at what a data block is and how a timer works. This course starts there and goes to the part that only shows up after a machine has been running for two years: how the project is structured, so that a maintenance electrician finds a fault at three in the morning, and so that the next engineer adds a station without unpicking the last one.
We build one machine from start to finish in TIA Portal V18: a small assembly cell on a rotary table with an infeed, two identical stations and an outfeed. Everything runs in S7-PLCSIM, so no hardware is needed.
The order is deliberate. The data comes first: a station type (UDT), one data block per station and one for the machine. Then one station function block with a clean interface, called twice from OB1. Then the logic inside it: binary logic, edges, a step sequence with a timeout on every step, timers and counters, interlocks, manual and automatic modes. Then diagnostics: alarm bits in the type, fault handling and reset, the diagnostics buffer, cycle time. Then the machine itself: rotary table, infeed, outfeed, part tracking, a dry run and a pre-FAT checklist. Then the HMI on top of that data: an overview screen, one faceplate bound to the station type and used for every station, an alarm view and a recipe. Finally we standardise: the types go into a global library, we compare projects, archive and hand over.
Every lesson that shows code ends with a compile at zero errors and zero warnings on screen. Each lesson is short, between three and nine minutes, and shows the real TIA Portal screen with the instructions as overlays, so you can follow along in your own project.
The narration is a generated voice, produced from scripts written by our engineers.
What you need: basic PLC knowledge, and TIA Portal V17 or newer with S7-PLCSIM. The trial version is enough.