You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old September 16th, 2008, 08:13 AM   #1
Zenith63
Member
Ireland

Zenith63 is offline
 
Join Date: Sep 2008
Location: Dublin
Posts: 2
Help with encoder connected to logic circuit

Hi,

I know this might not be the right place to ask this but I'm kinda stuck and haven't come across anywhere more likely yet.

Basically what I'm trying to do is time the acceleration of an encoder. I have a PCI card in my Windows PC but it's not a counter card so isn't capable of the timing I need. It has a couple of fast counters and some digital inputs and outputs.

The encoder is a Hengstler RI38 with A,B and Z outputs, these are pushpull type. So 50 times a revolution the encoder sends a pulse on the A line. What I want to do is feed this A input into the CLOCK side of a JK flipflop with the J and K inputs tied. The result being that when the encoder sends its first pulse the output of the JK will be 1 and will stay 1 until the next pulse when it will toggle to 0 and so on.

I've tested my JK flipflop with a slow 555 timer pulse and what I'm looking for works fine, but when I connect in the encoder things start to go a bit mad. Spinning the encoder is causing the flipflop to toggle without me even connecting the encoder to the flipflop, it seems to be coming through ground or +5V. Basically I think I have some sort of noise issue or I have completely misunderstood how to connect the encoder to a TTL circuit. With a probe on the 555 timer I see a LOW signal as 0V and HIGH as about 5V, but from the encoder a LOW seems to be about 0.6V and a high somewhere over 4V.

Does anybody know what I'm doing wrong here? Do I need pull up or pull down resistors? This kind of thing isn't my speciality so I imagine one of you gurus will look at it and wonder why the hell I forgot to connect component X to connection Y .


Any and ALL help much appreciated!
  Reply With Quote
Old October 23rd, 2011, 01:57 AM   #2
a.aladawi
Member
Jordan

a.aladawi is offline
 
Join Date: Feb 2008
Location: amman
Posts: 3
s7 200

Please help;
  Reply With Quote
Old October 23rd, 2011, 02:07 AM   #3
a.aladawi
Member
Jordan

a.aladawi is offline
 
Join Date: Feb 2008
Location: amman
Posts: 3
I am programing a roll forming machine, after dividing and subtracting process. it was the zero point in (-675)reading by vd1, tell me please how i can use the vd1.
  Reply With Quote
Old October 23rd, 2011, 09:48 PM   #4
iant
Lifetime Supporting Member + Moderator
Australia

iant is offline
 
iant's Avatar
 
Join Date: May 2002
Location: Melbourne
Posts: 2,334
Quote:
Originally Posted by a.aladawi View Post
I am programing a roll forming machine, after dividing and subtracting process. it was the zero point in (-675)reading by vd1, tell me please how i can use the vd1.
HI you need to create a New Thread - This is posted in an existing post
__________________

Give all the answers
- People seldom learn.

Guide People to the posibilities
- Their Answers will come easily.
- Their Knowledge will grow.

They will then teach others

Regards
Ian Trost
  Reply With Quote
Old October 23rd, 2011, 09:51 PM   #5
iant
Lifetime Supporting Member + Moderator
Australia

iant is offline
 
iant's Avatar
 
Join Date: May 2002
Location: Melbourne
Posts: 2,334
Quote:
Originally Posted by Zenith63 View Post
Hi,

I know this might not be the right place to ask this but I'm kinda stuck and haven't come across anywhere more likely yet.

Basically what I'm trying to do is time the acceleration of an encoder. I have a PCI card in my Windows PC but it's not a counter card so isn't capable of the timing I need. It has a couple of fast counters and some digital inputs and outputs.

The encoder is a Hengstler RI38 with A,B and Z outputs, these are pushpull type. So 50 times a revolution the encoder sends a pulse on the A line. What I want to do is feed this A input into the CLOCK side of a JK flipflop with the J and K inputs tied. The result being that when the encoder sends its first pulse the output of the JK will be 1 and will stay 1 until the next pulse when it will toggle to 0 and so on.

I've tested my JK flipflop with a slow 555 timer pulse and what I'm looking for works fine, but when I connect in the encoder things start to go a bit mad. Spinning the encoder is causing the flipflop to toggle without me even connecting the encoder to the flipflop, it seems to be coming through ground or +5V. Basically I think I have some sort of noise issue or I have completely misunderstood how to connect the encoder to a TTL circuit. With a probe on the 555 timer I see a LOW signal as 0V and HIGH as about 5V, but from the encoder a LOW seems to be about 0.6V and a high somewhere over 4V.

Does anybody know what I'm doing wrong here? Do I need pull up or pull down resistors? This kind of thing isn't my speciality so I imagine one of you gurus will look at it and wonder why the hell I forgot to connect component X to connection Y .


Any and ALL help much appreciated!
Not sure exactly how you have connected this.
do you have a Breadboard with I.C's on it.

The PUSHPULL type encoder needs to know what voltage to switch.
So - Yes you need either Pull Up or Pull Down resistor depending on your logic.

If you have an I.C. Breadboard then get a decade counter Chip
designed specifically to count.
__________________

Give all the answers
- People seldom learn.

Guide People to the posibilities
- Their Answers will come easily.
- Their Knowledge will grow.

They will then teach others

Regards
Ian Trost
  Reply With Quote
Old October 24th, 2011, 02:21 AM   #6
Zenith63
Member
Ireland

Zenith63 is offline
 
Join Date: Sep 2008
Location: Dublin
Posts: 2
Thanks iant, I discovered that after a few days messing around. 3 years late with the reply but appreciated!
  Reply With Quote
Old October 24th, 2011, 02:26 AM   #7
iant
Lifetime Supporting Member + Moderator
Australia

iant is offline
 
iant's Avatar
 
Join Date: May 2002
Location: Melbourne
Posts: 2,334
Sorry I had seen the other post - sent a msg to him an neglected to realise the date of your post

I was off the site for those three years or I would have helped then

Have a drink on me
__________________

Give all the answers
- People seldom learn.

Guide People to the posibilities
- Their Answers will come easily.
- Their Knowledge will grow.

They will then teach others

Regards
Ian Trost
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Same "ONESHOT" in Multiple Locations skyfox LIVE PLC Questions And Answers 21 May 28th, 2007 10:33 AM
Encoder SSI double connection Kataeb LIVE PLC Questions And Answers 3 March 6th, 2007 01:42 AM
Absolute encoder or SSI counter Fault ason LIVE PLC Questions And Answers 0 December 20th, 2006 02:44 PM
absolute encoder Vs Sinecosine encoder friendly_encoder LIVE PLC Questions And Answers 5 November 13th, 2003 07:29 AM
encoders and plcs ready961 LIVE PLC Questions And Answers 20 January 23rd, 2003 08:18 AM


All times are GMT -5. The time now is 11:34 AM.


.