Page 3 of 3 FirstFirst 123
  1. #21
    Quote Originally Posted by Doddy View Post
    You say:-

    "PWM to wire 3", and separately, "although the PWM output voltage does alter accordingly".

    What have you wired to the speed controller pin 3?, the PWM ("...output voltage does alter...") or the P1 pin?


    EDIT: Sorry, I appreciate I seem to be repeating myself, without explanation:-

    The PWM ("Pulse Width Modulation") output from the PC is typically Pin1 of the parallel port - and you've confirmed this is how it's assigned in Mach. Okay so far. This pin/signal is a digital signal, alternative between On ("Mark") and Off ("Space"). The ratio of Mark/Space defines the PWM value, essentially a per-unit measure from 0 to 1 for Off to Full-speed. Increase the Mark ratio vs Space and you denote a speed increase.

    Pin 1 of the BOB is connected (using the schematic from John), to two inputs on one of the octal transceivers (74x245) - inputs B2 & B3. The "DIR" direction pin on that chip is set to transfer from port B to port A. So the PWM input appears on A2 & A3. A3 is connected to the connector P1 on the BOB, and as such presents a buffered copy of the digital PWM (Mark/Space signalling) from the PC. It is this that needs to be connected to the speed controller. The other port, A2 is connected to an opto-isolator, through to the op-amp (half of LM358) which is configured as an integrator - it converts the Mark/Space ratio to an analogue voltage. This would be used for an analogue input to a speed controller (but NOT a digital PWM input).

    It's for this reason that I'm asking you to confirm which PWM signal you have connected to the speed controller - because you refer to the PWM signal in an analogue sense.
    Unfortunately much of what you are telling me is going over my head!

    This is how its currently wired:

    Click image for larger version. 

Name:	IMG_20190310_181139.jpg 
Views:	23 
Size:	61.4 KB 
ID:	25532

    Does the fact the altering of the pwm voltage through mach3 commands makes no difference to the output from the controller board to the motor indicate a problem with the board itself?

  2. #22
    Doddy's Avatar
    Lives in Preston, United Kingdom. Last Activity: 9 Hours Ago Has been a member for 5-6 years. Has a total post count of 320. Received thanks 35 times, giving thanks to others 10 times.
    Quote Originally Posted by Tel 27 View Post
    Unfortunately much of what you are telling me is going over my head!
    Does the fact the altering of the pwm voltage through mach3 commands makes no difference to the output from the controller board to the motor indicate a problem with the board itself?
    No. In fact it's exactly as I'd expect from the information that you've supplied to date. If you was to set the speed to 10% of max (assuming you've calibrated it) then I'd expect the spindle to be OFF. And above about 25% I'd expect it to be full-on. This is simply the (wrong) application of the analogue output from the BOB to the opto-isolator input to the speed controller, which instead expects a PWM input.

    Simply. Connect the BOB output pin P1 to ribbon Pin 3. Connect the Ground used for the BOB to ribbon Pin 4. There is no need for any of the resistors.

    Rough-arsed sketch - the PC output pin-1 is a digital PWM output. The BOB routes this to two different outputs - the BOB "P1", which is a facsimile of the PC output - and is the signal you need. There's also an on-board (the BOB) integrator that converts the PWM to the analogue output, that you don't need. Your speed controller takes a digital PWM input and uses this either to generate the analogue drive to the onboard speed controller, or simply uses this to drive the onboard MOSFET to drive the spindle. Regardless, the important bit is that the speed controller around the pin 3/4 terminals is designed around having a Digital PWM input, and NOT an analogue input (which, confusingly, is derived from a PWM source)

    Click image for larger version. 

Name:	Screenshot 2019-03-12 at 07.48.26.png 
Views:	20 
Size:	2.21 MB 
ID:	25533
    Last edited by Doddy; 2 Weeks Ago at 08:53 AM.

  3. #23
    Quote Originally Posted by Doddy View Post
    No. In fact it's exactly as I'd expect from the information that you've supplied to date. If you was to set the speed to 10% of max (assuming you've calibrated it) then I'd expect the spindle to be OFF. And above about 25% I'd expect it to be full-on. This is simply the (wrong) application of the analogue output from the BOB to the opto-isolator input to the speed controller, which instead expects a PWM input.

    Simply. Connect the BOB output pin P1 to ribbon Pin 3. Connect the Ground used for the BOB to ribbon Pin 4. There is no need for any of the resistors.

    Rough-arsed sketch - the PC output pin-1 is a digital PWM output. The BOB routes this to two different outputs - the BOB "P1", which is a facsimile of the PC output - and is the signal you need. There's also an on-board (the BOB) integrator that converts the PWM to the analogue output, that you don't need. Your speed controller takes a digital PWM input and uses this either to generate the analogue drive to the onboard speed controller, or simply uses this to drive the onboard MOSFET to drive the spindle. Regardless, the important bit is that the speed controller around the pin 3/4 terminals is designed around having a Digital PWM input, and NOT an analogue input (which, confusingly, is derived from a PWM source)

    Click image for larger version. 

Name:	Screenshot 2019-03-12 at 07.48.26.png 
Views:	20 
Size:	2.21 MB 
ID:	25533
    confused really is the term that springs to mind!

    how exactly would I calibrate the speed?

  4. #24
    Doddy's Avatar
    Lives in Preston, United Kingdom. Last Activity: 9 Hours Ago Has been a member for 5-6 years. Has a total post count of 320. Received thanks 35 times, giving thanks to others 10 times.
    Just do this:-
    Connect the BOB output pin P1 to ribbon Pin 3. Connect the Ground used for the BOB to ribbon Pin 4. There is no need for any of the resistors.


    To answer your question:-
    Google Mach3 Spindle Settings to find out how to setup. What I meant by "calibrate" was perhaps misleading, my fault.

    My intent, when you issue lets say a speed of S1000, that the actual speed would be a ratio of the commanded speed vs the maximum spindle speed - so if the max spindle speed was set within Mach to 2000rpm, then a S1000 command would set the PWM output at 50% Mark/Space. If the max spindle speed was set within Mach at 4000rpm, then the same S1000 command would set the PWM output at 25% Mark/Space ratio. My comment was to ensure that the commands that you issue to test the speed control would respond with a sensible response from the PC/machine.
    Last edited by Doddy; 1 Week Ago at 08:39 AM.

Page 3 of 3 FirstFirst 123

Similar Threads

  1. NEE AMC-E schematic or suggested alternative control boards
    By DaveBee in forum General Electronics
    Replies: 2
    Last Post: 3 Weeks Ago, 04:31 PM
  2. Control Schematic Advice
    By GTJim in forum General Electronics
    Replies: 49
    Last Post: 05-10-2015, 11:48 AM
  3. Limit switches PCB schematic verification.
    By cncnoob in forum General Electronics
    Replies: 18
    Last Post: 25-02-2013, 09:28 PM
  4. Schematic anyone?
    By boldford in forum General Electronics
    Replies: 3
    Last Post: 28-08-2012, 10:09 AM
  5. Schematic Symbol Reference
    By Lee Roberts in forum General Electronics
    Replies: 1
    Last Post: 23-01-2008, 03:23 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
  •