![]() |
||
|
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
| ||
New Here? Please read this important info!!!
|
|
#1 |
|
Supporting Member
![]() Join Date: Apr 2002
Posts: 135
|
I’m taking an evening class at our local community college. The course is Industrial Electronic Control Systems. My instructor kind of veered away from our topic that evening, which was Process Control Methods, and got on to PLC’s. He worked out a PLC logic program on the blackboard, which he was using one momentary push button to activate a discrete output and using the same button would de-activate the same output. He was trying to manipulate the scan sequence, which is from top to bottom, left to right. He worked out the problem on the board and at that time it did seem to make sense, but I was not 100% sure.
I have a Mitsubishi FX2N PLC at home to practice on in my free time. So I went home to try his logic on my system. This did not work and before I confront my instructor, which I have not received my grade yet, I want to be sure. Please review the logic and please tell me what I am missing… --[PB1]--[M1/]----------------------------------(M0) --[PB1]-----------------------------------------(M1) --[M0 ]--[M1]-----------------------------------(M3) --[M0]--|--[M3/]--------------------------------(Y0) --[Y0]--| Thanks |
|
|
|
#2 |
|
Lifetime Supporting Member
|
What it boils down too is that M0 cant energize Y0 because M1 is on after MO which basically turns off M0 before rung that energizes Y0
|
|
|
|
#3 |
|
Lifetime Supporting Member + Moderator
|
In the third rung, the M1 contact should be a Y0.
|
|
|
|
#4 |
|
Member
|
I think you will find that this would work for using the same switch
to turn an output on then off --[PB1]--[M2/]----------------------------------(M1) --[PB1/]-----------------------------------------(M2) --[M1 ]--[M3/]-|---------------------------------(M3) | --[M3 ]--[M1/]-| --[M3]-------------------------------------------(Y0) |
|
|
|
#5 |
|
Lifetime Supporting Member
|
What holds Y0 latched? Am I missing something?
|
|
|
|
#6 |
|
Lifetime Supporting Member + Moderator
|
There are a bunch of ways to do this. How about this one?...
(enlarged for your viewing pleasure) ![]()
Output Y0 will change state each time PB1 is pressed (Copied from a working program, so it's valid) -Ericbig |
|
|
|
#7 |
|
Member
![]() Join Date: May 2002
Location: Brookville, Indiana
Posts: 2
|
I do this by using a counter. The momentary input increases the counter by 1. Then just use the bit in the counter that is true when (counter val=1) for the output status. The counter resets its self to 0 after the second press of the button (counter val = 2). You do not need to use any latches as the output will consantly relect the value in the counter. This only requires 3 lines of ladder logic.
|
|
|
|
#8 |
|
Member
![]() Join Date: May 2002
Posts: 4
|
Hi
A point of interest for Mitsi FX programmers is the ALT instruction. This is a predefined way of using a momentary pushbutton to toggle coil states. Saves all the other grief. Chris |
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Topics
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problems with Siemens CP340 RS232C communication | Borte | LIVE PLC Questions And Answers | 10 | February 17th, 2010 04:16 AM |
| need help to test a et200s | mansoreh | LIVE PLC Questions And Answers | 3 | February 25th, 2005 04:06 AM |
| Information about TYPE TEST MDB? | Platootod | LIVE PLC Questions And Answers | 3 | December 2nd, 2004 09:23 AM |
| PLC Back-up and Restore Test | Prasannna | LIVE PLC Questions And Answers | 2 | May 28th, 2003 06:09 PM |
| Test equipment | ranjana | LIVE PLC Questions And Answers | 1 | November 10th, 2002 05:30 AM |