DDF.TECHNOLOGY

PortfolioPLCDualTimerDemo

GitHub downloads
PortfolioPLC Automation
MIT / FREE TIA Portal V18 LAD

PLCDualTimerDemo

A complete, unrestricted LAD example that alternates two PLC commands through independent IEC TON timers.

Designed as a small educational utility for Siemens-compatible projects, it includes the original TIA Portal project, readable logic documentation and a reproducible test checklist.

PLCDualTimerDemo LAD logic in Siemens TIA Portal Main OB1
Actual Main OB1 code view · captured 15 August 2026
01

// Expected sequence

Two positions, two independent times, one repeated cycle

  1. 01EnableIntermittenza_Attivata
  2. 02Comando-Pos1timePos1_ON
  3. 03Timer transitionIEC TON
  4. 04Comando-Pos2timePos2_ON
  5. 05Repeat / stopSafe-state verification required
02

// Main [OB1]

Four documented LAD segments

Program organisation

  • Enable/disable command
  • Position 1 activation time
  • Position 2 activation time
  • Alternating Pos1/Pos2 logic

Visible implementation

  • %M0.1Intermittenza_Attivata
  • %M0.3 / %M0.4Comando-Pos1 / Pos2
  • %MD8 / %MD12 — independent times
  • %DB4 / %DB2 — IEC TON instances
03

// Code view

The actual ladder logic in TIA Portal

04

// Release status

What is included and what still needs validation

ItemIncludedDocumented validation
Complete TIA Portal V18 projectStructure inspected
LAD logic and readable tag documentationVisually confirmed
Hardware and software compilationChecklist includedNot recorded
PLCSIMTest procedure includedNot recorded
Compatible PLC hardware testTest procedure includedNot recorded
Production useNo functional restrictionNot validated
05

// Requirements & licence

Open original work, proprietary engineering environment

TIA Portal V18

Created with TIA Portal V18 Update 5, project version 18.0.1.0. Open a copy first to avoid irreversible migration.

S7-1500

The recorded station uses a CPU 1511-1 PN, article 6ES7 511-1AL03-0AB0, firmware V3.0.

MIT License

The original logic and documentation can be used, modified and redistributed under the MIT terms, with copyright and licence notice preserved.

Siemens

TIA Portal, PLCSIM, SIMATIC, firmware, libraries and trademarks remain subject to Siemens AG's licences and terms.