0-10v Servo Control with 7i76E

More
3 years 6 months ago #268909 by PCW
Replied by PCW on topic 0-10v Servo Control with 7i76E
TXen is not needed unless connected to the driver chip
Did your bitfile meet timing?

You can start/stop SSLBP with simple register operations (using mesaflash's WPO function for example)

Basically setup the DDR/AltSource registers then issue a startall/stopall
command to the SSLBP command register

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

More
3 years 6 months ago - 3 years 6 months ago #268917 by besriworld
PWM works well. I'm uploading a "readhmid "

Warning: Spoiler!



Can you upload a link ... I'm just very new to the linuxcnc world

PS: 
I upload this firmware. 7i98_7i77_7i74d.bit
I am trying to read it with command $ sudo mesaflash --device 7i98 --addr 10.10.10.10 --sserial
There is no change, only one impulse comes (when I look with the oscilloscope).

$ sudo mesaflash --device 7i98 --addr 10.10.10.10 --sserial
SSLBP port 0:
  SSLBP Version: 1.43
  SSLBP Channels: 1
  SSLBP Baud Rate: 2500000

PS It's working fine now

 
Last edit: 3 years 6 months ago by besriworld.

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

More
3 years 2 months ago #276792 by besriworld
I have a problem with the setup. I am uploading the configuration.I have a servo spindle on a lathe. I want to close the feedback in linuxcnc. When changing P 0.1, the motor increases speed. Seems pid, doesn't follow feedback.
Board 7i98

 

File Attachment:

File Name: my_LinuxCN...hine.ini
File Size:238 B


File Attachment:

File Name: my_LinuxCN...hine.hal
File Size:2.31 KB
 

 

 
Code:
#******************* #  SPINDLE #******************* setp   pid.s.Pgain     [SPINDLE_0]P setp   pid.s.Igain     [SPINDLE_0]I setp   pid.s.Dgain     [SPINDLE_0]D setp   pid.s.bias      [SPINDLE_0]BIAS setp   pid.s.FF0       [SPINDLE_0]FF0 setp   pid.s.FF1       [SPINDLE_0]FF1 setp   pid.s.FF2       [SPINDLE_0]FF2 setp   pid.s.deadband  [SPINDLE_0]DEADBAND setp   pid.s.maxoutput [SPINDLE_0]MAX_OUTPUT setp   pid.s.error-previous-target true net spindle-index-enable  =>  pid.s.index-enable net spindle-enable        =>  pid.s.enable net spindle-vel-cmd-rpm     => pid.s.command net spindle-vel-fb-rpm-abs     => pid.s.feedback net spindle-output        <=  pid.s.output # ---PWM Generator signals/setup--- setp   hm2_7i98.0.pwmgen.00.output-type 1 setp   hm2_7i98.0.pwmgen.00.scale  [SPINDLE_0]OUTPUT_SCALE net spindle-output     => hm2_7i98.0.pwmgen.00.value net spindle-enable      => hm2_7i98.0.pwmgen.00.enable     # ---Encoder feedback signals/setup--- setp    hm2_7i98.0.encoder.02.counter-mode 0 setp    hm2_7i98.0.encoder.02.filter 1 setp    hm2_7i98.0.encoder.02.index-invert 0 setp    hm2_7i98.0.encoder.02.index-mask 0 setp    hm2_7i98.0.encoder.02.index-mask-invert 0 setp    hm2_7i98.0.encoder.02.scale  [SPINDLE_0]ENCODER_SCALE net spindle-revs             <=   hm2_7i98.0.encoder.02.position net spindle-vel-fb-rps-abs       <=   hm2_7i98.0.encoder.02.velocity net spindle-vel-fb-rpm-abs       <=   hm2_7i98.0.encoder.02.velocity-rpm net spindle-index-enable     <=>  hm2_7i98.0.encoder.02.index-enable # ---setup spindle control signals--- net spindle-vel-cmd-rps        <=  spindle.0.speed-out-rps net spindle-vel-cmd-rps-abs    <=  spindle.0.speed-out-rps-abs net spindle-vel-cmd-rpm        <=  spindle.0.speed-out net spindle-vel-cmd-rpm-abs    <=  spindle.0.speed-out-abs net spindle-enable             <=  spindle.0.on net spindle-cw                 <=  spindle.0.forward net spindle-ccw                <=  spindle.0.reverse net spindle-brake              <=  spindle.0.brake net spindle-revs               =>  spindle.0.revs net spindle-at-speed           =>  spindle.0.at-speed net spindle-vel-fb-rps         =>  spindle.0.speed-in net spindle-index-enable      <=>  spindle.0.index-enable # ---Setup spindle at speed signals--- sets spindle-at-speed true

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

More
3 years 2 months ago #276793 by PCW
Replied by PCW on topic 0-10v Servo Control with 7i76E
if you set P to 0 and command say 1000 RPM, what
are the values of

spindle-vel-cmd-rpm
and
spindle-vel-fb-rpm-abs

?

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

More
3 years 2 months ago - 3 years 2 months ago #276828 by besriworld
Hi, stupid mistake. I had to change the sign/direction of the feedback. But there seems to be a problem with my board. There is noise in the analog signal. And with 1000 revolutions per minute and without a pid regulator I get spindle-vel-fb-rpm-abs 1005-1010rpm

should I filter the analog signal?

 

What do you think of the scheme?  I can also upload a simulation ?
In simulation it's good, but in real life it's not good :)

Maybe I should add a capacitor in parallel with the resistor R28 ?
Last edit: 3 years 2 months ago by besriworld.

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

More
3 years 2 months ago #276834 by PCW
Replied by PCW on topic 0-10v Servo Control with 7i76E
I think the filter is not needed, also feedback is likely not needed either
as speed variations of a few % will have no significant effect on machining
or spindle synchronized motions as long as your encoder resolution is greater
than say100 PPR.

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

Time to create page: 0.460 seconds
Powered by Kunena Forum