This maybe a stupid question?

BDL273

Member
Join Date
Jun 2010
Location
Erie, PA
Posts
36
Well this maybe a stupid question but I have a dl 350 pc from automation direct and having a brain **** on a program. We are building a machine that moves in and out and we are only using 1 limit switch for both movements. How would I write a simple program to make that work so u can move forward to the limit then move in reverse till u tripped the limit agian?
 
Use a flip flop or toggle. Search the forum for flip flop, there are dozens of ways to make them.

Also, One of our forum members, Doug_P has an animated avatar that shows a simple flip flop that will work with most PLCs.

image.php


This flip flop can be programmed on pretty much all PLCs. It should work just fine on the DL 350. In Doug's animated avatar your limit switch would be P. T is your direction bit.
 
Last edited:
Can it move beyond the limit switch? Or is the physical setup such that if it isn't on the limit switch it is somewhere between the limits?

Does the limit switch directly kill power to the movement also? In other words, if you are on the limit switch can you move off of it?

What type of limit switch is it?
 
it can move beyond the limits but it has another saftey switch to stop it from running off the tracks if its not on the limit it is between the limit its just a roller limit switch with no or nc contact it sends an input to the plc and it opens the contactor if the motor
 
I pictured something like this when suggesting a flip flop. Each time the leading or trailing dog hits the limit switch roller the direction bit will change state. Use the direction bit to control the actuator direction.


MOVED COMPONENT
Actuator +--------------------+
+--------------+ | |
| |--------| |
+--------------+ | |
| |
+-+----------------+-+
| | | |
+-+ 0 +-+
DOG | DOG
+-+
| |
+-+ LIMIT SWITCH


 
The problem is, on startup you may not know which was you moved to get to the limit switch. Assuming you jog it the wrong way you will hit the safety which stops all movement. Can you not spare another input? If the limit is a lever arm style limit switch can you get one with seperate CW and CCW actuating contacts?
 
The limit switch should be a two circuit toggle type. It acts as the flip-flop. Has 2 rollers 90 degrees apart. Third picture here. Standard for reversing direction.
 
thanks to all who replied i got it working the way it should by thinking it though and adding a few more lines of code
 

Similar Topics

1. I have a 1747-CP3 cable to connect me with the AB SLC, no problems... But what I want to know is what cable do I need to connect to the...
Replies
1
Views
2,054
Hey guys I was just making a basic program for some game thing I was tryin out. I havent writ a plc program in probally a year so Im a little...
Replies
8
Views
6,909
Hello folks! Never been here before but I have a question that's been bugging me for a while. I recently got a job at a chemical plant that's...
Replies
8
Views
332
Hello! The equipment I'm working on uses a lot of indexed tags I guess you'd call them. I thought it was indirect addresses maybe but all the...
Replies
9
Views
1,041
Hello all. I have 5 PF525's in my RSL5k project. One such drive I am able to ping and it responds. The Enet on the front is steady green and the...
Replies
5
Views
2,833
Back
Top Bottom