LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control Orientalmotor AZ via Modbus RTU (RS485)

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.

juliombg_0-1716970882720.png

 

I think I can use the manual part 7 – 10 Operation data R/W command (p385).

juliombg_2-1716970986378.png

 

If I understand correctly, I set:

  • Port: COM3
  • Baudrate: 115200 bps
  • Slave address: 1
  • Communication parity: Even
  • Stopbits: 1 bit
  • Timeout: 3

 

I created the LabVIEW program just below:

juliombg_3-1716971038519.png

 

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.

 

0 Kudos
Message 1 of 4
(546 Views)

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

0 Kudos
Message 2 of 4
(498 Views)

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.

0 Kudos
Message 3 of 4
(426 Views)

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

0 Kudos
Message 4 of 4
(121 Views)