Code Monkey home page Code Monkey logo

iobroker.s7's Introduction

Logo

iobroker.s7

Number of Installations Number of Installations NPM version

Test and Release Translation status Downloads

English

The Siemens S7 adapter is based on Snap7, with Snap7 when the S7 adapter is also installed, and the actual S7 communication between ioBroker and the S7 is organized via TCP / IP.

It is therefore necessary that the S7 has an Ethernet interface (integrated in the CPU or as a separate CP) and can communicate via TCP / IP with the hardware on which ioBroker is running.

It is assumed that the user has the necessary knowledge of TCP / IP communication and is able to configure and program the S7 accordingly using Step7. Proficient use of a PC and various operating systems is also a prerequisite. These requirements are certainly not a challenge for someone who is considering communication between ioBroker and an S7.

The format of the addresses for Inputs, Outputs or markers is "X.Y", where X is byte offset and Y is the bit offset in the byte. The format of the addresses for DBs is DBZ +X.Y, where z is number of DB, like DB34 +12.0

Installation

On some Linux systems, the build essentials must be installed to get this adapter work. You can install it with:

sudo apt-get update
sudo apt-get install build-essential

Under windows is Visual Studio 2013 (Community Edition is enough) or later is required to get it running. Python 2.x is required too. Not 3.x.

Time offset

You can use 4 time offset modes for S7TIME:

  • Local: the time value will be not modified
  • UTC: local time offset will be added to received time. E.g., for Germany: -60 Minutes in winter and -120 Minutes in summer.
  • Set offset (use summer/winter): Given offset in minutes will be subtracted from received time and in summer additionally, 60 minutes will be subtracted.
  • Set offset (no summer/winter): Just the given offset in minutes will be subtracted from received time. No matter in winter or in summer.

S5TIME

S5 decoded as described here: http://www.plccenter.cn/Siemens_Step7/Format_des_Datentyps_S5TIME_Zeitdauer.htm

Tia Portal

To use ioBroker with Tia Portal, ou need to disable the optimisation of blocks:

Right-click on the data block and then on 'Properties'. Under attributes, you will find the option "Optimized block access". Take off the hook. After recompiling, the addresses are displayed in the data block ("Offset" column).

You can read about it here too.

More information

More description could be found here.

Deutsch

German documentation

Changelog

1.4.3 (2024-02-17)

  • (Bettman66) Fix REAL number parsing error

1.4.2 (2023-12-04)

  • IMPORTANT: Node.js 16+ is required to run this version!
  • (Apollon77) Update dependencies to make adapter work with Node.js 20+

1.3.15 (2022-12-23)

  • (bluefox) Updated GUI packages
  • (bluefox) Added ukrainian translation

1.3.14 (2022-09-27)

  • (bluefox) Updated GUI packages

1.3.13 (2022-08-02)

  • (bluefox) Added preparations for ioBroker cloud
  • (bluefox) Migrate GUI tu muiV5

1.3.12 (2022-04-03)

  • (jogibear9988) Removed duplicated code
  • (jogibear9988) Implemented S5TIME support (must be tested on a real device)

1.3.11 (2022-02-13)

  • (bluefox) Updated releaser

1.3.10 (2021-11-13)

  • (Apollon77) Better handle invalid entries with empty Address

1.3.9 (2021-11-09)

  • (Apollon77) make sure strings work correctly
  • (Apollon77) Fix several crash cases (IOBROKER-S7-17, IOBROKER-S7-19, IOBROKER-S7-1C, IOBROKER-S7-18)

1.3.7 (2021-11-08)

  • (bluefox) Corrected type of "write" attribute

1.3.6 (2021-07-31)

  • (bluefox) Corrected import of last line

1.3.5 (2021-07-07)

  • (bluefox) Change edit mode behaviour

1.3.3 (2021-06-28)

  • (bluefox) Corrected the error in GUI

1.3.2 (2021-06-23)

  • (Apollon77) Add adapter tier for js-controller 3.3

1.3.1 (2021-06-23)

  • (bluefox) Corrected the type of states

1.3.0 (2021-06-17)

  • (bluefox) New configuration page on react

1.2.5 (2021-04-17)

  • (Apollon77) Fix pot crash case (Sentry IOBROKER-S7-16)

1.2.4 (2021-02-22)

  • (Apollon77) Make sure data are of correct type (Sentry IOBROKER-S7-K)

1.2.3 (2021-02-17)

  • (Apollon77) null values will no longer be tried to send but give error message (Sentry IOBROKER-S7-8)
  • (Apollon77) Prevent some more crash cases (IOBROKER-S7-1, IOBROKER-S7-9, IOBROKER-S7-E, IOBROKER-S7-F, IOBROKER-S7-G)

1.2.2 (2021-01-26)

  • (Apollon77) Prevent warnings in js-controller 3.2

1.2.1 (2021-01-25)

  • (Apollon77) fix info.connection state

1.2.0 (2021-01-25)

  • (Apollon77) Prevent error case (Sentry IOBROKER-S7-4)
  • (Apollon77) js-controller 2.0 is now required at minimum

1.1.10 (2021-01-24)

  • (smiling_Jack) Bugfix in the Admin

1.1.9 (2020-08-02)

  • (Apollon77) Fix object access issue
  • (Apollon77) update node-snap7 library

1.1.8 (2020-05-05)

  • (Steff42) Make sure objects ids/names are strings

1.1.6 (2019.12.27)

  • (Apollon77) reconnection handling on timeouts optimized

1.1.4 (2018.07.10)

  • (Apollon77) Support for nodejs 10 on Windows

1.1.3 (2018.01.19)

  • (bluefox) The time offset was added

1.1.1 (2018.01.05)

  • (Apollon77) Fix LOGO! support

1.1.0 (2018.01.03)

  • (bluefox) Fix strings
  • (bluefox) fix names if they have more than one space

1.0.6 (2017.12.18)

  • (bluefox) Decode error codes

1.0.5 (2017.12.17)

  • (bluefox) Error by the DB import is fixed

1.0.4 (2017.11.30)

  • (bluefox) Fix read of DB (range error)

1.0.2 (2017.10.30)

  • (Apollon77) Enhance object data to allow writing if available
  • (bluefox) Add export from Graphpic

1.0.1 (2017.10.24)

  • (bluefox) Detect DB and db in addresses

1.0.0 (2017.09.25)

  • (bluefox) Activate save button if something was deleted

0.3.2 (2017.09.20)

  • (bluefox) Fix DB bit offset bug if starting not from 0

0.3.0 (2017.07.12)

  • (Apollon77) Upgrade node-snap7 library to current version

0.2.6 (2017.05.19)

  • (Apollon77) Fix history handling

0.2.5 (2016.12.09)

  • (bluefox) Fix button text: Import

0.2.4 (2015.10.29)

  • (bluefox) add comment about python
  • (bluefox) implement string read and write
  • (bluefox) implement auto-increment of addresses.
  • (bluefox) fix length
  • (bluefox) implement export import from/to CSV
  • (bluefox) fix small errors in config
  • (bluefox) implement import/export for inputs and outputs too.
  • (bluefox) add translation

0.2.3 (2015.09.24)

  • (bluefox) added support of Logo!

0.2.2 (2015.09.11)

  • (bluefox) add S7time
  • (bluefox) support rooms and roles
  • (bluefox) it works
  • (bluefox) update packets

0.2.1 (2015.09.09)

  • (bluefox) fix creation of objects

0.2.0 (2015.08.15)

  • (bluefox) improve performance and enable DB2 3.9 addresses.

0.1.8 (2015.08.10)

  • (smiling_Jack) Bugfix send info states
  • (smiling_Jack) Remove unneeded console.log

0.1.7 (2015.08.06)

  • (smiling_Jack) Bugfix send to SPS
  • (smiling_Jack) Bugfix reconnect on connection lost

0.1.6 (2015.07.31)

  • (smiling_Jack) Bugfix typo (Adress, Merkers)

0.1.5 (2015.07.29)

  • (smiling_Jack) Bugfix translation Admin

0.1.4 (2015.07.28)

  • (smiling_Jack) Add S5Time as Type
  • (smiling_Jack) Bugfix History
  • (smiling_Jack) Bugfix (fast value change)

0.1.3 (2015.06.04)

  • (bluefox) translate admin
  • (bluefox) remove jshint warnings
  • (bluefox) add info.connected and rename info.connection to info.state

0.1.2

  • Bugfix startup
  • Bugfix add states

0.1.1

  • change import options

0.1.0

  • redesign Admin UI
  • add write as Pulse
  • Bugfix delete unused objects

0.0.8

  • Bugfix start file
  • Bugfix DB import
  • Working on Admin style
  • Add Units

0.0.6

  • Bugfix start file

License

The MIT License (MIT)

Copyright (c) 2014-2024 bluefox [email protected],

Copyright (c) 2014-2016 smiling_Jack [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

iobroker.s7's People

Contributors

apollon77 avatar arteck avatar bettman66 avatar crycode-de avatar dependabot[bot] avatar dilesoft avatar eistee82 avatar germanbluefox avatar jogibear9988 avatar lgtm-migrator avatar maag-da avatar mcm1957 avatar schmakus avatar smiling-jack avatar sneak-l8 avatar steff42 avatar unclesamswiss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iobroker.s7's Issues

S7 Adapter empfängt falsche Datentypen

Es wird eine Warnmeldung ausgeben das die falschen Datentypen empfangen werden. Siehe Screenshots.
Wert stimmt auch nicht überein. Variable 'gateGardenIsClosed' sollte im ioBroker TRUE sein.

Parametrierung ist meiner Meinung nach korrekt.

PLC:
image

Objects:
image

Instance config:
image

Log:
image

Update stable version in repo to 1.1.7

Think about update stable version to 1.1.7

Version: stable=1.1.4 (607 days old) => latest=1.1.7 (18 days old)
Installs: stable=526 (72.15%), latest=105 (14.4%), total=729
Click to edit

falsche Werte von der Logo!

Describe the bug
VDx von der Logo! werden nicht richtig auf die Objekte in ioBroker übertragen
Bsp. VD24 -> Wert steht auf VD28
V1.2.5, Logo 8.3
1620377832310-5
1620377832497-4
1620377899962-6

Faktor für Objekte in der Akapterkonfiguration

Ist es möglich einen Faktor für die Objekte in der Adapterkonfiguration einzufügen (genauso wie es bereits im Modbus-Adapter bereits umgesetzt ist). Ich habe bis jetzt keine möglichkeit gefunden die gelesenen Werte (z.B. Klimadaten) zu skalieren.

Bump node-snap7 version

Since version 0.4.0 node-snap7 supports a set of platforms and node versions as prebuilt binaries that are automatically downloaded on installation. Compilation is now the fallback. Maybe this is interesting for you.

Connect the IOBroker with Siemens Logo - Documentation

I am new in the forum and I have the following issue:
The IO Broker works fine in my smart home project. Now I would like to add the S7 Logo (V7) to the IOBroker, but I have no change to connect both components. The S7 Logo adapter works fine (green LED) but I cannot send data from the IO Broker to the Logo.
Perhaps somebody have a detail documentation for this connection ?

I try to find something in this forum, but the documention is only available for the S7-300 with DBs.

Thanks for your help

Nach Update JS Controller auf v3.3 wird für alle Objekte eine Warnung "is missing the required property "common.type"" angemeckert

Hallo,
hab jetze den JS controller von 3.2 auf 3.3 upgedatet
Jetzt bekomm ich auf alle objekte eine Warnung (Instanz läut aber).
z.B.
(3608) Object of state "s7.0.DBs.DB1000.StromWLanRel_1" is missing the required property "common.type"

dann hab ich alle Objekte rausgelöscht und den Adapter neu gestartet.
Dann wieder die Objekte (Merker und DB´s) importiert.

Das hat leider auch nicht geholfen.

Wie bekomm ich diese Flut an Warnungen weg?

Danke vorab für eure Hilfe

Logo 8

Hey,
Funktioniert dein Adapter auch mit der Logo8,
wen ja könntest du mal eine Erklärung veröffentlichen?

Please check ioBroker.s7 with js-controller 2.0

Hi,

the new js-controller 2.0 will come into latest repository in the next days and we want to make sure that all adapters are working well. We already did a 2 weeks Beta test and so some adapter were aleady checked and some needed slight adjustments.

You can find more information in ioBroker/ioBroker.js-controller#482 and in the ioBroker Forum. If you have more technical questions please write in the referenced issue or in the Developer thread please. General questions are best in the genral thread.

Please update your systems to js-controller 2.0 and check your adapter.

Please close this issue once you have checked your adapter or received successfull reports from users.

Thank you very much for your support. Please contact us in the other Threads or Forum on any question.

String from IoB to S7 does not work

Transfer of string from IoB to S7 does not work with following error:

s7.0 | 2021-11-07 12:18:08.504 | error | (19312) Exception-Code: ERR_INVALID_ARG_TYPE: The "size" argument must be of type number. Received type string ('202')
s7.0 | 2021-11-07 12:18:08.503 | error | (19312) TypeError [ERR_INVALID_ARG_TYPE]: The "size" argument must be of type number. Received type string ('202') at Function.alloc (buffer.js:370:3) at send (/opt/iobroker/node_modules/iobro
s7.0 | 2021-11-07 12:18:08.502 | error | (19312) uncaught exception: The "size" argument must be of type number. Received type string ('202')

S7 1500 with db element with STRING[20]

I think the error can be located at this line

buf = Buffer.alloc(data.native.len + 2);
because there could be an api change in nodejs. There was a known error in PLCHome NodeRed Adapter.

PLCHome/node-red-contrib-ads#19 (comment)

old: var stringbuf = new Buffer(val.toString().slice(0,convert.length-1) + '\0', 'binary')
wrong: var stringbuf = Buffer.alloc(val.toString().slice(0,convert.length-1) + '\0', 'binary')
new: var stringbuf = Buffer.from(val.toString().slice(0,convert.length-1) + '\0', 'binary')

DB Import nicht möglich

Beim Versuch eine .csv Datei mit den Daten meines DBs in den Adapter zu importieren kommt nur kurz die Meldung "data updated".
Es wird nichts importiert, Fehlermeldung erscheint keine.

Alle Adapter sind aktuell (Beta)
Node 12.16.2
NPM 6.14

ReferenceError: db is not defined

Sentry Issue: IOBROKER-S7-17

ReferenceError: db is not defined
  File "/opt/iobroker/node_modules/iobroker.s7/main.js", line 1458, in null.<anonymous>
    dbID:           db.id,
  File "/opt/iobroker/node_modules/iobroker.s7/node_modules/async/dist/async.js", line 271, in wrapper
    callFn.apply(this, args);
  File "/opt/iobroker/node_modules/iobroker.s7/node_modules/async/dist/async.js", line 498, in iteratorCallback
    callback(null);
  File "/opt/iobroker/node_modules/iobroker.s7/node_modules/async/dist/async.js", line 324, in null.<anonymous>
    callFn.apply(this, args);
  File "/opt/iobroker/node_modules/iobroker.s7/main.js", line 1431, in null.<anonymous>
    callback(null, res);

S7 1200 Poll error Last-Error Info: 36700160: CLI

Hallo,

habe einen Fehler bei dem Zugriff auf eine S7 1212 DC/DC7DC / 6ES7 212-1AE40-0XB0 / Firmware 4.3.1

Das normale Verbinden klappt und die Anzeige wird grün, aber wenn ich Eingangsadressen anlege (z.B. 0.0), wird sie nur noch gelb und im Log erscheint folgende Fehlermeldung:

s7.0 2020-12-07 08:26:38.937 error (3537) try reconnection: Disconnect successfull: true
s7.0 2020-12-07 08:26:38.935 warn (3537) Poll error Last-Error Info: 36700160: CLI : function refused by CPU (Unknown error)
s7.0 2020-12-07 08:26:38.935 warn (3537) Poll error count: 29 code: 0x2300000 (errCliFunctionRefused)
s7.0 2020-12-07 08:26:38.934 warn (3537) EBRead error[0 - 1]: code: 0x2300000 (errCliFunctionRefused)
s7.0 2020-12-07 08:26:38.923 info (3537) Successfully connected in S7 mode
s7.0 2020-12-07 08:26:38.867 info (3537) Connect in S7 mode to 0 / 1

Kann es sein, dass es was mit der Firmware Version zu tun hat? Oder hat Jemand einen anderen Lösungsvorschlag?
Die Objekte werden auch nicht angelegt - nur der Channel

Danke Euch im Voraus!

Gruß
Lhoem

Not work under Node.js v12.16.2

After I updated Node.js to 12.16.2, the adapter isn't working anymore. Any ideas how to fix this? I realy need this adapter again, otherwise I hav to go back to 10.x.x.

1.3.3: DB Konfiguration (zu) langsam

Hallo,

wenn man unter "DBs" einen einzelnen Datenpunkt über "+" hinzufügen möchte, wird das System wahnsinnig langsam, die einzelnen Felder zu befüllen wird zu einer echten Geduldsprobe. Bei der Eingabe der DB-Adresse passiert es hin und wieder sogar, dass das Dialogfenster vom Adapter einfach weiß wird und man einen Refresh machen muss. In der Version mit der alten GUI hatte ich die Probleme nicht.

Ich habe 671 Datenpunkte in 7 DBs angelegt, die Kommunikation funktioniert einwandfrei.

Im TSV Import-/Export-Fenster muss man jetzt die Adresse beginnend mit "DB..." eingeben, also z.B. DB80 8, bisher hat als Adresse "80 8" gelangt, da das Ganze ja im DB Dialog passiert ist. Kann man jetzt Eingänge, Ausgänge, Merker, DBs im selben TSV-Dialogfeld (gemischt) importieren? Dann macht es Sinn, die Adressen mit Kennung (DB, E, A, M) einzugeben. Wenn geplant ist, das so zu lassen, muss ich meine TSV-Quelle (Excel) entsprechend ändern, so dass das führende "DB" ergänzt wird.

Was kann ich tun, um an der Behebung der langsamen Eingabe mitzuwirken?

nach dem Start des Adapters funktioniert nur eine Abfrage an der Siemens LOGO 0BA8

wenn ich versuche mit dem Adapter die LOGO 0BA8 abzufragen oder zu steuern funktioniert das ganze einmal.
Nach dem automtaischen Neustart der Instanz wieder 1x Funktion danach 6x Fehlfunktion und Neustart des Adapters

s7.1 | 2021-10-25 08:31:00.212 | warn | Poll error count: 1 code: 0x90068
s7.1 | 2021-10-25 08:31:00.211 | warn | EBRead error[0 - 1]: code: 0x90068

s7.1 | 2021-10-25 08:30:58.999 | info | Successfully connected in LOGO! mode
s7.1 | 2021-10-25 08:30:58.790 | info | Connect in LOGO! mode to 512 / 512

s7.1 | 2021-10-25 08:30:53.790 | warn | MBRead error[2 - 3]: code: 0x90020
s7.1 | 2021-10-25 08:30:53.789 | warn | ABRead error[0 - 1]: code: 0x90020
s7.1 | 2021-10-25 08:30:53.788 | error | try reconnection: Disconnect successful: true
s7.1 | 2021-10-25 08:30:53.787 | warn | Poll error Last-Error Info: 589856: ISO : An error occurred during send TCP : Other Socket error (32)
s7.1 | 2021-10-25 08:30:53.787 | warn | Poll error count: 6 code: 0x90020
s7.1 | 2021-10-25 08:30:53.786 | warn | EBRead error[0 - 1]: code: 0x90020
s7.1 | 2021-10-25 08:30:52.786 | warn | MBRead error[2 - 3]: code: 0x90020
s7.1 | 2021-10-25 08:30:52.785 | warn | ABRead error[0 - 1]: code: 0x90020
s7.1 | 2021-10-25 08:30:52.784 | warn | Poll error Last-Error Info: 589856: ISO : An error occurred during send TCP : Other Socket error (32)
s7.1 | 2021-10-25 08:30:52.783 | warn | Poll error count: 5 code: 0x90020
s7.1 | 2021-10-25 08:30:52.782 | warn | EBRead error[0 - 1]: code: 0x90020
s7.1 | 2021-10-25 08:30:51.782 | warn | MBRead error[2 - 3]: code: 0x90020
s7.1 | 2021-10-25 08:30:51.782 | warn | ABRead error[0 - 1]: code: 0x90020
s7.1 | 2021-10-25 08:30:51.781 | warn | Poll error Last-Error Info: 589856: ISO : An error occurred during send TCP : Other Socket error (32)
s7.1 | 2021-10-25 08:30:51.780 | warn | Poll error count: 4 code: 0x90020
s7.1 | 2021-10-25 08:30:51.779 | warn | EBRead error[0 - 1]: code: 0x90020
s7.1 | 2021-10-25 08:30:50.779 | warn | MBRead error[2 - 3]: code: 0x90020
s7.1 | 2021-10-25 08:30:50.778 | warn | ABRead error[0 - 1]: code: 0x90020
s7.1 | 2021-10-25 08:30:50.778 | warn | Poll error Last-Error Info: 589856: ISO : An error occurred during send TCP : Other Socket error (32)
s7.1 | 2021-10-25 08:30:50.777 | warn | Poll error count: 3 code: 0x90020
s7.1 | 2021-10-25 08:30:50.776 | warn | EBRead error[0 - 1]: code: 0x90020
s7.1 | 2021-10-25 08:30:49.776 | warn | MBRead error[2 - 3]: code: 0x90020
s7.1 | 2021-10-25 08:30:49.775 | warn | ABRead error[0 - 1]: code: 0x90020
s7.1 | 2021-10-25 08:30:49.774 | warn | Poll error Last-Error Info: 589856: ISO : An error occurred during send TCP : Other Socket error (32)
s7.1 | 2021-10-25 08:30:49.774 | warn | Poll error count: 2 code: 0x90020
s7.1 | 2021-10-25 08:30:49.773 | warn | EBRead error[0 - 1]: code: 0x90020
s7.1 | 2021-10-25 08:30:48.773 | warn | MBRead error[2 - 3]: code: 0x90020
s7.1 | 2021-10-25 08:30:48.772 | warn | ABRead error[0 - 1]: code: 0x90020
s7.1 | 2021-10-25 08:30:48.771 | warn | Poll error Last-Error Info: 589856: ISO : An error occurred during send TCP : Other Socket error (32)
s7.1 | 2021-10-25 08:30:48.770 | warn | Poll error count: 1 code: 0x90068
s7.1 | 2021-10-25 08:30:48.769 | warn | EBRead error[0 - 1]: code: 0x90068
s7.1 | 2021-10-25 08:30:47.549 | info | Successfully connected in LOGO! mode
s7.1 | 2021-10-25 08:30:47.340 | info | Connect in LOGO! mode to 512 / 512

Seit JSC Update Warnung "is missing the required property "common.type"

Seit dem Update auf den JSC 3.3.1 wird mein Logfile mit Warnungen gefüllt.

z.B.:

(3601) Object of state "s7.0.DBs.DB125.Temperatur_Puffer_Oben_SPS" is missing the required property "common.type"

S7-Adapter

In den RAW-Eigenschaften der Variable steht das hier:
{ "from": "system.adapter.s7.0", "user": "system.user.admin", "ts": 1619768929158, "common": { "name": "", "role": "value.temperature", "unit": "", "read": true, "write": false }, "native": { "cat": "db", "type": "REAL", "db": "DB125", "len": "", "dbId": 125, "address": 126, "offsetBit": 0, "rw": false, "wp": false }, "acl": { "object": 1636, "owner": "system.user.admin", "ownerGroup": "system.group.administrator", "state": 1636 }, "_id": "s7.0.DBs.DB125.Temperatur_Puffer_Oben_Kessel", "type": "state" }

Könnte es sein, dass hier die Eigenschaft "type" fehlt?

Versions:

  • Adapter version: 1.2.5
  • JS-Controller version: 3.3.1
  • Node version: 12.22.1
  • Operating system: Ubuntu 18.04.2 LTS

Vielen Dank

Problem beim Ansprechen von Netzwerk-Eingängen Siemens Logo 8

Hallo,
habe ein Problem mit dem ansprechen von Netzwerk Eingängen. Sobald ich die Adresse einfüge funktioniert das Adapter nicht mehr bzw. die Abfragen von VM Adressen nicht mehr. Habe den Fehlercode Angefügt:

host.raspberrypi 2018-10-31 21:22:01.511 error instance system.adapter.s7.0 terminated with code 0 (OK)
host.raspberrypi 2018-10-31 21:22:01.510 error Caught by controller[0]: at Decoder.add (/home/pi/node_modules/socket.io-parser/index.js:246:12)
host.raspberrypi 2018-10-31 21:22:01.510 error Caught by controller[0]: at Decoder.Emitter.emit (/home/pi/node_modules/component-emitter/index.js:134:20)
host.raspberrypi 2018-10-31 21:22:01.509 error Caught by controller[0]: at Decoder. (/home/pi/node_modules/component-bind/index.js:21:15)
host.raspberrypi 2018-10-31 21:22:01.509 error Caught by controller[0]: at Manager.ondecoded (/home/pi/node_modules/socket.io-client/lib/manager.js:332:8)
host.raspberrypi 2018-10-31 21:22:01.508 error Caught by controller[0]: at Manager.Emitter.emit (/home/pi/node_modules/socket.io-client/node_modules/component-emitter/index.js:133:20)
host.raspberrypi 2018-10-31 21:22:01.507 error Caught by controller[0]: at Manager. (/home/pi/node_modules/component-bind/index.js:21:15)
host.raspberrypi 2018-10-31 21:22:01.506 error Caught by controller[0]: at Socket.onpacket (/home/pi/node_modules/socket.io-client/lib/socket.js:236:12)
host.raspberrypi 2018-10-31 21:22:01.506 error Caught by controller[0]: at Socket.onack (/home/pi/node_modules/socket.io-client/lib/socket.js:312:9)
host.raspberrypi 2018-10-31 21:22:01.505 error Caught by controller[0]: at Socket. (/home/pi/node_modules/iobroker.s7/main.js:159:21)
host.raspberrypi 2018-10-31 21:22:01.505 error Caught by controller[0]: at prepareWrite (/home/pi/node_modules/iobroker.s7/main.js:175:20)
host.raspberrypi 2018-10-31 21:22:01.503 error Caught by controller[0]: TypeError: Cannot read property 'native' of null
s7.0 2018-10-31 21:22:00.949 error TypeError: Cannot read property 'native' of null at prepareWrite (/home/pi/node_modules/iobroker.s7/main.js:175:20) at Socket. (/home/pi/node_modules/iobroker.s7/main.js:159:21)
s7.0 2018-10-31 21:22:00.947 error uncaught exception: Cannot read property 'native' of null

Reconnect several times a day

Please see also: https://forum.iobroker.net/viewtopic.php?f=20&t=20150

I use the Siemens Simatic S7 Adapter with three Logo! 8.FS4. Everything is fine, I use the current version 1.1.4

But at least one of the instances is loosing the connection one time per day.

  1. First, there are several warnings (ABRead error[0 - 1]: code: 0x90068; Poll error count: 1 code: 0x90068; DBRead error[DB 0:0 - 1]: code: 0x90020)
  2. Then, an error (try reconnection)
    After the automatic reconnect, everything is fine till to the next failure.

The log is:
s7.1 2018-12-30 18:15:47.929 info Successfully connected in LOGO! mode
s7.1 2018-12-30 18:15:47.924 info Connect in LOGO! mode to 512 / 512
s7.1 2018-12-30 18:14:47.924 warn DBRead error[DB 0:0 - 1]: code: 0x90020
s7.1 2018-12-30 18:14:47.924 error try reconnection
s7.1 2018-12-30 18:14:47.924 warn Poll error count: 6 code: 0x90020
s7.1 2018-12-30 18:14:47.924 warn ABRead error[0 - 1]: code: 0x90020
s7.1 2018-12-30 18:14:45.921 warn DBRead error[DB 0:0 - 1]: code: 0x90020
s7.1 2018-12-30 18:14:45.921 warn Poll error count: 5 code: 0x90020
s7.1 2018-12-30 18:14:45.921 warn ABRead error[0 - 1]: code: 0x90020
s7.1 2018-12-30 18:14:43.916 warn DBRead error[DB 0:0 - 1]: code: 0x90020
s7.1 2018-12-30 18:14:43.916 warn Poll error count: 4 code: 0x90020
s7.1 2018-12-30 18:14:43.916 warn ABRead error[0 - 1]: code: 0x90020
s7.1 2018-12-30 18:14:41.912 warn DBRead error[DB 0:0 - 1]: code: 0x90020
s7.1 2018-12-30 18:14:41.912 warn Poll error count: 3 code: 0x90020
s7.1 2018-12-30 18:14:41.912 warn ABRead error[0 - 1]: code: 0x90020
s7.1 2018-12-30 18:14:39.910 warn DBRead error[DB 0:0 - 1]: code: 0x90020
s7.1 2018-12-30 18:14:39.910 warn Poll error count: 2 code: 0x90020
s7.1 2018-12-30 18:14:39.909 warn ABRead error[0 - 1]: code: 0x90020
s7.1 2018-12-30 18:14:37.909 warn DBRead error[DB 0:0 - 1]: code: 0x90020
s7.1 2018-12-30 18:14:37.909 warn Poll error count: 1 code: 0x90068
s7.1 2018-12-30 18:14:37.908 warn ABRead error[0 - 1]: code: 0x90068

Settings on the adapter are:

  • Aufrunden Real auf: 2
  • Poll delay: 2000 ms
  • Reconnectzeit: 60000ms
  • Pulsetime: 2000 ms

Compatibility check and testing for Node.js 14 and 16

Dear Adapter develop,

Node.js 14 is now available for a year and Node.js 16 was release just some days ago and will become LTS by October 2021. We plan to update the ioBroker Node.js recommendation (currently 12.x) to 14.x later this year.

Please check your adapter with Node.js 14 especially, and ideally also directly with Node.js 16

Please add both versions to the adapter testing which is executed on commits.

If your adapter requires a certain minimum version of Node.js please set the 'engine' setting in package.json accordingly! Please also do this if the adapter is not able to work in certain Node.js versions, so that ioBroker can prevent users from installing te adapter if not compatible!

On questions please talk to us at ioBroker/ioBroker.js-controller#1138

Please close the issue after you checked it.

Thank you very much for your support!

LOGO 0BA4 möglich?

Besteht die Möglichkeit, auch ältere Siemens LOGO`s die noch über eine Serielle Schnittstelle verfügen ebenfalls anzusprechen?

Trotz serieller Schnittstelle, hängt die LOGO via com2Lan Server im Netzwerk und ist über eine COM Umlenkung erreichbar. Könnte man ggf. die IP Adresse des COM Server ansprechen, der dann die Umlenkung zum Seriell Port Herstellt, damit der Adapter Zugriff auf die Logo bekommt?

S5Time from IoB to S7 does not work

Transfer of s5time from IoB to S7 does not work and no error messages. The error has existed for a longer time.
Reading is no problem and works perfect.

PLC
image

Adapter
image

Object
image

Read from DB
image

if i change the value from 3600 to 1800 nothing happens to s7 but the adapter sets the value to 360?!
image

Logfile with Silly Mode
image

Versions:

  • S7 Adapter with Release v1.3.9
  • JS-Controller version: 3.3.18
  • Node version: v12.22.7
  • Operating system: Docker
  • PLC: S7 1500 (1515)

Update stable version in repo to 1.1.7

Think about update stable version to 1.1.7

Version: stable=1.1.4 (606 days old) => latest=1.1.7 (17 days old)
Installs: stable=526 (72.15%), latest=105 (14.4%), total=729
Click to edit

S7 1200 connection problem

Hello.
I just find a mistake in the code (main.js)
main.acp.rack = parseInt(main.acp.rack, 10) || 0;
main.acp.slot = parseInt(main.acp.slot, 10) || 2;
In case of S7-1200 PLC you have to use rack and slot number 0 but it is not possible to set up in the current version, so I modified and it is working now.
main.acp.rack = parseInt(main.acp.rack, 10) || 0;
main.acp.slot = parseInt(main.acp.slot, 10) || 0;
BR.

Release script: Action required

Hi, it looks like you are using @alcalzone/release-script to manage your releases.
When updating to the latest version, you need to remove the following line from your .github/workflows/test-and-release.yml if you want the releases to keep working:

  deploy:
    # Trigger this step only when a commit on master is tagged with a version number
    if: |
      contains(github.event.head_commit.message, '[skip ci]') == false &&
      github.event_name == 'push' &&
-     github.event.base_ref == 'refs/heads/master' &&
      startsWith(github.ref, 'refs/tags/v')

It may also look like this one:

  deploy:
    # Trigger this step only when a commit on master is tagged with a version number
    if: |
      contains(github.event.head_commit.message, '[skip ci]') == false &&
      github.event_name == 'push' &&
-     github.event.base_ref == 'refs/heads/main' &&
      startsWith(github.ref, 'refs/tags/v')

Update stable version in repo to 1.1.7

Think about update stable version to 1.1.7

Version: stable=1.1.4 (606 days old) => latest=1.1.7 (17 days old)
Installs: stable=526 (72.15%), latest=105 (14.4%), total=729
Click to edit

Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/ioBroker/ioBroker.s7

  • [E112] extIcon must be the same as an icon but with github path
  • [E605] No actual year found in copyright. Please add "Copyright (c) 2014-2022 smiling_Jack [email protected]" at the end of README.md
  • [E701] No actual year found in LICENSE. Please add "Copyright (c) 2014-2022 smiling_Jack [email protected]" at the start of LICENSE

Thanks,
your automatic adapter checker.

Export des DB´s nicht möglich, Scrollbalken

Guten Tag,
ich habe ein Problem mit dem S7 Adapter. Wenn sehr viele Datenpunkte angegeben sind, ist es nicht möglich bis nach unten zu Scrollen um den Export durchzuführen.
Die Funktion "In Zwischenablage" scheint auch nicht zu funktionieren, wäre mir da aber noch egal, wenn ich bis zum letzten Datensatz scrollen könnte.
Dieses tritt beim Chromium, Iexplorer, Firefox, Safari auf.
Adapter ist 1.1.4.

Gruß und Danke

image

Aufruf DBs-Ansicht leere Seite (zuviele Datenpunkte >500?)

Wenn ich unter Instanzen mir meine DB-Liste anschauen möchte, bleibt die Seite leer.
Ich habe 4 unterschiedliche DBs, wobei ich bei 2 DBs nur so rund jeweils 10 Datenpunkte habe, bei einem so rund 10o und mein größter hat so ca. 400 Datenpunkte.

Anscheinend kommt die neue GUI (1.3.2 habe ich) nicht klar mit der Datenmenge.
Ist auch egal ob ich die neue oder alte Adminoberfläche einschalte.

REAL zahlen werden scheinbar duch zufällige Zahlen vom s7.Adapter ersetzt.

Ich nutze das JavaScript aus den Beispielen um Elevation und Azimut der Sonne zu berechen. Diese schreibe ich in ein Datenwort meines S7.Adapters.
Ab und an werden dann anscheint zufällige Zahlen vom s7.Adapter zurück gegeben, die so auch in der S7-300 stehen (Siehe Bild), manchmal wird auch einfach eine Null geschrieben.

Ich habe inzwischen auch mit Node.Red in die S7 geschrieben dort sind mir diese Fehler nicht aufgefallen.
Ist das Problem bekannt und gibt es einen fix?

anmerkung 2018-12-28 135634

Please add your adapter to ioBroker.discovery

I am an automatic service from ioBroker that searches adapters and makes suggestions.

I noticed that your adapter is not integrated in the ioBroker.discovery. Using the Discovery adapter, ioBroker can automatically find devices or suggest services to the user for installation. If possible I would live to see your adapter added there.

Some adapters have already been added and you can use them as blueprints. See: https://github.com/ioBroker/ioBroker.discovery You need to fork this project and then create a PR for your adapter to be added.

Basically the plugins can do HTTP calls, UDP discovery, MDNS, UPNP and will iterate over all devices found by IP scan and check local serial ports. If you want you can also add new discovery methods but please try to do that with at least dependencies as possible.

Then create one file under lib/adapters for your adapter to implement the detection and proposal of an instance to the user.

On questions, the other developers will support in the forum or via GitHub issues too.

If no detection is possible, simply close this issue and I won't bother you again. ;-)

Thanks,
your automatic adapter checker.

S7 Instanz läuft nur mit einer String länge von 2 und diese ist nicht veränderbar

Describe the bug
Beim Anlegen von Strings in der S7 Instanz ist eine Länge von 2 vorgegeben und ausgegraut. Hiermit läuft die Instanz. Über den Import einer TSV kann man diesen Wert vergrößern, dann funktioniert die Instanz aber nicht mehr

To Reproduce
Steps to reproduce the behavior:

  1. Öffne Instanz - Einstellungen des S7 Adapters
  2. Gehe zu DB
  3. Füge eine Zeile hinzu
  4. Wähle als Typ String aus -> Länge 2 ist vorgegeben und ausgegraut und somit nicht editierbar
  5. Bearbeite TSV
  6. Ändere Länge der Strings auf einen Wert != 2
  7. Importiere die TSV
  8. Speichern und schließe
  9. Siehe da Die Instanz startet nicht mehr

Expected behavior
Eine beliebige Länge des Strings eintragen zu können und der Adapter noch funktioniert

Screenshots & Logfiles
Screenshot from 2021-08-26 16-52-35
Screenshot from 2021-08-26 16-51-37
Screenshot from 2021-08-26 16-52-05
Screenshot from 2021-08-26 16-50-47

Versions:

  • Adapter version: 1.3.6
  • JS-Controller version: 3.3.15
  • Node version: 14.17.1
  • Operating system: Debian 10

Additional context
Add any other context about the problem here.

Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/ioBroker/ioBroker.s7

  • [E114] No adapter are allowed in the repo without admin3 support
  • [E150] No common.connectionType found in io-package.json
  • [E152] No common.dataSource found in io-package.json
  • [E812] file test/ found in repository, but not found in .npmignore
  • [E814] file appveyor.yml found in repository, but not found in .npmignore
  • [E815] file .travis.yml found in repository, but not found in .npmignore

Thanks,
your automatic adapter checker.

Adapter meldet falschen Connection Status

Systemdata Bitte Ausfüllen
Hardwaresystem: ACEPC T11
Arbeitsspeicher: 4GB
Festplattenart: SSD
Betriebssystem: Ubuntu 18.04.2 LTS
Node-Version: 12.19.0
Nodejs-Version: 12.19.0
NPM-Version: 6.14.8
Installationsart: Skript
Image genutzt: Nein

Seit dem Udpate auf 1.1.10 des Siemens S7 - Adapter wird der Connection Status nicht mehr richtig geschrieben. Der Status wird bei einem Adapterneustart auf "false" gesetzt, aber nicht mehr auf "true". Wenn ich den Status selbst auf "true" setze, bleibt er true. Die Werte werden normal aktualisiert und die Instanz ist "Grün".

Danke für Eure Hilfe.

Translation index.html

"Rool": {"en": "Rool", "de": "Rolle", "ru": "Роль"}, // todo RU
"Room": {"en": "Room", "de": "Raum", "ru": "Комната"} // todo RU

Rolle in english is Role

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.