. .
Page 2 of 2 FirstFirst 12
  1. #11
    Quote Originally Posted by EddyCurrent View Post
    Assuming the OP still wants -10 to +10.
    With the method proposed previously by Jonathan there exists a problem, if the reference wire to the servo driver goes open circuit, the drive would go to full speed reverse.
    My intention was to expand on the circuit design when if it turned out to be necessary. There's a much easier way to solve that problem, but I don't think it's worth discussing the circuit here.
    Old router build log here. New router build log here. Lathe build log here.
    Electric motorbike project here.

  2. Quote Originally Posted by Jonathan View Post
    My intention was to expand on the circuit design when if it turned out to be necessary. There's a much easier way to solve that problem, but I don't think it's worth discussing the circuit here.
    Agreed, and I don't think OP wants to use analogue mode anyway as AFAIK Mach3 doesn't support open-loop servo & encoder feedback for positioning.

  3. #13
    Quote Originally Posted by Jonathan View Post
    My intention was to expand on the circuit design when if it turned out to be necessary. There's a much easier way to solve that problem, but I don't think it's worth discussing the circuit here.
    Oh yes there is, what's the point of keeping it a secret ? I want to hear about it.

  4. #14
    Quote Originally Posted by EddyCurrent View Post
    Within Mach3 the user would use S for speed and M3,M4 for direction.
    In additiaon a Mach3 Brain could be used to read the Spindle Speed DRO and only operate the direction relay outputs if the speed was above a particular figure, this would give a deadband around the zero position.
    Then how do you start the Spindle or control it's speed thru G-code.?. . . . There will be better ways but I'm not wasting brain cells thinking about it because the guy has Servo drives that take Step/Dir so why make life hard.?

  5. #15
    Quote Originally Posted by JAZZCNC View Post
    Then how do you start the Spindle or control it's speed thru G-code.?. . . .
    Don't be silly now, you know how to do that. Also this thread is going off the rails due to lack of info from the OP, he's either controlling a servo driver or a VFD. The VFD is straight forward, use a spindle board from Mach3, the servo driver, who knows until more info is given ?
    Anyway I'm only looking at novel ways to derive a -10v to +10v output but nobody wants to play about with it or forward their own ideas.
    It's one of those days when I'm thinking, why bother ?
    Last edited by EddyCurrent; 14-01-2014 at 06:13 PM.

  6. #16
    vre's Avatar
    Lives in Athens, Greece. Last Activity: 19-05-2022 Has been a member for 8-9 years. Has a total post count of 39.
    Thank you for all answers.
    I will use linuxcnc not mach3 because mach3 does not have the ability to make outer close loop (not real time kernel in windows).
    The servos are for a lathe retrofit ( x & z axes) and the vfd is to control the spindle speed and direction (cc or ccw)
    The servo has a mode position/speed and from an input signal you can select position or speed (step/dir or analog -10 to +10v).
    I want to have the ability to override the speed manually outside from gcode so this is the reason why i want analog -10v to +10v.
    Also i want to control vfd from gcode to have constant surface speed and i want to override this speed manually.
    Because with parallel port hardware limit exits and i can't output 500khz pulse train (2500cpr encoder) i want a card to manage 500khz step/dir signals.
    Do you know some card which can do this work in linux and cooperate with linuxcnc ?

  7. #17
    Eddy - I don't think that it's very novel, but to go from 0-5V to -10-10V I would use an op amp in a similar way to the link that Jonathan gave. Personally, I would do it slightly differently; the op amp needs +-12V to make sure that there is enough headroom on the output (unless you find an op amp that can work closer to the supply rails). Use a potential divider across the supply rails (or +12 and 0V), with whatever regulation/zener diode etc you like, to give a fixed 2.5V and connect this to the inverting input via R1. Use a feedback resistor R2 from output to inverting input. R2/R1 = 4 to give correct gain. Take the 0-5V via an appropriate resistor to the non-inverting input. Job done - I think. You could incorporate a bit more smoothing if you are using a PWM analogue "pseudo 0-5V" signal by putting a suitable capacitor in parallel with the feedback resistor.

    You would then use this on a 0-5V output from a BOB connected to the LinuxCNC system and LCNC would allow either gcode-controlled speed or could be overridden for manual control from the LCNC control panel. I think - I use LinuxCNC but don't have speed control that way yet (just use VFD controls manually) so I'm not familiar with that bit.

  8. Quote Originally Posted by vre View Post
    Thank you for all answers.
    I will use linuxcnc not mach3 because mach3 does not have the ability to make outer close loop (not real time kernel in windows).
    The servos are for a lathe retrofit ( x & z axes) and the vfd is to control the spindle speed and direction (cc or ccw)
    The servo has a mode position/speed and from an input signal you can select position or speed (step/dir or analog -10 to +10v).
    I want to have the ability to override the speed manually outside from gcode so this is the reason why i want analog -10v to +10v.
    Also i want to control vfd from gcode to have constant surface speed and i want to override this speed manually.
    Because with parallel port hardware limit exits and i can't output 500khz pulse train (2500cpr encoder) i want a card to manage 500khz step/dir signals.
    Do you know some card which can do this work in linux and cooperate with linuxcnc ?
    I think you're still confusing analogue servo operation with step/direction.

    You can use the servo
    a) with analogue voltage control and encoder feedback for closed loop positioning OR
    b) with step/direction pulse train open loop or closed loop with encoder feedback

    You can't use step/direction AND analogue voltage together, they are different operating modes of the servo amplifier/driver. A CSMIO/IP motion control card will do what you need and works with Mach3 (it does closed loop control outside of Mach3), don't know about LinuxCNC: the CSMIO/IP-S will do step/direction, the CSMIO/IP-A will do +/-10v analogue. Both will provide the spindle VFD speed/direction output.

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. AM882 Alarm Circuit
    By Wobblycogs in forum General Electronics
    Replies: 8
    Last Post: 28-03-2014, 06:06 PM
  2. E-STOP Circuit - will this cause any problems?
    By birchy in forum General Electronics
    Replies: 34
    Last Post: 18-12-2012, 04:35 AM
  3. Printed Circuit Boards manufacturer
    By stirling in forum General Electronics
    Replies: 9
    Last Post: 06-06-2012, 06:53 PM
  4. DC motor drive circuit?
    By Tenson in forum General Electronics
    Replies: 4
    Last Post: 02-02-2012, 10:32 PM
  5. Milling Printed Circuit Boards - How To
    By Lee Roberts in forum Electronic Project Building
    Replies: 0
    Last Post: 28-08-2008, 11:25 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •