585,743 active members*
4,891 visitors online*
Register for free
Login
Results 1 to 14 of 14
  1. #1
    Join Date
    Mar 2004
    Posts
    1542

    Galil analog outputs working?

    I'm trying to get spindle speed control with a VFD through my Galil card. See this related thread also. http://cnczone.com/forums/showthread.php?t=68589

    Right now, I can control spindle speed with a 0 - 10 volt signal directly from a speed pot to the VFD. But when I connect to a Galil analog out, no joy. (Too little VFD impedance???) I've tried both MOCMDE and AN6.

    For my next trial, I connected a voltmeter to both of the above points and cannot get a reading either. Surely, Galil can drive a voltmeter.

    I'm looking for suggestions on what to investigate next.

    Karl

  2. #2
    Join Date
    Dec 2003
    Posts
    24220
    Command a speed with no wire connected except the common and check the analogue signal MOCMDx to common, if you get a suitable reading, then connect the analogue out to the VFD input and see if the voltage collapses.
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

  3. #3
    Join Date
    Mar 2003
    Posts
    332
    what is the code you are using to try and produce voltage output?

    Are you using galil smart terminal, a custom app? Not enough information
    What hardware? "AN6" has no meaning. @AN[x] is used to read an analog input.

    MOCMDE is a terminal description for wiring axis 5 but not code

  4. #4
    Join Date
    Mar 2004
    Posts
    1542
    OK, I just took readings.

    I've been in contact with the host software vendor, Camsoft, and they are not seeing any computer setup problems. But, be aware, I am only commanding Galil through the host. If you know of the direct Galil commands to set MOCMDE to a certain voltage, I should repeat this trial without the host software confounding the issue.

    The host is set up to read the voltage at AN2 and then send the same level out MOCMDE.

    My pot is varying voltage from 4.7 to 9.9 volts. With only a voltmeter, MOCMDE goes from 4.68 to 4.83 volts. With the VFD connected. I get 4.02 to 4.15 while moving the pot. The VFD runs at 40% speed the whole time.

    Comments?

  5. #5
    Join Date
    Dec 2003
    Posts
    24220
    I use native Galil commands, It depends on how you want to control the VFD, If using a spindle motor in true velocity mode, you can set the axis' PID to zero, (it is not a servo axis) and use the FV command to develop voltage directly proportional to the commanded velocity. So, if you issue a JG, then the torque is not error-based, but an open-loop voltage.
    I would think if you have software control to command a SP speed, you would not need a manual pot input?
    If using a pot/analogue input, then you would need to scale it to the MOCMDx output.
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

  6. #6
    Join Date
    Mar 2003
    Posts
    332
    as AL said but before offering multiple solutions that may not be relevant, do you have encoder feedback on the drive or is it open loop?

  7. #7
    Join Date
    Mar 2004
    Posts
    1542
    OK, Issued this after checking PID values were all 0
    FV ,,,,10
    JG 0,0,0,0,200000
    BGE

    and I got 4.02 volts connected to VFD. Galil reference under FV says I should get 2.44

    Then
    JG ,,,,500000
    BGE

    still had 4.02 volts at MOCMDE


    any comments?

    Karl

  8. #8
    Join Date
    Sep 2003
    Posts
    552
    Try the OF command and see what you get.

    Darek

  9. #9
    Join Date
    Mar 2004
    Posts
    1542
    OK, I tried the OF commands. No response for voltage at MOCMDE.

    It did make the Z axis servo start to shutter at high speed. Shook the whole damn machine. Scared me. Did a hard boot and problem went away.

    So, is my galil card broke here?

    Karl

  10. #10
    Join Date
    Mar 2003
    Posts
    332
    "any comments?"

    so you have an encoder or not? the answer depends on your answer. you're dripfeeding information too slowly to get quality results.

  11. #11
    Join Date
    Sep 2003
    Posts
    552
    An OF command should only affect the axis it was sent to. So something is going on there.

    Darek

  12. #12
    Join Date
    Sep 2003
    Posts
    552
    No encoder. He is trying to get an open loop analog output. It should be easy as I want 1 volt.

    OF,,,,1

    Now I want 2 volts

    OF,,,,2

    But that does not seem to be the case.

    Darek

  13. #13
    Join Date
    Mar 2004
    Posts
    1542
    Quote Originally Posted by keithorr View Post
    "any comments?"

    so you have an encoder or not? the answer depends on your answer. you're dripfeeding information too slowly to get quality results.
    Sorry, I didn't answer you yet. I'm running the system open loop because the encoder is located on the spindle itself after the variable speed transmission (2J style milling head). The VFD is set up to run full speed at 10 volts, 1/2 speed at 5 volts, 0 at 0 volts.

    Karl

  14. #14
    Join Date
    Sep 2008
    Posts
    12
    I just tried something on my Galil DMC.
    Maybe your still in servo mode, you may need to turn the axis off then
    use the offset.

    MOE (motor off E)
    OFE=0 (I got 10.09 volts)
    OFE=1 (8.08 volts)
    OFE=1.5 (7.07 v)
    OFE=5 (0.02 v)
    OFE=9 (-8.02 V)

    SHE ('servo here E' should put it back into servo mode i.e. needs encoder)

    This should work on yours, if not try another axis then you'll know E is fried.
    Hope this helps.
    MM

Similar Threads

  1. Trying to get Mach 3 to connect to outputs
    By wld99 in forum Mach Software (ArtSoft software)
    Replies: 7
    Last Post: 03-22-2022, 12:19 PM
  2. E-stop and enable outputs
    By Drew in forum Machines running Mach Software
    Replies: 1
    Last Post: 06-01-2009, 12:18 PM
  3. inputs outputs
    By sintratech in forum Machines running Mach Software
    Replies: 6
    Last Post: 04-01-2007, 08:17 PM
  4. Inputs/Outputs
    By UKRobotics in forum CNC Machine Related Electronics
    Replies: 13
    Last Post: 08-03-2006, 03:52 AM
  5. Opto 22 / ICM outputs not working
    By mzartop6 in forum CamSoft Products
    Replies: 3
    Last Post: 01-28-2006, 05:35 AM

Posting Permissions

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