+
+ Read the Docs
+ v: ${config.versions.current.slug}
+
+
+
+
+ ${renderLanguages(config)}
+ ${renderVersions(config)}
+ ${renderDownloads(config)}
+
+ On Read the Docs
+
+ Project Home
+
+
+ Builds
+
+
+ Downloads
+
+
+
+ Search
+
+
+
+
+
+
+ Hosted by Read the Docs
+
+
+
+ `;
+
+ // Inject the generated flyout into the body HTML element.
+ document.body.insertAdjacentHTML("beforeend", flyout);
+
+ // Trigger the Read the Docs Addons Search modal when clicking on the "Search docs" input from inside the flyout.
+ document
+ .querySelector("#flyout-search-form")
+ .addEventListener("focusin", () => {
+ const event = new CustomEvent("readthedocs-search-show");
+ document.dispatchEvent(event);
+ });
+ })
+}
+
+if (themeLanguageSelector || themeVersionSelector) {
+ function onSelectorSwitch(event) {
+ const option = event.target.selectedIndex;
+ const item = event.target.options[option];
+ window.location.href = item.dataset.url;
+ }
+
+ document.addEventListener("readthedocs-addons-data-ready", function (event) {
+ const config = event.detail.data();
+
+ const versionSwitch = document.querySelector(
+ "div.switch-menus > div.version-switch",
+ );
+ if (themeVersionSelector) {
+ let versions = config.versions.active;
+ if (config.versions.current.hidden || config.versions.current.type === "external") {
+ versions.unshift(config.versions.current);
+ }
+ const versionSelect = `
+
+ ${versions
+ .map(
+ (version) => `
+
+ ${version.slug}
+ `,
+ )
+ .join("\n")}
+
+ `;
+
+ versionSwitch.innerHTML = versionSelect;
+ versionSwitch.firstElementChild.addEventListener("change", onSelectorSwitch);
+ }
+
+ const languageSwitch = document.querySelector(
+ "div.switch-menus > div.language-switch",
+ );
+
+ if (themeLanguageSelector) {
+ if (config.projects.translations.length) {
+ // Add the current language to the options on the selector
+ let languages = config.projects.translations.concat(
+ config.projects.current,
+ );
+ languages = languages.sort((a, b) =>
+ a.language.name.localeCompare(b.language.name),
+ );
+
+ const languageSelect = `
+
+ ${languages
+ .map(
+ (language) => `
+
+ ${language.language.name}
+ `,
+ )
+ .join("\n")}
+
+ `;
+
+ languageSwitch.innerHTML = languageSelect;
+ languageSwitch.firstElementChild.addEventListener("change", onSelectorSwitch);
+ }
+ else {
+ languageSwitch.remove();
+ }
+ }
+ });
+}
+
+document.addEventListener("readthedocs-addons-data-ready", function (event) {
+ // Trigger the Read the Docs Addons Search modal when clicking on "Search docs" input from the topnav.
+ document
+ .querySelector("[role='search'] input")
+ .addEventListener("focusin", () => {
+ const event = new CustomEvent("readthedocs-search-show");
+ document.dispatchEvent(event);
+ });
+});
\ No newline at end of file
diff --git a/_static/language_data.js b/_static/language_data.js
new file mode 100644
index 0000000..c7fe6c6
--- /dev/null
+++ b/_static/language_data.js
@@ -0,0 +1,192 @@
+/*
+ * This script contains the language-specific data used by searchtools.js,
+ * namely the list of stopwords, stemmer, scorer and splitter.
+ */
+
+var stopwords = ["a", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into", "is", "it", "near", "no", "not", "of", "on", "or", "such", "that", "the", "their", "then", "there", "these", "they", "this", "to", "was", "will", "with"];
+
+
+/* Non-minified version is copied as a separate JS file, if available */
+
+/**
+ * Porter Stemmer
+ */
+var Stemmer = function() {
+
+ var step2list = {
+ ational: 'ate',
+ tional: 'tion',
+ enci: 'ence',
+ anci: 'ance',
+ izer: 'ize',
+ bli: 'ble',
+ alli: 'al',
+ entli: 'ent',
+ eli: 'e',
+ ousli: 'ous',
+ ization: 'ize',
+ ation: 'ate',
+ ator: 'ate',
+ alism: 'al',
+ iveness: 'ive',
+ fulness: 'ful',
+ ousness: 'ous',
+ aliti: 'al',
+ iviti: 'ive',
+ biliti: 'ble',
+ logi: 'log'
+ };
+
+ var step3list = {
+ icate: 'ic',
+ ative: '',
+ alize: 'al',
+ iciti: 'ic',
+ ical: 'ic',
+ ful: '',
+ ness: ''
+ };
+
+ var c = "[^aeiou]"; // consonant
+ var v = "[aeiouy]"; // vowel
+ var C = c + "[^aeiouy]*"; // consonant sequence
+ var V = v + "[aeiou]*"; // vowel sequence
+
+ var mgr0 = "^(" + C + ")?" + V + C; // [C]VC... is m>0
+ var meq1 = "^(" + C + ")?" + V + C + "(" + V + ")?$"; // [C]VC[V] is m=1
+ var mgr1 = "^(" + C + ")?" + V + C + V + C; // [C]VCVC... is m>1
+ var s_v = "^(" + C + ")?" + v; // vowel in stem
+
+ this.stemWord = function (w) {
+ var stem;
+ var suffix;
+ var firstch;
+ var origword = w;
+
+ if (w.length < 3)
+ return w;
+
+ var re;
+ var re2;
+ var re3;
+ var re4;
+
+ firstch = w.substr(0,1);
+ if (firstch == "y")
+ w = firstch.toUpperCase() + w.substr(1);
+
+ // Step 1a
+ re = /^(.+?)(ss|i)es$/;
+ re2 = /^(.+?)([^s])s$/;
+
+ if (re.test(w))
+ w = w.replace(re,"$1$2");
+ else if (re2.test(w))
+ w = w.replace(re2,"$1$2");
+
+ // Step 1b
+ re = /^(.+?)eed$/;
+ re2 = /^(.+?)(ed|ing)$/;
+ if (re.test(w)) {
+ var fp = re.exec(w);
+ re = new RegExp(mgr0);
+ if (re.test(fp[1])) {
+ re = /.$/;
+ w = w.replace(re,"");
+ }
+ }
+ else if (re2.test(w)) {
+ var fp = re2.exec(w);
+ stem = fp[1];
+ re2 = new RegExp(s_v);
+ if (re2.test(stem)) {
+ w = stem;
+ re2 = /(at|bl|iz)$/;
+ re3 = new RegExp("([^aeiouylsz])\\1$");
+ re4 = new RegExp("^" + C + v + "[^aeiouwxy]$");
+ if (re2.test(w))
+ w = w + "e";
+ else if (re3.test(w)) {
+ re = /.$/;
+ w = w.replace(re,"");
+ }
+ else if (re4.test(w))
+ w = w + "e";
+ }
+ }
+
+ // Step 1c
+ re = /^(.+?)y$/;
+ if (re.test(w)) {
+ var fp = re.exec(w);
+ stem = fp[1];
+ re = new RegExp(s_v);
+ if (re.test(stem))
+ w = stem + "i";
+ }
+
+ // Step 2
+ re = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/;
+ if (re.test(w)) {
+ var fp = re.exec(w);
+ stem = fp[1];
+ suffix = fp[2];
+ re = new RegExp(mgr0);
+ if (re.test(stem))
+ w = stem + step2list[suffix];
+ }
+
+ // Step 3
+ re = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/;
+ if (re.test(w)) {
+ var fp = re.exec(w);
+ stem = fp[1];
+ suffix = fp[2];
+ re = new RegExp(mgr0);
+ if (re.test(stem))
+ w = stem + step3list[suffix];
+ }
+
+ // Step 4
+ re = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/;
+ re2 = /^(.+?)(s|t)(ion)$/;
+ if (re.test(w)) {
+ var fp = re.exec(w);
+ stem = fp[1];
+ re = new RegExp(mgr1);
+ if (re.test(stem))
+ w = stem;
+ }
+ else if (re2.test(w)) {
+ var fp = re2.exec(w);
+ stem = fp[1] + fp[2];
+ re2 = new RegExp(mgr1);
+ if (re2.test(stem))
+ w = stem;
+ }
+
+ // Step 5
+ re = /^(.+?)e$/;
+ if (re.test(w)) {
+ var fp = re.exec(w);
+ stem = fp[1];
+ re = new RegExp(mgr1);
+ re2 = new RegExp(meq1);
+ re3 = new RegExp("^" + C + v + "[^aeiouwxy]$");
+ if (re.test(stem) || (re2.test(stem) && !(re3.test(stem))))
+ w = stem;
+ }
+ re = /ll$/;
+ re2 = new RegExp(mgr1);
+ if (re.test(w) && re2.test(w)) {
+ re = /.$/;
+ w = w.replace(re,"");
+ }
+
+ // and turn initial Y back to y
+ if (firstch == "y")
+ w = firstch.toLowerCase() + w.substr(1);
+ return w;
+ }
+}
+
diff --git a/_static/minus.png b/_static/minus.png
new file mode 100644
index 0000000..d96755f
Binary files /dev/null and b/_static/minus.png differ
diff --git a/_static/plus.png b/_static/plus.png
new file mode 100644
index 0000000..7107cec
Binary files /dev/null and b/_static/plus.png differ
diff --git a/_static/pygments.css b/_static/pygments.css
new file mode 100644
index 0000000..6f8b210
--- /dev/null
+++ b/_static/pygments.css
@@ -0,0 +1,75 @@
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #f8f8f8; }
+.highlight .c { color: #3D7B7B; font-style: italic } /* Comment */
+.highlight .err { border: 1px solid #F00 } /* Error */
+.highlight .k { color: #008000; font-weight: bold } /* Keyword */
+.highlight .o { color: #666 } /* Operator */
+.highlight .ch { color: #3D7B7B; font-style: italic } /* Comment.Hashbang */
+.highlight .cm { color: #3D7B7B; font-style: italic } /* Comment.Multiline */
+.highlight .cp { color: #9C6500 } /* Comment.Preproc */
+.highlight .cpf { color: #3D7B7B; font-style: italic } /* Comment.PreprocFile */
+.highlight .c1 { color: #3D7B7B; font-style: italic } /* Comment.Single */
+.highlight .cs { color: #3D7B7B; font-style: italic } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */
+.highlight .gr { color: #E40000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #008400 } /* Generic.Inserted */
+.highlight .go { color: #717171 } /* Generic.Output */
+.highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #04D } /* Generic.Traceback */
+.highlight .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #008000 } /* Keyword.Pseudo */
+.highlight .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #B00040 } /* Keyword.Type */
+.highlight .m { color: #666 } /* Literal.Number */
+.highlight .s { color: #BA2121 } /* Literal.String */
+.highlight .na { color: #687822 } /* Name.Attribute */
+.highlight .nb { color: #008000 } /* Name.Builtin */
+.highlight .nc { color: #00F; font-weight: bold } /* Name.Class */
+.highlight .no { color: #800 } /* Name.Constant */
+.highlight .nd { color: #A2F } /* Name.Decorator */
+.highlight .ni { color: #717171; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #CB3F38; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #00F } /* Name.Function */
+.highlight .nl { color: #767600 } /* Name.Label */
+.highlight .nn { color: #00F; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */
+.highlight .nv { color: #19177C } /* Name.Variable */
+.highlight .ow { color: #A2F; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #BBB } /* Text.Whitespace */
+.highlight .mb { color: #666 } /* Literal.Number.Bin */
+.highlight .mf { color: #666 } /* Literal.Number.Float */
+.highlight .mh { color: #666 } /* Literal.Number.Hex */
+.highlight .mi { color: #666 } /* Literal.Number.Integer */
+.highlight .mo { color: #666 } /* Literal.Number.Oct */
+.highlight .sa { color: #BA2121 } /* Literal.String.Affix */
+.highlight .sb { color: #BA2121 } /* Literal.String.Backtick */
+.highlight .sc { color: #BA2121 } /* Literal.String.Char */
+.highlight .dl { color: #BA2121 } /* Literal.String.Delimiter */
+.highlight .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
+.highlight .s2 { color: #BA2121 } /* Literal.String.Double */
+.highlight .se { color: #AA5D1F; font-weight: bold } /* Literal.String.Escape */
+.highlight .sh { color: #BA2121 } /* Literal.String.Heredoc */
+.highlight .si { color: #A45A77; font-weight: bold } /* Literal.String.Interpol */
+.highlight .sx { color: #008000 } /* Literal.String.Other */
+.highlight .sr { color: #A45A77 } /* Literal.String.Regex */
+.highlight .s1 { color: #BA2121 } /* Literal.String.Single */
+.highlight .ss { color: #19177C } /* Literal.String.Symbol */
+.highlight .bp { color: #008000 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #00F } /* Name.Function.Magic */
+.highlight .vc { color: #19177C } /* Name.Variable.Class */
+.highlight .vg { color: #19177C } /* Name.Variable.Global */
+.highlight .vi { color: #19177C } /* Name.Variable.Instance */
+.highlight .vm { color: #19177C } /* Name.Variable.Magic */
+.highlight .il { color: #666 } /* Literal.Number.Integer.Long */
\ No newline at end of file
diff --git a/_static/searchtools.js b/_static/searchtools.js
new file mode 100644
index 0000000..91f4be5
--- /dev/null
+++ b/_static/searchtools.js
@@ -0,0 +1,635 @@
+/*
+ * Sphinx JavaScript utilities for the full-text search.
+ */
+"use strict";
+
+/**
+ * Simple result scoring code.
+ */
+if (typeof Scorer === "undefined") {
+ var Scorer = {
+ // Implement the following function to further tweak the score for each result
+ // The function takes a result array [docname, title, anchor, descr, score, filename]
+ // and returns the new score.
+ /*
+ score: result => {
+ const [docname, title, anchor, descr, score, filename, kind] = result
+ return score
+ },
+ */
+
+ // query matches the full name of an object
+ objNameMatch: 11,
+ // or matches in the last dotted part of the object name
+ objPartialMatch: 6,
+ // Additive scores depending on the priority of the object
+ objPrio: {
+ 0: 15, // used to be importantResults
+ 1: 5, // used to be objectResults
+ 2: -5, // used to be unimportantResults
+ },
+ // Used when the priority is not in the mapping.
+ objPrioDefault: 0,
+
+ // query found in title
+ title: 15,
+ partialTitle: 7,
+ // query found in terms
+ term: 5,
+ partialTerm: 2,
+ };
+}
+
+// Global search result kind enum, used by themes to style search results.
+class SearchResultKind {
+ static get index() { return "index"; }
+ static get object() { return "object"; }
+ static get text() { return "text"; }
+ static get title() { return "title"; }
+}
+
+const _removeChildren = (element) => {
+ while (element && element.lastChild) element.removeChild(element.lastChild);
+};
+
+/**
+ * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#escaping
+ */
+const _escapeRegExp = (string) =>
+ string.replace(/[.*+\-?^${}()|[\]\\]/g, "\\$&"); // $& means the whole matched string
+
+const _displayItem = (item, searchTerms, highlightTerms) => {
+ const docBuilder = DOCUMENTATION_OPTIONS.BUILDER;
+ const docFileSuffix = DOCUMENTATION_OPTIONS.FILE_SUFFIX;
+ const docLinkSuffix = DOCUMENTATION_OPTIONS.LINK_SUFFIX;
+ const showSearchSummary = DOCUMENTATION_OPTIONS.SHOW_SEARCH_SUMMARY;
+ const contentRoot = document.documentElement.dataset.content_root;
+
+ const [docName, title, anchor, descr, score, _filename, kind] = item;
+
+ let listItem = document.createElement("li");
+ // Add a class representing the item's type:
+ // can be used by a theme's CSS selector for styling
+ // See SearchResultKind for the class names.
+ listItem.classList.add(`kind-${kind}`);
+ let requestUrl;
+ let linkUrl;
+ if (docBuilder === "dirhtml") {
+ // dirhtml builder
+ let dirname = docName + "/";
+ if (dirname.match(/\/index\/$/))
+ dirname = dirname.substring(0, dirname.length - 6);
+ else if (dirname === "index/") dirname = "";
+ requestUrl = contentRoot + dirname;
+ linkUrl = requestUrl;
+ } else {
+ // normal html builders
+ requestUrl = contentRoot + docName + docFileSuffix;
+ linkUrl = docName + docLinkSuffix;
+ }
+ let linkEl = listItem.appendChild(document.createElement("a"));
+ linkEl.href = linkUrl + anchor;
+ linkEl.dataset.score = score;
+ linkEl.innerHTML = title;
+ if (descr) {
+ listItem.appendChild(document.createElement("span")).innerHTML =
+ " (" + descr + ")";
+ // highlight search terms in the description
+ if (SPHINX_HIGHLIGHT_ENABLED) // set in sphinx_highlight.js
+ highlightTerms.forEach((term) => _highlightText(listItem, term, "highlighted"));
+ }
+ else if (showSearchSummary)
+ fetch(requestUrl)
+ .then((responseData) => responseData.text())
+ .then((data) => {
+ if (data)
+ listItem.appendChild(
+ Search.makeSearchSummary(data, searchTerms, anchor)
+ );
+ // highlight search terms in the summary
+ if (SPHINX_HIGHLIGHT_ENABLED) // set in sphinx_highlight.js
+ highlightTerms.forEach((term) => _highlightText(listItem, term, "highlighted"));
+ });
+ Search.output.appendChild(listItem);
+};
+const _finishSearch = (resultCount) => {
+ Search.stopPulse();
+ Search.title.innerText = _("Search Results");
+ if (!resultCount)
+ Search.status.innerText = Documentation.gettext(
+ "Your search did not match any documents. Please make sure that all words are spelled correctly and that you've selected enough categories."
+ );
+ else
+ Search.status.innerText = Documentation.ngettext(
+ "Search finished, found one page matching the search query.",
+ "Search finished, found ${resultCount} pages matching the search query.",
+ resultCount,
+ ).replace('${resultCount}', resultCount);
+};
+const _displayNextItem = (
+ results,
+ resultCount,
+ searchTerms,
+ highlightTerms,
+) => {
+ // results left, load the summary and display it
+ // this is intended to be dynamic (don't sub resultsCount)
+ if (results.length) {
+ _displayItem(results.pop(), searchTerms, highlightTerms);
+ setTimeout(
+ () => _displayNextItem(results, resultCount, searchTerms, highlightTerms),
+ 5
+ );
+ }
+ // search finished, update title and status message
+ else _finishSearch(resultCount);
+};
+// Helper function used by query() to order search results.
+// Each input is an array of [docname, title, anchor, descr, score, filename, kind].
+// Order the results by score (in opposite order of appearance, since the
+// `_displayNextItem` function uses pop() to retrieve items) and then alphabetically.
+const _orderResultsByScoreThenName = (a, b) => {
+ const leftScore = a[4];
+ const rightScore = b[4];
+ if (leftScore === rightScore) {
+ // same score: sort alphabetically
+ const leftTitle = a[1].toLowerCase();
+ const rightTitle = b[1].toLowerCase();
+ if (leftTitle === rightTitle) return 0;
+ return leftTitle > rightTitle ? -1 : 1; // inverted is intentional
+ }
+ return leftScore > rightScore ? 1 : -1;
+};
+
+/**
+ * Default splitQuery function. Can be overridden in ``sphinx.search`` with a
+ * custom function per language.
+ *
+ * The regular expression works by splitting the string on consecutive characters
+ * that are not Unicode letters, numbers, underscores, or emoji characters.
+ * This is the same as ``\W+`` in Python, preserving the surrogate pair area.
+ */
+if (typeof splitQuery === "undefined") {
+ var splitQuery = (query) => query
+ .split(/[^\p{Letter}\p{Number}_\p{Emoji_Presentation}]+/gu)
+ .filter(term => term) // remove remaining empty strings
+}
+
+/**
+ * Search Module
+ */
+const Search = {
+ _index: null,
+ _queued_query: null,
+ _pulse_status: -1,
+
+ htmlToText: (htmlString, anchor) => {
+ const htmlElement = new DOMParser().parseFromString(htmlString, 'text/html');
+ for (const removalQuery of [".headerlink", "script", "style"]) {
+ htmlElement.querySelectorAll(removalQuery).forEach((el) => { el.remove() });
+ }
+ if (anchor) {
+ const anchorContent = htmlElement.querySelector(`[role="main"] ${anchor}`);
+ if (anchorContent) return anchorContent.textContent;
+
+ console.warn(
+ `Anchored content block not found. Sphinx search tries to obtain it via DOM query '[role=main] ${anchor}'. Check your theme or template.`
+ );
+ }
+
+ // if anchor not specified or not found, fall back to main content
+ const docContent = htmlElement.querySelector('[role="main"]');
+ if (docContent) return docContent.textContent;
+
+ console.warn(
+ "Content block not found. Sphinx search tries to obtain it via DOM query '[role=main]'. Check your theme or template."
+ );
+ return "";
+ },
+
+ init: () => {
+ const query = new URLSearchParams(window.location.search).get("q");
+ document
+ .querySelectorAll('input[name="q"]')
+ .forEach((el) => (el.value = query));
+ if (query) Search.performSearch(query);
+ },
+
+ loadIndex: (url) =>
+ (document.body.appendChild(document.createElement("script")).src = url),
+
+ setIndex: (index) => {
+ Search._index = index;
+ if (Search._queued_query !== null) {
+ const query = Search._queued_query;
+ Search._queued_query = null;
+ Search.query(query);
+ }
+ },
+
+ hasIndex: () => Search._index !== null,
+
+ deferQuery: (query) => (Search._queued_query = query),
+
+ stopPulse: () => (Search._pulse_status = -1),
+
+ startPulse: () => {
+ if (Search._pulse_status >= 0) return;
+
+ const pulse = () => {
+ Search._pulse_status = (Search._pulse_status + 1) % 4;
+ Search.dots.innerText = ".".repeat(Search._pulse_status);
+ if (Search._pulse_status >= 0) window.setTimeout(pulse, 500);
+ };
+ pulse();
+ },
+
+ /**
+ * perform a search for something (or wait until index is loaded)
+ */
+ performSearch: (query) => {
+ // create the required interface elements
+ const searchText = document.createElement("h2");
+ searchText.textContent = _("Searching");
+ const searchSummary = document.createElement("p");
+ searchSummary.classList.add("search-summary");
+ searchSummary.innerText = "";
+ const searchList = document.createElement("ul");
+ searchList.setAttribute("role", "list");
+ searchList.classList.add("search");
+
+ const out = document.getElementById("search-results");
+ Search.title = out.appendChild(searchText);
+ Search.dots = Search.title.appendChild(document.createElement("span"));
+ Search.status = out.appendChild(searchSummary);
+ Search.output = out.appendChild(searchList);
+
+ const searchProgress = document.getElementById("search-progress");
+ // Some themes don't use the search progress node
+ if (searchProgress) {
+ searchProgress.innerText = _("Preparing search...");
+ }
+ Search.startPulse();
+
+ // index already loaded, the browser was quick!
+ if (Search.hasIndex()) Search.query(query);
+ else Search.deferQuery(query);
+ },
+
+ _parseQuery: (query) => {
+ // stem the search terms and add them to the correct list
+ const stemmer = new Stemmer();
+ const searchTerms = new Set();
+ const excludedTerms = new Set();
+ const highlightTerms = new Set();
+ const objectTerms = new Set(splitQuery(query.toLowerCase().trim()));
+ splitQuery(query.trim()).forEach((queryTerm) => {
+ const queryTermLower = queryTerm.toLowerCase();
+
+ // maybe skip this "word"
+ // stopwords array is from language_data.js
+ if (
+ stopwords.indexOf(queryTermLower) !== -1 ||
+ queryTerm.match(/^\d+$/)
+ )
+ return;
+
+ // stem the word
+ let word = stemmer.stemWord(queryTermLower);
+ // select the correct list
+ if (word[0] === "-") excludedTerms.add(word.substr(1));
+ else {
+ searchTerms.add(word);
+ highlightTerms.add(queryTermLower);
+ }
+ });
+
+ if (SPHINX_HIGHLIGHT_ENABLED) { // set in sphinx_highlight.js
+ localStorage.setItem("sphinx_highlight_terms", [...highlightTerms].join(" "))
+ }
+
+ // console.debug("SEARCH: searching for:");
+ // console.info("required: ", [...searchTerms]);
+ // console.info("excluded: ", [...excludedTerms]);
+
+ return [query, searchTerms, excludedTerms, highlightTerms, objectTerms];
+ },
+
+ /**
+ * execute search (requires search index to be loaded)
+ */
+ _performSearch: (query, searchTerms, excludedTerms, highlightTerms, objectTerms) => {
+ const filenames = Search._index.filenames;
+ const docNames = Search._index.docnames;
+ const titles = Search._index.titles;
+ const allTitles = Search._index.alltitles;
+ const indexEntries = Search._index.indexentries;
+
+ // Collect multiple result groups to be sorted separately and then ordered.
+ // Each is an array of [docname, title, anchor, descr, score, filename, kind].
+ const normalResults = [];
+ const nonMainIndexResults = [];
+
+ _removeChildren(document.getElementById("search-progress"));
+
+ const queryLower = query.toLowerCase().trim();
+ for (const [title, foundTitles] of Object.entries(allTitles)) {
+ if (title.toLowerCase().trim().includes(queryLower) && (queryLower.length >= title.length/2)) {
+ for (const [file, id] of foundTitles) {
+ const score = Math.round(Scorer.title * queryLower.length / title.length);
+ const boost = titles[file] === title ? 1 : 0; // add a boost for document titles
+ normalResults.push([
+ docNames[file],
+ titles[file] !== title ? `${titles[file]} > ${title}` : title,
+ id !== null ? "#" + id : "",
+ null,
+ score + boost,
+ filenames[file],
+ SearchResultKind.title,
+ ]);
+ }
+ }
+ }
+
+ // search for explicit entries in index directives
+ for (const [entry, foundEntries] of Object.entries(indexEntries)) {
+ if (entry.includes(queryLower) && (queryLower.length >= entry.length/2)) {
+ for (const [file, id, isMain] of foundEntries) {
+ const score = Math.round(100 * queryLower.length / entry.length);
+ const result = [
+ docNames[file],
+ titles[file],
+ id ? "#" + id : "",
+ null,
+ score,
+ filenames[file],
+ SearchResultKind.index,
+ ];
+ if (isMain) {
+ normalResults.push(result);
+ } else {
+ nonMainIndexResults.push(result);
+ }
+ }
+ }
+ }
+
+ // lookup as object
+ objectTerms.forEach((term) =>
+ normalResults.push(...Search.performObjectSearch(term, objectTerms))
+ );
+
+ // lookup as search terms in fulltext
+ normalResults.push(...Search.performTermsSearch(searchTerms, excludedTerms));
+
+ // let the scorer override scores with a custom scoring function
+ if (Scorer.score) {
+ normalResults.forEach((item) => (item[4] = Scorer.score(item)));
+ nonMainIndexResults.forEach((item) => (item[4] = Scorer.score(item)));
+ }
+
+ // Sort each group of results by score and then alphabetically by name.
+ normalResults.sort(_orderResultsByScoreThenName);
+ nonMainIndexResults.sort(_orderResultsByScoreThenName);
+
+ // Combine the result groups in (reverse) order.
+ // Non-main index entries are typically arbitrary cross-references,
+ // so display them after other results.
+ let results = [...nonMainIndexResults, ...normalResults];
+
+ // remove duplicate search results
+ // note the reversing of results, so that in the case of duplicates, the highest-scoring entry is kept
+ let seen = new Set();
+ results = results.reverse().reduce((acc, result) => {
+ let resultStr = result.slice(0, 4).concat([result[5]]).map(v => String(v)).join(',');
+ if (!seen.has(resultStr)) {
+ acc.push(result);
+ seen.add(resultStr);
+ }
+ return acc;
+ }, []);
+
+ return results.reverse();
+ },
+
+ query: (query) => {
+ const [searchQuery, searchTerms, excludedTerms, highlightTerms, objectTerms] = Search._parseQuery(query);
+ const results = Search._performSearch(searchQuery, searchTerms, excludedTerms, highlightTerms, objectTerms);
+
+ // for debugging
+ //Search.lastresults = results.slice(); // a copy
+ // console.info("search results:", Search.lastresults);
+
+ // print the results
+ _displayNextItem(results, results.length, searchTerms, highlightTerms);
+ },
+
+ /**
+ * search for object names
+ */
+ performObjectSearch: (object, objectTerms) => {
+ const filenames = Search._index.filenames;
+ const docNames = Search._index.docnames;
+ const objects = Search._index.objects;
+ const objNames = Search._index.objnames;
+ const titles = Search._index.titles;
+
+ const results = [];
+
+ const objectSearchCallback = (prefix, match) => {
+ const name = match[4]
+ const fullname = (prefix ? prefix + "." : "") + name;
+ const fullnameLower = fullname.toLowerCase();
+ if (fullnameLower.indexOf(object) < 0) return;
+
+ let score = 0;
+ const parts = fullnameLower.split(".");
+
+ // check for different match types: exact matches of full name or
+ // "last name" (i.e. last dotted part)
+ if (fullnameLower === object || parts.slice(-1)[0] === object)
+ score += Scorer.objNameMatch;
+ else if (parts.slice(-1)[0].indexOf(object) > -1)
+ score += Scorer.objPartialMatch; // matches in last name
+
+ const objName = objNames[match[1]][2];
+ const title = titles[match[0]];
+
+ // If more than one term searched for, we require other words to be
+ // found in the name/title/description
+ const otherTerms = new Set(objectTerms);
+ otherTerms.delete(object);
+ if (otherTerms.size > 0) {
+ const haystack = `${prefix} ${name} ${objName} ${title}`.toLowerCase();
+ if (
+ [...otherTerms].some((otherTerm) => haystack.indexOf(otherTerm) < 0)
+ )
+ return;
+ }
+
+ let anchor = match[3];
+ if (anchor === "") anchor = fullname;
+ else if (anchor === "-") anchor = objNames[match[1]][1] + "-" + fullname;
+
+ const descr = objName + _(", in ") + title;
+
+ // add custom score for some objects according to scorer
+ if (Scorer.objPrio.hasOwnProperty(match[2]))
+ score += Scorer.objPrio[match[2]];
+ else score += Scorer.objPrioDefault;
+
+ results.push([
+ docNames[match[0]],
+ fullname,
+ "#" + anchor,
+ descr,
+ score,
+ filenames[match[0]],
+ SearchResultKind.object,
+ ]);
+ };
+ Object.keys(objects).forEach((prefix) =>
+ objects[prefix].forEach((array) =>
+ objectSearchCallback(prefix, array)
+ )
+ );
+ return results;
+ },
+
+ /**
+ * search for full-text terms in the index
+ */
+ performTermsSearch: (searchTerms, excludedTerms) => {
+ // prepare search
+ const terms = Search._index.terms;
+ const titleTerms = Search._index.titleterms;
+ const filenames = Search._index.filenames;
+ const docNames = Search._index.docnames;
+ const titles = Search._index.titles;
+
+ const scoreMap = new Map();
+ const fileMap = new Map();
+
+ // perform the search on the required terms
+ searchTerms.forEach((word) => {
+ const files = [];
+ // find documents, if any, containing the query word in their text/title term indices
+ // use Object.hasOwnProperty to avoid mismatching against prototype properties
+ const arr = [
+ { files: terms.hasOwnProperty(word) ? terms[word] : undefined, score: Scorer.term },
+ { files: titleTerms.hasOwnProperty(word) ? titleTerms[word] : undefined, score: Scorer.title },
+ ];
+ // add support for partial matches
+ if (word.length > 2) {
+ const escapedWord = _escapeRegExp(word);
+ if (!terms.hasOwnProperty(word)) {
+ Object.keys(terms).forEach((term) => {
+ if (term.match(escapedWord))
+ arr.push({ files: terms[term], score: Scorer.partialTerm });
+ });
+ }
+ if (!titleTerms.hasOwnProperty(word)) {
+ Object.keys(titleTerms).forEach((term) => {
+ if (term.match(escapedWord))
+ arr.push({ files: titleTerms[term], score: Scorer.partialTitle });
+ });
+ }
+ }
+
+ // no match but word was a required one
+ if (arr.every((record) => record.files === undefined)) return;
+
+ // found search word in contents
+ arr.forEach((record) => {
+ if (record.files === undefined) return;
+
+ let recordFiles = record.files;
+ if (recordFiles.length === undefined) recordFiles = [recordFiles];
+ files.push(...recordFiles);
+
+ // set score for the word in each file
+ recordFiles.forEach((file) => {
+ if (!scoreMap.has(file)) scoreMap.set(file, new Map());
+ const fileScores = scoreMap.get(file);
+ fileScores.set(word, record.score);
+ });
+ });
+
+ // create the mapping
+ files.forEach((file) => {
+ if (!fileMap.has(file)) fileMap.set(file, [word]);
+ else if (fileMap.get(file).indexOf(word) === -1) fileMap.get(file).push(word);
+ });
+ });
+
+ // now check if the files don't contain excluded terms
+ const results = [];
+ for (const [file, wordList] of fileMap) {
+ // check if all requirements are matched
+
+ // as search terms with length < 3 are discarded
+ const filteredTermCount = [...searchTerms].filter(
+ (term) => term.length > 2
+ ).length;
+ if (
+ wordList.length !== searchTerms.size &&
+ wordList.length !== filteredTermCount
+ )
+ continue;
+
+ // ensure that none of the excluded terms is in the search result
+ if (
+ [...excludedTerms].some(
+ (term) =>
+ terms[term] === file ||
+ titleTerms[term] === file ||
+ (terms[term] || []).includes(file) ||
+ (titleTerms[term] || []).includes(file)
+ )
+ )
+ break;
+
+ // select one (max) score for the file.
+ const score = Math.max(...wordList.map((w) => scoreMap.get(file).get(w)));
+ // add result to the result list
+ results.push([
+ docNames[file],
+ titles[file],
+ "",
+ null,
+ score,
+ filenames[file],
+ SearchResultKind.text,
+ ]);
+ }
+ return results;
+ },
+
+ /**
+ * helper function to return a node containing the
+ * search summary for a given text. keywords is a list
+ * of stemmed words.
+ */
+ makeSearchSummary: (htmlText, keywords, anchor) => {
+ const text = Search.htmlToText(htmlText, anchor);
+ if (text === "") return null;
+
+ const textLower = text.toLowerCase();
+ const actualStartPosition = [...keywords]
+ .map((k) => textLower.indexOf(k.toLowerCase()))
+ .filter((i) => i > -1)
+ .slice(-1)[0];
+ const startWithContext = Math.max(actualStartPosition - 120, 0);
+
+ const top = startWithContext === 0 ? "" : "...";
+ const tail = startWithContext + 240 < text.length ? "..." : "";
+
+ let summary = document.createElement("p");
+ summary.classList.add("context");
+ summary.textContent = top + text.substr(startWithContext, 240).trim() + tail;
+
+ return summary;
+ },
+};
+
+_ready(Search.init);
diff --git a/_static/sphinx_highlight.js b/_static/sphinx_highlight.js
new file mode 100644
index 0000000..8a96c69
--- /dev/null
+++ b/_static/sphinx_highlight.js
@@ -0,0 +1,154 @@
+/* Highlighting utilities for Sphinx HTML documentation. */
+"use strict";
+
+const SPHINX_HIGHLIGHT_ENABLED = true
+
+/**
+ * highlight a given string on a node by wrapping it in
+ * span elements with the given class name.
+ */
+const _highlight = (node, addItems, text, className) => {
+ if (node.nodeType === Node.TEXT_NODE) {
+ const val = node.nodeValue;
+ const parent = node.parentNode;
+ const pos = val.toLowerCase().indexOf(text);
+ if (
+ pos >= 0 &&
+ !parent.classList.contains(className) &&
+ !parent.classList.contains("nohighlight")
+ ) {
+ let span;
+
+ const closestNode = parent.closest("body, svg, foreignObject");
+ const isInSVG = closestNode && closestNode.matches("svg");
+ if (isInSVG) {
+ span = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
+ } else {
+ span = document.createElement("span");
+ span.classList.add(className);
+ }
+
+ span.appendChild(document.createTextNode(val.substr(pos, text.length)));
+ const rest = document.createTextNode(val.substr(pos + text.length));
+ parent.insertBefore(
+ span,
+ parent.insertBefore(
+ rest,
+ node.nextSibling
+ )
+ );
+ node.nodeValue = val.substr(0, pos);
+ /* There may be more occurrences of search term in this node. So call this
+ * function recursively on the remaining fragment.
+ */
+ _highlight(rest, addItems, text, className);
+
+ if (isInSVG) {
+ const rect = document.createElementNS(
+ "http://www.w3.org/2000/svg",
+ "rect"
+ );
+ const bbox = parent.getBBox();
+ rect.x.baseVal.value = bbox.x;
+ rect.y.baseVal.value = bbox.y;
+ rect.width.baseVal.value = bbox.width;
+ rect.height.baseVal.value = bbox.height;
+ rect.setAttribute("class", className);
+ addItems.push({ parent: parent, target: rect });
+ }
+ }
+ } else if (node.matches && !node.matches("button, select, textarea")) {
+ node.childNodes.forEach((el) => _highlight(el, addItems, text, className));
+ }
+};
+const _highlightText = (thisNode, text, className) => {
+ let addItems = [];
+ _highlight(thisNode, addItems, text, className);
+ addItems.forEach((obj) =>
+ obj.parent.insertAdjacentElement("beforebegin", obj.target)
+ );
+};
+
+/**
+ * Small JavaScript module for the documentation.
+ */
+const SphinxHighlight = {
+
+ /**
+ * highlight the search words provided in localstorage in the text
+ */
+ highlightSearchWords: () => {
+ if (!SPHINX_HIGHLIGHT_ENABLED) return; // bail if no highlight
+
+ // get and clear terms from localstorage
+ const url = new URL(window.location);
+ const highlight =
+ localStorage.getItem("sphinx_highlight_terms")
+ || url.searchParams.get("highlight")
+ || "";
+ localStorage.removeItem("sphinx_highlight_terms")
+ url.searchParams.delete("highlight");
+ window.history.replaceState({}, "", url);
+
+ // get individual terms from highlight string
+ const terms = highlight.toLowerCase().split(/\s+/).filter(x => x);
+ if (terms.length === 0) return; // nothing to do
+
+ // There should never be more than one element matching "div.body"
+ const divBody = document.querySelectorAll("div.body");
+ const body = divBody.length ? divBody[0] : document.querySelector("body");
+ window.setTimeout(() => {
+ terms.forEach((term) => _highlightText(body, term, "highlighted"));
+ }, 10);
+
+ const searchBox = document.getElementById("searchbox");
+ if (searchBox === null) return;
+ searchBox.appendChild(
+ document
+ .createRange()
+ .createContextualFragment(
+ '
' +
+ '' +
+ _("Hide Search Matches") +
+ "
"
+ )
+ );
+ },
+
+ /**
+ * helper function to hide the search marks again
+ */
+ hideSearchWords: () => {
+ document
+ .querySelectorAll("#searchbox .highlight-link")
+ .forEach((el) => el.remove());
+ document
+ .querySelectorAll("span.highlighted")
+ .forEach((el) => el.classList.remove("highlighted"));
+ localStorage.removeItem("sphinx_highlight_terms")
+ },
+
+ initEscapeListener: () => {
+ // only install a listener if it is really needed
+ if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) return;
+
+ document.addEventListener("keydown", (event) => {
+ // bail for input elements
+ if (BLACKLISTED_KEY_CONTROL_ELEMENTS.has(document.activeElement.tagName)) return;
+ // bail with special keys
+ if (event.shiftKey || event.altKey || event.ctrlKey || event.metaKey) return;
+ if (DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS && (event.key === "Escape")) {
+ SphinxHighlight.hideSearchWords();
+ event.preventDefault();
+ }
+ });
+ },
+};
+
+_ready(() => {
+ /* Do not call highlightSearchWords() when we are on the search page.
+ * It will highlight words from the *previous* search query.
+ */
+ if (typeof Search === "undefined") SphinxHighlight.highlightSearchWords();
+ SphinxHighlight.initEscapeListener();
+});
diff --git a/genindex.html b/genindex.html
new file mode 100644
index 0000000..7472ca5
--- /dev/null
+++ b/genindex.html
@@ -0,0 +1,609 @@
+
+
+
+
+
+
+
+
Index — pyhoff documentation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ pyhoff
+
+
+
+
+
+
+
+
+
+
Index
+
+
+
A
+ |
B
+ |
C
+ |
D
+ |
G
+ |
H
+ |
K
+ |
L
+ |
M
+ |
P
+ |
R
+ |
S
+ |
T
+ |
U
+ |
W
+
+
+
A
+
+
+
B
+
+
+
C
+
+
+
D
+
+
+
G
+
+
+
H
+
+
+
K
+
+
+
L
+
+
+
M
+
+
+
P
+
+
+
R
+
+
+
S
+
+
+
T
+
+
+
U
+
+
+
W
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..825df4b
--- /dev/null
+++ b/index.html
@@ -0,0 +1,233 @@
+
+
+
+
+
+
+
+
+
Pyhoff — pyhoff documentation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ pyhoff
+
+
+
+
+
+
+
+
+
+
+Pyhoff
+
+Description
+The pyhoff package allows you to read and write the most common
+Beckhoff and WAGO bus terminals (“Busklemmen”) using the Ethernet bus
+coupler (“Busskoppler”) BK9000, BK9050, BK9100, or WAGO 750_352
+over Ethernet TCP/IP based on ModBus TCP.
+
+Key Features
+
+Supports a wide range of Beckhoff and WAGO analog and digital bus
+terminals.
+Very lightweight: no dependencies; compact code base
+Easy to extend
+Using standardized ModBus TCP.
+Provides high-level abstractions for reading and writing data
+from/to IO-terminals with minimal code
+
+
+
+
+
+Installation
+The package has no additional decencies. It can be installed with pip:
+
+
+
+Usage
+It is easy to use as the following example code shows:
+from pyhoff.devices import *
+
+# connect to the BK9050 by tcp/ip on default port 502
+bk = BK9050 ( "172.16.17.1" )
+
+# add all bus terminals connected to the bus coupler
+# in the order of the physical arrangement
+bk . add_bus_terminals ( KL2404 , KL2424 , KL9100 , KL1104 , KL3202 ,
+ KL3202 , KL4002 , KL9188 , KL3054 , KL3214 ,
+ KL4004 , KL9010 )
+
+# Set 1. output of the first KL2404-type bus terminal to hi
+bk . select ( KL2404 , 0 ) . write_coil ( 1 , True )
+
+# read temperature from the 2. channel of the 2. KL3202-type
+# bus terminal
+t = bk . select ( KL3202 , 1 ) . read_temperature ( 2 )
+print ( f "t = { t : .1f } °C" )
+
+# Set 1. output of the 1. KL4002-type bus terminal to 4.2 V
+bk . select ( KL4002 , 0 ) . set_voltage ( 1 , 4.2 )
+
+
+
+
+
+Contributing
+Other analog and digital IO terminals are easy to complement. Contributions are welcome!
+Please open an issue or submit a pull request on GitHub.
+
+
+Developer Guide
+To get started with developing the pyhoff
package, follow these steps:
+
+Clone the Repository
+First, clone the repository to your local machine using Git:
+ git clone https://github.com/Nonannet/pyhoff.git
+cd pyhoff
+
+
+
+Set Up a Virtual Environment
+It is recommended to use a virtual environment to manage dependencies. You can create one using venv
:
+ python -m venv venv
+source venv/bin/activate # On Windows use `venv\Scripts\activate`
+
+
+
+Install Dev Dependencies
+Install pyhoff from source plus the dependencies required for development using pip
:
+
+
+Run Tests
+Ensure that everything is set up correctly by running the tests:
+
+
+
+
+
+License
+This project is licensed under the MIT License - see the LICENSE file for details.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/modules.html b/modules.html
new file mode 100644
index 0000000..59f00b6
--- /dev/null
+++ b/modules.html
@@ -0,0 +1,2614 @@
+
+
+
+
+
+
+
+
+
Classes — pyhoff documentation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ pyhoff
+
+
+
+
+
+
+
+
+
+Classes
+
+Bus coupler
+These classes are bus couplers and are used to connect the IO bus terminals to a Ethernet interface.
+
+
+class pyhoff.devices. BK9000 ( host , port = 502 , bus_terminals = [] , timeout = 5 , watchdog = 0 , debug = False )
+Bases: BusCoupler
+BK9000 ModBus TCP bus coupler
+
+
+add_bus_terminals ( * new_bus_terminals )
+Add bus terminals to the bus coupler.
+
+Parameters:
+new_bus_terminals (Union
[type
[BusTerminal
], Iterable
[type
[BusTerminal
]]] ) – bus terminal classes to add.
+
+Return type:
+list
[BusTerminal
]
+
+Returns:
+The corresponding list of bus terminal objects.
+
+
+
+
+
+
+get_error ( )
+Get the last error message.
+
+Return type:
+str
+
+Returns:
+The last error message.
+
+
+
+
+
+
+
+
+class pyhoff.devices. BK9050 ( host , port = 502 , bus_terminals = [] , timeout = 5 , watchdog = 0 , debug = False )
+Bases: BK9000
+BK9050 ModBus TCP bus coupler
+
+
+add_bus_terminals ( * new_bus_terminals )
+Add bus terminals to the bus coupler.
+
+Parameters:
+new_bus_terminals (Union
[type
[BusTerminal
], Iterable
[type
[BusTerminal
]]] ) – bus terminal classes to add.
+
+Return type:
+list
[BusTerminal
]
+
+Returns:
+The corresponding list of bus terminal objects.
+
+
+
+
+
+
+get_error ( )
+Get the last error message.
+
+Return type:
+str
+
+Returns:
+The last error message.
+
+
+
+
+
+
+
+
+class pyhoff.devices. BK9100 ( host , port = 502 , bus_terminals = [] , timeout = 5 , watchdog = 0 , debug = False )
+Bases: BK9000
+BK9100 ModBus TCP bus coupler
+
+
+add_bus_terminals ( * new_bus_terminals )
+Add bus terminals to the bus coupler.
+
+Parameters:
+new_bus_terminals (Union
[type
[BusTerminal
], Iterable
[type
[BusTerminal
]]] ) – bus terminal classes to add.
+
+Return type:
+list
[BusTerminal
]
+
+Returns:
+The corresponding list of bus terminal objects.
+
+
+
+
+
+
+get_error ( )
+Get the last error message.
+
+Return type:
+str
+
+Returns:
+The last error message.
+
+
+
+
+
+
+
+
+class pyhoff.devices. WAGO_750_352 ( host , port = 502 , bus_terminals = [] , timeout = 5 , watchdog = 0 , debug = False )
+Bases: BusCoupler
+Wago 750-352 ModBus TCP bus coupler
+
+
+add_bus_terminals ( * new_bus_terminals )
+Add bus terminals to the bus coupler.
+
+Parameters:
+new_bus_terminals (Union
[type
[BusTerminal
], Iterable
[type
[BusTerminal
]]] ) – bus terminal classes to add.
+
+Return type:
+list
[BusTerminal
]
+
+Returns:
+The corresponding list of bus terminal objects.
+
+
+
+
+
+
+get_error ( )
+Get the last error message.
+
+Return type:
+str
+
+Returns:
+The last error message.
+
+
+
+
+
+
+
+
+Beckhoff bus terminals
+
+
+class pyhoff.devices. KL1104 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: DigitalInputTerminal4Bit
+KL1104: 4x digital input 24 V
+
+
+parameters : dict
[ str
, int
] = {'input_bit_width': 4}
+
+
+
+
+read_input ( channel )
+Read the input from a specific channel.
+
+Parameters:
+channel (int
) – The channel number (start counting from 1) to read from.
+
+Return type:
+bool
| None
+
+Returns:
+The input value of the specified channel or None if the read operation failed.
+
+Raises:
+Exception – If the channel number is out of range.
+
+
+
+
+
+
+
+
+class pyhoff.devices. KL1408 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: DigitalInputTerminal8Bit
+KL1104: 8x digital input 24 V galvanic isolated
+
+
+parameters : dict
[ str
, int
] = {'input_bit_width': 8}
+
+
+
+
+read_input ( channel )
+Read the input from a specific channel.
+
+Parameters:
+channel (int
) – The channel number (start counting from 1) to read from.
+
+Return type:
+bool
| None
+
+Returns:
+The input value of the specified channel or None if the read operation failed.
+
+Raises:
+Exception – If the channel number is out of range.
+
+
+
+
+
+
+
+
+class pyhoff.devices. KL1512 ( bus_coupler , o_b_addr , i_b_addr , o_w_addr , i_w_addr , mixed_mapping )
+Bases: AnalogInputTerminal
+KL1512: 2x 16 bit counter, 24 V DC, 1 kHz
+
+
+parameters : dict
[ str
, int
] = {'input_word_width': 2}
+
+
+
+
+read_channel_word ( channel , error_value = -99999 )
+Read a single word from the terminal.
+
+Parameters:
+channel (int
) – The channel number (1 based index) to read from.
+
+Return type:
+int
+
+Returns:
+The read word value.
+
+Raises:
+Exception – If the word offset or count is out of range.
+
+
+
+
+
+
+read_counter ( channel )
+Read the absolut counter value of a specific channel.
+
+Parameters:
+channel (int
) – The channel number to read from.
+
+Return type:
+int
+
+Returns:
+The counter value.
+
+
+
+
+
+
+read_delta ( channel )
+Read the counter change since last read of a specific channel.
+
+Parameters:
+channel (int
) – The channel number to read from.
+
+Return type:
+int
+
+Returns:
+The counter value.
+
+
+
+
+
+
+read_normalized ( channel )
+Read a normalized value (0…1) from a specific channel.
+
+Parameters:
+channel (int
) – The channel number to read from.
+
+Return type:
+float
+
+Returns:
+The normalized value.
+
+
+
+
+
+
+
+
+class pyhoff.devices. KL2404 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: DigitalOutputTerminal4Bit
+KL2404: 4x digital output with 500 mA
+
+
+parameters : dict
[ str
, int
] = {'output_bit_width': 4}
+
+
+
+
+read_coil ( channel )
+Read the coil value back from a specific channel.
+
+Parameters:
+channel (int
) – The channel number (start counting from 1) to read from.
+
+Return type:
+bool
| None
+
+Returns:
+The coil value of the specified channel or None if the read operation failed.
+
+Raises:
+Exception – If the channel number is out of range.
+
+
+
+
+
+
+write_coil ( channel , value )
+Write a value to a specific channel.
+
+Parameters:
+
+
+Return type:
+bool
+
+Returns:
+True if the write operation succeeded, otherwise False.
+
+Raises:
+Exception – If the channel number is out of range.
+
+
+
+
+
+
+
+
+class pyhoff.devices. KL2408 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: DigitalOutputTerminal8Bit
+750-530: 8x digital output with 24 V / 500 mA
+Contact order for DO1 to DO8 is: 1, 5, 2, 6, 3, 7, 4, 8.
+
+
+parameters : dict
[ str
, int
] = {'output_bit_width': 8}
+
+
+
+
+read_coil ( channel )
+Read the coil value back from a specific channel.
+
+Parameters:
+channel (int
) – The channel number (start counting from 1) to read from.
+
+Return type:
+bool
| None
+
+Returns:
+The coil value of the specified channel or None if the read operation failed.
+
+Raises:
+Exception – If the channel number is out of range.
+
+
+
+
+
+
+write_coil ( channel , value )
+Write a value to a specific channel.
+
+Parameters:
+
+
+Return type:
+bool
+
+Returns:
+True if the write operation succeeded, otherwise False.
+
+Raises:
+Exception – If the channel number is out of range.
+
+
+
+
+
+
+
+
+class pyhoff.devices. KL2424 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: DigitalOutputTerminal4Bit
+KL2424: 4x digital output with 2000 mA
+
+
+parameters : dict
[ str
, int
] = {'output_bit_width': 4}
+
+
+
+
+read_coil ( channel )
+Read the coil value back from a specific channel.
+
+Parameters:
+channel (int
) – The channel number (start counting from 1) to read from.
+
+Return type:
+bool
| None
+
+Returns:
+The coil value of the specified channel or None if the read operation failed.
+
+Raises:
+Exception – If the channel number is out of range.
+
+
+
+
+
+
+write_coil ( channel , value )
+Write a value to a specific channel.
+
+Parameters:
+
+
+Return type:
+bool
+
+Returns:
+True if the write operation succeeded, otherwise False.
+
+Raises:
+Exception – If the channel number is out of range.
+
+
+
+
+
+
+
+
+class pyhoff.devices. KL2634 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: DigitalOutputTerminal4Bit
+KL2634: 4x digital output 250 V AC, 30 V DC, 4 A
+
+
+parameters : dict
[ str
, int
] = {'output_bit_width': 4}
+
+
+
+
+read_coil ( channel )
+Read the coil value back from a specific channel.
+
+Parameters:
+channel (int
) – The channel number (start counting from 1) to read from.
+
+Return type:
+bool
| None
+
+Returns:
+The coil value of the specified channel or None if the read operation failed.
+
+Raises:
+Exception – If the channel number is out of range.
+
+
+
+
+
+
+write_coil ( channel , value )
+Write a value to a specific channel.
+
+Parameters:
+
+
+Return type:
+bool
+
+Returns:
+True if the write operation succeeded, otherwise False.
+
+Raises:
+Exception – If the channel number is out of range.
+
+
+
+
+
+
+
+
+class pyhoff.devices. KL3042 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: AnalogInputTerminal
+KL3042: 2x analog input 0…20 mA 12 Bit single-ended
+
+
+parameters : dict
[ str
, int
] = {'input_word_width': 2}
+
+
+
+
+read_channel_word ( channel , error_value = -99999 )
+Read a single word from the terminal.
+
+Parameters:
+channel (int
) – The channel number (1 based index) to read from.
+
+Return type:
+int
+
+Returns:
+The read word value.
+
+Raises:
+Exception – If the word offset or count is out of range.
+
+
+
+
+
+
+read_current ( channel )
+Read the current value from a specific channel.
+
+Parameters:
+channel (int
) – The channel number to read from.
+
+Return type:
+float
+
+Returns:
+The current value.
+
+
+
+
+
+
+read_normalized ( channel )
+Read a normalized value (0…1) from a specific channel.
+
+Parameters:
+channel (int
) – The channel number to read from.
+
+Return type:
+float
+
+Returns:
+The normalized value.
+
+
+
+
+
+
+
+
+class pyhoff.devices. KL3054 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: AnalogInputTerminal
+KL3054: 4x analog input 4…20 mA 12 Bit single-ended
+
+
+parameters : dict
[ str
, int
] = {'input_word_width': 4}
+
+
+
+
+read_channel_word ( channel , error_value = -99999 )
+Read a single word from the terminal.
+
+Parameters:
+channel (int
) – The channel number (1 based index) to read from.
+
+Return type:
+int
+
+Returns:
+The read word value.
+
+Raises:
+Exception – If the word offset or count is out of range.
+
+
+
+
+
+
+read_current ( channel )
+Read the current value from a specific channel.
+
+Parameters:
+channel (int
) – The channel number to read from.
+
+Return type:
+float
+
+Returns:
+The current value.
+
+
+
+
+
+
+read_normalized ( channel )
+Read a normalized value (0…1) from a specific channel.
+
+Parameters:
+channel (int
) – The channel number to read from.
+
+Return type:
+float
+
+Returns:
+The normalized value.
+
+
+
+
+
+
+
+
+class pyhoff.devices. KL3202 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: AnalogInputTerminal
+KL3202: 2x analog input PT100 16 Bit 3-wire
+
+
+parameters : dict
[ str
, int
] = {'input_word_width': 2}
+
+
+
+
+read_channel_word ( channel , error_value = -99999 )
+Read a single word from the terminal.
+
+Parameters:
+channel (int
) – The channel number (1 based index) to read from.
+
+Return type:
+int
+
+Returns:
+The read word value.
+
+Raises:
+Exception – If the word offset or count is out of range.
+
+
+
+
+
+
+read_normalized ( channel )
+Read a normalized value (0…1) from a specific channel.
+
+Parameters:
+channel (int
) – The channel number to read from.
+
+Return type:
+float
+
+Returns:
+The normalized value.
+
+
+
+
+
+
+read_temperature ( channel )
+Read the temperature value from a specific channel.
+
+Parameters:
+channel (int
) – The channel number to read from.
+
+Return type:
+float
+
+Returns:
+The temperature value in °C.
+
+
+
+
+
+
+
+
+class pyhoff.devices. KL3214 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: AnalogInputTerminal
+KL3214: 4x analog input PT100 16 Bit 3-wire
+
+
+parameters : dict
[ str
, int
] = {'input_word_width': 4}
+
+
+
+
+read_channel_word ( channel , error_value = -99999 )
+Read a single word from the terminal.
+
+Parameters:
+channel (int
) – The channel number (1 based index) to read from.
+
+Return type:
+int
+
+Returns:
+The read word value.
+
+Raises:
+Exception – If the word offset or count is out of range.
+
+
+
+
+
+
+read_normalized ( channel )
+Read a normalized value (0…1) from a specific channel.
+
+Parameters:
+channel (int
) – The channel number to read from.
+
+Return type:
+float
+
+Returns:
+The normalized value.
+
+
+
+
+
+
+read_temperature ( channel )
+Read the temperature value from a specific channel.
+
+Parameters:
+channel (int
) – The channel number to read from.
+
+Return type:
+float
+
+Returns:
+The temperature value.
+
+
+
+
+
+
+
+
+class pyhoff.devices. KL4002 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: AnalogOutputTerminal
+KL4002: 2x analog output 0…10 V 12 Bit differentiell
+
+
+parameters : dict
[ str
, int
] = {'output_word_width': 2}
+
+
+
+
+read_channel_word ( channel , error_value = -99999 )
+Read a single word from the terminal.
+
+Parameters:
+channel (int
) – The channel number (1 based index) to read from.
+
+Return type:
+int
+
+Returns:
+The read word value or provided error_value if read failed.
+
+Raises:
+Exception – If the word offset or count is out of range.
+
+
+
+
+
+
+set_normalized ( channel , value )
+Set a normalized value between 0 and 1 to a specific channel.
+
+Parameters:
+
+
+Return type:
+bool
+
+Returns:
+True if the write operation succeeded.
+
+
+
+
+
+
+set_voltage ( channel , value )
+Set a voltage value to a specific channel.
+
+Parameters:
+
+
+Return type:
+bool
+
+Returns:
+True if the write operation succeeded.
+
+
+
+
+
+
+write_channel_word ( channel , value )
+Write a word to the terminal.
+
+Parameters:
+channel (int
) – The channel number (1 based index) to write to.
+
+Return type:
+bool
+
+Returns:
+True if the write operation succeeded.
+
+Raises:
+Exception – If the word offset or count is out of range.
+
+
+
+
+
+
+
+
+class pyhoff.devices. KL4004 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: AnalogOutputTerminal
+KL4004: 4x analog output 0…10 V 12 Bit differentiell
+
+
+parameters : dict
[ str
, int
] = {'output_word_width': 4}
+
+
+
+
+read_channel_word ( channel , error_value = -99999 )
+Read a single word from the terminal.
+
+Parameters:
+channel (int
) – The channel number (1 based index) to read from.
+
+Return type:
+int
+
+Returns:
+The read word value or provided error_value if read failed.
+
+Raises:
+Exception – If the word offset or count is out of range.
+
+
+
+
+
+
+set_normalized ( channel , value )
+Set a normalized value between 0 and 1 to a specific channel.
+
+Parameters:
+
+
+Return type:
+bool
+
+Returns:
+True if the write operation succeeded.
+
+
+
+
+
+
+set_voltage ( channel , value )
+Set a voltage value to a specific channel.
+
+Parameters:
+
+
+Return type:
+bool
+
+Returns:
+True if the write operation succeeded.
+
+
+
+
+
+
+write_channel_word ( channel , value )
+Write a word to the terminal.
+
+Parameters:
+channel (int
) – The channel number (1 based index) to write to.
+
+Return type:
+bool
+
+Returns:
+True if the write operation succeeded.
+
+Raises:
+Exception – If the word offset or count is out of range.
+
+
+
+
+
+
+
+
+class pyhoff.devices. KL4132 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: AnalogOutputTerminal
+KL4002: 2x analog output ±10 V 16 bit differential
+
+
+parameters : dict
[ str
, int
] = {'output_word_width': 2}
+
+
+
+
+read_channel_word ( channel , error_value = -99999 )
+Read a single word from the terminal.
+
+Parameters:
+channel (int
) – The channel number (1 based index) to read from.
+
+Return type:
+int
+
+Returns:
+The read word value or provided error_value if read failed.
+
+Raises:
+Exception – If the word offset or count is out of range.
+
+
+
+
+
+
+set_normalized ( channel , value )
+Set a normalized value between -1 and +1 to a specific channel.
+
+Parameters:
+
+
+Return type:
+bool
+
+Returns:
+True if the write operation succeeded.
+
+
+
+
+
+
+set_voltage ( channel , value )
+Set a voltage value between -10 and +10 V to a specific channel.
+
+Parameters:
+
+
+Return type:
+bool
+
+Returns:
+True if the write operation succeeded.
+
+
+
+
+
+
+write_channel_word ( channel , value )
+Write a word to the terminal.
+
+Parameters:
+channel (int
) – The channel number (1 based index) to write to.
+
+Return type:
+bool
+
+Returns:
+True if the write operation succeeded.
+
+Raises:
+Exception – If the word offset or count is out of range.
+
+
+
+
+
+
+
+
+class pyhoff.devices. KL9010 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: BusTerminal
+KL9010: End terminal
+(no I/O function)
+
+
+parameters : dict
[ str
, int
] = {}
+
+
+
+
+
+
+class pyhoff.devices. KL9070 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: BusTerminal
+KL9070: Shield terminal
+(no I/O function)
+
+
+parameters : dict
[ str
, int
] = {}
+
+
+
+
+
+
+class pyhoff.devices. KL9080 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: BusTerminal
+KL9080: Separation terminal
+(no I/O function)
+
+
+parameters : dict
[ str
, int
] = {}
+
+
+
+
+
+
+class pyhoff.devices. KL9100 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: BusTerminal
+KL9100: Potential supply terminal, 24 V DC
+(no I/O function)
+
+
+parameters : dict
[ str
, int
] = {}
+
+
+
+
+
+
+class pyhoff.devices. KL9150 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: BusTerminal
+KL9150: Potential supply terminal, 120…230 V AC
+(no I/O function)
+
+
+parameters : dict
[ str
, int
] = {}
+
+
+
+
+
+
+class pyhoff.devices. KL9180 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: BusTerminal
+KL9180: Potential distribution terminal, 2 x 24 V DC; 2 x 0 V DC, 2 x
+PE
+(no I/O function)
+
+
+parameters : dict
[ str
, int
] = {}
+
+
+
+
+
+
+class pyhoff.devices. KL9184 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: BusTerminal
+KL9184: potential distribution terminal, 8 x 24 V DC, 8 x 0 V DC
+(no I/O function)
+
+
+parameters : dict
[ str
, int
] = {}
+
+
+
+
+
+
+class pyhoff.devices. KL9185 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: BusTerminal
+KL9185: potential distribution terminal, 4 x 24 V DC, 4 x 0 V DC
+(no I/O function)
+
+
+parameters : dict
[ str
, int
] = {}
+
+
+
+
+
+
+class pyhoff.devices. KL9186 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: BusTerminal
+KL9186: Potential distribution terminal, 8 x 24 V DC
+(no I/O function)
+
+
+parameters : dict
[ str
, int
] = {}
+
+
+
+
+
+
+class pyhoff.devices. KL9187 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: BusTerminal
+KL9187: Potential distribution terminal, 8 x 0 V DC
+(no I/O function)
+
+
+parameters : dict
[ str
, int
] = {}
+
+
+
+
+
+
+class pyhoff.devices. KL9188 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: BusTerminal
+KL9188: Potential distribution terminal, 16 x 24 V DC
+(no I/O function)
+
+
+parameters : dict
[ str
, int
] = {}
+
+
+
+
+
+
+class pyhoff.devices. KL9189 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: BusTerminal
+KL9189: Potential distribution terminal, 16 x 0 V DC
+(no I/O function)
+
+
+parameters : dict
[ str
, int
] = {}
+
+
+
+
+
+
+class pyhoff.devices. KL9190 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: BusTerminal
+KL9190: Potential supply terminal, any voltage up to 230 V AC
+(no I/O function)
+
+
+parameters : dict
[ str
, int
] = {}
+
+
+
+
+
+
+class pyhoff.devices. KL9195 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: BusTerminal
+KL9195: Shield terminal
+(no I/O function)
+
+
+parameters : dict
[ str
, int
] = {}
+
+
+
+
+
+
+class pyhoff.devices. KL9200 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: BusTerminal
+KL9200: Potential supply terminal, 24 V DC, with fuse
+(no I/O function)
+
+
+parameters : dict
[ str
, int
] = {}
+
+
+
+
+
+
+class pyhoff.devices. KL9250 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: BusTerminal
+KL9250: Potential supply terminal, 120…230 V AC, with fuse
+(no I/O function)
+
+
+parameters : dict
[ str
, int
] = {}
+
+
+
+
+
+
+class pyhoff.devices. KL9290 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: BusTerminal
+KL9290: Potential supply terminal, any voltage up to 230 V AC, with
+fuse
+(no I/O function)
+
+
+parameters : dict
[ str
, int
] = {}
+
+
+
+
+
+
+class pyhoff.devices. KL9380 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: BusTerminal
+KL9380: Mains filter terminal for dimmers
+(no I/O function)
+
+
+parameters : dict
[ str
, int
] = {}
+
+
+
+
+
+
+WAGO bus terminals
+
+
+class pyhoff.devices. WAGO_750_1405 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: DigitalInputTerminal16Bit
+750-1405: 16x digital input 24 V
+
+
+parameters : dict
[ str
, int
] = {'input_bit_width': 16}
+
+
+
+
+read_input ( channel )
+Read the input from a specific channel.
+
+Parameters:
+channel (int
) – The channel number (start counting from 1) to read from.
+
+Return type:
+bool
| None
+
+Returns:
+The input value of the specified channel or None if the read operation failed.
+
+Raises:
+Exception – If the channel number is out of range.
+
+
+
+
+
+
+
+
+class pyhoff.devices. WAGO_750_352 ( host , port = 502 , bus_terminals = [] , timeout = 5 , watchdog = 0 , debug = False )
+Bases: BusCoupler
+Wago 750-352 ModBus TCP bus coupler
+
+
+add_bus_terminals ( * new_bus_terminals )
+Add bus terminals to the bus coupler.
+
+Parameters:
+new_bus_terminals (Union
[type
[BusTerminal
], Iterable
[type
[BusTerminal
]]] ) – bus terminal classes to add.
+
+Return type:
+list
[BusTerminal
]
+
+Returns:
+The corresponding list of bus terminal objects.
+
+
+
+
+
+
+get_error ( )
+Get the last error message.
+
+Return type:
+str
+
+Returns:
+The last error message.
+
+
+
+
+
+
+
+
+class pyhoff.devices. WAGO_750_530 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: DigitalOutputTerminal8Bit
+750-530: 8x digital output with 24 V / 500 mA
+Contact order for DO1 to DO8 is: 1, 5, 2, 6, 3, 7, 4, 8.
+
+
+parameters : dict
[ str
, int
] = {'output_bit_width': 8}
+
+
+
+
+read_coil ( channel )
+Read the coil value back from a specific channel.
+
+Parameters:
+channel (int
) – The channel number (start counting from 1) to read from.
+
+Return type:
+bool
| None
+
+Returns:
+The coil value of the specified channel or None if the read operation failed.
+
+Raises:
+Exception – If the channel number is out of range.
+
+
+
+
+
+
+write_coil ( channel , value )
+Write a value to a specific channel.
+
+Parameters:
+
+
+Return type:
+bool
+
+Returns:
+True if the write operation succeeded, otherwise False.
+
+Raises:
+Exception – If the channel number is out of range.
+
+
+
+
+
+
+
+
+class pyhoff.devices. WAGO_750_600 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: BusTerminal
+End terminal, no I/O function
+
+
+parameters : dict
[ str
, int
] = {}
+
+
+
+
+
+
+class pyhoff.devices. WAGO_750_602 ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: BusTerminal
+Potential supply terminal, no I/O function
+
+
+parameters : dict
[ str
, int
] = {}
+
+
+
+
+
+
+Base classes
+These classes are base classes for devices and are typically not used directly.
+
+
+class pyhoff. AnalogInputTerminal ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: BusTerminal
+Base class for analog input terminals.
+
+
+parameters : dict
[ str
, int
] = {}
+
+
+
+
+read_channel_word ( channel , error_value = -99999 )
+Read a single word from the terminal.
+
+Parameters:
+channel (int
) – The channel number (1 based index) to read from.
+
+Return type:
+int
+
+Returns:
+The read word value.
+
+Raises:
+Exception – If the word offset or count is out of range.
+
+
+
+
+
+
+read_normalized ( channel )
+Read a normalized value (0…1) from a specific channel.
+
+Parameters:
+channel (int
) – The channel number to read from.
+
+Return type:
+float
+
+Returns:
+The normalized value.
+
+
+
+
+
+
+classmethod select ( bus_coupler , terminal_number = 0 )
+Returns the n-th bus terminal instance of the parent class
+specified by terminal_number.
+
+Parameters:
+
+bus_coupler (BusCoupler
) – The bus coupler to which the terminal is connected.
+terminal_number (int
) – The index of the bus terminal to return. Counted for
+all bus terminals of the same type, not all bus terminals. Started for the
+first terminal with 0
+
+
+Return type:
+TypeVar
(_BT
, bound= BusTerminal)
+
+Returns:
+The selected bus terminal instance.
+
+
+
+
+
+
+
+
+class pyhoff. AnalogOutputTerminal ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: BusTerminal
+Base class for analog output terminals.
+
+
+parameters : dict
[ str
, int
] = {}
+
+
+
+
+read_channel_word ( channel , error_value = -99999 )
+Read a single word from the terminal.
+
+Parameters:
+channel (int
) – The channel number (1 based index) to read from.
+
+Return type:
+int
+
+Returns:
+The read word value or provided error_value if read failed.
+
+Raises:
+Exception – If the word offset or count is out of range.
+
+
+
+
+
+
+classmethod select ( bus_coupler , terminal_number = 0 )
+Returns the n-th bus terminal instance of the parent class
+specified by terminal_number.
+
+Parameters:
+
+bus_coupler (BusCoupler
) – The bus coupler to which the terminal is connected.
+terminal_number (int
) – The index of the bus terminal to return. Counted for
+all bus terminals of the same type, not all bus terminals. Started for the
+first terminal with 0
+
+
+Return type:
+TypeVar
(_BT
, bound= BusTerminal)
+
+Returns:
+The selected bus terminal instance.
+
+
+
+
+
+
+set_normalized ( channel , value )
+Set a normalized value between 0 and 1 to a specific channel.
+
+Parameters:
+
+
+Return type:
+bool
+
+Returns:
+True if the write operation succeeded.
+
+
+
+
+
+
+write_channel_word ( channel , value )
+Write a word to the terminal.
+
+Parameters:
+channel (int
) – The channel number (1 based index) to write to.
+
+Return type:
+bool
+
+Returns:
+True if the write operation succeeded.
+
+Raises:
+Exception – If the word offset or count is out of range.
+
+
+
+
+
+
+
+
+class pyhoff. BusCoupler ( host , port = 502 , bus_terminals = [] , timeout = 5 , watchdog = 0 , debug = False )
+Bases: object
+Base class for ModBus TCP bus coupler
+
+Parameters:
+
+host (str
) – ip or hostname of the bus coupler
+port (int
) – port of the modbus host
+debug (bool
) – outputs modbus debug information
+timeout (float
) – timeout for waiting for the device response
+watchdog (float
) – time in seconds after the device sets all outputs to
+default state. A value of 0 deactivates the watchdog.
+debug – If True, debug information is printed.
+
+
+
+
+
+bus_terminals
+A list of bus terminal classes according to the
+connected terminals.
+
+
+
+
+modbus
+The underlying modbus client used for the connection.
+
+
+
+
+add_bus_terminals ( * new_bus_terminals )
+Add bus terminals to the bus coupler.
+
+Parameters:
+new_bus_terminals (Union
[type
[BusTerminal
], Iterable
[type
[BusTerminal
]]] ) – bus terminal classes to add.
+
+Return type:
+list
[BusTerminal
]
+
+Returns:
+The corresponding list of bus terminal objects.
+
+
+
+
+
+
+get_error ( )
+Get the last error message.
+
+Return type:
+str
+
+Returns:
+The last error message.
+
+
+
+
+
+
+select ( bus_terminal_type , terminal_number = 0 )
+Returns the n-th bus terminal instance of the given bus terminal type and
+terminal index.
+
+Parameters:
+
+bus_terminals_type – The bus terminal class to select from.
+terminal_number (int
) – The index of the bus terminal to return. Counted for
+all bus terminals of the same type, not all bus terminals. Started for the
+first terminal with 0
+
+
+Return type:
+TypeVar
(_BT
, bound= BusTerminal)
+
+Returns:
+The selected bus terminal instance.
+
+
+Example
+>>> from pyhoff.devices import *
+>>> bk = BK9050 ( "172.16.17.1" , bus_terminals = [ KL2404 , KL2424 ])
+>>> # Select the first KL2425 terminal:
+>>> kl2404 = bk . select ( KL2424 , 0 )
+
+
+
+
+
+
+
+
+class pyhoff. BusTerminal ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: object
+Base class for all bus terminals.
+
+
+bus_coupler
+The bus coupler to which this terminal is connected.
+
+
+
+
+parameters
+The parameters of the terminal.
+
+
+
+
+parameters : dict
[ str
, int
] = {}
+
+
+
+
+classmethod select ( bus_coupler , terminal_number = 0 )
+Returns the n-th bus terminal instance of the parent class
+specified by terminal_number.
+
+Parameters:
+
+bus_coupler (BusCoupler
) – The bus coupler to which the terminal is connected.
+terminal_number (int
) – The index of the bus terminal to return. Counted for
+all bus terminals of the same type, not all bus terminals. Started for the
+first terminal with 0
+
+
+Return type:
+TypeVar
(_BT
, bound= BusTerminal)
+
+Returns:
+The selected bus terminal instance.
+
+
+
+
+
+
+
+
+class pyhoff. DigitalInputTerminal ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: BusTerminal
+Base class for digital input terminals.
+
+
+parameters : dict
[ str
, int
] = {}
+
+
+
+
+read_input ( channel )
+Read the input from a specific channel.
+
+Parameters:
+channel (int
) – The channel number (start counting from 1) to read from.
+
+Return type:
+bool
| None
+
+Returns:
+The input value of the specified channel or None if the read operation failed.
+
+Raises:
+Exception – If the channel number is out of range.
+
+
+
+
+
+
+classmethod select ( bus_coupler , terminal_number = 0 )
+Returns the n-th bus terminal instance of the parent class
+specified by terminal_number.
+
+Parameters:
+
+bus_coupler (BusCoupler
) – The bus coupler to which the terminal is connected.
+terminal_number (int
) – The index of the bus terminal to return. Counted for
+all bus terminals of the same type, not all bus terminals. Started for the
+first terminal with 0
+
+
+Return type:
+TypeVar
(_BT
, bound= BusTerminal)
+
+Returns:
+The selected bus terminal instance.
+
+
+
+
+
+
+
+
+class pyhoff. DigitalOutputTerminal ( bus_coupler , output_bit_addresses , input_bit_addresses , output_word_addresses , input_word_addresses , mixed_mapping )
+Bases: BusTerminal
+Base class for digital output terminals.
+
+
+parameters : dict
[ str
, int
] = {}
+
+
+
+
+read_coil ( channel )
+Read the coil value back from a specific channel.
+
+Parameters:
+channel (int
) – The channel number (start counting from 1) to read from.
+
+Return type:
+bool
| None
+
+Returns:
+The coil value of the specified channel or None if the read operation failed.
+
+Raises:
+Exception – If the channel number is out of range.
+
+
+
+
+
+
+classmethod select ( bus_coupler , terminal_number = 0 )
+Returns the n-th bus terminal instance of the parent class
+specified by terminal_number.
+
+Parameters:
+
+bus_coupler (BusCoupler
) – The bus coupler to which the terminal is connected.
+terminal_number (int
) – The index of the bus terminal to return. Counted for
+all bus terminals of the same type, not all bus terminals. Started for the
+first terminal with 0
+
+
+Return type:
+TypeVar
(_BT
, bound= BusTerminal)
+
+Returns:
+The selected bus terminal instance.
+
+
+
+
+
+
+write_coil ( channel , value )
+Write a value to a specific channel.
+
+Parameters:
+
+
+Return type:
+bool
+
+Returns:
+True if the write operation succeeded, otherwise False.
+
+Raises:
+Exception – If the channel number is out of range.
+
+
+
+
+
+
+
+
+Modbus
+This modbus implementation is used internally.
+
+
+class pyhoff.modbus. SimpleModbusClient ( host , port = 502 , unit_id = 1 , timeout = 5 , debug = False )
+Bases: object
+A simple Modbus TCP client
+
+Parameters:
+
+host (str
) – hostname or IP address
+port (int
) – server port
+unit_id (int
) – ModBus id
+timeout (float
) – socket timeout in seconds
+debug (bool
) – if True prints out transmitted and received bytes in hex
+
+
+
+
+
+host
+hostname or IP address
+
+
+
+
+port
+server port
+
+
+
+
+unit_id
+ModBus id
+
+
+
+
+timeout
+socket timeout in seconds
+
+
+
+
+last_error
+contains last error message or empty string if no error occurred
+
+
+
+
+debug
+if True prints out transmitted and received bytes in hex
+
+
+
+
+close ( )
+Close connection
+
+Return type:
+bytes
+
+Returns:
+empty bytes object
+
+
+
+
+
+
+connect ( )
+Connect manual to the configured modbus server. Usually there is
+no need to call this function since it is handled automatically.
+
+Return type:
+bool
+
+
+
+
+
+
+read_coil ( address )
+Read a coil from the given register address.
+
+Parameters:
+address (int
) – The register address to read from.
+
+Return type:
+bool
| None
+
+Returns:
+The value of the coil or None if error
+
+
+
+
+
+
+read_coils ( bit_address , bit_lengths = 1 )
+ModBus function for reading coils (0x01)
+
+Parameters:
+
+
+Returns:
+Bits list or None if error
+
+Return type:
+list of bool or None
+
+
+
+
+
+
+read_discrete_input ( address )
+Read a discrete input from the given register address.
+
+Parameters:
+address (int
) – The register address to read from.
+
+Return type:
+bool
| None
+
+Returns:
+The value of the discrete input.
+
+
+
+
+
+
+read_discrete_inputs ( bit_address , bit_lengths = 1 )
+ModBus function for reading discrete inputs (0x02)
+
+Parameters:
+
+
+Returns:
+Bits list or None if error
+
+Return type:
+list of bool or None
+
+
+
+
+
+
+read_holding_registers ( register_address , word_lengths = 1 )
+ModBus function for reading holding registers (0x03)
+
+Parameters:
+
+
+Returns:
+Registers list or None if error
+
+Return type:
+list of int or None
+
+
+
+
+
+
+read_input_registers ( register_address , word_lengths = 1 )
+ModBus function for reading input registers (0x04)
+
+Parameters:
+
+
+Returns:
+Registers list or None if error
+
+Return type:
+list of int or None
+
+
+
+
+
+
+receive_modbus_data ( )
+Receive a ModBus frame
+
+Return type:
+bytes
+
+Returns:
+bytes received or empty bytes object if an error occurred
+
+
+
+
+
+
+send_modbus_data ( function_code , body )
+Send raw ModBus TCP frame
+
+Parameters:
+
+
+Return type:
+int
+
+Returns:
+number of transmitted bytes or 0 if transmission failed
+
+
+
+
+
+
+write_multiple_coils ( bit_address , values )
+ModBus function for writing multiple coils (0x0F)
+
+Parameters:
+
+
+Return type:
+bool
+
+Returns:
+True if write succeeded or False if failed
+
+
+
+
+
+
+write_multiple_registers ( register_address , values )
+ModBus function for writing multiple registers (0x10)
+
+Parameters:
+
+
+Return type:
+bool
+
+Returns:
+True if write succeeded or False if failed
+
+
+
+
+
+
+write_single_coil ( bit_address , value )
+ModBus function for writing a single coil (0x05)
+
+Parameters:
+
+
+Return type:
+bool
+
+Returns:
+True if write succeeded or False if failed
+
+
+
+
+
+
+write_single_register ( register_address , value )
+ModBus function for writing a single register (0x06)
+
+Parameters:
+
+
+Return type:
+bool
+
+Returns:
+True if write succeeded or False if failed
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/objects.inv b/objects.inv
new file mode 100644
index 0000000..6220e5b
Binary files /dev/null and b/objects.inv differ
diff --git a/readme.html b/readme.html
new file mode 100644
index 0000000..43c0bbb
--- /dev/null
+++ b/readme.html
@@ -0,0 +1,225 @@
+
+
+
+
+
+
+
+
+
Pyhoff — pyhoff documentation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ pyhoff
+
+
+
+
+
+
+
+
+
+Pyhoff
+
+Description
+The pyhoff package allows you to read and write the most common
+Beckhoff and WAGO bus terminals (“Busklemmen”) using the Ethernet bus
+coupler (“Busskoppler”) BK9000, BK9050, BK9100, or WAGO 750_352
+over Ethernet TCP/IP based on ModBus TCP.
+
+Key Features
+
+Supports a wide range of Beckhoff and WAGO analog and digital bus
+terminals.
+Very lightweight: no dependencies; compact code base
+Easy to extend
+Using standardized ModBus TCP.
+Provides high-level abstractions for reading and writing data
+from/to IO-terminals with minimal code
+
+
+
+
+
+Installation
+The package has no additional decencies. It can be installed with pip:
+
+
+
+Usage
+It is easy to use as the following example code shows:
+from pyhoff.devices import *
+
+# connect to the BK9050 by tcp/ip on default port 502
+bk = BK9050 ( "172.16.17.1" )
+
+# add all bus terminals connected to the bus coupler
+# in the order of the physical arrangement
+bk . add_bus_terminals ( KL2404 , KL2424 , KL9100 , KL1104 , KL3202 ,
+ KL3202 , KL4002 , KL9188 , KL3054 , KL3214 ,
+ KL4004 , KL9010 )
+
+# Set 1. output of the first KL2404-type bus terminal to hi
+bk . select ( KL2404 , 0 ) . write_coil ( 1 , True )
+
+# read temperature from the 2. channel of the 2. KL3202-type
+# bus terminal
+t = bk . select ( KL3202 , 1 ) . read_temperature ( 2 )
+print ( f "t = { t : .1f } °C" )
+
+# Set 1. output of the 1. KL4002-type bus terminal to 4.2 V
+bk . select ( KL4002 , 0 ) . set_voltage ( 1 , 4.2 )
+
+
+
+
+
+Contributing
+Other analog and digital IO terminals are easy to complement. Contributions are welcome!
+Please open an issue or submit a pull request on GitHub.
+
+
+Developer Guide
+To get started with developing the pyhoff
package, follow these steps:
+
+Clone the Repository
+First, clone the repository to your local machine using Git:
+ git clone https://github.com/Nonannet/pyhoff.git
+cd pyhoff
+
+
+
+Set Up a Virtual Environment
+It is recommended to use a virtual environment to manage dependencies. You can create one using venv
:
+ python -m venv venv
+source venv/bin/activate # On Windows use `venv\Scripts\activate`
+
+
+
+Install Dev Dependencies
+Install pyhoff from source plus the dependencies required for development using pip
:
+
+
+Run Tests
+Ensure that everything is set up correctly by running the tests:
+
+
+
+
+
+License
+This project is licensed under the MIT License - see the LICENSE file for details.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/search.html b/search.html
new file mode 100644
index 0000000..ca763bd
--- /dev/null
+++ b/search.html
@@ -0,0 +1,121 @@
+
+
+
+
+
+
+
+
Search — pyhoff documentation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ pyhoff
+
+
+
+
+
+
+
+
+
+
+
+ Please activate JavaScript to enable the search functionality.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/searchindex.js b/searchindex.js
new file mode 100644
index 0000000..fe3fa78
--- /dev/null
+++ b/searchindex.js
@@ -0,0 +1 @@
+Search.setIndex({"alltitles":{"Base classes":[[1,"base-classes"]],"Beckhoff bus terminals":[[1,"beckhoff-bus-terminals"]],"Bus coupler":[[1,"bus-coupler"]],"Classes":[[1,null]],"Contents:":[[0,null]],"Contributing":[[0,"contributing"],[2,"contributing"]],"Description":[[0,"description"],[2,"description"]],"Developer Guide":[[0,"developer-guide"],[2,"developer-guide"]],"Installation":[[0,"installation"],[2,"installation"]],"Key Features":[[0,"key-features"],[2,"key-features"]],"License":[[0,"license"],[2,"license"]],"Modbus":[[1,"modbus"]],"Pyhoff":[[0,"pyhoff"],[2,null]],"Usage":[[0,"usage"],[2,"usage"]],"Usage Scenarios":[[0,"usage-scenarios"],[2,"usage-scenarios"]],"WAGO bus terminals":[[1,"wago-bus-terminals"]]},"docnames":["index","modules","readme"],"envversion":{"sphinx":65,"sphinx.domains.c":3,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":9,"sphinx.domains.index":1,"sphinx.domains.javascript":3,"sphinx.domains.math":2,"sphinx.domains.python":4,"sphinx.domains.rst":2,"sphinx.domains.std":2},"filenames":["index.md","modules.md","readme.md"],"indexentries":{"add_bus_terminals() (pyhoff.buscoupler method)":[[1,"pyhoff.BusCoupler.add_bus_terminals",false]],"add_bus_terminals() (pyhoff.devices.bk9000 method)":[[1,"pyhoff.devices.BK9000.add_bus_terminals",false]],"add_bus_terminals() (pyhoff.devices.bk9050 method)":[[1,"pyhoff.devices.BK9050.add_bus_terminals",false]],"add_bus_terminals() (pyhoff.devices.bk9100 method)":[[1,"pyhoff.devices.BK9100.add_bus_terminals",false]],"add_bus_terminals() (pyhoff.devices.wago_750_352 method)":[[1,"pyhoff.devices.WAGO_750_352.add_bus_terminals",false]],"analoginputterminal (class in pyhoff)":[[1,"pyhoff.AnalogInputTerminal",false]],"analogoutputterminal (class in pyhoff)":[[1,"pyhoff.AnalogOutputTerminal",false]],"bk9000 (class in pyhoff.devices)":[[1,"pyhoff.devices.BK9000",false]],"bk9050 (class in pyhoff.devices)":[[1,"pyhoff.devices.BK9050",false]],"bk9100 (class in pyhoff.devices)":[[1,"pyhoff.devices.BK9100",false]],"bus_coupler (pyhoff.busterminal attribute)":[[1,"pyhoff.BusTerminal.bus_coupler",false]],"bus_terminals (pyhoff.buscoupler attribute)":[[1,"pyhoff.BusCoupler.bus_terminals",false]],"buscoupler (class in pyhoff)":[[1,"pyhoff.BusCoupler",false]],"busterminal (class in pyhoff)":[[1,"pyhoff.BusTerminal",false]],"close() (pyhoff.modbus.simplemodbusclient method)":[[1,"pyhoff.modbus.SimpleModbusClient.close",false]],"connect() (pyhoff.modbus.simplemodbusclient method)":[[1,"pyhoff.modbus.SimpleModbusClient.connect",false]],"debug (pyhoff.modbus.simplemodbusclient attribute)":[[1,"pyhoff.modbus.SimpleModbusClient.debug",false]],"digitalinputterminal (class in pyhoff)":[[1,"pyhoff.DigitalInputTerminal",false]],"digitaloutputterminal (class in pyhoff)":[[1,"pyhoff.DigitalOutputTerminal",false]],"get_error() (pyhoff.buscoupler method)":[[1,"pyhoff.BusCoupler.get_error",false]],"get_error() (pyhoff.devices.bk9000 method)":[[1,"pyhoff.devices.BK9000.get_error",false]],"get_error() (pyhoff.devices.bk9050 method)":[[1,"pyhoff.devices.BK9050.get_error",false]],"get_error() (pyhoff.devices.bk9100 method)":[[1,"pyhoff.devices.BK9100.get_error",false]],"get_error() (pyhoff.devices.wago_750_352 method)":[[1,"pyhoff.devices.WAGO_750_352.get_error",false]],"host (pyhoff.modbus.simplemodbusclient attribute)":[[1,"pyhoff.modbus.SimpleModbusClient.host",false]],"kl1104 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL1104",false]],"kl1408 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL1408",false]],"kl1512 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL1512",false]],"kl2404 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL2404",false]],"kl2408 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL2408",false]],"kl2424 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL2424",false]],"kl2634 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL2634",false]],"kl3042 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL3042",false]],"kl3054 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL3054",false]],"kl3202 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL3202",false]],"kl3214 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL3214",false]],"kl4002 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL4002",false]],"kl4004 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL4004",false]],"kl4132 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL4132",false]],"kl9010 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL9010",false]],"kl9070 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL9070",false]],"kl9080 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL9080",false]],"kl9100 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL9100",false]],"kl9150 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL9150",false]],"kl9180 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL9180",false]],"kl9184 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL9184",false]],"kl9185 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL9185",false]],"kl9186 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL9186",false]],"kl9187 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL9187",false]],"kl9188 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL9188",false]],"kl9189 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL9189",false]],"kl9190 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL9190",false]],"kl9195 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL9195",false]],"kl9200 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL9200",false]],"kl9250 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL9250",false]],"kl9290 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL9290",false]],"kl9380 (class in pyhoff.devices)":[[1,"pyhoff.devices.KL9380",false]],"last_error (pyhoff.modbus.simplemodbusclient attribute)":[[1,"pyhoff.modbus.SimpleModbusClient.last_error",false]],"modbus (pyhoff.buscoupler attribute)":[[1,"pyhoff.BusCoupler.modbus",false]],"parameters (pyhoff.analoginputterminal attribute)":[[1,"pyhoff.AnalogInputTerminal.parameters",false]],"parameters (pyhoff.analogoutputterminal attribute)":[[1,"pyhoff.AnalogOutputTerminal.parameters",false]],"parameters (pyhoff.busterminal attribute)":[[1,"id0",false],[1,"pyhoff.BusTerminal.parameters",false]],"parameters (pyhoff.devices.kl1104 attribute)":[[1,"pyhoff.devices.KL1104.parameters",false]],"parameters (pyhoff.devices.kl1408 attribute)":[[1,"pyhoff.devices.KL1408.parameters",false]],"parameters (pyhoff.devices.kl1512 attribute)":[[1,"pyhoff.devices.KL1512.parameters",false]],"parameters (pyhoff.devices.kl2404 attribute)":[[1,"pyhoff.devices.KL2404.parameters",false]],"parameters (pyhoff.devices.kl2408 attribute)":[[1,"pyhoff.devices.KL2408.parameters",false]],"parameters (pyhoff.devices.kl2424 attribute)":[[1,"pyhoff.devices.KL2424.parameters",false]],"parameters (pyhoff.devices.kl2634 attribute)":[[1,"pyhoff.devices.KL2634.parameters",false]],"parameters (pyhoff.devices.kl3042 attribute)":[[1,"pyhoff.devices.KL3042.parameters",false]],"parameters (pyhoff.devices.kl3054 attribute)":[[1,"pyhoff.devices.KL3054.parameters",false]],"parameters (pyhoff.devices.kl3202 attribute)":[[1,"pyhoff.devices.KL3202.parameters",false]],"parameters (pyhoff.devices.kl3214 attribute)":[[1,"pyhoff.devices.KL3214.parameters",false]],"parameters (pyhoff.devices.kl4002 attribute)":[[1,"pyhoff.devices.KL4002.parameters",false]],"parameters (pyhoff.devices.kl4004 attribute)":[[1,"pyhoff.devices.KL4004.parameters",false]],"parameters (pyhoff.devices.kl4132 attribute)":[[1,"pyhoff.devices.KL4132.parameters",false]],"parameters (pyhoff.devices.kl9010 attribute)":[[1,"pyhoff.devices.KL9010.parameters",false]],"parameters (pyhoff.devices.kl9070 attribute)":[[1,"pyhoff.devices.KL9070.parameters",false]],"parameters (pyhoff.devices.kl9080 attribute)":[[1,"pyhoff.devices.KL9080.parameters",false]],"parameters (pyhoff.devices.kl9100 attribute)":[[1,"pyhoff.devices.KL9100.parameters",false]],"parameters (pyhoff.devices.kl9150 attribute)":[[1,"pyhoff.devices.KL9150.parameters",false]],"parameters (pyhoff.devices.kl9180 attribute)":[[1,"pyhoff.devices.KL9180.parameters",false]],"parameters (pyhoff.devices.kl9184 attribute)":[[1,"pyhoff.devices.KL9184.parameters",false]],"parameters (pyhoff.devices.kl9185 attribute)":[[1,"pyhoff.devices.KL9185.parameters",false]],"parameters (pyhoff.devices.kl9186 attribute)":[[1,"pyhoff.devices.KL9186.parameters",false]],"parameters (pyhoff.devices.kl9187 attribute)":[[1,"pyhoff.devices.KL9187.parameters",false]],"parameters (pyhoff.devices.kl9188 attribute)":[[1,"pyhoff.devices.KL9188.parameters",false]],"parameters (pyhoff.devices.kl9189 attribute)":[[1,"pyhoff.devices.KL9189.parameters",false]],"parameters (pyhoff.devices.kl9190 attribute)":[[1,"pyhoff.devices.KL9190.parameters",false]],"parameters (pyhoff.devices.kl9195 attribute)":[[1,"pyhoff.devices.KL9195.parameters",false]],"parameters (pyhoff.devices.kl9200 attribute)":[[1,"pyhoff.devices.KL9200.parameters",false]],"parameters (pyhoff.devices.kl9250 attribute)":[[1,"pyhoff.devices.KL9250.parameters",false]],"parameters (pyhoff.devices.kl9290 attribute)":[[1,"pyhoff.devices.KL9290.parameters",false]],"parameters (pyhoff.devices.kl9380 attribute)":[[1,"pyhoff.devices.KL9380.parameters",false]],"parameters (pyhoff.devices.wago_750_1405 attribute)":[[1,"pyhoff.devices.WAGO_750_1405.parameters",false]],"parameters (pyhoff.devices.wago_750_530 attribute)":[[1,"pyhoff.devices.WAGO_750_530.parameters",false]],"parameters (pyhoff.devices.wago_750_600 attribute)":[[1,"pyhoff.devices.WAGO_750_600.parameters",false]],"parameters (pyhoff.devices.wago_750_602 attribute)":[[1,"pyhoff.devices.WAGO_750_602.parameters",false]],"parameters (pyhoff.digitalinputterminal attribute)":[[1,"pyhoff.DigitalInputTerminal.parameters",false]],"parameters (pyhoff.digitaloutputterminal attribute)":[[1,"pyhoff.DigitalOutputTerminal.parameters",false]],"port (pyhoff.modbus.simplemodbusclient attribute)":[[1,"pyhoff.modbus.SimpleModbusClient.port",false]],"read_channel_word() (pyhoff.analoginputterminal method)":[[1,"pyhoff.AnalogInputTerminal.read_channel_word",false]],"read_channel_word() (pyhoff.analogoutputterminal method)":[[1,"pyhoff.AnalogOutputTerminal.read_channel_word",false]],"read_channel_word() (pyhoff.devices.kl1512 method)":[[1,"pyhoff.devices.KL1512.read_channel_word",false]],"read_channel_word() (pyhoff.devices.kl3042 method)":[[1,"pyhoff.devices.KL3042.read_channel_word",false]],"read_channel_word() (pyhoff.devices.kl3054 method)":[[1,"pyhoff.devices.KL3054.read_channel_word",false]],"read_channel_word() (pyhoff.devices.kl3202 method)":[[1,"pyhoff.devices.KL3202.read_channel_word",false]],"read_channel_word() (pyhoff.devices.kl3214 method)":[[1,"pyhoff.devices.KL3214.read_channel_word",false]],"read_channel_word() (pyhoff.devices.kl4002 method)":[[1,"pyhoff.devices.KL4002.read_channel_word",false]],"read_channel_word() (pyhoff.devices.kl4004 method)":[[1,"pyhoff.devices.KL4004.read_channel_word",false]],"read_channel_word() (pyhoff.devices.kl4132 method)":[[1,"pyhoff.devices.KL4132.read_channel_word",false]],"read_coil() (pyhoff.devices.kl2404 method)":[[1,"pyhoff.devices.KL2404.read_coil",false]],"read_coil() (pyhoff.devices.kl2408 method)":[[1,"pyhoff.devices.KL2408.read_coil",false]],"read_coil() (pyhoff.devices.kl2424 method)":[[1,"pyhoff.devices.KL2424.read_coil",false]],"read_coil() (pyhoff.devices.kl2634 method)":[[1,"pyhoff.devices.KL2634.read_coil",false]],"read_coil() (pyhoff.devices.wago_750_530 method)":[[1,"pyhoff.devices.WAGO_750_530.read_coil",false]],"read_coil() (pyhoff.digitaloutputterminal method)":[[1,"pyhoff.DigitalOutputTerminal.read_coil",false]],"read_coil() (pyhoff.modbus.simplemodbusclient method)":[[1,"pyhoff.modbus.SimpleModbusClient.read_coil",false]],"read_coils() (pyhoff.modbus.simplemodbusclient method)":[[1,"pyhoff.modbus.SimpleModbusClient.read_coils",false]],"read_counter() (pyhoff.devices.kl1512 method)":[[1,"pyhoff.devices.KL1512.read_counter",false]],"read_current() (pyhoff.devices.kl3042 method)":[[1,"pyhoff.devices.KL3042.read_current",false]],"read_current() (pyhoff.devices.kl3054 method)":[[1,"pyhoff.devices.KL3054.read_current",false]],"read_delta() (pyhoff.devices.kl1512 method)":[[1,"pyhoff.devices.KL1512.read_delta",false]],"read_discrete_input() (pyhoff.modbus.simplemodbusclient method)":[[1,"pyhoff.modbus.SimpleModbusClient.read_discrete_input",false]],"read_discrete_inputs() (pyhoff.modbus.simplemodbusclient method)":[[1,"pyhoff.modbus.SimpleModbusClient.read_discrete_inputs",false]],"read_holding_registers() (pyhoff.modbus.simplemodbusclient method)":[[1,"pyhoff.modbus.SimpleModbusClient.read_holding_registers",false]],"read_input() (pyhoff.devices.kl1104 method)":[[1,"pyhoff.devices.KL1104.read_input",false]],"read_input() (pyhoff.devices.kl1408 method)":[[1,"pyhoff.devices.KL1408.read_input",false]],"read_input() (pyhoff.devices.wago_750_1405 method)":[[1,"pyhoff.devices.WAGO_750_1405.read_input",false]],"read_input() (pyhoff.digitalinputterminal method)":[[1,"pyhoff.DigitalInputTerminal.read_input",false]],"read_input_registers() (pyhoff.modbus.simplemodbusclient method)":[[1,"pyhoff.modbus.SimpleModbusClient.read_input_registers",false]],"read_normalized() (pyhoff.analoginputterminal method)":[[1,"pyhoff.AnalogInputTerminal.read_normalized",false]],"read_normalized() (pyhoff.devices.kl1512 method)":[[1,"pyhoff.devices.KL1512.read_normalized",false]],"read_normalized() (pyhoff.devices.kl3042 method)":[[1,"pyhoff.devices.KL3042.read_normalized",false]],"read_normalized() (pyhoff.devices.kl3054 method)":[[1,"pyhoff.devices.KL3054.read_normalized",false]],"read_normalized() (pyhoff.devices.kl3202 method)":[[1,"pyhoff.devices.KL3202.read_normalized",false]],"read_normalized() (pyhoff.devices.kl3214 method)":[[1,"pyhoff.devices.KL3214.read_normalized",false]],"read_temperature() (pyhoff.devices.kl3202 method)":[[1,"pyhoff.devices.KL3202.read_temperature",false]],"read_temperature() (pyhoff.devices.kl3214 method)":[[1,"pyhoff.devices.KL3214.read_temperature",false]],"receive_modbus_data() (pyhoff.modbus.simplemodbusclient method)":[[1,"pyhoff.modbus.SimpleModbusClient.receive_modbus_data",false]],"select() (pyhoff.analoginputterminal class method)":[[1,"pyhoff.AnalogInputTerminal.select",false]],"select() (pyhoff.analogoutputterminal class method)":[[1,"pyhoff.AnalogOutputTerminal.select",false]],"select() (pyhoff.buscoupler method)":[[1,"pyhoff.BusCoupler.select",false]],"select() (pyhoff.busterminal class method)":[[1,"pyhoff.BusTerminal.select",false]],"select() (pyhoff.digitalinputterminal class method)":[[1,"pyhoff.DigitalInputTerminal.select",false]],"select() (pyhoff.digitaloutputterminal class method)":[[1,"pyhoff.DigitalOutputTerminal.select",false]],"send_modbus_data() (pyhoff.modbus.simplemodbusclient method)":[[1,"pyhoff.modbus.SimpleModbusClient.send_modbus_data",false]],"set_normalized() (pyhoff.analogoutputterminal method)":[[1,"pyhoff.AnalogOutputTerminal.set_normalized",false]],"set_normalized() (pyhoff.devices.kl4002 method)":[[1,"pyhoff.devices.KL4002.set_normalized",false]],"set_normalized() (pyhoff.devices.kl4004 method)":[[1,"pyhoff.devices.KL4004.set_normalized",false]],"set_normalized() (pyhoff.devices.kl4132 method)":[[1,"pyhoff.devices.KL4132.set_normalized",false]],"set_voltage() (pyhoff.devices.kl4002 method)":[[1,"pyhoff.devices.KL4002.set_voltage",false]],"set_voltage() (pyhoff.devices.kl4004 method)":[[1,"pyhoff.devices.KL4004.set_voltage",false]],"set_voltage() (pyhoff.devices.kl4132 method)":[[1,"pyhoff.devices.KL4132.set_voltage",false]],"simplemodbusclient (class in pyhoff.modbus)":[[1,"pyhoff.modbus.SimpleModbusClient",false]],"timeout (pyhoff.modbus.simplemodbusclient attribute)":[[1,"pyhoff.modbus.SimpleModbusClient.timeout",false]],"unit_id (pyhoff.modbus.simplemodbusclient attribute)":[[1,"pyhoff.modbus.SimpleModbusClient.unit_id",false]],"wago_750_1405 (class in pyhoff.devices)":[[1,"pyhoff.devices.WAGO_750_1405",false]],"wago_750_352 (class in pyhoff.devices)":[[1,"pyhoff.devices.WAGO_750_352",false]],"wago_750_530 (class in pyhoff.devices)":[[1,"pyhoff.devices.WAGO_750_530",false]],"wago_750_600 (class in pyhoff.devices)":[[1,"pyhoff.devices.WAGO_750_600",false]],"wago_750_602 (class in pyhoff.devices)":[[1,"pyhoff.devices.WAGO_750_602",false]],"write_channel_word() (pyhoff.analogoutputterminal method)":[[1,"pyhoff.AnalogOutputTerminal.write_channel_word",false]],"write_channel_word() (pyhoff.devices.kl4002 method)":[[1,"pyhoff.devices.KL4002.write_channel_word",false]],"write_channel_word() (pyhoff.devices.kl4004 method)":[[1,"pyhoff.devices.KL4004.write_channel_word",false]],"write_channel_word() (pyhoff.devices.kl4132 method)":[[1,"pyhoff.devices.KL4132.write_channel_word",false]],"write_coil() (pyhoff.devices.kl2404 method)":[[1,"pyhoff.devices.KL2404.write_coil",false]],"write_coil() (pyhoff.devices.kl2408 method)":[[1,"pyhoff.devices.KL2408.write_coil",false]],"write_coil() (pyhoff.devices.kl2424 method)":[[1,"pyhoff.devices.KL2424.write_coil",false]],"write_coil() (pyhoff.devices.kl2634 method)":[[1,"pyhoff.devices.KL2634.write_coil",false]],"write_coil() (pyhoff.devices.wago_750_530 method)":[[1,"pyhoff.devices.WAGO_750_530.write_coil",false]],"write_coil() (pyhoff.digitaloutputterminal method)":[[1,"pyhoff.DigitalOutputTerminal.write_coil",false]],"write_multiple_coils() (pyhoff.modbus.simplemodbusclient method)":[[1,"pyhoff.modbus.SimpleModbusClient.write_multiple_coils",false]],"write_multiple_registers() (pyhoff.modbus.simplemodbusclient method)":[[1,"pyhoff.modbus.SimpleModbusClient.write_multiple_registers",false]],"write_single_coil() (pyhoff.modbus.simplemodbusclient method)":[[1,"pyhoff.modbus.SimpleModbusClient.write_single_coil",false]],"write_single_register() (pyhoff.modbus.simplemodbusclient method)":[[1,"pyhoff.modbus.SimpleModbusClient.write_single_register",false]]},"objects":{"pyhoff":[[1,0,1,"","AnalogInputTerminal"],[1,0,1,"","AnalogOutputTerminal"],[1,0,1,"","BusCoupler"],[1,0,1,"","BusTerminal"],[1,0,1,"","DigitalInputTerminal"],[1,0,1,"","DigitalOutputTerminal"]],"pyhoff.AnalogInputTerminal":[[1,1,1,"","parameters"],[1,2,1,"","read_channel_word"],[1,2,1,"","read_normalized"],[1,2,1,"","select"]],"pyhoff.AnalogOutputTerminal":[[1,1,1,"","parameters"],[1,2,1,"","read_channel_word"],[1,2,1,"","select"],[1,2,1,"","set_normalized"],[1,2,1,"","write_channel_word"]],"pyhoff.BusCoupler":[[1,2,1,"","add_bus_terminals"],[1,1,1,"","bus_terminals"],[1,2,1,"","get_error"],[1,1,1,"","modbus"],[1,2,1,"","select"]],"pyhoff.BusTerminal":[[1,1,1,"","bus_coupler"],[1,1,1,"id0","parameters"],[1,2,1,"","select"]],"pyhoff.DigitalInputTerminal":[[1,1,1,"","parameters"],[1,2,1,"","read_input"],[1,2,1,"","select"]],"pyhoff.DigitalOutputTerminal":[[1,1,1,"","parameters"],[1,2,1,"","read_coil"],[1,2,1,"","select"],[1,2,1,"","write_coil"]],"pyhoff.devices":[[1,0,1,"","BK9000"],[1,0,1,"","BK9050"],[1,0,1,"","BK9100"],[1,0,1,"","KL1104"],[1,0,1,"","KL1408"],[1,0,1,"","KL1512"],[1,0,1,"","KL2404"],[1,0,1,"","KL2408"],[1,0,1,"","KL2424"],[1,0,1,"","KL2634"],[1,0,1,"","KL3042"],[1,0,1,"","KL3054"],[1,0,1,"","KL3202"],[1,0,1,"","KL3214"],[1,0,1,"","KL4002"],[1,0,1,"","KL4004"],[1,0,1,"","KL4132"],[1,0,1,"","KL9010"],[1,0,1,"","KL9070"],[1,0,1,"","KL9080"],[1,0,1,"","KL9100"],[1,0,1,"","KL9150"],[1,0,1,"","KL9180"],[1,0,1,"","KL9184"],[1,0,1,"","KL9185"],[1,0,1,"","KL9186"],[1,0,1,"","KL9187"],[1,0,1,"","KL9188"],[1,0,1,"","KL9189"],[1,0,1,"","KL9190"],[1,0,1,"","KL9195"],[1,0,1,"","KL9200"],[1,0,1,"","KL9250"],[1,0,1,"","KL9290"],[1,0,1,"","KL9380"],[1,0,1,"","WAGO_750_1405"],[1,0,1,"","WAGO_750_352"],[1,0,1,"","WAGO_750_530"],[1,0,1,"","WAGO_750_600"],[1,0,1,"","WAGO_750_602"]],"pyhoff.devices.BK9000":[[1,2,1,"","add_bus_terminals"],[1,2,1,"","get_error"]],"pyhoff.devices.BK9050":[[1,2,1,"","add_bus_terminals"],[1,2,1,"","get_error"]],"pyhoff.devices.BK9100":[[1,2,1,"","add_bus_terminals"],[1,2,1,"","get_error"]],"pyhoff.devices.KL1104":[[1,1,1,"","parameters"],[1,2,1,"","read_input"]],"pyhoff.devices.KL1408":[[1,1,1,"","parameters"],[1,2,1,"","read_input"]],"pyhoff.devices.KL1512":[[1,1,1,"","parameters"],[1,2,1,"","read_channel_word"],[1,2,1,"","read_counter"],[1,2,1,"","read_delta"],[1,2,1,"","read_normalized"]],"pyhoff.devices.KL2404":[[1,1,1,"","parameters"],[1,2,1,"","read_coil"],[1,2,1,"","write_coil"]],"pyhoff.devices.KL2408":[[1,1,1,"","parameters"],[1,2,1,"","read_coil"],[1,2,1,"","write_coil"]],"pyhoff.devices.KL2424":[[1,1,1,"","parameters"],[1,2,1,"","read_coil"],[1,2,1,"","write_coil"]],"pyhoff.devices.KL2634":[[1,1,1,"","parameters"],[1,2,1,"","read_coil"],[1,2,1,"","write_coil"]],"pyhoff.devices.KL3042":[[1,1,1,"","parameters"],[1,2,1,"","read_channel_word"],[1,2,1,"","read_current"],[1,2,1,"","read_normalized"]],"pyhoff.devices.KL3054":[[1,1,1,"","parameters"],[1,2,1,"","read_channel_word"],[1,2,1,"","read_current"],[1,2,1,"","read_normalized"]],"pyhoff.devices.KL3202":[[1,1,1,"","parameters"],[1,2,1,"","read_channel_word"],[1,2,1,"","read_normalized"],[1,2,1,"","read_temperature"]],"pyhoff.devices.KL3214":[[1,1,1,"","parameters"],[1,2,1,"","read_channel_word"],[1,2,1,"","read_normalized"],[1,2,1,"","read_temperature"]],"pyhoff.devices.KL4002":[[1,1,1,"","parameters"],[1,2,1,"","read_channel_word"],[1,2,1,"","set_normalized"],[1,2,1,"","set_voltage"],[1,2,1,"","write_channel_word"]],"pyhoff.devices.KL4004":[[1,1,1,"","parameters"],[1,2,1,"","read_channel_word"],[1,2,1,"","set_normalized"],[1,2,1,"","set_voltage"],[1,2,1,"","write_channel_word"]],"pyhoff.devices.KL4132":[[1,1,1,"","parameters"],[1,2,1,"","read_channel_word"],[1,2,1,"","set_normalized"],[1,2,1,"","set_voltage"],[1,2,1,"","write_channel_word"]],"pyhoff.devices.KL9010":[[1,1,1,"","parameters"]],"pyhoff.devices.KL9070":[[1,1,1,"","parameters"]],"pyhoff.devices.KL9080":[[1,1,1,"","parameters"]],"pyhoff.devices.KL9100":[[1,1,1,"","parameters"]],"pyhoff.devices.KL9150":[[1,1,1,"","parameters"]],"pyhoff.devices.KL9180":[[1,1,1,"","parameters"]],"pyhoff.devices.KL9184":[[1,1,1,"","parameters"]],"pyhoff.devices.KL9185":[[1,1,1,"","parameters"]],"pyhoff.devices.KL9186":[[1,1,1,"","parameters"]],"pyhoff.devices.KL9187":[[1,1,1,"","parameters"]],"pyhoff.devices.KL9188":[[1,1,1,"","parameters"]],"pyhoff.devices.KL9189":[[1,1,1,"","parameters"]],"pyhoff.devices.KL9190":[[1,1,1,"","parameters"]],"pyhoff.devices.KL9195":[[1,1,1,"","parameters"]],"pyhoff.devices.KL9200":[[1,1,1,"","parameters"]],"pyhoff.devices.KL9250":[[1,1,1,"","parameters"]],"pyhoff.devices.KL9290":[[1,1,1,"","parameters"]],"pyhoff.devices.KL9380":[[1,1,1,"","parameters"]],"pyhoff.devices.WAGO_750_1405":[[1,1,1,"","parameters"],[1,2,1,"","read_input"]],"pyhoff.devices.WAGO_750_352":[[1,2,1,"","add_bus_terminals"],[1,2,1,"","get_error"]],"pyhoff.devices.WAGO_750_530":[[1,1,1,"","parameters"],[1,2,1,"","read_coil"],[1,2,1,"","write_coil"]],"pyhoff.devices.WAGO_750_600":[[1,1,1,"","parameters"]],"pyhoff.devices.WAGO_750_602":[[1,1,1,"","parameters"]],"pyhoff.modbus":[[1,0,1,"","SimpleModbusClient"]],"pyhoff.modbus.SimpleModbusClient":[[1,2,1,"","close"],[1,2,1,"","connect"],[1,1,1,"","debug"],[1,1,1,"","host"],[1,1,1,"","last_error"],[1,1,1,"","port"],[1,2,1,"","read_coil"],[1,2,1,"","read_coils"],[1,2,1,"","read_discrete_input"],[1,2,1,"","read_discrete_inputs"],[1,2,1,"","read_holding_registers"],[1,2,1,"","read_input_registers"],[1,2,1,"","receive_modbus_data"],[1,2,1,"","send_modbus_data"],[1,1,1,"","timeout"],[1,1,1,"","unit_id"],[1,2,1,"","write_multiple_coils"],[1,2,1,"","write_multiple_registers"],[1,2,1,"","write_single_coil"],[1,2,1,"","write_single_register"]]},"objnames":{"0":["py","class","Python class"],"1":["py","attribute","Python attribute"],"2":["py","method","Python method"]},"objtypes":{"0":"py:class","1":"py:attribute","2":"py:method"},"terms":{"0":[0,1,2],"0x01":1,"0x02":1,"0x03":1,"0x04":1,"0x05":1,"0x06":1,"0x0f":1,"0x10":1,"0xffff":1,"1":[0,1,2],"10":1,"12":1,"120":1,"125":1,"1405":1,"16":[0,1,2],"16x":1,"17":[0,1,2],"172":[0,1,2],"1f":[0,2],"2":[0,1,2],"20":1,"2000":1,"230":1,"24":1,"250":1,"2x":1,"3":1,"30":1,"352":1,"4":[0,1,2],"4x":1,"5":1,"500":1,"502":[0,1,2],"530":1,"6":1,"7":1,"750":1,"750_352":[0,2],"8":1,"8x":1,"99999":1,"A":1,"If":1,"It":[0,2],"On":[0,2],"The":[0,1,2],"These":1,"To":[0,2],"_bt":1,"absolut":1,"abstract":[0,2],"ac":1,"accord":1,"acquisit":[0,2],"activ":[0,2],"add":[0,1,2],"add_bus_termin":[0,1,2],"addit":[0,2],"address":1,"after":1,"all":[0,1,2],"allow":[0,2],"an":[0,1,2],"analog":[0,1,2],"analoginputtermin":1,"analogoutputtermin":1,"ani":1,"ar":[0,1,2],"arrang":[0,2],"autom":[0,2],"automat":1,"back":1,"base":[0,2],"beckhoff":[0,2],"between":1,"bin":[0,2],"bit":1,"bit_address":1,"bit_length":1,"bk":[0,1,2],"bk9000":[0,1,2],"bk9050":[0,1,2],"bk9100":[0,1,2],"bodi":1,"bool":1,"bound":1,"bu":[0,2],"bus_coupl":1,"bus_termin":1,"bus_terminal_typ":1,"bus_terminals_typ":1,"buscoupl":1,"busklemmen":[0,2],"busskoppl":[0,2],"bustermin":1,"byte":1,"c":[0,1,2],"call":1,"can":[0,2],"cd":[0,2],"chang":1,"channel":[0,1,2],"class":0,"classmethod":1,"client":1,"clone":[0,2],"close":1,"code":[0,1,2],"coil":1,"com":[0,2],"common":[0,2],"compact":[0,2],"complement":[0,2],"configur":1,"connect":[0,1,2],"contact":1,"contain":1,"correctli":[0,2],"correspond":1,"count":1,"counter":1,"coupler":[0,2],"creat":[0,2],"current":1,"data":[0,1,2],"dc":1,"deactiv":1,"debug":1,"decenc":[0,2],"default":[0,1,2],"depend":[0,2],"detail":[0,2],"dev":[0,2],"devic":[0,1,2],"dict":1,"differenti":1,"differentiel":1,"digit":[0,1,2],"digitalinputtermin":1,"digitalinputterminal16bit":1,"digitalinputterminal4bit":1,"digitalinputterminal8bit":1,"digitaloutputtermin":1,"digitaloutputterminal4bit":1,"digitaloutputterminal8bit":1,"dimmer":1,"directli":1,"discret":1,"distribut":1,"do1":1,"do8":1,"e":[0,2],"easi":[0,2],"empti":1,"end":1,"ensur":[0,2],"environ":[0,2],"error":1,"error_valu":1,"ethernet":[0,1,2],"everyth":[0,2],"exampl":[0,1,2],"except":1,"extend":[0,2],"f":[0,2],"fail":1,"fals":1,"file":[0,2],"filter":1,"first":[0,1,2],"float":1,"follow":[0,2],"frame":1,"from":[0,1,2],"function":1,"function_cod":1,"fuse":1,"galvan":1,"get":[0,1,2],"get_error":1,"git":[0,2],"github":[0,2],"given":1,"ha":[0,2],"handl":1,"hex":1,"hi":[0,2],"high":[0,2],"hold":1,"host":1,"hostnam":1,"http":[0,2],"i":[0,1,2],"i_b_addr":1,"i_w_addr":1,"id":1,"implement":1,"import":[0,1,2],"index":1,"industri":[0,2],"inform":1,"input":1,"input_bit_address":1,"input_bit_width":1,"input_word_address":1,"input_word_width":1,"instanc":1,"int":1,"interfac":1,"intern":1,"io":[0,1,2],"ip":[0,1,2],"isol":1,"issu":[0,2],"iter":1,"khz":1,"kl1104":[0,1,2],"kl1408":1,"kl1512":1,"kl2404":[0,1,2],"kl2408":1,"kl2424":[0,1,2],"kl2425":1,"kl2634":1,"kl3042":1,"kl3054":[0,1,2],"kl3202":[0,1,2],"kl3214":[0,1,2],"kl4002":[0,1,2],"kl4004":[0,1,2],"kl4132":1,"kl9010":[0,1,2],"kl9070":1,"kl9080":1,"kl9100":[0,1,2],"kl9150":1,"kl9180":1,"kl9184":1,"kl9185":1,"kl9186":1,"kl9187":1,"kl9188":[0,1,2],"kl9189":1,"kl9190":1,"kl9195":1,"kl9200":1,"kl9250":1,"kl9290":1,"kl9380":1,"last":1,"last_error":1,"level":[0,2],"lightweight":[0,2],"list":1,"local":[0,2],"m":[0,2],"ma":1,"machin":[0,2],"main":1,"manag":[0,2],"manual":1,"messag":1,"minim":[0,2],"mit":[0,2],"mixed_map":1,"modbu":[0,2],"monitor":[0,2],"most":[0,2],"multipl":1,"n":1,"need":1,"new_bus_termin":1,"nonannet":[0,2],"none":1,"normal":1,"number":1,"o":1,"o_b_addr":1,"o_w_addr":1,"object":1,"occur":1,"offset":1,"one":[0,2],"open":[0,2],"oper":1,"order":[0,1,2],"other":[0,2],"otherwis":1,"out":1,"output":[0,1,2],"output_bit_address":1,"output_bit_width":1,"output_word_address":1,"output_word_width":1,"over":[0,2],"packag":[0,2],"paramet":1,"parent":1,"pe":1,"physic":[0,2],"pip":[0,2],"pleas":[0,2],"plu":[0,2],"port":[0,1,2],"potenti":1,"print":[0,1,2],"project":[0,2],"provid":[0,1,2],"pt100":1,"pull":[0,2],"pyhoff":1,"pytest":[0,2],"python":[0,2],"rais":1,"rang":[0,1,2],"raw":1,"read":[0,1,2],"read_channel_word":1,"read_coil":1,"read_count":1,"read_curr":1,"read_delta":1,"read_discrete_input":1,"read_holding_regist":1,"read_input":1,"read_input_regist":1,"read_norm":1,"read_temperatur":[0,1,2],"receiv":1,"receive_modbus_data":1,"recommend":[0,2],"regist":1,"register_address":1,"repositori":[0,2],"request":[0,2],"requir":[0,2],"research":[0,2],"respons":1,"return":1,"run":[0,2],"same":1,"script":[0,2],"second":1,"see":[0,2],"select":[0,1,2],"send":1,"send_modbus_data":1,"separ":1,"server":1,"set":[0,1,2],"set_norm":1,"set_voltag":[0,1,2],"setup":[0,2],"shield":1,"show":[0,2],"simpl":1,"simplemodbuscli":1,"sinc":1,"singl":1,"socket":1,"sourc":[0,2],"specif":1,"specifi":1,"standard":[0,2],"start":[0,1,2],"state":1,"step":[0,2],"str":1,"string":1,"submit":[0,2],"succeed":1,"suppli":1,"support":[0,2],"t":[0,2],"tcp":[0,1,2],"temperatur":[0,1,2],"termin":[0,2],"terminal_numb":1,"test":[0,2],"th":1,"thi":[0,1,2],"time":1,"timeout":1,"transmiss":1,"transmit":1,"true":[0,1,2],"type":[0,1,2],"typevar":1,"typic":1,"unction_cod":1,"under":[0,2],"underli":1,"union":1,"unit_id":1,"up":[0,1,2],"us":[0,1,2],"usual":1,"v":[0,1,2],"valu":1,"venv":[0,2],"veri":[0,2],"virtual":[0,2],"voltag":1,"wago":[0,2],"wago_750_1405":1,"wago_750_352":1,"wago_750_530":1,"wago_750_600":1,"wago_750_602":1,"wait":1,"watchdog":1,"welcom":[0,2],"which":1,"wide":[0,2],"window":[0,2],"wire":1,"word":1,"word_length":1,"write":[0,1,2],"write_channel_word":1,"write_coil":[0,1,2],"write_multiple_coil":1,"write_multiple_regist":1,"write_single_coil":1,"write_single_regist":1,"x":1,"you":[0,2],"your":[0,2]},"titles":["Pyhoff","Classes","Pyhoff"],"titleterms":{"base":1,"beckhoff":1,"bu":1,"class":1,"content":0,"contribut":[0,2],"coupler":1,"descript":[0,2],"develop":[0,2],"featur":[0,2],"guid":[0,2],"instal":[0,2],"kei":[0,2],"licens":[0,2],"modbu":1,"pyhoff":[0,2],"scenario":[0,2],"termin":1,"usag":[0,2],"wago":1}})
\ No newline at end of file