Delta ASDA-A2 servo drive via ModbusRTU

More
3 years 5 months ago #270645 by Julien
Hey, I am trying to control my Delta ASDA-A2 servo drive via modbus RTU. I got a USB-RS485 adapter thats connected to my LinuxCNC PC. The PC sees the device (ttyUSB0) and I have set up the parameters in the drive.
address: 01
9600 baud
MODBUS RTU mode 8bit no parity bit 2 stop bits
Communication selection is set to RS-485

I am still trying to communicate with the drive without success. Maybe someone can help me. 

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #270649 by 0x2102
What exactly are you trying to do with the servo drive (via ModBus)? You might be able to use ModBus to control the drive in PR mode but not in PT mode for any realtime application like a CNC machine.

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #270652 by Julien
My spindle ist mounted on that servo drive. It was connected to an analog output until now. I'd like to change the speed and direction via ModBus.

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #270656 by 0x2102
Not sure if I would Modbus to control a spindle, due to safety concerns. I would probably use a StepGen, if you have one available (un-used).

Nevertheless, if I play with a new Modbus device I usually start with the command line tool "modpoll" - link below, to see if the communication is good, I can read the register etc.

Make sure that you have read access to your /dev/ttyUSB0 device.

Create a new udev rule, like below and reload the rule-set or reboot.

cnc@lcnc-dev:/etc/udev/rules.d$ cat 50-myusb.rules
KERNEL=="ttyUSB[0-9]*",MODE="0666"
KERNEL=="ttyACM[0-9]*",MODE="0666"

cnc@lcnc-dev:/etc/udev/rules.d$ sudo udevadm control --reload

www.modbusdriver.com/modpoll.html

Once you can communicate with the drive, you can look into Modbus2HAL or ClassicLadder.

A servo spindle control via Modbus is very manual and not well documented/used. There are usually dedicated components for VFD control via Modbus, but you can't use them or would need to modify them for your use case.

What other hardware/options do you have available beside Modbus?

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #270660 by Julien
Actually I have both other options, step/dir or analogue output (Mesa 7i96s, using 4 step/dir for Axis XYZA), but I am not shure if I am able to control the ASDA-A2 with step/dir or analogue to do taping. I just wired the encoder and it seems to work fine with the mesa card.

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago - 3 years 5 months ago #270661 by 0x2102
Modbus is the least desired option when you want to do tapping.

Step/dir in velocity mode will work the best. Analog command input will require -10V (reverse) to 10V (forward), which the 7i96s doesn't provide. Step/dir is all you need to control the servo motor, also as a spindle drive.
Last edit: 3 years 5 months ago by 0x2102.

Please Log in or Create an account to join the conversation.

Time to create page: 0.409 seconds
Powered by Kunena Forum