How to use active proximity home switches with the G540?


Page 1 of 2 12 LastLast
Results 1 to 20 of 27

Thread: How to use active proximity home switches with the G540?

  1. #1
    Member
    Join Date
    Oct 2008
    Location
    Norway
    Posts
    47
    Downloads
    0
    Uploads
    0

    Default How to use active proximity home switches with the G540?

    My Active Proximity Home switches, has 3 wires. Brown, Blue and Black.

    It is a switch of this type:
    https://nor.grandado.com/products/sn...Q6Mjg4NjM0MDM3

    The switches now have their own 5v power supply, and are each connected to this via Brown to plus and blue to Minus. The Black, "Load" i would think could go to terminals 1, 2, 3, and 4, on the G450. But I do notice the wiring is different in the wiring diagram, but allso the depicted switches steem to be a different kind than what I have.

    Thanks for any help.

    Best regards, I_V_A_R

    Similar Threads:


  2. #2
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    24221
    Downloads
    0
    Uploads
    0

    Default Re: How to use active proximity home switches with the G540?

    You would connect the BLK to the input and the blue to the Term 12 of the G540, presumably there is a powers supply for the G540 inputs provided?
    The Brown would be your 5v if this is what you have.

    CNC, Mechatronics Integration and Custom Machine Design

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


  3. #3
    Member
    Join Date
    Oct 2008
    Location
    Norway
    Posts
    47
    Downloads
    0
    Uploads
    0

    Default Re: How to use active proximity home switches with the G540?

    Thank you Al_The_Man!

    Terminal 12 is minus which technically would be the same as the minus of the
    45 v power supply that powers the G540.

    If brown then goes to the plus of the 5v power supply, then it means that the home switches are connected to 2 different power supplys, with the minus to the big and plus to the small.
    This is counter intuitive to me. (It is true, electronics is not my forte)

    It does however make sense to me that the switches must be connected to the G540 2 wires.
    Otherwise I guess it wouldn't be circuit, and the switch wouldn't work.

    So that means only the brown + wire determines the voltage for the switch?
    And the blue to term12/ minus on the large power supply just "completes" the circuit?

    I did realize eventually that the home switches ideally should have a 10 - 30 v power supply instead of 5v.

    Last edited by I_V_A_R; 09-11-2022 at 02:01 PM. Reason: Typos


  4. #4
    Member
    Join Date
    Oct 2008
    Location
    Norway
    Posts
    47
    Downloads
    0
    Uploads
    0

    Default Re: How to use active proximity home switches with the G540?

    It also means that the only difference between wiring with my pnp switches, and the wiring diagram from the G540 manual, is that in my case, there is a wire from my pnp to the + of a 10 - 30 v power supply. Could you confirm this?



    Manny thanks.



  5. #5
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    24221
    Downloads
    0
    Uploads
    0

    Default Re: How to use active proximity home switches with the G540?

    Are you using the same supply that is connected to the G540 for the prox? Or a separate supply.?
    The G540 uses a source input, suitable for sinking devices, which yours is, i.e. NPN

    CNC, Mechatronics Integration and Custom Machine Design

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


  6. #6
    Member
    Join Date
    Apr 2004
    Location
    VA, USA
    Posts
    135
    Downloads
    0
    Uploads
    0

    Default Re: How to use active proximity home switches with the G540?

    The sensors must be NPN style to work with a G540

    The sensor's negative terminal shares the connection with the negative supply for the G540.

    The sensors you show allow input power between 10 VDC and 30 VDC, so you will need another power source or a voltage regulator to provide this. This power source will also share a connection to the negative supply for the G540.



  7. #7
    Member
    Join Date
    Oct 2008
    Location
    Norway
    Posts
    47
    Downloads
    0
    Uploads
    0

    Default Re: How to use active proximity home switches with the G540?

    No, separate supply's.
    The G540 is pwered by a 45 V supply.
    The NPN's are power by a 5V supply (...that should have ben over 10 V ideally).

    I did what you told me initially and it worked.
    Black is now at the Gecko 1, 2, 3, terminals,
    Blue(-) is on 45V-supply minus terminal, and
    Brown(+) is on 5V-supply plus terminal.

    The led on the npn-switches lights up when i hold a screwdriver up to it.

    So I guess that's it... I have yet to test if they will indeed work. But that wont happen until I have finished setting up my ESS and Mach4.



  8. #8
    Member
    Join Date
    Apr 2004
    Location
    VA, USA
    Posts
    135
    Downloads
    0
    Uploads
    0

    Default Re: How to use active proximity home switches with the G540?

    It is fairly common for the sensors to work on 5 VDC under room temperature conditions, but I hesitated to recommend going outside the manufacturers specifications.

    Steve Stallings
    PMDX.COM - Products for CNC and motion control applications



  9. #9
    Member
    Join Date
    Apr 2004
    Location
    VA, USA
    Posts
    135
    Downloads
    0
    Uploads
    0

    Default Re: How to use active proximity home switches with the G540?

    If you have the negative of your 5 VDC supply connected together with the negative supply of the G540, you have defeated the opto-isolation provided by the G540's interface. For desktop environments this may be acceptable but not for industrial conditions.

    Steve Stallings
    PMDX.COM - Products for CNC and motion control applications



  10. #10
    Member
    Join Date
    Oct 2008
    Location
    Norway
    Posts
    47
    Downloads
    0
    Uploads
    0

    Default Re: How to use active proximity home switches with the G540?

    Meaning it couldn't be PNP?
    Is that because + goes inn to the device and determines the voltage and, - goes out of the device and, and also is connected with the G540?
    In other words, if it was PNP, then Brown would be connected to the 11 terminal(+) of the Gecko, and then 45 v would go to the PNP which is to much?

    Seriously you dont have to answer this if it is very clueless and way off. I'm just curious.



  11. #11
    Member
    Join Date
    Oct 2008
    Location
    Norway
    Posts
    47
    Downloads
    0
    Uploads
    0

    Default Re: How to use active proximity home switches with the G540?

    Quote Originally Posted by morestuff View Post
    If you have the negative of your 5 VDC supply connected together with the negative supply of the G540, you have defeated the opto-isolation provided by the G540's interface. For desktop environments this may be acceptable but not for industrial conditions.

    Steve Stallings
    PMDX.COM - Products for CNC and motion control applications
    Hmm that doesn't sound to good though.. but I do not, at least not directly. only the DC 5V plus terminal is in use. The DC 5V minus terminal is without a wire.



  12. #12
    Member
    Join Date
    Oct 2008
    Location
    Norway
    Posts
    47
    Downloads
    0
    Uploads
    0

    Default Re: How to use active proximity home switches with the G540?

    Quote Originally Posted by I_V_A_R View Post
    It also means that the only difference between wiring with my pnp switches, and the wiring diagram from the G540 manual, is that in my case, there is a wire from my pnp to the + of a 10 - 30 v power supply. Could you confirm this?



    Manny thanks.
    Sorry my bad. I ment NPN, I have NPN switches.



  13. #13
    Member
    Join Date
    Apr 2004
    Location
    VA, USA
    Posts
    135
    Downloads
    0
    Uploads
    0

    Default Re: How to use active proximity home switches with the G540?

    Quote Originally Posted by I_V_A_R View Post
    Hmm that doesn't sound to good though.. but I do not, at least not directly. only the DC 5V plus terminal is in use. The DC 5V minus terminal is without a wire.
    Somehow the sensors are getting a connection to the 5 VDC minus. It may be through chassis ground of the power supply, but is has to be there for the sensor to work.

    Also, yes NPN is required for sensors because the G540 looks for the sensor input to get pulled to ground (negative power lead). The PNP sensors will pull the signal to their power supply voltage and the G540 would ignore this. There no way to arrange the wiring of PNP sensor to make it work with a G540.

    Steve Stallings
    PMDX.COM - Products for CNC and motion control applications



  14. #14
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    24221
    Downloads
    0
    Uploads
    0

    Default Re: How to use active proximity home switches with the G540?

    Quote Originally Posted by I_V_A_R View Post
    Sorry my bad. I ment NPN, I have NPN switches.
    How come you are running the Prox off of 5v? They state 10v to 30v in the link?
    If so they should be OK as I posted.

    CNC, Mechatronics Integration and Custom Machine Design

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


  15. #15
    Member
    Join Date
    Oct 2008
    Location
    Norway
    Posts
    47
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by Al_The_Man View Post
    How come you are running the Prox off of 5v? They state 10v to 30v in the link?
    If so they should be OK as I posted.
    The fact is that in my cnc, a fairly inexpensive chinese router, the elecronics concisted of: 40v powesupply, 5v
    powersupply, a board for each axis X Y and Z, a board for the spindel, the 10-30 v NPN's, the VFD and finally a hand controller. So i hobestly dont know where the NPN's used to get their power from if one of the boards didn't have some kind of transformator built in, actually when I think about it there is a terminal for 10V on the VFD so maybe the answer lies there. The answer to your quedtion is, I concluded that since my machene worked before my rebuild/upgrade, I shuldnt need more power suplies if the G450 and the Warp9-ESS Didnt require so. Ironically I did get a brand new 5V 10A powersupply for the ESS, cause I didnt want it to share the 5V with the NPN's because the 5V only had 0.5A which according to Warp9 is the absolute minimum (or close to) anyway, I think I could have used the old 5V for the ESS and got'n a new 10v or 30v for the NPN's unless maybe the G540 somehow vould provide 10-30v?



  16. #16
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    24221
    Downloads
    0
    Uploads
    0

    Default Re: How to use active proximity home switches with the G540?

    Do you have these?

    Attached Thumbnails Attached Thumbnails How to use active proximity home switches with the G540?-g540-schematic-pdf  
    Attached Files Attached Files
    CNC, Mechatronics Integration and Custom Machine Design

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


  17. #17
    Member
    Join Date
    Oct 2008
    Location
    Norway
    Posts
    47
    Downloads
    0
    Uploads
    0

    Default Re: How to use active proximity home switches with the G540?

    Quote Originally Posted by Al_The_Man View Post
    Do you have these?
    Sure, I do. And according to this manual + my understanding of it the gecko does not provide anything that would be used to power a 10-30v NPN.
    It just would not surprise me if there was such possibility that I just had overlooked. Thanx for all the help thus far.



  18. #18
    Member
    Join Date
    Oct 2008
    Location
    Norway
    Posts
    47
    Downloads
    0
    Uploads
    0

    Default Re: How to use active proximity home switches with the G540?

    I stil have an issue, and I have to determine if this is due to wrong wiring or wrong setup in Mach4.

    No matter which of the NPN's I test with a peace of metal, Mach4 tells me that: "Home switch Z Home tripped!"
    And when I test ither of the NPN's the 3 lamps X Home, Y Home and Z Home, lights up/or shuts simultaneously in Mach 4 Diagnostics window.

    I am as of now not certain if it is a wiring issue or a software issue, a sheelding issue, or the fact that I have a 5V powering my NPN's that really asks for 10-30V



  19. #19
    Member
    Join Date
    Oct 2008
    Location
    Norway
    Posts
    47
    Downloads
    0
    Uploads
    0

    Default Re: How to use active proximity home switches with the G540?

    Now my switches give the following result, one single switch will trip all 3 axis in Mach4. And this happens with the following connections:

    Blue wire from all individual switches to negativ terminal og 45V power supply (which also goes directly to terminal 12 on the gecko)

    Black wire, is going individually from X to Gecko term 1, Y to Gecko term 2, Z to Gecko term 3.

    Clairly, this cannot be right. I have checked that the DB 25 is not a crossover cable just for the heck of it, as it was mentioned in the G540 manual.

    It is now almost hocked up like the G540 wiring diagram says, except on the switches

    Instead of "C common" it's "Black Line",
    Instead of "NC Normally closed" it's "Blue minus"
    Instead of "NO Normally open" (which doesn't go anywhere) it's "Brown plus" which also doesn't go anywhere.



  20. #20
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    24221
    Downloads
    0
    Uploads
    0

    Default Re: How to use active proximity home switches with the G540?

    Switches are different from prox type, the latter require both + and - v .
    Are these open collector prox switches, i.e. no internal pull ups?

    CNC, Mechatronics Integration and Custom Machine Design

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


Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

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


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

How to use active proximity home switches with the G540?

How to use active proximity home switches with the G540?