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


Page 1 of 2 12 LastLast
Results 1 to 12 of 18

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

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

    Default How to wire Active High proximity sensor to kflop JP7

    Hi everyone,

    I am using JIGO proximity sensor that are active high, but in kflop c program the program is to detect active low then start homing.

    How to change the program to detect active high and then start homing.

    Which function should i change in c program of homing to change or reverse the proximity probability.

    Waiting for your kind reply.


    Thank You
    AMIT KUMAR

    Similar Threads:
    Regards

    Amit Kumar


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

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

    Hi Amit,

    What C Program are you using and want to change? Please Post it.

    Regards

    TK
    http://dynomotion.com


  3. #3
    Gold Member amitkumar171's Avatar
    Join Date
    Aug 2017
    Location
    India
    Posts
    79
    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,

    What C Program are you using and want to change? Please Post it.

    Regards
    Hi tom,

    here is the program that i want to modify it according to my Active high proximity sensors.

    And all the proximity i want to be connected to JP7 io bits IObit 0 to IObit 7.

    Waiting for your kind reply.

    Thank You
    AMIT KUMAR

    Attached Files Attached Files
    Regards

    Amit Kumar


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

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

    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

    TK
    http://dynomotion.com


  5. #5
    Gold Member amitkumar171's Avatar
    Join Date
    Aug 2017
    Location
    India
    Posts
    79
    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 now working.

    DO i have to put all the proximity sensors for X, Y, Z in init file .

    i Mean bit allocation for that like limit bit setting first then homing it if yes then tell me how to make it work ?

    waiting for your kind reply.


    THANK YOU
    Amit Kumar

    Regards

    Amit Kumar


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

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

    Hi Amit,

    Sorry I don't understand the question.

    No initialization is required for KFLOP inputs. They default as inputs.

    Regards

    TK
    http://dynomotion.com


  7. #7
    Gold Member amitkumar171's Avatar
    Join Date
    Aug 2017
    Location
    India
    Posts
    79
    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
    this is not working i tried it reversing it ,

    Proximity is not working if i reverse it.

    Regards

    Amit Kumar


  8. #8
    Gold Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    2719
    Downloads
    0
    Uploads
    0

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

    Hi Amit,

    Did you test if the input is working?

    Regards

    TK
    http://dynomotion.com


  9. #9
    Gold Member amitkumar171's Avatar
    Join Date
    Aug 2017
    Location
    India
    Posts
    79
    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,

    Did you test if the input is working?

    Regards
    Yes tom

    Input is working,

    But when I put something metal piece in front of the proximity then it starts homing. And after removal of that metal piece homing stops.

    Because all proximity are active high.

    And program is for active low.

    I tried using your method of changing program to detect active high signal. But after that no proximity is working.

    Waiting for your kind reply.


    Thank you
    Amit Kumar

    Sent from my Lenovo K50a40 using Tapatalk

    Regards

    Amit Kumar


  10. #10
    Gold Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    2719
    Downloads
    0
    Uploads
    0

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

    Hi Amit,

    Your responses are confusing and unclear. Please add more details into what you are doing and what happens.

    There may be noise on your signal. Your sensor may not be properly going high and low. I suspect your sensor has the following problem:

    With metal piece on sensor - it is high.

    With metal piece removed - the sensor pulses high and low (for example 99% low 1% high).

    Therefore when you change the program too stop when the sensor is high it will always stop immediately whether or not there is metal present.

    There are simple tests to prove whether this is a problem or not. You might disconnect the input and set the Bit as an output high and low to test if your program then always works correctly.

    To remove noise from the input you might add a 0.1uF capacitor to GND right at the input to KFLOP.

    Regards

    TK
    http://dynomotion.com


  11. #11
    Gold Member amitkumar171's Avatar
    Join Date
    Aug 2017
    Location
    India
    Posts
    79
    Downloads
    0
    Uploads
    0

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

    Hi Tom
    Thankyou for your reply.

    I am now facing a problem in proximity detection, where in I have connected the signal wire of the sensor to pin JP7-13, and the pin JP7-14 is not connected to any signal wire, but in Digital I/O table it is displaying both the pins i.e JP7-13 and JP7-14 as high signal and in the presence of any obstacle in front of the sensor it is displaying low signal, for both the pin(JP7-13 & 14).

    since we are using encoder I/O bits i.e JP7-13 &14 as an input for proximity sensor, it looks like both of them are been grouped.We also tried using other pins in the encoder I/O bits( (7/8)(9/10),(11/12),(13/14) ) but the result remains the same.So please provide us a proper solution which can help us to over come this problem as soon as possible.Waiting for your reply.

    Regards
    Amith

    Last edited by amitkumar171; 01-10-2018 at 10:07 AM.
    Regards

    Amit Kumar


  12. #12
    Gold Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    2719
    Downloads
    0
    Uploads
    0

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

    Hi Amit,

    See the article KFLOP Inputs Floating High

    HTH
    Regards

    TK
    http://dynomotion.com


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

How to wire Active High proximity sensor to kflop JP7