Stepperonline A6-1000EC driver

More
1 year 1 month ago #334221 by russkinch
Hi again. I have sorted the power issue (manual was no help at all). Now, I have it set to Linuxcnc using ethercat. It is all communication etc. I want to run the servo as a spindle motor so just have the target-velocity (60FE). How do I create the 'pins' to tell the drive to turn at say 1000rpm with an M3 command is given. I have done the many times using a VFD (much easier but space and weight limits force me to use a servo).

I am soooo out of my depth here, any help is always hugely appreciated. (I have already looked through the various threads and found no help after hours of scrolling)

Please Log in to join the conversation.

More
1 year 1 month ago #334222 by Rookie0
Code:
# spindle.hal # use cia402 comp.  link: https://github.com/dbraun1981/hal-cia402 loadrt cia402 names=cia-s addf cia-s.read-all           servo-thread addf cia-s.write-all          servo-thread # value = resolution_servo_encoder ÷ 60 # if gearbox exists, then * reduction_ratio(input:ouput) setp cia-s.velo-scale 800 net s-statusword      <= lcec.0.N.cia-statusword   => cia-s.statusword net s-opmode-display  <= lcec.0.N.opmode-display   => cia-s.opmode-display net s-drv-act-velo    <= lcec.0.N.actual-velocity  => cia-s.drv-actual-velocity net s-controlword     <= cia-s.controlword         => lcec.0.N.cia-controlword net s-opmode          <= cia-s.opmode              => lcec.0.N.opmode net s-drv-target-velo <= cia-s.drv-target-velocity => lcec.0.N.target-velocity net s-enable          <= spindle.0.on              => cia-s.enable net s-velo-fb         <= cia-s.velocity-fb         => spindle.0.speed-in net s-velo-cmd        <= spindle.0.speed-out       => cia-s.velocity-cmd

hope it helps.

Please Log in to join the conversation.

More
1 year 1 month ago #334229 by russkinch
I am not sure. I am attaching my xml file which I created from a thread online. I also did am xml using ethercat, but they are different.

Please Log in to join the conversation.

More
1 year 1 month ago #334233 by russkinch
Hi, I now have a type mismatch between :

net s-drv-target-velo <= cia-s.drv-target-velocity => lcec.0.A6.target-velocity

I am at my wits end now.

Please Log in to join the conversation.

More
1 year 1 month ago #334341 by andypugh
S32 seems like an unusual choice for a velocity HAL pin.

Please Log in to join the conversation.

More
1 year 1 month ago #334546 by Martin.L
replace x with your servo/spindle index

net s-vel-cmd <= spindle.0.speed-out
net s-vel-cmd => cia402.x.velocity-cmd

You will need csp mode 0 :

setp cia402.5.csp-mode 0
setp cia402.5.pos-scale 1

Please Log in to join the conversation.

More
1 year 6 days ago #337090 by Will_cnc
Hi 
I am planning on using the same motor and driver for my mill until I upgrade to a larger motor.  would you be able to share your . ini  .hal  and . xml file of your configuration any what mode you set on the driver if you got it running? 
Thanks will 

Please Log in to join the conversation.

Time to create page: 0.227 seconds
Powered by Kunena Forum