Skip to content

Lightweight in-browser CMS for organizing and viewing PLC program documentation (PDFs) exported from TIA Portal. Includes editable structure, dynamic blocks/groups, and persistent storage.

License

Notifications You must be signed in to change notification settings

tentypcic/plc_program_viewer_cms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PLC Programme Viewer CMS

PLC Programme Viewer screenshot

Project in pure HTML + CSS + JS (no backend)
View demo · Report Bug


🧠 About The Project

PLC Programme Viewer CMS is a lightweight, browser-based tool for managing and viewing Siemens TIA Portal program documentation.

It helps engineers export blocks as PDFs, organize them into trees, and review them directly in the browser – all without installing additional software or servers.

All data is saved locally in the browser via localStorage or exported/imported as .json files.


🛠 Features

  • 📁 Project list manager

    • Add, rename, duplicate, delete, or export/import projects (projects.json)
    • Quick search by name, description, or date
    • Pinned projects support (priority at the top)
  • 🧱 Viewer

    • Organize blocks into groups and subgroups
    • Add/edit OB / FB / FC / DB / UDT / Tags
    • Optional F-Blocks with yellow icons
    • Inline editing of names and links
    • Embedded PDF viewer (iframe)
    • Reset to default template
  • 💾 Persistence

    • Automatic saving to localStorage
    • Export/import single project or full list as JSON
  • 🌍 Instructions panel

    • Built-in multilingual guide (PL / EN)
    • Step-by-step screenshots on exporting blocks and adding them to the project tree
  • 🧠 No backend required – works fully offline


📂 Project Structure

  • index.html – Project list (add, search, manage, import/export)
  • viewer.html – Project viewer (tree + PDF preview + edit mode)
  • default.html – Instruction page (multilingual)
  • 404.html – Redirect / slug handler for GitHub Pages
  • src/*.js – Application logic (index-app.js, viewer-app.js)
  • src/*.css – Styling (index-style.css, viewer-style.css)
  • images/ – Icons and screenshots for help

🚀 Getting Started

  1. Clone or download this repository
  2. Open index.html in a modern browser
  3. Use the toolbar to:
    • ➕ Add a new project
    • 📂 Import/export projects.json
    • 🧱 Open empty template

⚡ Changes are saved locally in your browser.
To share or back up work, export as .json and re-import later.


📄 File Types

In order for the block to have the correct style, you need to give it the appropriate tag in the name, e.g., Block [FC...] based on the example, the block we are adding has the Function block style.

Tag Meaning Style
[OB] Organization block
[FB] Function block
[FC] Function
[DB] Data block
Tags PLC tag table
UDT User-defined data
F-Block Safety block (yellow)

📖 Instruction (Quick Preview)

1. Exporting blocks from TIA Portal

TIA Portal block tree Print to PDF

Right-click a block → Print… → choose Microsoft Print to PDF → save with block name.


2. Adding blocks to the project tree

Main menu Edit mode menu

  • Click ✏️ Edit Mode
  • Press ➕ Add Block
  • Fill in block name with Tag (e.g Main [OB1]) + PDF path (e.g. pdf/Main_OB1.pdf)
  • Optionally mark F-Block

Add block window Block added


🧑‍💻 Author

Created by tentypcic © 2025


📄 License

Distributed under the MIT License.

About

Lightweight in-browser CMS for organizing and viewing PLC program documentation (PDFs) exported from TIA Portal. Includes editable structure, dynamic blocks/groups, and persistent storage.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published