2020-10-07 12:19 AM
Hello Community
I try to test the EVELKIT-ROBOT-1 using MODBUS RTU.
I did it it's factory setting.
After I had connect all the cables, I powered up the EVALKIT.
Motor turned to its init position and stoped at some point.
And Motor hold that position even if I turned the sharft of the motor.
So I want to change the desired posiiton.
I send packets(? : I don't know whether MODBUS RTU also called it packet ) to the EVALKIT as you can see the figure that I uploaded.
The order that I send was (1) -> (2) -> (3) -> (4) -> (5) -> (2) -> (1) -> (6) -> (7).
Following response is the bottom side of figure.
here is my questions.
please help..
Thanks
Minsoo
Solved! Go to Solution.
2020-10-14 12:33 AM
Hi @Mhan.1 ,
I see two errors in your command sequence.
In command #1 read discrete inputs the number of inputs is set 1. In the way the servo driver returns the "done" bit only. If you want to read the ALIGN input you should set at 2 the number of read inputs.
In the last command write single coil the MODBUS RTU protocol requires the 0xFF00 code for the ON condition and the 0x0000 code for the OFF.
In order to simplify your debug, I suggest you using some ready-to-use MODBUS interface like the qModMaster
2020-10-14 12:33 AM
Hi @Mhan.1 ,
I see two errors in your command sequence.
In command #1 read discrete inputs the number of inputs is set 1. In the way the servo driver returns the "done" bit only. If you want to read the ALIGN input you should set at 2 the number of read inputs.
In the last command write single coil the MODBUS RTU protocol requires the 0xFF00 code for the ON condition and the 0x0000 code for the OFF.
In order to simplify your debug, I suggest you using some ready-to-use MODBUS interface like the qModMaster
2020-10-20 05:11 PM
Hi Enrico
Thanks for the correction and advice!
2023-06-21 11:18 AM
Hi! Did this end up working for you? I'm trying to do the same with this kit (using Termite 3.4) but I can't get the motor to move. What modbus code did you use for the last line? Thank you