ads-client 2.0.0-beta.4 → 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 +22 -0
- package/README.md +1043 -57
- package/dist/ads-client.d.ts +71 -8
- package/dist/ads-client.js +257 -75
- 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 +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,28 @@ 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
|
+
|
|
7
29
|
## [2.0.0-beta.4] - 02.10.2024
|
|
8
30
|
- Improved TwinCAT 2 support
|
|
9
31
|
- Improved performance by caching base data types that aren't available in the PLC (for example, `INT16` in TC2)
|