@ali-pay/node-red-contrib-s7 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/ISSUE_TEMPLATE/bug_report.md +40 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/CHANGELOG.md +146 -0
- package/LICENSE +674 -0
- package/README.md +136 -0
- package/package.json +36 -0
- package/red/locales/de/s7.json +127 -0
- package/red/locales/en-US/s7.json +127 -0
- package/red/s7.html +1444 -0
- package/red/s7.js +712 -0
- package/src/tools.js +85 -0
- package/test/flow_writeTest.json +1507 -0
package/README.md
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# node-red-contrib-s7
|
|
2
|
+
A Node-RED node to interact with Siemens S7 PLCs.
|
|
3
|
+
|
|
4
|
+
This node was created as part of the [ST-One](https://st-one.io) project.
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
You can install this node directly from the "Manage Palette" menu in the Node-RED interface.
|
|
10
|
+
|
|
11
|
+
Alternatively, run the following command in your Node-RED user directory - typically `~/.node-red` on Linux or `%HOMEPATH%\.nodered` on Windows
|
|
12
|
+
|
|
13
|
+
npm install node-red-contrib-s7
|
|
14
|
+
|
|
15
|
+
NodeJS version 10 or greater and Node-RED version 1.0 or greater is required.
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
Each connection to a PLC is represented by the **S7 Endpoint** configuration node. You can configure the PLC's Address, the variables available and their addresses, and the cycle time for reading the variables.
|
|
21
|
+
|
|
22
|
+
The **S7 In** node makes the variable's values available in a flow in three different modes:
|
|
23
|
+
|
|
24
|
+
* **Single variable:** A single variable can be selected from the configured variables, and a message is sent every cycle, or only when it changes if _diff_ is checked. `msg.payload` contains the variable's value and `msg.topic` has the variable's name.
|
|
25
|
+
* **All variables, one per message:** Like the _Single variable_ mode, but for all variables configured. If _diff_ is checked, a message is sent everytime any variable changes. If _diff_ is unchecked, one message is sent for every variable, in every cycle. Care must be taken about the number of messages per second in this mode.
|
|
26
|
+
* **All variables:** In this mode, `msg.payload` contains an object with all configured variables and their values. If _diff_ is checked, a message is sent if at least one of the variables changes its value.
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Variable addressing
|
|
30
|
+
|
|
31
|
+
The variables and their addresses configured on the **S7 Endpoint** follow a slightly different scheme than used on Step 7 or TIA Portal. Here are some examples that may guide you on addressing your variables:
|
|
32
|
+
|
|
33
|
+
| Address | Step7 equivalent | JS Data type | Description |
|
|
34
|
+
| ----------------------------- | --------------------- | ------------- | ----------- |
|
|
35
|
+
| `DB5,X0.1` | `DB5.DBX0.1` | Boolean | Bit 1 of byte 0 of DB 5 |
|
|
36
|
+
| `DB23,B1` or `DB23,BYTE1` | `DB23.DBB1` | Number | Byte 1 (0-255) of DB 23 |
|
|
37
|
+
| `DB100,C2` or `DB100,CHAR2` | `DB100.DBB2` | String | Byte 2 of DB 100 as a Char |
|
|
38
|
+
| `DB42,I3` or `DB42,INT3` | `DB42.DBW3` | Number | Signed 16-bit number at byte 3 of DB 42 |
|
|
39
|
+
| `DB57,WORD4` | `DB57.DBW4` | Number | Unsigned 16-bit number at byte 4 of DB 57 |
|
|
40
|
+
| `DB13,DI5` or `DB13,DINT5` | `DB13.DBD5` | Number | Signed 32-bit number at byte 5 of DB 13 |
|
|
41
|
+
| `DB19,DW6` or `DB19,DWORD6` | `DB19.DBD6` | Number | Unsigned 32-bit number at byte 6 of DB 19 |
|
|
42
|
+
| `DB21,R7` or `DB21,REAL7` | `DB21.DBD7` | Number | Floating point 32-bit number at byte 7 of DB 21 |
|
|
43
|
+
| `DB2,S7.10`* | - | String | String of length 10 starting at byte 7 of DB 2 |
|
|
44
|
+
| `I1.0` or `E1.0` | `I1.0` or `E1.0` | Boolean | Bit 0 of byte 1 of input area |
|
|
45
|
+
| `Q2.1` or `A2.1` | `Q2.1` or `A2.1` | Boolean | Bit 1 of byte 2 of output area |
|
|
46
|
+
| `M3.2` | `M3.2` | Boolean | Bit 2 of byte 3 of memory area |
|
|
47
|
+
| `IB4` or `EB4` | `IB4` or `EB4` | Number | Byte 4 (0 -255) of input area |
|
|
48
|
+
| `QB5` or `AB5` | `QB5` or `AB5` | Number | Byte 5 (0 -255) of output area |
|
|
49
|
+
| `MB6` | `MB6` | Number | Byte 6 (0 -255) of memory area |
|
|
50
|
+
| `IC7` or `EC7` | `IB7` or `EB7` | String | Byte 7 of input area as a Char |
|
|
51
|
+
| `QC8` or `AC8` | `QB8` or `AB8` | String | Byte 8 of output area as a Char |
|
|
52
|
+
| `MC9` | `MB9` | String | Byte 9 of memory area as a Char |
|
|
53
|
+
| `II10` or `EI10` | `IW10` or `EW10` | Number | Signed 16-bit number at byte 10 of input area |
|
|
54
|
+
| `QI12` or `AI12` | `QW12` or `AW12` | Number | Signed 16-bit number at byte 12 of output area |
|
|
55
|
+
| `MI14` | `MW14` | Number | Signed 16-bit number at byte 14 of memory area |
|
|
56
|
+
| `IW16` or `EW16` | `IW16` or `EW16` | Number | Unsigned 16-bit number at byte 16 of input area |
|
|
57
|
+
| `QW18` or `AW18` | `QW18` or `AW18` | Number | Unsigned 16-bit number at byte 18 of output area |
|
|
58
|
+
| `MW20` | `MW20` | Number | Unsigned 16-bit number at byte 20 of memory area |
|
|
59
|
+
| `IDI22` or `EDI22` | `ID22` or `ED22` | Number | Signed 32-bit number at byte 22 of input area |
|
|
60
|
+
| `QDI24` or `ADI24` | `QD24` or `AD24` | Number | Signed 32-bit number at byte 24 of output area |
|
|
61
|
+
| `MDI26` | `MD26` | Number | Signed 32-bit number at byte 26 of memory area |
|
|
62
|
+
| `ID28` or `ED28` | `ID28` or `ED28` | Number | Unsigned 32-bit number at byte 28 of input area |
|
|
63
|
+
| `QD30` or `AD30` | `QD30` or `AD30` | Number | Unsigned 32-bit number at byte 30 of output area |
|
|
64
|
+
| `MD32` | `MD32` | Number | Unsigned 32-bit number at byte 32 of memory area |
|
|
65
|
+
| `IR34` or `ER34` | `IR34` or `ER34` | Number | Floating point 32-bit number at byte 34 of input area |
|
|
66
|
+
| `QR36` or `AR36` | `QR36` or `AR36` | Number | Floating point 32-bit number at byte 36 of output area |
|
|
67
|
+
| `MR38` | `MR38` | Number | Floating point 32-bit number at byte 38 of memory area |
|
|
68
|
+
| `DB1,DT0` | - | Date** | A timestamp in the DATE_AND_TIME format |
|
|
69
|
+
| `DB1,DTZ10` | - | Date** | A timestamp in the DATE_AND_TIME format, in UTC |
|
|
70
|
+
| `DB2,DTL2` | - | Date** | A timestamp in the DTL format |
|
|
71
|
+
| `DB2,DTLZ12` | - | Date** | A timestamp in the DTL format, in UTC |
|
|
72
|
+
| `DB57,RWORD4` | `DB57.DBW4` | Number | Unsigned 16-bit number at byte 4 of DB 57, interpreted as Little-Endian |
|
|
73
|
+
| `DB13,RDI5` or `DB13,RDINT5` | `DB13.DBD5` | Number | Signed 32-bit number at byte 5 of DB 13, interpreted as Little-Endian |
|
|
74
|
+
| `MRW20` | `MW20` | Number | Unsigned 16-bit number at byte 20 of memory area, interpreted as Little-Endian |
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
- *) Note that strings on the PLC uses 2 extra bytes at start for size/length of the string
|
|
78
|
+
- **) Note that javascript's `Date` are _always_ represented in UTC. Please use other nodes like [node-red-contrib-moment](https://flows.nodered.org/node/node-red-contrib-moment) to properly handle type conversions
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
### Notes on S7-1200/1500
|
|
82
|
+
|
|
83
|
+
These newer PLCs offer an "extended" version of the S7 Protocol, while we have only a "basic" version of it.
|
|
84
|
+
|
|
85
|
+
Therefore, some additional configuration steps on the PLC are necessary:
|
|
86
|
+
- "Optimized block access" must be disabled for the DBs we want to access ([image](http://snap7.sourceforge.net/snap7_client_file/db_1500.bmp))
|
|
87
|
+
- In the "Protection" section of the CPU Properties, enable the "Permit access with PUT/GET" checkbox ([image](http://snap7.sourceforge.net/snap7_client_file/cpu_1500.bmp))
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### Notes on Logo! 8
|
|
91
|
+
|
|
92
|
+
On the newest Logo! 8.FS4 (and possibly 0BA8) Logic modules there is no need to set the Mode to TSAP any more, instead the default Rack/Slot value of 0/2 works just fine.
|
|
93
|
+
|
|
94
|
+
The following table shows memory areas accessible without additional settings in the controller program:
|
|
95
|
+
|
|
96
|
+
*Note: These memory areas seem to be read-only from outside the controller, as they are directly used by the function blocks listed in "Logo Block" of the table*
|
|
97
|
+
|
|
98
|
+
| Logo Block | Logo VM Range | example Node-RED address | Description |
|
|
99
|
+
|------------|---------------|---------------------------------------------------|-------------|
|
|
100
|
+
| `I` | `1024 - 1031` | `DB1,BYTE1024` or `DB1,X1024.5` or `DB1,WORD1024` | Reads input terminals 1...8 or 6 or 1...16 |
|
|
101
|
+
| `AI` | `1032 - 1063` | `DB1,WORD1032` | Reads analog input terminal 1. Always word sized. |
|
|
102
|
+
| `Q` | `1064 - 1071` | `DB1,BYTE1064` or `DB1,X1064.5` or `DB1,WORD1064` | Reads output terminals 1...8 or 6 or 1...16 |
|
|
103
|
+
| `AQ` | `1072 - 1103` | `DB1,WORD1072` | Reads analog output terminal 1. Always word sized. |
|
|
104
|
+
| `M` | `1104 - 1117` | `DB1,BYTE1104` or `DB1,X1104.5` or `DB1,WORD1104` | Reads bit flags M1...M8 or M6 or M1...16 |
|
|
105
|
+
| `AM` | `1118 - 1245` | `DB1,WORD1118` | Reads analog flag 1. Always word sized. |
|
|
106
|
+
| `NI` | `1246 - 1061` | `DB1,BYTE1246` or `DB1,X1246.5` or `DB1,WORD1246` | Reads network input 1...8 or 6 or 1...16 |
|
|
107
|
+
| `NAI` | `1262 - 1389` | `DB1,WORD1262` | Reads analog network input 1. Always word sized. |
|
|
108
|
+
| `NQ` | `1390 - 1405` | `DB1,BYTE1390` or `DB1,X1390.5` or `DB1,WORD1390` | Reads network output 1...8 or 6 or 1...16 |
|
|
109
|
+
| `NAQ` | `1406 - 1469` | `DB1,WORD1406` | Reads network output 1. Always word sized. |
|
|
110
|
+
|
|
111
|
+
On the other hand, Logo memory areas VM 0-849 are mutable from outside the controller, but they need to be mapped into the Logo program. Without mapping, data written into these addresses will have no effect on program execution. Used VM addresses in the range mentioned above can be read/written from/into in the Logo program using the "Network" function blocks (in the function block setup use the *"Local variable memory (VM)"* option to map VMs to the function block).
|
|
112
|
+
|
|
113
|
+
Some addressing examples:
|
|
114
|
+
|
|
115
|
+
| Logo VM | Example Node-RED address | Description |
|
|
116
|
+
|---------|--------------------------|-------------|
|
|
117
|
+
| `0` | `DB1,BYTE0` | R/W access |
|
|
118
|
+
| `1` | `DB1,X1.3` | R/W access Note: use booleans |
|
|
119
|
+
| `2..3` | `DB1,WORD2` | R/W access |
|
|
120
|
+
| `4..7` | `DB1,DWORD4` | R/W access |
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
## Bugs and enhancements
|
|
124
|
+
|
|
125
|
+
Please share your ideas and experiences on the [Node-RED forum](https://discourse.nodered.org/), or open an issue on the [page of the project on GitHub](https://github.com/st-one-io/node-red-contrib-s7)
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
## Support
|
|
129
|
+
|
|
130
|
+
Community support is offered on a best-effort basis via GitHub Issues. For commercial support, please contact us by sending an e-mail to [st-one@st-one.io](mailto:st-one@st-one.io).
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
## License
|
|
134
|
+
Copyright: (c) 2016-2022, ST-One Ltda., Guilherme Francescon Cittolin <guilherme@st-one.io>
|
|
135
|
+
|
|
136
|
+
GNU General Public License v3.0+ (see [LICENSE](LICENSE) or https://www.gnu.org/licenses/gpl-3.0.txt)
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ali-pay/node-red-contrib-s7",
|
|
3
|
+
"version": "3.2.0",
|
|
4
|
+
"description": "A Node-RED node to interact with Siemens S7 PLCs",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"private": false,
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@st-one-io/nodes7": "1.1.0"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/st-one-io/node-red-contrib-s7.git"
|
|
13
|
+
},
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/st-one-io/node-red-contrib-s7/issues"
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"hardware",
|
|
22
|
+
"s7",
|
|
23
|
+
"logo",
|
|
24
|
+
"siemens",
|
|
25
|
+
"plc",
|
|
26
|
+
"profinet",
|
|
27
|
+
"node-red"
|
|
28
|
+
],
|
|
29
|
+
"node-red": {
|
|
30
|
+
"nodes": {
|
|
31
|
+
"s7": "red/s7.js"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"author": "ST-One Ltda.",
|
|
35
|
+
"license": "GPL-3.0-or-later"
|
|
36
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
{
|
|
2
|
+
"s7": {
|
|
3
|
+
"in": {
|
|
4
|
+
"label": {
|
|
5
|
+
"name": "s7 in",
|
|
6
|
+
"endpoint": "SPS",
|
|
7
|
+
"mode": "Modus",
|
|
8
|
+
"variable": "Variable",
|
|
9
|
+
"diff": "Sende nur bei Wertänderung (diff)",
|
|
10
|
+
"variable-select": "Variable auswählen",
|
|
11
|
+
"variable-novar": "Keine Variablen"
|
|
12
|
+
},
|
|
13
|
+
"mode": {
|
|
14
|
+
"single": "Einzelne Variable",
|
|
15
|
+
"all-split": "Alle Variablen, eine pro Nachricht",
|
|
16
|
+
"all": "Alle Variablen"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"out": {
|
|
20
|
+
"label": {
|
|
21
|
+
"name": "s7 out",
|
|
22
|
+
"endpoint": "SPS",
|
|
23
|
+
"variable": "Variable",
|
|
24
|
+
"variable-select": "Variable auswählen"
|
|
25
|
+
},
|
|
26
|
+
"disclaimer": "Vorsicht beim Schreiben auf produktiven Steuerungen!"
|
|
27
|
+
},
|
|
28
|
+
"control": {
|
|
29
|
+
"label": {
|
|
30
|
+
"name": "s7 Steuerung",
|
|
31
|
+
"function": "Funktion",
|
|
32
|
+
"endpoint": "SPS"
|
|
33
|
+
},
|
|
34
|
+
"function": {
|
|
35
|
+
"cycletime": "Zykluszeit",
|
|
36
|
+
"trigger": "Lesen auslösen"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"endpoint": {
|
|
40
|
+
"label": {
|
|
41
|
+
"transport": "Transport",
|
|
42
|
+
"address": "IP Adresse",
|
|
43
|
+
"port": "Port",
|
|
44
|
+
"connmode": "Modus",
|
|
45
|
+
"rack": "Rack",
|
|
46
|
+
"slot": "Slot",
|
|
47
|
+
"tsap-local": "Local TSAP",
|
|
48
|
+
"tsap-remote": "Remote TSAP",
|
|
49
|
+
"cycletime": "Zykluszeit",
|
|
50
|
+
"timeout": "Timeout",
|
|
51
|
+
"verbose": "Debug",
|
|
52
|
+
"adapter": "Adapter",
|
|
53
|
+
"adapterplaceholder": "Bitte 'node-red-contrib-mpi-s7' installieren",
|
|
54
|
+
"busaddr": "Adresse",
|
|
55
|
+
"search": "Suchen",
|
|
56
|
+
"flash-led": "LED Blinken",
|
|
57
|
+
"tabs": {
|
|
58
|
+
"connection": "Verbindung",
|
|
59
|
+
"variables": "Variablen"
|
|
60
|
+
},
|
|
61
|
+
"variables": {
|
|
62
|
+
"list": "Variablen Liste",
|
|
63
|
+
"add": "Hinzufügen",
|
|
64
|
+
"clean": "Alle Entfernen",
|
|
65
|
+
"del": "Entfernen",
|
|
66
|
+
"name": "Name",
|
|
67
|
+
"addr": "Adresse",
|
|
68
|
+
"export": "Export",
|
|
69
|
+
"import": "Import"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"placeholder": {
|
|
73
|
+
"address": "IP Adresse oder FQDN (plc01.example.com)"
|
|
74
|
+
},
|
|
75
|
+
"transport": {
|
|
76
|
+
"iso-on-tcp": "Ethernet (ISO-on-TCP)",
|
|
77
|
+
"mpi-s7": "MPI/PPI/DP Adapter"
|
|
78
|
+
},
|
|
79
|
+
"connmode": {
|
|
80
|
+
"rack-slot": "Rack/Slot",
|
|
81
|
+
"tsap": "TSAP"
|
|
82
|
+
},
|
|
83
|
+
"status": {
|
|
84
|
+
"online": "online",
|
|
85
|
+
"badvalues": "fehlerhaft",
|
|
86
|
+
"offline": "offline",
|
|
87
|
+
"unknown": "unbekannt",
|
|
88
|
+
"connecting": "verbinde"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"label": {
|
|
92
|
+
"name": "Name",
|
|
93
|
+
"select": "Gerät wählen"
|
|
94
|
+
},
|
|
95
|
+
"error": {
|
|
96
|
+
"onconnect": "Fehler beim Verbinden: ",
|
|
97
|
+
"missingconfig": "Fehlende Konfiguration",
|
|
98
|
+
"varunknown": "Unbekannte Variable '__var__'",
|
|
99
|
+
"valmismatch": "Anzahl von Daten und Variablen passen nicht",
|
|
100
|
+
"noresponse": "Keine Antwort, Neustart der Kommunikation",
|
|
101
|
+
"invalidconntype": "Ungültiger Konfigurationstyp \"__connmode__\"",
|
|
102
|
+
"invalidtransport": "Ungültiger Transport \"__transport__\"",
|
|
103
|
+
"invalidtsap": "Ungültige TSAP Konfiguration",
|
|
104
|
+
"invalidtimeinterval": "Ungültige Zeitspanne für Zykluszeit von \"__interval__\"",
|
|
105
|
+
"invalidcontrolfunction": "Ungültige Kontrollfunktion \"__function__\""
|
|
106
|
+
},
|
|
107
|
+
"info": {
|
|
108
|
+
"connect": "Initialisiere Verbindung zur SPS",
|
|
109
|
+
"disconnect": "Schließe Verbindung zur SPS",
|
|
110
|
+
"novars": "Keine Variablen konfiguriert, überspringe Lesezyklus",
|
|
111
|
+
"cycletimetooshort": "Zykluszeit zu kurz, erzwinge Minimum von __min__ ms"
|
|
112
|
+
},
|
|
113
|
+
"validation": {
|
|
114
|
+
"ERR_PARSE_EMPTY": "Adresse kann nich leer sein",
|
|
115
|
+
"ERR_PARSE_UNKNOWN_FORMAT": "Unbekanntes Format, bitte Hilfetext überprüfen",
|
|
116
|
+
"ERR_PARSE_ADDR_OFFSET": "Byte offset ist ungültig",
|
|
117
|
+
"ERR_PARSE_DB_NUMBER": "DB nummer ist unbekannt oder ungültig",
|
|
118
|
+
"ERR_PARSE_DB_DATATYPE": "Datatyp von DB Bereich ist unbekannt oder ungültig",
|
|
119
|
+
"ERR_PARSE_AREA": "Bereich ist unbekannt oder ungültig",
|
|
120
|
+
"ERR_PARSE_DATATYPE": "Datatyp ist unbekannt oder ungültig",
|
|
121
|
+
"ERR_PARSE_BIT_OFFSET": "Bit offset fehlt oder ist ungültig",
|
|
122
|
+
"ERR_PARSE_STRING_LEN": "String Länge fehlt oder ist ungültig",
|
|
123
|
+
"ERR_PARSE_INVALID_BIT_OFFSET": "Bit offset bei Datentyp nicht unterstützt",
|
|
124
|
+
"ERR_PARSE_INVALID_ARR_LEN": "Ungülgige Array Länge"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
{
|
|
2
|
+
"s7": {
|
|
3
|
+
"in": {
|
|
4
|
+
"label": {
|
|
5
|
+
"name": "s7 in",
|
|
6
|
+
"endpoint": "PLC",
|
|
7
|
+
"mode": "Mode",
|
|
8
|
+
"variable": "Variable",
|
|
9
|
+
"diff": "Emit only when value changes (diff)",
|
|
10
|
+
"variable-select": "Select a variable",
|
|
11
|
+
"variable-novar": "No variables"
|
|
12
|
+
},
|
|
13
|
+
"mode": {
|
|
14
|
+
"single": "Single variable",
|
|
15
|
+
"all-split": "All variables, one per message",
|
|
16
|
+
"all": "All variables"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"out": {
|
|
20
|
+
"label": {
|
|
21
|
+
"name": "s7 out",
|
|
22
|
+
"endpoint": "PLC",
|
|
23
|
+
"variable": "Variable",
|
|
24
|
+
"variable-select": "Select a variable"
|
|
25
|
+
},
|
|
26
|
+
"disclaimer": "Caution when writing data to production PLCs!"
|
|
27
|
+
},
|
|
28
|
+
"control": {
|
|
29
|
+
"label": {
|
|
30
|
+
"name": "s7 control",
|
|
31
|
+
"function": "Function",
|
|
32
|
+
"endpoint": "PLC"
|
|
33
|
+
},
|
|
34
|
+
"function": {
|
|
35
|
+
"cycletime": "Cycle time",
|
|
36
|
+
"trigger": "Trigger read"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"endpoint": {
|
|
40
|
+
"label": {
|
|
41
|
+
"transport": "Transport",
|
|
42
|
+
"address": "Address",
|
|
43
|
+
"port": "Port",
|
|
44
|
+
"connmode": "Mode",
|
|
45
|
+
"rack": "Rack",
|
|
46
|
+
"slot": "Slot",
|
|
47
|
+
"tsap-local": "Local TSAP",
|
|
48
|
+
"tsap-remote": "Remote TSAP",
|
|
49
|
+
"cycletime": "Cycle time",
|
|
50
|
+
"timeout": "Timeout",
|
|
51
|
+
"verbose": "Debug",
|
|
52
|
+
"adapter": "Adapter",
|
|
53
|
+
"adapterplaceholder": "Please install 'node-red-contrib-mpi-s7' for MPI/PPI/DP support",
|
|
54
|
+
"busaddr": "Address",
|
|
55
|
+
"search": "Search",
|
|
56
|
+
"flash-led": "Flash LED",
|
|
57
|
+
"tabs": {
|
|
58
|
+
"connection": "Connection",
|
|
59
|
+
"variables": "Variables"
|
|
60
|
+
},
|
|
61
|
+
"variables": {
|
|
62
|
+
"list": "Variable list",
|
|
63
|
+
"add": "Add",
|
|
64
|
+
"clean": "Remove all",
|
|
65
|
+
"del": "Remove",
|
|
66
|
+
"name": "Name",
|
|
67
|
+
"addr": "Address",
|
|
68
|
+
"export": "Export",
|
|
69
|
+
"import": "Import"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"placeholder": {
|
|
73
|
+
"address": "IP Address or FQDN (plc01.example.com)"
|
|
74
|
+
},
|
|
75
|
+
"transport": {
|
|
76
|
+
"iso-on-tcp": "Ethernet (ISO-on-TCP)",
|
|
77
|
+
"mpi-s7": "MPI/PPI/DP Adapter"
|
|
78
|
+
},
|
|
79
|
+
"connmode": {
|
|
80
|
+
"rack-slot": "Rack/Slot",
|
|
81
|
+
"tsap": "TSAP"
|
|
82
|
+
},
|
|
83
|
+
"status": {
|
|
84
|
+
"online": "online",
|
|
85
|
+
"badvalues": "failure",
|
|
86
|
+
"offline": "offline",
|
|
87
|
+
"unknown": "unknown",
|
|
88
|
+
"connecting": "connecting"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"label": {
|
|
92
|
+
"name": "Name",
|
|
93
|
+
"select": "Select a device"
|
|
94
|
+
},
|
|
95
|
+
"error": {
|
|
96
|
+
"onconnect": "Error connecting to PLC: ",
|
|
97
|
+
"missingconfig": "Missing configuration",
|
|
98
|
+
"varunknown": "Unknown variable '__var__'",
|
|
99
|
+
"valmismatch": "Amount of variables and data mismatch",
|
|
100
|
+
"noresponse": "No response from PLC, restarting communication",
|
|
101
|
+
"invalidconntype": "Invalid configuration type \"__connmode__\"",
|
|
102
|
+
"invalidtransport": "Invalid transport \"__transport__\"",
|
|
103
|
+
"invalidtsap": "Invalid TSAP configuration",
|
|
104
|
+
"invalidtimeinterval": "Invalid time interval for cycle time of \"__interval__\"",
|
|
105
|
+
"invalidcontrolfunction": "Invalid control function \"__function__\""
|
|
106
|
+
},
|
|
107
|
+
"info": {
|
|
108
|
+
"connect": "Initiating connection to PLC",
|
|
109
|
+
"disconnect": "Closing connection to PLC",
|
|
110
|
+
"novars": "No variables configured, skipping cyclic reading",
|
|
111
|
+
"cycletimetooshort": "Cycle time too short, enforcing minimum of __min__ ms"
|
|
112
|
+
},
|
|
113
|
+
"validation": {
|
|
114
|
+
"ERR_PARSE_EMPTY": "Address cannot be empty",
|
|
115
|
+
"ERR_PARSE_UNKNOWN_FORMAT": "Unknown address format, check node's help section",
|
|
116
|
+
"ERR_PARSE_ADDR_OFFSET": "Byte offset is invalid",
|
|
117
|
+
"ERR_PARSE_DB_NUMBER": "Number of DB is unknown or invalid",
|
|
118
|
+
"ERR_PARSE_DB_DATATYPE": "Data type of DB area is unknown or invalid",
|
|
119
|
+
"ERR_PARSE_AREA": "Area addressed is unknown or invalid",
|
|
120
|
+
"ERR_PARSE_DATATYPE": "Data type is unknown or invalid",
|
|
121
|
+
"ERR_PARSE_BIT_OFFSET": "Bit offset is missing or is invalid",
|
|
122
|
+
"ERR_PARSE_STRING_LEN": "String length is missing or is invalid",
|
|
123
|
+
"ERR_PARSE_INVALID_BIT_OFFSET": "Bit offset not supported for this type",
|
|
124
|
+
"ERR_PARSE_INVALID_ARR_LEN": "Array length specified is invalid"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|