05-29-2024 03:29 AM
Hello everyone,
I would like to control a stepper motor with a LabVIEW program by RS485 via Modbus RTU.
There is little documentation on the internet, but the manual is quite good.
I have connected the driver with an internet cable, and it is connected to my PC via a USB to RS485 dongle.
To control the motor, we can use the app MEXE02 and modify the motor data.
Using the LabVIEW program, I would like to execute the Operation Data n° 27 to 36 – as shown in the screenshot below.
I think I can use the manual part 7 – 10 Operation data R/W command (p385).
If I understand correctly, I set:
I created the LabVIEW program just below:
But the motor didn’t react, and I can’t understand my mistake, everything seems to be fine. Maybe it’s more about the structure of the ModBus communication.
I'd be very pleased if you could help me and explain my mistakes.
Thank you in advance.
05-31-2024 01:45 AM - edited 05-31-2024 01:47 AM
Hi,
First of all post the VI, not a screenshot.
First question why the multiply by 64 ?
Show how you connected the RS-485 interface.
Kees
07-04-2024 09:10 PM
Hi juliombg,
I don't think the RTU-Modbus CRC calculation in oriental motor matches the RTU-Modbus CRC calculation provided by the LabVIEW Toolkit.
To ensure correctness, I've implemented the CRC calculation according to the user manual.
11-27-2024 02:02 AM
Hi, you already solve it? I have the solution. But seem like this one is old post so I do not know you still need help for this or not