Switch UART mode for iMotion devices - KBA235121
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Community Translation: iMotionデバイスのUARTモードを切り替え – KBA235121
Version: **
The iMotion Motion Control Engine (MCE) supports two types of UART modes:
- MCEDesigner UART mode (default)
- User UART mode
You can modify this UART block to User UART mode for different applications.
The User UART mode provides a simple, reliable, and scalable communication method for motor control applications. It can be implemented to work as a master to control the MCE and the motor.
The following iMotion devices support User UART mode: IMC101T, IMC102T, IMC099T, IMM101T, IMM101T, IMD111T, and IMC301A.
Note: This article talks about the UART modes for the IMM101T device.
Do the following to switch to User UART mode:
- Connect the iMotion device to the PC via a USB cable and open the corresponding configuration file for the device in MCEWizard.
- On the MCEWizard window, jump to question User UART function Definition (The question number can be different for different iMotion devices).
- Select UART 0 from the drop-down menu, as shown in Figure 1.
- After system and operating parameters are set, go to the Verify & Save Page.
- On the Verify & Save Page, click Calculate.
If no errors are reported, click Export to Designer file (.txt) to save the drive parameter set into your project directory.
- Use MCEDesigner to download the generated parameter file to the iMotion device.
This changes UART0 to function in User UART mode.
Figure 1: MCEWizard Question 19
Do the following to switch UART0 configured as User UART back to MCEDesigner UART:
- On the MCEWizard window, jump to question User UART function Definition (The question number can be different for different iMotion devices).
- Based on your device, select one of these from the drop-down list:
- Disable
- UART1
- After system and operating parameters are set, go to the Verify & Save Page.
- On the Verify & Save Page, click Calculate.
If no errors are reported, click Export to Designer file (.txt) to save the drive parameter set into your project directory.
- Open MCEDesigner and open the .irc file for the corresponding device.
There will be a communication error message because MCEDesigner UART is unavailable.
- Close the error dialogue box.
- Go to Tools > Programmer from the menu bar.
- Select the recently generated parameter file with User UART disabled or switched to UART1.
- First, remove the power supply to the device and provide enough time to ensure that the voltage has dropped below the minimum threshold value, and click Start.
It starts programming, as shown in Figure 2.
Figure 2: Connecting to device
At first, it displays as Connecting to Device. As soon as it displays Programming Parameters to Device, as shown in Figure 3, quickly power on the device.
Note: Programming may fail if there is a delay in connection or the device is not turned off correctly.
Figure 3: Programming started