Skip to content

Add examples cookbook and troubleshooting documentation#610

Open
gijzelaerr wants to merge 2 commits intomasterfrom
docs/examples-and-troubleshooting
Open

Add examples cookbook and troubleshooting documentation#610
gijzelaerr wants to merge 2 commits intomasterfrom
docs/examples-and-troubleshooting

Conversation

@gijzelaerr
Copy link
Owner

Summary

  • Add examples.rst with practical cookbook covering rack/slot reference, address mapping, data types (BOOL through DATE_AND_TIME), memory areas, analog I/O, multi-variable read, and server setup
  • Add troubleshooting.rst with error message reference table, S7-1200/1500 TIA Portal configuration, connection recovery patterns, timeout config, thread safety, and protocol limitations FAQ
  • Add both pages to the Sphinx toctree in index.rst

Motivation

Analysis of all 312 issues and discussions on this repo revealed that ~80% of questions fall into a few recurring categories:

  • S7-1200/1500 configuration (PUT/GET, optimized block access) — ~35 questions
  • Data type handling (REAL, STRING, BOOL read-modify-write) — ~30 questions
  • Connection errors and reconnection — ~20 questions
  • Byte offset / address mapping confusion — ~12 questions
  • Rack/slot confusion per PLC model — ~8 questions

These two documentation pages directly address all of these.

Test plan

  • Sphinx builds cleanly with -W (warnings as errors)
  • All referenced APIs verified to exist in the codebase
  • get_date_time_object reference corrected (doesn't exist, uses get_dt + datetime.fromisoformat)

🤖 Generated with Claude Code

Based on analysis of 312 issues and discussions, the two biggest
sources of user confusion are S7-1200/1500 configuration and data
type handling. These new pages address the most common questions.

examples.rst: rack/slot reference table, PLC address mapping guide,
complete data types cookbook (BOOL through DATE_AND_TIME), memory
areas, analog I/O, multi-variable read, and server setup for testing.

troubleshooting.rst: error message reference table, S7-1200/1500
TIA Portal configuration steps, connection recovery patterns, timeout
configuration, thread safety, and protocol limitations FAQ.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gijzelaerr gijzelaerr requested a review from nikteliy March 19, 2026 11:09
Add a new page documenting which Siemens PLC families are supported,
their protocol capabilities, PUT/GET configuration requirements, and
alternatives for unsupported PLCs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant