TIA Portal: Traffic Lights Sequencer With Shift Register

Here is a simple example of using SHL shift instructions to track the steps during a sequence of traffic lights. The bits pattern stored in a byte will be shifted left and the sequential steps will be activated by the corresponding memory bits. The whole process is programmed in TIA Portal, simulated on the PLCSIM, with a WinCC control panel.

Advent Of Code 2022 Day 2 Python Solution

Rock Paper Scissors is a game between two players. Each game contains many rounds; in each round, the players each simultaneously choose one of Rock, Paper, or Scissors using a hand shape. Then, a winner for that round is selected: Rock defeats Scissors, Scissors defeats Paper, and Paper defeats Rock. If both players choose the same shape, the round instead ends in a draw.