0-10v Servo Control with 7i76E

More
15 Mar 2023 19:50 #266779 by besriworld
I forgot to add this line in the first picture.
Am I messing up somewhere?



(InMuxTag, x"00", ClockLowTag, x"01", InMuxControlAddr&PadT, InMuxNumRegs, x"00", InmuxMPBitMask),


One more question/problem. . . is it possible to set the pins that will be outputs to have a high level when the board is first powered.

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

More
10 Apr 2023 22:03 - 10 Apr 2023 22:07 #268786 by besriworld
Hello again .  I think there is a problem with my bit file.  Smart serial does not work.  I look at the TX-pin output with an oscilloscope.  Only one pulse is sent when LinuxCNC is started.  I also have a 7i76e with the same setup, I see a few pulses when starting linux. 
I have two 7i98 cards and the problem is not in the PCB.  Can anyone help?  What's wrong with the bit file?  In a p3 connector, all pins have IOPortTag & x"00" & NullTag & NullPin,
Attachments:
Last edit: 10 Apr 2023 22:07 by besriworld.

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

More
10 Apr 2023 22:30 #268789 by PCW
Replied by PCW on topic 0-10v Servo Control with 7i76E
The 7I98 has the option of pullup/pulldown resistors on the I/O pins
so the I/O pins can be HIGH or LOW until the are controlled by LinuxCNC

If sserial does not work its likely a connection or polarity issue
 
The following user(s) said Thank You: besriworld

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

More
11 Apr 2023 03:57 #268803 by besriworld
I spend several days in tests. Now I look at the oscilloscope what it shows on the 7i98 board (my board is not connected). if the jumper is set pull-down low voltage - the voltage is low and when linuxcnc starts , it goes one pulse high (as shown in the picture) and goes back to 0 and stays there. if the jumper is set pull-up high level - the voltage is high and when linuxcnc start it goes one pulse low and goes back to 3.3v and stays there. Where could be the problem?
At 7i76e I have a series of pulses.
Thanks!

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

More
11 Apr 2023 16:41 #268831 by PCW
Replied by PCW on topic 0-10v Servo Control with 7i76E
Not sure, the one pulse just looks like the driver enabling the output to send data
but nothing is sent (the interface should send a 0xDF and a CRC character and wait for a response)
The following user(s) said Thank You: besriworld

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

More
12 Apr 2023 15:39 #268903 by besriworld
Thanks for the reply! I can't fix the problem. I put in a new bit file that uses the p2 connector for tx pin . I look at the signal on the oscilloscope and a series of pulses is visible. After turning linuxcnc on and off several times, only one pulse is visible again. I formatted the disk and installed debian again. On the oscilloscope I could see the series of pulses but I had no connection with the 7i73, now I have only one pulse again. I use this controller : max3490csa
is there a command to run again and again trying to connect with 7i73
Could it be a problem that I don't have a pin TXEn0 ?

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

More
12 Apr 2023 16:38 #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
12 Apr 2023 18:05 - 14 Apr 2023 17:45 #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: 14 Apr 2023 17:45 by besriworld.

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

More
02 Aug 2023 19:17 #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:0 KB


File Attachment:

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

 

 
#*******************
#  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
Attachments:

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

More
02 Aug 2023 19:57 #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.

Time to create page: 0.220 seconds
Powered by Kunena Forum