Skip to content

Commit

Permalink
Generated stups with hsl20_4 Schnittstellen-SDK - untested
Browse files Browse the repository at this point in the history
Bumped min. version
  • Loading branch information
Sven Bunge committed Feb 4, 2024
1 parent 104c2ad commit a40796d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Gira Homeserver 4 Logicmodule to writes values via Modbus TCP.

## Developer Notes

Developed for the GIRA HomeServer 4.11! Could work with HS 4.7< - but without support.
Developed for the GIRA HomeServer 4.12! Could work with HS 4.7< - but without support.
Licensed under the LGPL to keep all copies & forks free!

:exclamation: **If you fork this project and distribute the module by your own CHANGE the Logikbaustein-ID because 14184 is only for this one and registered to @SvenBunge !!** :exclamation:
Expand Down
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<config>
<modules>
<module category="Datenaustausch" context="hs_modbusTCP_writer14185" id="14185" name="hs_modbusTCP_writer" sinternal_name="hs_modbusTCP_writer" external_name="ModbusTCP Writer (14185)" version="1.2">
<module category="Datenaustausch" context="hs_modbusTCP_writer14185" id="14185" name="hs_modbusTCP_writer" sinternal_name="hs_modbusTCP_writer" external_name="ModbusTCP Writer (14185)" version="1.3">
<inputs>
<input type="string" const_name="modbus_slave_ip" init_value="127.0.0.1">IP of modbus server</input>
<input type="number" const_name="port" init_value="502">Modbus TCP Port (default: 502)</input>
Expand Down
2 changes: 2 additions & 0 deletions doc/log14185.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ verwendet. Für Multi-Byte Repräsentationen wird FC16 benutzt. Der Typ `bool` w
FC05). (Falls das Gerät immer FC16 verwenden möchte, so bitte unter "Special Options" nachlesen!)
Andere Typen gibt es beim Schreiben nicht. (Input- und Discrete Register kann man bei Modbus nicht beschreiben)

Unterstützt wird HS Firmware 4.12 - es könnte ab 4.7 funktionieren. Vorher / Älter wird es definitiv **NICHT** klappen!

## Eingänge

| Nummer | Datentyp | Default | Beschreibung |
Expand Down
7 changes: 3 additions & 4 deletions src/14185_hs_modbusTCP_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
########################################################################################################
##** Code created by generator - DO NOT CHANGE! **##

class Hs_modbusTCP_writer14185(hsl20_3.BaseModule):
class Hs_modbusTCP_writer14185(hsl20_4.BaseModule):

def __init__(self, homeserver_context):
hsl20_3.BaseModule.__init__(self, homeserver_context, "hs_modbusTCP_writer14185")
hsl20_4.BaseModule.__init__(self, homeserver_context, "hs_modbusTCP_writer14185")
self.FRAMEWORK = self._get_framework()
self.LOGGER = self._get_logger(hsl20_3.LOGGING_NONE,())
self.LOGGER = self._get_logger(hsl20_4.LOGGING_NONE,())
self.PIN_I_MODBUS_SLAVE_IP=1
self.PIN_I_PORT=2
self.PIN_I_SLAVE_ID=3
Expand All @@ -43,7 +43,6 @@ def __init__(self, homeserver_context):
self.PIN_I_R4_STR_VALUE=23
self.PIN_O_WRITE_COUNT=1
self.PIN_O_ERROR_COUNT=2
self.FRAMEWORK._run_in_context_thread(self.on_init)

########################################################################################################
#### Own written code can be placed after this commentblock . Do not change or delete commentblock! ####
Expand Down

0 comments on commit a40796d

Please sign in to comment.