@fa_yoshinobu/node-red-contrib-plc-comm-slmp 0.2.13 → 0.8.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/CHANGELOG.md +94 -80
- package/README.md +59 -219
- package/docsrc/index.md +8 -6
- package/docsrc/user/GETTING_STARTED.md +72 -74
- package/docsrc/user/GOTCHAS.md +57 -0
- package/docsrc/user/LATEST_COMMUNICATION_VERIFICATION.md +2 -2
- package/docsrc/user/PROFILES.md +56 -0
- package/docsrc/user/SUPPORTED_REGISTERS.md +75 -126
- package/docsrc/user/USAGE_GUIDE.md +168 -0
- package/docsrc/user/toc.yml +9 -5
- package/examples/flows/README.md +24 -34
- package/examples/flows/slmp-array-string.json +2 -2
- package/examples/flows/slmp-basic-read-write.json +2 -2
- package/examples/flows/slmp-control-error.json +2 -2
- package/examples/flows/slmp-demo.json +3 -3
- package/examples/flows/slmp-device-matrix.json +8 -8
- package/examples/flows/slmp-routing.json +2 -2
- package/examples/flows/slmp-udp-read-write.json +2 -2
- package/lib/slmp/client.js +306 -457
- package/lib/slmp/core.js +96 -58
- package/lib/slmp/error-codes.js +56 -0
- package/lib/slmp/errors.js +26 -0
- package/lib/slmp/high-level.js +55 -40
- package/lib/slmp/lang/slmp-end-code-messages-en.json +686 -0
- package/lib/slmp/transport.js +459 -0
- package/nodes/slmp-connection.html +21 -13
- package/nodes/slmp-connection.js +13 -6
- package/nodes/slmp-read.html +14 -14
- package/nodes/slmp-read.js +2 -2
- package/nodes/slmp-write.html +14 -14
- package/nodes/slmp-write.js +2 -2
- package/package.json +55 -54
- package/docsrc/assets/README.md +0 -10
- package/docsrc/assets/node-red-slmp.png +0 -0
- package/docsrc/user/USER_GUIDE.md +0 -275
package/CHANGELOG.md
CHANGED
|
@@ -1,80 +1,94 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
##
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
- reject device
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
-
|
|
64
|
-
|
|
65
|
-
## 0.2.
|
|
66
|
-
|
|
67
|
-
- add
|
|
68
|
-
-
|
|
69
|
-
|
|
70
|
-
## 0.2.
|
|
71
|
-
|
|
72
|
-
-
|
|
73
|
-
-
|
|
74
|
-
|
|
75
|
-
## 0.2.
|
|
76
|
-
|
|
77
|
-
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.8.0 - 2026-06-14
|
|
4
|
+
|
|
5
|
+
- bump the package revision to 0.8.0 for the unified PLC communication library release
|
|
6
|
+
|
|
7
|
+
## 0.2.14 - 2026-06-12
|
|
8
|
+
|
|
9
|
+
- add an optional `Remote password` credential to `slmp-connection`; configured connections unlock remote-password protection after opening SLMP transport and try to lock it before disconnecting
|
|
10
|
+
- add SLMP end-code name/message helpers backed by the full English communication error-code table, and expose remote-password end-code classification on `SlmpError`
|
|
11
|
+
- reject the non-manual `remoteStop({ force: true })` option; Remote STOP now exposes only the manual fixed request data `01 00`
|
|
12
|
+
- restrict `plcProfile` text parsing to canonical `melsec:...` profile names; short aliases such as `iq-r`, `iqr`, `q`, and `qnudvcpu` are now rejected
|
|
13
|
+
- add manual point-limit preflight checks for continuous, random, block, memory, and helper-layer requests so oversized requests fail before transport
|
|
14
|
+
- fix `writeBlock()` payload layout so each `1406` block writes its data immediately after that block's device spec and point count
|
|
15
|
+
- add maintainer notes for the resolved mixed `1406` layout root cause and current no-fallback behavior
|
|
16
|
+
- clarify that `G` and `HG` are intentionally unsupported in the public Node-RED high-level surface, not pending TODO items
|
|
17
|
+
- reject direct `G` and `HG` device names even when no `plcProfile` is supplied, keeping the public surface from sending unitless Extended Specification-only devices
|
|
18
|
+
|
|
19
|
+
## 0.2.12 - 2026-05-02
|
|
20
|
+
|
|
21
|
+
- bump the release revision for npm and Node-RED Flow Library publishing; the Flow Library currently shows `0.2.3` as the public baseline
|
|
22
|
+
- refresh README, user-guide, latest-verification, and example-flow docs with compatibility notes from the published Flow Library version
|
|
23
|
+
- document the public compatibility change from separate `PLC series` / `frame type` fields to one `PLC type` selector
|
|
24
|
+
- document the public device-scope changes since Flow Library `0.2.3`: `LTS`, `LTC`, `LSTS`, `LSTC`, `LCS`, `LCC`, and `LZ` are now in the high-level surface where the selected PLC type supports them
|
|
25
|
+
- document the current device-matrix flow behavior: one-click run-all read/write buttons, status-lamp feedback, JSONL result logging, `plcProfile` records, and skip/error summary counts
|
|
26
|
+
|
|
27
|
+
## 0.2.11 - 2026-05-02
|
|
28
|
+
|
|
29
|
+
- remove the interim device-range catalog helper from the Node-RED package
|
|
30
|
+
- keep ordinary Node-RED read/write validation to address format and protocol constraints, leaving actual device-range errors to the PLC response
|
|
31
|
+
- reject device codes that the selected `plcProfile` does not expose in the public high-level table, aligned with the .NET `DEVICE_RANGES.md` support matrix
|
|
32
|
+
|
|
33
|
+
- remove stale user-guide and TODO wording that still described `LCS` and `LCC`
|
|
34
|
+
as future support; the high-level helpers route reads through direct bit read
|
|
35
|
+
and writes through random bit write (`0x1402`)
|
|
36
|
+
- keep `G` and `HG` out of the default public device-matrix flow because they
|
|
37
|
+
are not part of the public high-level surface
|
|
38
|
+
|
|
39
|
+
## 0.2.10 - 2026-04-27
|
|
40
|
+
|
|
41
|
+
- tighten SLMP device-name parsing to split by known device code instead of a greedy letter regex, so hexadecimal addresses such as `XFF` and `SWFF` parse correctly
|
|
42
|
+
- fail matched-device invalid numbers as that device code instead of treating them as a different unknown code shape
|
|
43
|
+
|
|
44
|
+
## 0.2.9 - 2026-04-27
|
|
45
|
+
|
|
46
|
+
- add packaged helper support for remote control, memory read/write, extend-unit read/write, and label array/random read/write commands
|
|
47
|
+
- add low-level tests for the new helper payloads and response parsing
|
|
48
|
+
- expand Node-RED wrapper participation in the shared cross-library parity suite
|
|
49
|
+
|
|
50
|
+
## 0.2.8 - 2026-04-27
|
|
51
|
+
|
|
52
|
+
- tighten long-device route guards so `LTN/LSTN/LCN/LZ` avoid unsupported direct/raw word and dword paths, while supported random/named dword paths remain available
|
|
53
|
+
- align `LCS/LCC` writes with the random/named bit route policy
|
|
54
|
+
|
|
55
|
+
## 0.2.7 - 2026-04-14
|
|
56
|
+
|
|
57
|
+
- require explicit `plcProfile` on the standard packaged client and connection-node route, while keeping manual frame/profile selection only for internal diagnostic paths
|
|
58
|
+
- switch the standard device-range example to the interim catalog helper so the high-level Node surface consistently derives frame, profile, address, and range handling from one profile selection
|
|
59
|
+
|
|
60
|
+
## 0.2.6 - 2026-04-14
|
|
61
|
+
|
|
62
|
+
- replace connection-node `plcSeries` / `frameType` selection with one explicit `plcProfile` that derives the fixed frame, access profile, address profile, and range profile defaults
|
|
63
|
+
- make high-level `X/Y` string addresses require explicit `plcProfile`, treat `iq-f` `X/Y` as octal, and refresh tests, docs, and example flows for the stricter profile-driven model
|
|
64
|
+
|
|
65
|
+
## 0.2.5 - 2026-04-14
|
|
66
|
+
|
|
67
|
+
- add interim device-range catalog helpers and CPU operation-state support to the packaged SLMP client surface
|
|
68
|
+
- add regression tests and README coverage for the new device-range and CPU-state helpers
|
|
69
|
+
|
|
70
|
+
## 0.2.4 - 2026-04-13
|
|
71
|
+
|
|
72
|
+
- add client-side guard logic for unsupported long-timer direct reads and unsupported `LCS/LCC` random, block, and monitor-registration commands
|
|
73
|
+
- align long-counter helper behavior and core tests with the shared cross-library consistency rules
|
|
74
|
+
|
|
75
|
+
## 0.2.3 - 2026-04-13
|
|
76
|
+
|
|
77
|
+
- CI now checks out `plc-comm-slmp-cross-verify/specs/shared` before running the shared-vector tests, so the Node package validates against the canonical cross-library parity vectors.
|
|
78
|
+
|
|
79
|
+
## 0.2.2 - 2026-04-01
|
|
80
|
+
|
|
81
|
+
- add an optional `npm run smoke:editor` script that installs the local package into an isolated userDir, starts a temporary Node-RED runtime, imports `slmp-basic-read-write.json`, and verifies the flow starts cleanly
|
|
82
|
+
- refresh README, user guide, and example-flow docs with the editor-smoke command and the current canonical-address helper exports
|
|
83
|
+
|
|
84
|
+
## 0.2.1 - 2026-03-28
|
|
85
|
+
|
|
86
|
+
- move npm package publishing to the scoped name `@fa_yoshinobu/node-red-contrib-plc-comm-slmp`
|
|
87
|
+
- refresh README and user documentation for Flow Library submission, npm badges, and scoped install commands
|
|
88
|
+
|
|
89
|
+
## 0.2.0 - 2026-03-28
|
|
90
|
+
|
|
91
|
+
- add `slmp-connection`, `slmp-read`, and `slmp-write` nodes for binary 3E/4E over TCP and UDP
|
|
92
|
+
- add named address helpers including `,count`, string access, route overrides, and connection control messages
|
|
93
|
+
- add editor validation, example flows, README improvements, and user/maintainer documentation
|
|
94
|
+
- add local test coverage and package dry-run validation
|
package/README.md
CHANGED
|
@@ -7,222 +7,62 @@
|
|
|
7
7
|

|
|
8
8
|

|
|
9
9
|
|
|
10
|
-
# Node-RED SLMP Nodes
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
```bash
|
|
70
|
-
cd ~/.node-red
|
|
71
|
-
npm install /path/to/node-red-contrib-plc-comm-slmp
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
Optional local editor smoke test from the repository root:
|
|
75
|
-
|
|
76
|
-
```bash
|
|
77
|
-
npm run smoke:editor
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
This command installs the local package into an isolated temporary userDir, starts a temporary Node-RED runtime, imports `slmp-basic-read-write.json`, verifies the flow starts, and then shuts the runtime down again.
|
|
81
|
-
|
|
82
|
-
Legacy note:
|
|
83
|
-
|
|
84
|
-
- the original unscoped `node-red-contrib-plc-comm-slmp@0.2.0` remains on npm, but new releases move to the scoped package name above
|
|
85
|
-
|
|
86
|
-
### Changes Since Flow Library 0.2.3
|
|
87
|
-
|
|
88
|
-
The Node-RED Flow Library currently shows `0.2.3` as the published baseline for this scoped package. Check these changes before updating an existing flow:
|
|
89
|
-
|
|
90
|
-
- `slmp-connection` now uses one `PLC type` selector. Older `PLC series` and `frame type` fields from Flow Library `0.2.3` flows must be reselected after import.
|
|
91
|
-
- `X/Y` string addresses are PLC-type-specific: iQ-F uses octal `X/Y`, while the other supported PLC types use hexadecimal `X/Y`.
|
|
92
|
-
- `LTS`, `LTC`, `LSTS`, `LSTC`, `LCS`, `LCC`, and `LZ` are now in the high-level surface where the selected PLC type supports them.
|
|
93
|
-
- Device codes unsupported by the selected PLC type are errors by default. The `slmp-device-matrix.json` sample can instead log them as `SKIPPED` records when it sends `slmpSkipUnsupported`.
|
|
94
|
-
|
|
95
|
-
## Supported PLC Registers
|
|
96
|
-
|
|
97
|
-
Start with these register/device families first:
|
|
98
|
-
|
|
99
|
-
- word devices: `D`, `SD`, `R`, `ZR`, `TN`, `CN`
|
|
100
|
-
- bit devices: `M`, `X`, `Y`, `SM`, `B`
|
|
101
|
-
- typed forms: `D100:S`, `D100:I`, `D200:F`, `D300:L`
|
|
102
|
-
- special Node-RED forms: `D100,10`, `M1000,8`, `D100:STR,10`, `DSTR100,10`
|
|
103
|
-
- bit-in-word form: `D50.3`
|
|
104
|
-
|
|
105
|
-
See the full public table in [Supported PLC Registers](https://github.com/fa-yoshinobu/node-red-contrib-plc-comm-slmp/blob/main/docsrc/user/SUPPORTED_REGISTERS.md).
|
|
106
|
-
|
|
107
|
-
## Documentation
|
|
108
|
-
|
|
109
|
-
- [Getting Started](https://github.com/fa-yoshinobu/node-red-contrib-plc-comm-slmp/blob/main/docsrc/user/GETTING_STARTED.md)
|
|
110
|
-
- [Supported PLC Registers](https://github.com/fa-yoshinobu/node-red-contrib-plc-comm-slmp/blob/main/docsrc/user/SUPPORTED_REGISTERS.md)
|
|
111
|
-
- [Latest Communication Verification](https://github.com/fa-yoshinobu/node-red-contrib-plc-comm-slmp/blob/main/docsrc/user/LATEST_COMMUNICATION_VERIFICATION.md)
|
|
112
|
-
- [User Guide](https://github.com/fa-yoshinobu/node-red-contrib-plc-comm-slmp/blob/main/docsrc/user/USER_GUIDE.md)
|
|
113
|
-
- [Example Flows](https://github.com/fa-yoshinobu/node-red-contrib-plc-comm-slmp/blob/main/examples/flows/README.md)
|
|
114
|
-
- [Documentation Index](https://github.com/fa-yoshinobu/node-red-contrib-plc-comm-slmp/blob/main/docsrc/index.md)
|
|
115
|
-
|
|
116
|
-
Maintainer-only notes and retained evidence live under `internal_docs/`.
|
|
117
|
-
|
|
118
|
-
## What You Can Do
|
|
119
|
-
|
|
120
|
-
- Binary 3E and 4E frames
|
|
121
|
-
- TCP and UDP transport
|
|
122
|
-
- reusable `slmp-connection`
|
|
123
|
-
- high-level reads and writes through `slmp-read` and `slmp-write`
|
|
124
|
-
- typed source selection for literal / `msg` / `flow` / `global` / `env`
|
|
125
|
-
- per-request routing via `msg.target` or configured route sources
|
|
126
|
-
- read output selection for object / array / single value
|
|
127
|
-
- metadata emission selection for `msg.slmp`
|
|
128
|
-
- configurable error handling with throw / `msg.error` / second output
|
|
129
|
-
- connection control via `connect` / `disconnect` / `reinitialize` messages
|
|
130
|
-
|
|
131
|
-
Set one explicit PLC type for each connection. The node stores it as `plcFamily` internally and derives `frameType`, access profile, and `X/Y` string-address rules from that selection.
|
|
132
|
-
|
|
133
|
-
Supported canonical PLC type values:
|
|
134
|
-
|
|
135
|
-
- `iq-f`
|
|
136
|
-
- `iq-r`
|
|
137
|
-
- `iq-l`
|
|
138
|
-
- `mx-f`
|
|
139
|
-
- `mx-r`
|
|
140
|
-
- `qcpu`
|
|
141
|
-
- `lcpu`
|
|
142
|
-
- `qnu`
|
|
143
|
-
- `qnudv`
|
|
144
|
-
|
|
145
|
-
## Underlying JS Helper
|
|
146
|
-
|
|
147
|
-
The package also exports the underlying SLMP helper library for the same read/write model used by the Node-RED nodes:
|
|
148
|
-
|
|
149
|
-
```js
|
|
150
|
-
const { SlmpClient, readNamed } = require("@fa_yoshinobu/node-red-contrib-plc-comm-slmp/lib/slmp");
|
|
151
|
-
|
|
152
|
-
async function main() {
|
|
153
|
-
const client = new SlmpClient({
|
|
154
|
-
host: "192.168.250.100",
|
|
155
|
-
port: 1025,
|
|
156
|
-
plcFamily: "qnu",
|
|
157
|
-
});
|
|
158
|
-
const values = await readNamed(client, ["D300", "D300,4"]);
|
|
159
|
-
console.log(values);
|
|
160
|
-
}
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
The helper validates address format, protocol constraints, and device-code support for the selected `plcFamily`, but does not pre-check PLC model-specific device ranges or upper bounds.
|
|
164
|
-
If an address is outside the connected PLC's actual range, the PLC response is returned as the runtime error.
|
|
165
|
-
|
|
166
|
-
## Current Public Register Scope
|
|
167
|
-
|
|
168
|
-
- bit devices: `SM`, `X`, `Y`, `M`, `L`, `F`, `V`, `B`, `TS`, `TC`, `LTS`, `LTC`, `STS`, `STC`, `LSTS`, `LSTC`, `CS`, `CC`, `LCS`, `LCC`, `SB`, `DX`, `DY`
|
|
169
|
-
- word devices: `SD`, `D`, `W`, `TN`, `LTN`, `STN`, `LSTN`, `CN`, `LCN`, `SW`, `Z`, `LZ`, `R`, `ZR`, `RD`
|
|
170
|
-
- typed views: `:S`, `:I` (alias of `:S`), `:D`, `:L`, `:F`
|
|
171
|
-
- string/count views: `,count`, `:STR`, `DSTR`
|
|
172
|
-
- word-bit view: `.bit`
|
|
173
|
-
|
|
174
|
-
Public device-code support by `plcFamily`:
|
|
175
|
-
|
|
176
|
-
| PLC type | Public device codes accepted by the high-level API and Node-RED editor |
|
|
177
|
-
| --- | --- |
|
|
178
|
-
| `iq-r`, `iq-l`, `mx-f`, `mx-r` | `SM`, `SD`, `X`, `Y`, `M`, `L`, `F`, `V`, `B`, `D`, `W`, `TS`, `TC`, `TN`, `LTS`, `LTC`, `LTN`, `STS`, `STC`, `STN`, `LSTS`, `LSTC`, `LSTN`, `CS`, `CC`, `CN`, `LCS`, `LCC`, `LCN`, `SB`, `SW`, `DX`, `DY`, `Z`, `LZ`, `R`, `ZR`, `RD` |
|
|
179
|
-
| `iq-f` | `SM`, `SD`, `X`, `Y`, `M`, `L`, `F`, `B`, `D`, `W`, `TS`, `TC`, `TN`, `STS`, `STC`, `STN`, `CS`, `CC`, `CN`, `LCS`, `LCC`, `LCN`, `SB`, `SW`, `Z`, `LZ`, `R` |
|
|
180
|
-
| `qcpu` | `SM`, `SD`, `X`, `Y`, `M`, `L`, `F`, `V`, `B`, `D`, `W`, `TS`, `TC`, `TN`, `STS`, `STC`, `STN`, `CS`, `CC`, `CN`, `SB`, `SW`, `DX`, `DY`, `Z`, `R`, `ZR` |
|
|
181
|
-
| `lcpu`, `qnu`, `qnudv` | `SM`, `SD`, `X`, `Y`, `M`, `L`, `F`, `V`, `B`, `D`, `W`, `TS`, `TC`, `TN`, `STS`, `STC`, `STN`, `CS`, `CC`, `CN`, `SB`, `SW`, `DX`, `DY`, `Z`, `R`, `ZR` |
|
|
182
|
-
|
|
183
|
-
Validated public hardware summary:
|
|
184
|
-
|
|
185
|
-
- `FX5UC-32MT/D`
|
|
186
|
-
- `Q06UDVCPU`
|
|
187
|
-
- `R08CPU`
|
|
188
|
-
|
|
189
|
-
## Example Flows
|
|
190
|
-
|
|
191
|
-
- [`slmp-demo.json`](https://github.com/fa-yoshinobu/node-red-contrib-plc-comm-slmp/blob/main/examples/flows/slmp-demo.json): combined demo
|
|
192
|
-
- [`slmp-basic-read-write.json`](https://github.com/fa-yoshinobu/node-red-contrib-plc-comm-slmp/blob/main/examples/flows/slmp-basic-read-write.json): scalar, float, and bit read/write over TCP
|
|
193
|
-
- [`slmp-array-string.json`](https://github.com/fa-yoshinobu/node-red-contrib-plc-comm-slmp/blob/main/examples/flows/slmp-array-string.json): array and string read/write over TCP
|
|
194
|
-
- [`slmp-control-error.json`](https://github.com/fa-yoshinobu/node-red-contrib-plc-comm-slmp/blob/main/examples/flows/slmp-control-error.json): control messages, `msg` source, and second-output errors
|
|
195
|
-
- [`slmp-device-matrix.json`](https://github.com/fa-yoshinobu/node-red-contrib-plc-comm-slmp/blob/main/examples/flows/slmp-device-matrix.json): one-by-one and run-all high-level read, write, and readback across the matrix catalog with one outstanding request at a time, status lamp feedback, completed-result history, run summary, unsupported-device skip records, and JSONL logging in `Node-RED userDir/logs/slmp-device-matrix-<session>.jsonl`
|
|
196
|
-
- [`slmp-routing.json`](https://github.com/fa-yoshinobu/node-red-contrib-plc-comm-slmp/blob/main/examples/flows/slmp-routing.json): per-request routing with `msg.target`
|
|
197
|
-
- [`slmp-udp-read-write.json`](https://github.com/fa-yoshinobu/node-red-contrib-plc-comm-slmp/blob/main/examples/flows/slmp-udp-read-write.json): basic UDP read/write
|
|
198
|
-
|
|
199
|
-
The device-matrix flow records `plcFamily` in each JSONL result, keeps one outstanding request at a time, and summarizes `OK`, `SKIPPED`, `NG`, mismatch, timeout, and pending counts.
|
|
200
|
-
|
|
201
|
-
## Known Limitations
|
|
202
|
-
|
|
203
|
-
- the high-level Node-RED surface requires explicit PLC type selection
|
|
204
|
-
- `.bit,count` is not supported
|
|
205
|
-
- a single client connection keeps requests serialized by default
|
|
206
|
-
- the read and write nodes keep the caller-visible logical request shape and do not silently retry with a different fallback split semantics
|
|
207
|
-
- `G` and `HG` are not part of the current public high-level register table
|
|
208
|
-
|
|
209
|
-
## Development
|
|
210
|
-
|
|
211
|
-
Run the local test suite:
|
|
212
|
-
|
|
213
|
-
```bash
|
|
214
|
-
cmd /c npm.cmd test
|
|
215
|
-
```
|
|
216
|
-
|
|
217
|
-
## Notes
|
|
218
|
-
|
|
219
|
-
- `.bit` notation is only valid for word devices such as `D50.3`
|
|
220
|
-
- direct bit devices should be addressed directly as `M1000`, `X1F`, `Y20`
|
|
221
|
-
- `LTN`, `LSTN`, `LCN`, and `LZ` default to 32-bit `:D` access in high-level helpers; iQ-F `LZ` samples should use `LZ0` or `LZ1`
|
|
222
|
-
- `LCN` current-value reads and writes use random dword access in the high-level helpers
|
|
223
|
-
- `LTS`, `LTC`, `LSTS`, and `LSTC` state reads use the long timer 4-word decode helpers
|
|
224
|
-
- `LCS` and `LCC` state reads use direct bit read; high-level state writes use random bit write (`0x1402`)
|
|
225
|
-
- low-level direct bit writes are guarded for `LTS`/`LTC`/`LSTS`/`LSTC`/`LCS`/`LCC`
|
|
226
|
-
- `X/Y` string addresses require explicit PLC type selection
|
|
227
|
-
- `iq-f` interprets `X/Y` string addresses in octal, while other supported families use hexadecimal `X/Y`
|
|
228
|
-
- random read batching follows the Python helper layer for batchable word devices
|
|
10
|
+
# Node-RED MELSEC SLMP Nodes
|
|
11
|
+
|
|
12
|
+
Node-RED nodes for MELSEC SLMP (Binary 3E/4E) PLC communication.
|
|
13
|
+
|
|
14
|
+
## Supported PLC profiles
|
|
15
|
+
|
|
16
|
+
The maintained profile table is in [PLC profiles](docsrc/user/PROFILES.md). Choose one exact canonical PLC profile from that table.
|
|
17
|
+
|
|
18
|
+
## Supported device types
|
|
19
|
+
|
|
20
|
+
The maintained device and range tables are in [Supported registers](docsrc/user/SUPPORTED_REGISTERS.md). Use that page for supported device families, address syntax, and profile-specific notes.
|
|
21
|
+
|
|
22
|
+
## Installation
|
|
23
|
+
|
|
24
|
+
In the Node-RED editor:
|
|
25
|
+
|
|
26
|
+
1. Open Manage palette.
|
|
27
|
+
2. Open the Install tab.
|
|
28
|
+
3. Search for `@fa_yoshinobu/node-red-contrib-plc-comm-slmp`.
|
|
29
|
+
4. Install the package.
|
|
30
|
+
5. Restart Node-RED if your environment requires it.
|
|
31
|
+
|
|
32
|
+
## Quick start
|
|
33
|
+
|
|
34
|
+
1. Open the Node-RED import dialog.
|
|
35
|
+
2. Import `examples/flows/slmp-basic-read-write.json`.
|
|
36
|
+
3. Open the `slmp-connection` config node.
|
|
37
|
+
4. Set Host to `192.168.250.100`.
|
|
38
|
+
5. Set Port to `1025`.
|
|
39
|
+
6. Set Transport to `TCP`.
|
|
40
|
+
7. Set PLC profile to `melsec:iq-r`.
|
|
41
|
+
8. Deploy the flow.
|
|
42
|
+
9. Trigger the read inject node and check `msg.payload` in the debug sidebar.
|
|
43
|
+
|
|
44
|
+
Start with the basic flow before importing the device-matrix flow.
|
|
45
|
+
|
|
46
|
+
## Documentation
|
|
47
|
+
|
|
48
|
+
| Page | Use it for |
|
|
49
|
+
| --- | --- |
|
|
50
|
+
| [Full documentation site](https://fa-yoshinobu.github.io/plc-comm-docs-site/) | Unified docs for all PLC communication libraries. |
|
|
51
|
+
| [Getting started](docsrc/user/GETTING_STARTED.md) | Install the nodes, configure a connection, and run your first SLMP read. |
|
|
52
|
+
| [Usage guide](docsrc/user/USAGE_GUIDE.md) | Use read/write nodes, routing fields, typed values, and flow patterns. |
|
|
53
|
+
| [Supported registers](docsrc/user/SUPPORTED_REGISTERS.md) | Check device families, address syntax, and numbering rules. |
|
|
54
|
+
| [PLC profiles](docsrc/user/PROFILES.md) | Choose the canonical MELSEC profile and frame behavior. |
|
|
55
|
+
| [Example flows](examples/flows/README.md) | Import maintained Node-RED example flows. |
|
|
56
|
+
|
|
57
|
+
## Hardware verified
|
|
58
|
+
|
|
59
|
+
Live-device verification is maintained in [Latest communication verification](docsrc/user/LATEST_COMMUNICATION_VERIFICATION.md).
|
|
60
|
+
See that page for verified PLC models, transports, dates, limitations, and retained validation notes.
|
|
61
|
+
|
|
62
|
+
## License and registry
|
|
63
|
+
|
|
64
|
+
| Item | Value |
|
|
65
|
+
| --- | --- |
|
|
66
|
+
| License | [MIT](LICENSE) |
|
|
67
|
+
| Registry | [npm](https://www.npmjs.com/package/@fa_yoshinobu/node-red-contrib-plc-comm-slmp) |
|
|
68
|
+
| Package | `@fa_yoshinobu/node-red-contrib-plc-comm-slmp` |
|
package/docsrc/index.md
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
# Documentation
|
|
1
|
+
# Documentation index
|
|
2
2
|
|
|
3
3
|
Documentation landing page for `@fa_yoshinobu/node-red-contrib-plc-comm-slmp`.
|
|
4
4
|
|
|
5
5
|
- [Project README](../README.md)
|
|
6
|
+
- [Getting started](user/GETTING_STARTED.md)
|
|
7
|
+
- [Usage guide](user/USAGE_GUIDE.md)
|
|
8
|
+
- [Supported registers](user/SUPPORTED_REGISTERS.md)
|
|
9
|
+
- [PLC profiles](user/PROFILES.md)
|
|
10
|
+
- [Gotchas](user/GOTCHAS.md)
|
|
11
|
+
- [Latest communication verification](user/LATEST_COMMUNICATION_VERIFICATION.md)
|
|
12
|
+
- [Example flows](../examples/flows/README.md)
|
|
6
13
|
- [Changelog](../CHANGELOG.md)
|
|
7
|
-
- [Getting Started](user/GETTING_STARTED.md)
|
|
8
|
-
- [Supported PLC Registers](user/SUPPORTED_REGISTERS.md)
|
|
9
|
-
- [Latest Communication Verification](user/LATEST_COMMUNICATION_VERIFICATION.md)
|
|
10
|
-
- [User Guide](user/USER_GUIDE.md)
|
|
11
|
-
- [Example Flows](../examples/flows/README.md)
|