For more content, please click on the above ABB Robot Practical Skills to follow
You can also click the official account below Classic Articles to browse more content
Reprint must first leave a message in the background, let’s support original content together and promote the use and development of robots
This official account provides technical support for various ABB robot applications, simulations, and graduation projects. For details leave a message in the background
This official account sincerely hopes to cooperate with various robot training institutions and robot usage units to provide technical support, for details leave a message in the background
In industrial control upper machine projects, it is sometimes necessary to develop multi-language versions for customers from different countries. In this case, the upper machine not only needs to switch the language of controls/text but also needs to switch the language of system logs collected from the robot controller.
Users can subscribe to logs of different levels (Error/Warning/Information etc.) in the control cabinet through the Event log domain in PCSDK.
For the multi-language switching issue in .netFramework, it can be implemented by updating the .resx resource files, writing the content/property information that needs to switch languages into the resource files. When switching languages, the thread’s thread.CurrentThread.CurrentUICulture needs to be reassigned, as shown in the figure below
After implementing the language switching for the upper machine controls, the author encountered an issue during the subsequent subscription log testing, showing subscription failure, regardless of whether CurrentUICulture is defined as “zh” or “en”. The error content indicates that the subscription log cannot find a folder named “iv” under the language directory, and since the language folder in the real controller does not support modification, the iv folder cannot be added manually to solve this issue.
After consulting multiple sources regarding the subscription log issue, the problem was resolved. The root cause is that when PCSDK subscribes to logs, it also reads the CurrentUICulture information of the upper machine’s current thread, and it has specific requirements for the default names of various languages. The specific resource names need to be defined, such as: en-US/zh-CN/zh-Hans etc.
At the same time, the resource files of .netFramework also need to be updated accordingly to achieve the language switching of controls
After modifying the code based on the above content and testing, when switching the upper machine interface language, the retrieved log information also changes to the corresponding language, as shown in the figure below.
Web page to real-time obtain ABB robot position
ABB Robot Explosive Technology
How to Offline Configure EtherNet I/O Modules (Mixed Module Configuration)
ABB Robot New Teaching Tool to Create Tool Coordinate System
Custom External Axis Tutorial – Positioner
Furnace Welder Ethernet/IP Communication Configuration
Interesting Programming Collection of ABB Robots
OCD Patients’ Gospel – Program Formatting
Python Control of ABB Robot Motion
ABB Robot Communication with Python
ABB Robot Communication with Halcon
ABB Robot Modbus/TCP Communication
ABB Robot EGM External Guidance Option Introduction
ABB Robot Bus Configuration Collection
ABB Robot Sending Floating Point Numbers through Bus
Upper Machine Obtaining Total Running Time of Robot
ABB Robot Speed Setting
Obtaining Robot Single Axis Position Speed Torque
How to Use WorldZone Function to Create HOME Position Signal Output
For more expert explanation videos, you can search WeChat for ABB Robot Practical Skills, or scan the following QR code to follow