Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

Switch UART mode for iMotion devices - KBA235121

Switch UART mode for iMotion devices - KBA235121

IFX_Publisher1
Community Manager
Community Manager
Community Manager
250 sign-ins First comment on KBA 250 replies posted

Community Translation: iMotionデバイスのUARTモードを切り替え – KBA235121

Version: **

The iMotion Motion Control Engine (MCE) supports two types of UART modes:

  1. MCEDesigner UART mode (default)
  2. 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:

  1. Connect the iMotion device to the PC via a USB cable and open the corresponding configuration file for the device in MCEWizard.
  2. On the MCEWizard window, jump to question User UART function Definition (The question number can be different for different iMotion devices).
  3. Select UART 0 from the drop-down menu, as shown in Figure 1
  4. After system and operating parameters are set, go to the Verify & Save Page.
  5. 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.

  1. Use MCEDesigner to download the generated parameter file to the iMotion device.

This changes UART0 to function in User UART mode.

MohammedA_41_0-1649925668474.png
Figure 1: MCEWizard Question 19
 

Do the following to switch UART0 configured as User UART back to MCEDesigner UART:

  1. On the MCEWizard window, jump to question User UART function Definition (The question number can be different for different iMotion devices).
  2. Based on your device, select one of these from the drop-down list:
  • Disable
  • UART1
  1. After system and operating parameters are set, go to the Verify & Save Page.
  2. 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.

  1. Open MCEDesigner and open the .irc file for the corresponding device.

There will be a communication error message because MCEDesigner UART is unavailable.

  1. Close the error dialogue box.
  2. Go to Tools > Programmer from the menu bar.
  3. Select the recently generated parameter file with User UART disabled or switched to UART1.
  4. 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.

MohammedA_41_1-1649925772167.png
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.

MohammedA_41_2-1649925845577.png
Figure 3: Programming started

 

0 Likes
940 Views