LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Modbus RTU control of Nanotec C5-E motor controller

I need to use commands for simple control of a stepper motor using a C5-E controller and Modbus RTU protocal. All I need is simple functions like, velocity, current, torque and position. I've never used  Modbus  in the past so I am having trouble getting started. I have a B & B USOPTL4 USB to RS485 converter. I 've downloaded the LV modbus libraries and set up the "Create Serial Master.vi" for new serial master and RTU. Nanotec has a document entitled "Functional-Description Plug Interface" that describes access #s for the different modes and settings. for example, to set the velocity operating mode, 

 

Step 1:  write 6060h:00h = 2h

Step 2:  write 6061h:00h (=2h?)

.

.

.

.

Step n

I'm not sure which VIs to use or how to structure and write the commands.

Any assistance /direction  with this would be greatly appreciated

 

Thank you

0 Kudos
Message 1 of 5
(2,541 Views)

Hi ,

 

were you able to establish the connection with Nanotec with Modbus, i am also currently working on this, i am not find the solution to run the motor with nanotec, i have used modbus for years but communicating with nanotec is not easy now

0 Kudos
Message 2 of 5
(2,042 Views)

From the OP's post it would seem to me that they use a very weird Modbus addressing syntax. Just as if the already existing ones wouldn't be already confusing enough, lets invent yet another one, since it is so much fun.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 3 of 5
(2,012 Views)

@rolfk wrote:

From the OP's post it would seem to me that they use a very weird Modbus addressing syntax.


That's because it's EtherCAT. Specifically, the CiA402/DS402 profile, which deals with motion and defines those EtherCAT objects. I have no idea if and how this translates to Modbus in the Nanotec controller, but presumably the document mentioned in the first post refers to that.


___________________
Try to take over the world!
0 Kudos
Message 4 of 5
(2,000 Views)

You will use read/write holding register .vi. Read this document how to map CANopen objects to Modbus registers:

https://en.nanotec.com/fileadmin/files/Application_Notes/modbus-registers/ModbusRegisters_Applicatio...

0 Kudos
Message 5 of 5
(1,627 Views)