2021-03-04 08:03 AM
Hi,
have a question, i don't understand the difference in holding register from low register (address 0) and high register(address 1). I used QmodBus 0.2.1 and if i set degree in low register i have no problem.. But in a High register if set a value >0 the motor start with casual rpm..
Second question, i want generate the FW binary.. i Used MCworkbench and set in speed mode. Push on Generate but i have no binary but only the project. Can you help me pls?
Thx
Solved! Go to Solution.
2021-03-07 06:12 AM
Hi @DBrag.1 ,
The holding registers at addresses 0 and 1 set target position. The firmware manage target position in 32bit format, but MODBUS's holding registers are 16 bit only, so register#0 sets LS bytes and register#1 sets the MS ones.
Your issue could be due to the relation between final position and motion duration: the far the final position, the longer should be the time (register#2).
About your second point: the motor control SDK generates a project targeting the IDE you selected (IAR Embedded Workbench, ARM/Keil uVision or STM32CubeIDE). In order to generate the binary you need to open the project and compile it.
If you do not have an IDE already installed, I can suggest you to download and install the STM32CubeIDE from st.com. No license is required.
Please note that you need a compatible SWD programmer/debugger to download the compiled firmware into the STSPIN32F0 (e.g. STLINK-V2 or STLINK-V3)
2021-03-07 06:12 AM
Hi @DBrag.1 ,
The holding registers at addresses 0 and 1 set target position. The firmware manage target position in 32bit format, but MODBUS's holding registers are 16 bit only, so register#0 sets LS bytes and register#1 sets the MS ones.
Your issue could be due to the relation between final position and motion duration: the far the final position, the longer should be the time (register#2).
About your second point: the motor control SDK generates a project targeting the IDE you selected (IAR Embedded Workbench, ARM/Keil uVision or STM32CubeIDE). In order to generate the binary you need to open the project and compile it.
If you do not have an IDE already installed, I can suggest you to download and install the STM32CubeIDE from st.com. No license is required.
Please note that you need a compatible SWD programmer/debugger to download the compiled firmware into the STSPIN32F0 (e.g. STLINK-V2 or STLINK-V3)
2021-03-08 03:49 AM
OK thank you very much. I think there is another problem, because if motor absorption is major than 0.7A it stops working. I Have an STLINK-V3.
So i have two Kit Robot and the second i want to use it in speed mode. I generated the binary with parameter "speed" and i put in second board but i can't connect and check it with MCworkbench. I set a baudarate to 9600 and change the connections like in image.
2021-03-08 06:12 AM
If you want to bypass the RS485 transceiver and use the STLINK-V3 VirtualCOM instead, you need to check the following:
2021-03-09 12:37 AM
Hi,
i followed your check point, but device doesn't connect with MCWB. My connection and parameter setted on MCWB:
2021-03-09 01:00 AM
Hi,
I notice only now that you connected the TX line to wrong test point, sorry for that.
TX is on TP14, but you connected it on TP15:
Let me know if this solve your issue
2021-03-09 03:40 AM
Perfect! It working : )
Thx
2021-03-10 08:55 AM
Hi,
i would like use the speed mode FW with modbus, it is possible? For to do this i should change code or i can put the parameter (rpm) in a specific register?
2021-03-11 06:34 AM
Hi @DBrag.1
Glad to read the board works now.
For this new question, could you please open a new post?
In the community it is better to keep topics separated, this helps other members with your same need finding what they are looking for.
If you tag me at the end of the post, I'll be promptly warned of it ;)
Thanks for your cooperation!
2021-03-12 03:04 AM
Hi @DBrag.1
Yes, please, Can you open a new one.
Only one topic by thread in this forum.
Best regards
Laurent Ca...