ads-client 2.0.0-beta.3 → 2.0.0-beta.5
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 +35 -0
- package/README.md +1536 -303
- package/dist/ads-client.d.ts +350 -76
- package/dist/ads-client.js +585 -147
- package/dist/ads-client.js.map +1 -1
- package/dist/ads-commons.d.ts +17 -2
- package/dist/ads-commons.js +46 -8
- package/dist/ads-commons.js.map +1 -1
- package/dist/types/ads-client-types.d.ts +22 -22
- package/dist/types/ads-client-types.js.map +1 -1
- package/dist/types/ads-protocol-types.d.ts +37 -0
- package/package.json +3 -4
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,41 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [2.0.0-beta.5] - 25.11.2024
|
|
8
|
+
- Added support for UTF-8 encoded ADS symbols
|
|
9
|
+
- Required for TwinCAT 3.1.4026 support
|
|
10
|
+
- Required for TwinCAT 3.1.4022/3.1.4024 with `UTF-8 Encoding` checked under `TwinCAT XAE -> SYSTEM -> Settings -> ADS Symbolic`.
|
|
11
|
+
- Added new `metaData.adsSymbolsUseUtf8`
|
|
12
|
+
- Set `true` if target system is using UTF-8 for ADS symbol encoding
|
|
13
|
+
- Added new setting `forceUtf8ForAdsSymbols` (default: `false`)
|
|
14
|
+
- If set, client always handles ADS symbols as UTF-8 encoded
|
|
15
|
+
- Otherwise tries to detect the encoding or fallbacks to cp1252
|
|
16
|
+
- `readPlcUploadInfo()` updated to support new version 3 upload info (inc. ADS symbol encoding info)
|
|
17
|
+
- Also added support for old version 1 upload info (perhaps old TC2 devices..?)
|
|
18
|
+
- New method `sendAdsCommandWithFallback()`
|
|
19
|
+
- Calls `sendAdsCommand()` with a specific command. If it fails to certain ADS errors, tries the fallback command.
|
|
20
|
+
- Bug fix: If RPC method parameter had attributes, error was thrown
|
|
21
|
+
- Bug fix: If RPC method parameter had multiple flags, error was thrown (`Response with ADS error received (error 1797 - Parameter size not correct)`)
|
|
22
|
+
- When calling `readPlcRuntimeState()` and state has changed, event `plcRuntimeStateChange` is emitted (previously emitted only if notification received from PLC)
|
|
23
|
+
- See [issue #159](https://github.com/jisotalo/ads-client/issues/159)
|
|
24
|
+
- `startPlc()`, `resetPlc()`, `stopPlc()` and `restartPlc()` call `readPlcRuntimeState()` afterwards to update the runtime state to metadata (and to emit event if needed)
|
|
25
|
+
- See [issue #159](https://github.com/jisotalo/ads-client/issues/159)
|
|
26
|
+
- Added support for ENUM value comments and attributes (TwinCAT 3.1.4026 and newer)
|
|
27
|
+
- See [issue #163](https://github.com/jisotalo/ads-client/issues/163)
|
|
28
|
+
|
|
29
|
+
## [2.0.0-beta.4] - 02.10.2024
|
|
30
|
+
- Improved TwinCAT 2 support
|
|
31
|
+
- Improved performance by caching base data types that aren't available in the PLC (for example, `INT16` in TC2)
|
|
32
|
+
- Bug fix: Building data types for TC2 system didn't always work (`DataType` flag is not set in base types)
|
|
33
|
+
- Bug fix: Building data types for TC2 system didn't always work (with arrays of base types)
|
|
34
|
+
- Added test suites for TwinCAT 2
|
|
35
|
+
- Separate TwinCAT 2 test PLC project created (See [https://github.com/jisotalo/ads-client-test-plc-project/tree/v2-dev](https://github.com/jisotalo/ads-client-test-plc-project/tree/v2-dev))
|
|
36
|
+
- Updated tests to work with TC2 (and removed tests for TC2 unsupported features)
|
|
37
|
+
- Bug fix: Client failed to disconnect when using [AdsRouterConsole](https://github.com/Beckhoff/TF6000_ADS_DOTNET_V5_Samples/tree/main/Sources/RouterSamples/AdsRouterConsoleApp) as a TwinCAT router
|
|
38
|
+
- Client now waits for port unregistering response, if the connection is not dropped immediately
|
|
39
|
+
|
|
40
|
+
Thank you [Christian Rishøj](https://github.com/crishoj) for contribution!
|
|
41
|
+
|
|
7
42
|
## [2.0.0-beta.3] - 10.09.2024
|
|
8
43
|
- **BREAKING:** Renamed `ReadWriteRawMultiCommand` property `writeData` to `value`
|
|
9
44
|
- Added `warning` event to listen for console warnings
|