Skip to content

Commit 95e8590

Browse files
Update to new version : 3.3.0.0
1 parent 207cdff commit 95e8590

File tree

4 files changed

+30
-4
lines changed

4 files changed

+30
-4
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import typing
2+
from underautomation.fanuc.common.languages import Languages
3+
import clr
4+
import os
5+
clr.AddReference(os.path.realpath(os.path.join(os.path.dirname(__file__), "..", 'lib', 'UnderAutomation.Fanuc.dll')))
6+
from UnderAutomation.Fanuc.Common import StringUtils as string_utils
7+
8+
class StringUtils:
9+
def __init__(self, _internal = 0):
10+
if(_internal == 0):
11+
self._instance = string_utils()
12+
else:
13+
self._instance = _internal
14+
@staticmethod
15+
def get_encoding(language: Languages) -> typing.Any:
16+
return string_utils.GetEncoding(language)
512 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1.1.0
1+
3.3.0.0

whatsNew.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1-
- Added support for Japanese and Chinese languages. You can now set the language in the Connect Parameters.
2-
- The SDK now supports Shift-JIS and GB2312 encodings for Japanese and Chinese string data.
3-
- Throws a `ConnectException` when the connection fails instead of a generic exception. It now includes more details about the failure and the protocol that caused it.
1+
- Add `GetEncoding` method to `StringUtils` for retrieving encoding by controller language
2+
3+
```csharp
4+
namespace UnderAutomation.Fanuc.Common;
5+
6+
public static class StringUtils {
7+
public static Encoding GetEncoding(Languages language);
8+
}
9+
```
10+
11+
- Fix Telnet program Breakpoint commands for Japanese and Chinese controllers
12+
13+
- Set FTP encoding according to robot controller language

0 commit comments

Comments
 (0)