Need Help! How to wire Active High proximity sensor to kflop JP7 - Page 2


Page 2 of 2 FirstFirst 12
Results 13 to 18 of 18

Thread: How to wire Active High proximity sensor to kflop JP7

  1. #13
    Gold Member amitkumar171's Avatar
    Join Date
    Aug 2017
    Location
    India
    Posts
    69
    Downloads
    0
    Uploads
    0

    Default Re: How to wire Active High proximity sensor to kflop JP7

    Quote Originally Posted by TomKerekes View Post
    Hi Amit,

    See the article KFLOP Inputs Floating High

    HTH
    Regards

    Hi tom , i figured out proximity option and all proximities are detecting.

    now i am facing a problem that i want to home the machine at its center

    as i am having proximities in Xmax , Xmin, Ymax, Ymin.

    Now which program i have to home the machine in center Machine coordinate X0, Y0, at machine center of tool tip.


    Waiting for your kind reply.

    Thank You

    AMIT KUMAR

    Regards

    Amit Kumar


  2. #14
    Gold Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    2623
    Downloads
    0
    Uploads
    0

    Default Re: How to wire Active High proximity sensor to kflop JP7

    Hi Amit,

    Sorry I don’t understand what you want to do.

    Regards

    TK
    http://dynomotion.com


  3. #15
    Gold Member amitkumar171's Avatar
    Join Date
    Aug 2017
    Location
    India
    Posts
    69
    Downloads
    0
    Uploads
    0

    Default Re: How to wire Active High proximity sensor to kflop JP7

    Quote Originally Posted by TomKerekes View Post
    Hi Amit,Sorry I don’t understand what you want to do.Regards
    Hi tom, As i know that kflop inputs of JP7 pins are floating high and low even if there is no input connected.So how can i reduce this signal noise of JP7 input pins using C Program .I have seen article from your website that how to reduce noise of JP7 pins.I dont want to add 0.1uF capacitor to signal and GND.
    KFLOP inputs are very fast and therefore susceptible to narrow noise glitches. KFLOP doesn't have selectable digital filtering. It is usually best to fix the source of the noise problem in hardware. Otherwise you might reduce the frequency of the problem but not eliminate it entirely. You might add a Filter Capacitor (such as a 0.1uf ceramic capacitor) from the KFLOP input pin to the KFLOP GND (in very close proximity to KFLOP). To filter the inputs in software you can do so with a User Program that samples the input, performs some filtering algorithm, and sets/clears a KFLOP Virtual I/O Bit (ie bits 48-63) based on the result. Then configure the KFLOP Axis to monitor the Virtual Inputs rather than the real inputs. The ExternalButtons.c example shows how multiple inputs can be monitored and debounced using a single non-blocking loop using a state driven approach. See the Debounce() function, how it's used, and the 3 global variables needed for every input to keep track of the states of the input.
    But there was another way mentioned that we can do from C program also.How can i DO that ? Waiting for your kind reply.

    Regards

    Amit Kumar


  4. #16
    Gold Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    2623
    Downloads
    0
    Uploads
    0

    Default Re: How to wire Active High proximity sensor to kflop JP7

    Hi Amit,

    As i know that kflop inputs of JP7 pins are floating high and low even if there is no input connected.
    If there is no connection then it doesn't matter.

    I have seen article from your website that how to reduce noise of JP7 pins.I dont want to add 0.1uF capacitor to signal and GND.
    We recommend you fix the problem in hardware.

    But there was another way mentioned that we can do from C program also.How can i DO that ? Waiting for your kind reply
    Please read my last email which explains how to do that.

    Regards

    TK
    http://dynomotion.com


  5. #17
    Gold Member amitkumar171's Avatar
    Join Date
    Aug 2017
    Location
    India
    Posts
    69
    Downloads
    0
    Uploads
    0

    Default Re: How to wire Active High proximity sensor to kflop JP7

    Quote Originally Posted by TomKerekes View Post
    Hi Amit,

    Strange it seems your program is already written for active high sensors.

    But in C Programming '!' is the NOT operator. Remove it to wait for the opposite polarity and wait until the input goes low.

    change:

    while (!ReadBit(10)) ; // loop until IO bit goes high

    to:

    while (ReadBit(10)) ; // loop until IO bit goes low

    Regards
    Hi tom,

    I tried it it is not happening.

    Regards

    Amit Kumar


  6. #18
    Gold Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    2623
    Downloads
    0
    Uploads
    0

    Default Re: How to wire Active High proximity sensor to kflop JP7

    Hi Amit,

    So what happens in each case?

    Regards

    TK
    http://dynomotion.com


Page 2 of 2 FirstFirst 12

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 wire Active High proximity sensor to kflop JP7
How to wire Active High proximity sensor to kflop JP7