Page 1
AX58400 MotorControl User Guide Reference Design User Guide AX58400 MotorControl User Guide Revision 1.20 October 17 , 2023 rch 14 , 2020 rch 14 , 2020 rch 14 , 2020 Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
Page 2
1.00 2021/06/28 Initial release 1.10 2021/08/17 Modify AX58400-TSB-1 and encoder power source 1.20 2023/10/17 1. Added Evaluation Board License Agreement. 2. Added another power USB connectivity and update related figures and tables. Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
1. Introduction Reference Design User Guide This document introduces how to setup entire environment for motor control application on AX58400-TSB-1 with ST X-NUCLEO-IHM08M1. The demo application of EtherCAT master side develops using PLC (Programmable Logic Controller) language through BECKHOFF TwinCAT engineering (XAE). The IDE relies on Microsoft Visual Studio 2010 / 2013.
Note: You can download the BECKHOFF TwinCAT here or contact ASIX Electronics Corporation. [Software at EtherCAT slave side] ⚫ STM32CubeProgrammer Figure 2 - 2 ⚫ Note: You can download the STM32CubeProgrammer here Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
Page 9
If you use a version older than version 5.29, you can use STM32CubeProgrammer download firmware. ⚫ SSC Tool V5.12(for development only) Figure 2 - 5 ⚫ Note: You can download the SSC Tool V5.12 here Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
Page 10
AX58400 MotorControl User Guide [Hardware] ⚫ AX58400-TSB-1 x 1 Reference Design User Guide Figure 2 - 6 Figure 2 - 7 ⚫ STLINK-V3MINI x 1 Figure 2 - 8 Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
Page 11
AX58400 MotorControl User Guide Reference Design User Guide Figure 2 - 9 ⚫ X-NUCLEO-IHM08M1 3-Phase Inverter Board x 1 Figure 2 - 10 Figure 2 - 11 Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
Page 12
AX58400 MotorControl User Guide ⚫ MOTION TECH BL60M24D8E00430080 Motor x 1 Please refer to MTM official website for more detail: http://www.motiontech.com.tw/ Reference Design User Guide Figure 2 - 12 Table 2 - 1 Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
Page 13
AX58400 MotorControl User Guide Reference Design User Guide Table 2 - 2 Table 2 - 3 ⚫ 24VDC/8A Power Supply x 1 Figure 2 - 13 Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
3. Board Description Reference Design User Guide 3-1 AX58400-TSB-1 The AX58400-TSB-1 is a development board with AX58400 dual core MCU and EtherCAT Slave Controller, please refer to ASIX official website as below for more detail. https://www.asix.com.tw/ Figure 3 - 1 3-2.
Reference Design User Guide 4-1 Connectivity Please based on below table to connect all necessary equipment. Table 4 - 1 Then you can get the final slave side environment as following. Figure 4 - 1 Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
5. Generate firmware and download to AX58400-TSB-1 Reference Design User Guide If you want to generate firmware and download to AX58400-TSB-1, you have 2 steps basically: (1) Use EtherCAT Slave Stack Code to generate EtherCAT sources. (2) Use ARM KEIL MDK compiler and download firmware.
Step 2: Select project “AX58400_MotorControl _CM7” and click menu “Run→Run”. Figure 5 - 40 Attention! In addition to AX58400_MotorControl _CM4 and AX58400_MotorControl _CM7, you also need to download Ax58400_Bldr_CM7.bin. Please refer to Chapter 5-4 Step1~5 for the download method. Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
EtherCAT port. If you have 2 adapters, the second adapter can be used for deploy redundancy. Whatever, you should create a TwinCAT project first for any EtherCAT related affairs under TwinCAT XAE. Please refer to below steps: ⚫ Step 1: Click the “New TwinCAT Project…” Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
Page 30
Reference Design User Guide Figure 6 - 2 ⚫ Step 2: Specify “Name” and “Location” and click “OK”. Figure 6 - 3 ⚫ Step 3: Click the “TWINCAT -> Show Realtime Ethernet Compatible Devices…”. Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
Page 31
AX58400 MotorControl User Guide Reference Design User Guide Figure 6 - 4 Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
Page 32
If not installed, please click “Install”. Reference Design User Guide Figure 6 - 5 ⚫ Step 5: Please copy the ESI (EtherCAT Slave Information) file “AX58400_MotorControl.xml” to TwinCAT directory: “C:\TwinCAT\3.1\Config\Io\EtherCAT\”. Figure 6 - 6 Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
Page 34
Step 9: Wait for progress bar at lower right corner of the TwinCAT screen. Figure 6 - 10 ⚫ Step 10: Select “Device N (EtherCAT)”, right-click, choose “Remove” and rescan Devices. Figure 6 - 11 Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
“AX58400_BSP_v100\SampleCode\AX58400_MotorControl\For_TwinCAT\PLC”. User just needs to insert the file into PLC entry of TwinCAT project. Please refer to below steps: ⚫ Step 1: Right-click on “PLC” entry and select “Add Existing Item…”. Figure 7 - 2 Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
Page 36
Yellow color indicates the software variables are used for read PD (Process Data) input value from slave. Red color indicates the software variables are used for write PD (Process Data) output value to slave. Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
We illustrate procedure of PD link here. If you want to create a PD link, please follow below procedure: ⚫ Step 1: Right click “MAIN.arrAms_NetId” and click “Change Link”. Figure 7 - 6 Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
Page 38
Step 3: Right click “Global_Value.Axes[0].nStateWord”, click “Change Link” and select “Statusword”. Figure 7 - 8 ⚫ Step 4: Right click “Global_Value.Axes[0].nPosActVal”, click “Change Link” and select “Position actual value”. Figure 7 - 9 Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
Page 41
Step 5: Set Master Distributed Clocks in DC mode Figure 7 - 16 ⚫ Step 7: Set Box1→Advanced Settings to DC Synchron, Enable SYNC1 and Use as potential Reference Clock Figure 7 - 17 Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
Page 42
AX58400 MotorControl User Guide ⚫ Step 8: Active configuration Reference Design User Guide Figure 7 - 18 ⚫ Step 9: Confirm the AX58400 in “OP” state Figure 7 - 19 Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
Page 43
AX58400 MotorControl User Guide Step 10: Click “Login” and then click “Yes” Reference Design User Guide Figure 7 - 20 ⚫ Step 11: Click “Start” Figure 7 - 21 Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
Page 44
AX58400 MotorControl User Guide ⚫ Step 12: Double click Demonstration to open PLC GUI Reference Design User Guide Figure 7 - 22 ⚫ Step 13: Power On Figure 7 - 23 Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
This section shows the steps of firmware update with EtherCAT FoE. Step1: Right click Box1 and select Firmware Update Figure 8 - 1 Step2: Select AX58400_MotorControl_CM4.efw from folder “AX58400_BSP_v100\SampleCode\AX58400_MotorControl\MDK-ARM\FoE” Figure 8 - 2 Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
Page 47
Figure 8 - 4 Step5: A dialog will pop up and just click “OK” button. Figure 8 - 5 Step6: Repeat Step1-5 to update AX58400_MotorControl_CM7.efw from folder “AX58400_BSP_v100\SampleCode\AX58400_MotorControl\MDK-ARM\FoE” Figure 8 - 6 Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
Mapped objects status word RECORD Tx pdo mapping of csp/csv actual position actual velocity mode of operation display 0x1A01 PDO Mapping Mapped objects: RECORD Tx pdo mapping of csp status word actual position Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
Page 49
Supported drive modes UNSIGNED32 supported in this FW verson) 0xF000 RECORD Modular device profile 0xF010 Module profile list UNSIGNED32 0xF030 ARRAY Configured module Ident list 0xF050 ARRAY Module detected list Table 9 - 3 Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
6bytes input and 6bytes output, under this setting, the minimum DC cycle time can down to 100us. Figure 10 - 1 Without frame lost and Tx/Rx error at Master side. Figure 10 - 2 Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
Page 51
AX58400 MotorControl User Guide Also, without detected SM-Event Missed, Cycle Time Too Small and Sync Error at Slave side. Reference Design User Guide Figure 10 - 3 Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
Page 52
(4) You may not alter, modify, copy or otherwise misappropriate any ASIX electronic product, whether in whole or in part. ASIX Electronics shall not be liable for any loss incurred by you or a third party as a result of altering, modifying, copying or otherwise misappropriating ASIX Electronics products.
Page 53
No part of this document may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying and recording, for any purpose, without the express written permission of ASIX. ASIX may make changes to the product specifications and descriptions in this document at any time, without notice.
Page 54
AX58400 MotorControl User Guide Reference Design User Guide 4F, No.8, Hsin Ann RD., Hsinchu Science Park, Hsinchu, Taiwan, R.O.C. TEL: +886-3-5799500 FAX: +886-3-5799558 Email: support@asix.com.tw Web: https://www.asix.com.tw Copyright (C) 2021-2023 Reserved by ASIX Electronics Corporation...
Need help?
Do you have a question about the AX58400-TSB-1 and is the answer not in the manual?
Questions and answers