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.

New Here? Please read this important info!!!


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

Reply
 
Thread Tools Display Modes
Old September 15th, 2011, 12:17 PM   #1
ALIMARY15
Member
Italy

ALIMARY15 is offline
 
Join Date: Jul 2011
Location: italy
Posts: 75
PLC DL05 with encoder signals wiring

Good evening,
I am working on a project where i am using a plc DL05 with an encoder to control an axis position.

My encoder signals A and B, i connected them to the input X0 and X1 of the plc because i am planning to use the HSIO MODE 40 for the quadrature encoder as it states into the plc data-sheet.

I have read that this plc doesn't support signals below the 12 V while instead my signals from the encoder are in TTL logic that means 0-5 V.
As anyone of you ever encountered this problem??how you did solve it??

In my case, to make the signal level fine for the plc i have used a IC circuit called ULN2803. This component i connect one pin to the 5 v and the other one to the 12 V power by a pull-up resistor and to the plc as in the scheme showed attached. When from the right pin side there is a signal, the opposite side pin shows zero and viceversa. So in my case when there is 5v to the other side there will be 0v and if i wanna calculate the Pull-up value that will be Rpul= (12V-0v)/max current into plc.

THe component works just fine and it shows to me the quadrature encoder signals between 12V and 0. Now my question is how can i make the plc be aware of the inputs?
It may seem stupid but i am in need in calculating the pull up resistor value in order to make a certain value of current to arrive to the Xo and X1 inputs.
I don't know what is the current value to make the plc read my signals? I have tried to use a current of around 3mA and calculate the pull up value with this current but the plc doesn't seem to read the inputs.

Thanks a lot

Maria
Attached Images
File Type: png Schermata 2011-09-15 a 18.10.50.png (16.0 KB, 84 views)
  Reply With Quote
Old September 15th, 2011, 12:28 PM   #2
icky812
Lifetime Supporting Member
United States

icky812 is offline
 
Join Date: May 2002
Location: Cumming, GA
Posts: 731
According to the manual the input needs >5ma to be true. The manual can be found here.
  Reply With Quote
Old September 15th, 2011, 12:40 PM   #3
bce123
Lifetime Supporting Member
United States

bce123 is offline
 
bce123's Avatar
 
Join Date: Feb 2011
Location: texas
Posts: 1,177
to solve your problem you could use this: H0-CTRIO I think. it is under $200
__________________
"You can teach a dog to sit and lie down but then he justs gets lazy"
  Reply With Quote
Old September 15th, 2011, 01:23 PM   #4
bernie_carlton
Lifetime Supporting Member + Moderator
United States

bernie_carlton is offline
 
bernie_carlton's Avatar
 
Join Date: Apr 2002
Location: Yakima, Washington
Posts: 6,397
A 600 ohm pull up should give the 5 ma at 12 VDC.
__________________
Controlling outputs is the PLC's way of getting its inputs to change.
  Reply With Quote
Old September 15th, 2011, 02:05 PM   #5
JeffKiper
Lifetime Supporting Member + Moderator
United States

JeffKiper is offline
 
JeffKiper's Avatar
 
Join Date: Jun 2006
Location: Indiana
Posts: 2,400
Bernie have you been down that road before? it sound like you may have been there.

I know the math works out as well.
__________________
There should be a minimum IQ before people can breed.

FS Eng (TÜV Rheinland, #11004/15, Machinery)
  Reply With Quote
Old September 15th, 2011, 02:14 PM   #6
bernie_carlton
Lifetime Supporting Member + Moderator
United States

bernie_carlton is offline
 
bernie_carlton's Avatar
 
Join Date: Apr 2002
Location: Yakima, Washington
Posts: 6,397
Also, 1/4 watt would be on the edge (12 volts across the 600 ohms). Better to use at least 1/2 watt resistors as pull-up.
__________________
Controlling outputs is the PLC's way of getting its inputs to change.
  Reply With Quote
Old September 16th, 2011, 04:06 AM   #7
ALIMARY15
Member
Italy

ALIMARY15 is offline
 
Join Date: Jul 2011
Location: italy
Posts: 75
Quote:
Originally Posted by bce123 View Post
to solve your problem you could use this: H0-CTRIO I think. it is under $200
Thanks I have also the h0-ctrio but we wanted to try to simply use the dl05 module without programming the ctrio module
  Reply With Quote
Old September 16th, 2011, 04:07 AM   #8
ALIMARY15
Member
Italy

ALIMARY15 is offline
 
Join Date: Jul 2011
Location: italy
Posts: 75
Quote:
Originally Posted by bernie_carlton View Post
Also, 1/4 watt would be on the edge (12 volts across the 600 ohms). Better to use at least 1/2 watt resistors as pull-up.
Thank you so much! Im gonna try with 600 Ohm resistance. Do you think that also a 1.2 K will work?
  Reply With Quote
Old September 16th, 2011, 07:54 AM   #9
bernie_carlton
Lifetime Supporting Member + Moderator
United States

bernie_carlton is offline
 
bernie_carlton's Avatar
 
Join Date: Apr 2002
Location: Yakima, Washington
Posts: 6,397
600 ohms provides 5 ma into the input impedance as listed for the module. Of course you can try anything you want but 600 ohms is the result of the calculation. Two 1.2 K in parallel would also work.
__________________
Controlling outputs is the PLC's way of getting its inputs to change.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum


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
Encoder and PLC logic SCAN.PLC LIVE PLC Questions And Answers 12 March 27th, 2017 10:57 PM
How do i use the S7-300 plc with encoder, motor and drive to control motor position Shadley LIVE PLC Questions And Answers 4 October 1st, 2009 07:55 AM
Hard wiring the PLC Doug Hylton LIVE PLC Questions And Answers 46 October 23rd, 2007 01:21 PM
connect an encoder to omron plc hadiahmadi5 LIVE PLC Questions And Answers 14 August 20th, 2007 08:45 AM
absolute encoder with S7-200 plc: suganya LIVE PLC Questions And Answers 0 April 9th, 2007 12:37 AM


All times are GMT -4. The time now is 06:31 PM.


.