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 - Interactive Q & A > - Interactive Q & A > LIVE PLC Questions And Answers

Thread Tools Display Modes
Old September 15th, 2019, 08:14 PM   #1

yard1e is offline
Join Date: Sep 2019
Location: Porto
Posts: 1
Reading encoder for input/output and limit reading

Hi, I'm just a complete newbie on ladder logic and plc programming and I started a few weeks working with that, also it's my first post here, I'm working with an omron plc and I have an encoder attached to a rack and a pinion that reads the move of a component that is moved on a rail with a motor.
The encoder sends a signal ranging from 0 to 10v and I already set the limits physically on the encoder, but I need to measure that component distance outside of the range from a reference point in millimeters. First I need to convert the position in millimeters (I saw scl and apr functions but I don't get how I proper use it) so in an HMI it shows the proper distance that this component is placed at a reference point, set limits so this component so it only rides forward and backwards on that range and let the user input a value in millimeters so it travels to the desired position.
I tried to convert the signal in milimeters with a couple of mathematical operations but I think scl or apr is more suited for that operation, I have the conversion working but I think it can be optimized.
Another thing is that I need to store the current value because it oscillates and I'm using a compare function <> to check if the value has been changed to call the move function, probably here's another good way of doing it with switches.. I dunno.
The last thing is I need to reposition the component because when it reaches the value it travels a lil bit further so I need to make it go inside an approximated value (-1mm or +1mm).

Is anyone here that have done something similar and could help me out? It's my first post here and I'm already asking for too much... I did a research over the internet and here but could not find anything similar for my problem...

  Reply With Quote
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
Rslogix5000 PID CV Low Limit adjusting p_logix LIVE PLC Questions And Answers 17 February 27th, 2017 12:57 PM
Encoder Based Part Tracking - Bi-idirectional Travel Veteranpete LIVE PLC Questions And Answers 7 November 8th, 2015 02:48 PM
MICROMASTER 440 + profibus + encoder + limit switches AlecTek LIVE PLC Questions And Answers 0 January 13th, 2012 03:10 PM
Incremental Encoder Application Don_Dubé LIVE PLC Questions And Answers 16 March 23rd, 2005 08:22 AM
does the gear box affecting the positioning value???? common LIVE PLC Questions And Answers 3 July 6th, 2002 05:11 PM

All times are GMT -4. The time now is 11:45 AM.