Welcome to Our Community

Some features disabled for guests. Register Today.

Blackbox 4x M3 M4 M5 codes messed up. Help needed!

Discussion in 'Controller Boards' started by ollari, Mar 7, 2020.

  1. ollari

    ollari New
    Builder

    Joined:
    Oct 4, 2019
    Messages:
    5
    Likes Received:
    1
    Hello

    I just got my blackbox yesterday. Did all the wiring and now struggling with VFD control.
    I can turn it on and off from Control and also can choose RPM. Problem is with gcodes, spindle turns on with M4 and turns off with M3. It should turn on with M3 and turn off with M5. M5 at this point lowers rpm to 8000 and stays there.
    Jumper is on Dir/VFD and using relay to cut off spindle. Tried putting jumper M3/M5 and M8/M9 also. not working at all.
    Blackbox manual doesnt say anything about that DIR/VFD jumper.
    Maybe someone can help me with this little issue.

    Thanks,
     
  2. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,275
    Likes Received:
    1,833
    I don't see any dir/relay jumpers in the circuit diagram, you must have a new version. @Peter please put up the new versions and make it clear how to tell which board you have.

    Let's consider how Gcode normally works...
    M3 turns on the PWM speed signal and sets the DIR pin off indicating clockwise rotation
    M4 turns the PWM signal on and sets the DIR pin ON indicating anticlockwise rotation.

    M8 turns the coolant pin on
    M9 turns the coolant pin off.

    I don't see any way to effectively use direction as an enable unless you also provide custom Gcode via editing your post processor or hand editing every Gcode file (prone to errors).
    turn on at 4000 rpm
    M4 S4000 ; set dir pin on to enable drive, and set PWM at the same time

    turn off
    M3 S0 ; puts dir pin off
    M5 ; turns PWM signal off too

    I believe a better solution is to connect the enable relay to the coolant pin since most postprocessors can enable coolant easily by default.
    turn on
    M8 ; activate enable relay
    M3 S4000
    .... speed may be change during program by more M3 Sxxxx commands

    turn off
    M5 ; disable pwm
    M9 ; disable enable relay
     
  3. ollari

    ollari New
    Builder

    Joined:
    Oct 4, 2019
    Messages:
    5
    Likes Received:
    1
    Yes it seems that I have new version blackbox. It would be nice to see some documentation updates on blackbox wiki. But for now I edited my fusion360 postprocessor to shoot out changed gcodes. M4 to start the spindle and M3 to cut off. It seems easier to do it thatway rather than using coolant codes and deal with double M codes for switching.

    Thanks
     
  4. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    13,992
    Likes Received:
    4,107
    It's so new I didn't even know it was shipping yet (;

    The documentation for the VFD specific stuff is always low priority because we prefer you use Routers, much simpler. Most of the VFD compatibility exists for advanced users. Will add documentation, but see below, need a test case first

    All depends how you have it wired / VFD configured... 0-10v output scales according to the S-Word, M3/M4 changes the behaviour of the DIR pin only.
    If you have the VFD wired correctly, 0-10v with M3/M5 will work fine

    The new boards allow you to hook up the relay directly to the DIR pin - for some VFDs that need a to close FOR to ACM? (I think, don't have the specifics at hand) - it exists as an option now, but no documentation as those VFDs are scarce, For now use as shown in the forum link at the bottom of the 0-10v page on docs. Next time someone comes around with one that needs the FOR wiring we'll use that opportunity to work it out and get pictures etc.


    Something todo with Minimum frequency setting on the VFD, refer forum linked in docs.openbuilds.com > 0-10v
     
  5. ollari

    ollari New
    Builder

    Joined:
    Oct 4, 2019
    Messages:
    5
    Likes Received:
    1
    Thanks for answering.
     
    Peter Van Der Walt likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice