Posted 28 Aug 2014 (edited) when my line stops I want to know what part of the line chain was in the cleaner bath when stopped .What I have so far is when the line stops a counter will start counting the links in the chain via a proximity sensor and when a preset amount passes ,the chain that was in the cleaner will be at the inpection area and a light will go on . I have got code to do this but it only catches one instance ,if it happens say two minutes later it wont catch that one. Is there a way to catch all instances when the line stops. The processor is slc 5/04 .This is my first program .Im new to plc LINE3STOPINSPECTIONLIGHT_BAK034.RSS Edited 28 Aug 2014 by bobbykey Share this post Link to post Share on other sites
Posted 28 Aug 2014 Use an odrinary OTE for the light. Eliminate rung 4. Share this post Link to post Share on other sites
Posted 28 Aug 2014 Using just the OTE worked great .Dont no why I even thought I needed rung 4 now if I can figure out how to catch all instances of the stops Share this post Link to post Share on other sites
Posted 28 Aug 2014 (edited) Does the stop signal go away before the counter reaches 16? And you shouldn't delete your original program post, others won't know what we are discussing. Edited 28 Aug 2014 by b_carlton Share this post Link to post Share on other sites
Posted 28 Aug 2014 (edited) I have updated it back to the original program Edited 28 Aug 2014 by bobbykey Share this post Link to post Share on other sites
Posted 28 Aug 2014 (edited) With the change we talked about then, 'Stop Switch' is hit, the counter counts links until 10, the light turns on, it continues to count links until 16, the counting is cleared (light turns off) and the system waits for the next actuation of the 'Stop Switch'. At least that's what should happen. What is actually happening? Specifically as far as actuation of the 'Stop Switch', counting of links, light turning on. Does something ever stop the links? What is the sequence? Edited 28 Aug 2014 by b_carlton Share this post Link to post Share on other sites
Posted 28 Aug 2014 The line is stopped by Person if a problem is noticed and the light tells me that the section of chain moving underneath the light was in the cleaner bath area when the stop switch was pushed Share this post Link to post Share on other sites
Posted 28 Aug 2014 Is it still not catching all instances? I assume the line is started again (sometime after the stop) then, sometime later, an operator presses 'Stop' again and you don't get the expected response. If so, what actually happens in the program when the operator presses the button again? Share this post Link to post Share on other sites
Posted 28 Aug 2014 if stop is hit a second time before the counter is done the program doesn't count the second stop . Only after the first count is done can another stop can be tracked. Share this post Link to post Share on other sites
Posted 28 Aug 2014 (edited) OK, now you need something like a shift register. Fortunately since you are only talking about 16 links it shouldn't be too bad. When I have some time this evening or tomorrow I'll help. Actually check out the attached INSPECTIONLIGHT.zip Edited 28 Aug 2014 by b_carlton Share this post Link to post Share on other sites
Posted 29 Aug 2014 thanks , im going to study the program to make sure I know exactely how it works Share this post Link to post Share on other sites