. .
Page 1 of 5 123 ... LastLast

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Hi all, i'm having problems with the wiring of my home switches, mach 3 doesn't seem to recognise them in the diagnostic screen but they are working, but incorrectly, you have to press the the switch a couple of times before the axis stops. at the moment they are connected up open circuit, so when the switch is pressed it becomes live i have swapped the wires but to no avail. I have no idea whats going on and i'm not sure how to configure mach 3 with regard to the inputs and outputs etc
    The switch is a mechanical lever type as shown. any help would be most appreciated
    one wire goes to earth in the control box and the other is pin. pins used are X=13 Y=12 Z=11
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	IMG_1768.JPG 
Views:	372 
Size:	85.3 KB 
ID:	21205  
    Last edited by Kev2960; 21-03-2017 at 08:21 PM. Reason: pin numbers added

  2. #2
    Hi Kev

    what breakout board are you using ?
    and how have you wired the switches ?

    it looks like you have wired the switches as normaly open
    ( if a wire breaks the control will never see a switch close ! )

    John
    Last edited by john swift; 21-03-2017 at 09:23 PM.

  3. #3
    Hi John the bob looks like this. I have tried both normally open and normally closed
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	限位开关图 急停开关 行程&#2432.jpg 
Views:	609 
Size:	1.28 MB 
ID:	21206  

  4. #4
    looking at the breakout boards inputs

    Click image for larger version. 

Name:	bob opto isolated input.jpg 
Views:	733 
Size:	120.7 KB 
ID:	21208

    when the limit switch is closed, the EL817 opto isolator's NPN transistor will ground the printer ports input pin

    the breakout board does not have any pull up resistors to ensure a printer port input is at a valid logic high when the limit switch is open

    this can be a problem with PC's or laptops with 3.3V printer ports

    John

  5. #5
    m_c's Avatar
    Lives in East Lothian, United Kingdom. Last Activity: 3 Days Ago Forum Superstar, has done so much to help others, they deserve a medal. Has been a member for 9-10 years. Has a total post count of 2,908. Received thanks 360 times, giving thanks to others 8 times.
    Quote Originally Posted by john swift View Post
    looking at the breakout boards inputs

    Click image for larger version. 

Name:	bob opto isolated input.jpg 
Views:	733 
Size:	120.7 KB 
ID:	21208

    when the limit switch is closed, the EL817 opto isolator's NPN transistor will ground the printer ports input pin
    Going back to this photo, my calcs based on the 1k resistor, means the opto should have 24V on the pin you've marked as 5V. At 5V, the 1k resistor would limit the current to roughly 3mA, whereas 24V would give roughly 22mA. Having had a look at the datasheet for the opto, it's expecting 20mA with a forward voltage of 1.2V.

    Kev, have you measured the voltage at the top left pins on the optos?
    Try using the bottom pin on the connector for gnd, and also the main power in gnd for the voltage measurements, just in case it's a gnd fault, not a positive supply fault.

    If there is no voltage showing, is there power at the fan connector/is the fan working?
    Would it be possible to get a photo of the underside of the board, so we can see where the power supply feed to the opto comes from?
    Given the layout, I'd think the optos would take a feed from the same supply going to the fan connector, but without seeing the underside of the board, that is purely a guess.
    Avoiding the rubbish customer service from AluminiumWarehouse since July '13.

  6. #6
    Hi John, Im afraid I don't understand a word of what you've just said.....sorry!
    Could explain please

  7. #7
    Hi Kev
    your micro switches are connected to your PC/Laptop printerport via opto isolators
    (opto isolator part number EL817 - the terminal E goes to ground and C to the printer port input pin )

    do you have a multi-meter to measure the voltage change at the printer port input pin when the switch is operated ?

    how have you set up the switches in mach3's ports & pins ?
    any thing like this -
    Click image for larger version. 

Name:	mach3 home switch  config.jpg 
Views:	582 
Size:	66.2 KB 
ID:	21210

    John
    Last edited by john swift; 21-03-2017 at 11:33 PM.

  8. #8
    Yes I've set the ports & pins and I'll check the voltage tomorrow
    Thanks for your help I'll let you know how I get on

  9. #9
    Hi Kev
    printer port terminals
    Click image for larger version. 

Name:	tx14175 bob printerport input terminals.jpg 
Views:	822 
Size:	157.1 KB 
ID:	21211

    john

  10. #10
    Morning John, yes the voltage on the pins are about 3.3 v
    So what do I need to do next

Page 1 of 5 123 ... LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Limit switch problem
    By ECCO in forum General Electronics
    Replies: 7
    Last Post: 25-12-2015, 11:28 AM
  2. Another Home - Limit switch question
    By Cube3 in forum General Electronics
    Replies: 6
    Last Post: 26-12-2013, 07:51 PM
  3. Limit and Home Switch Choice
    By Wobblycogs in forum General Electronics
    Replies: 25
    Last Post: 02-12-2013, 06:16 PM
  4. FOR SALE: Z axis with Home/limit switch and Nema 23 3nm
    By Shinobiwan in forum Items For Sale
    Replies: 6
    Last Post: 02-02-2013, 10:54 AM
  5. bounce off home switch.
    By motoxy in forum Machine Control Software
    Replies: 18
    Last Post: 30-08-2012, 12:26 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
  •