![]() |
||
|
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 |
|
Member
![]() Join Date: Sep 2006
Location: Sydney
Posts: 9
|
MC / MCR in detail pls!!
The MC / MCR is listed by mitsubishi to use for high efficient ladder switching. So, I would expect it to skip devices that are not active due to a resetted MC. But then, I read the following:
"The devices between the MC and MCR instruction are even processed after the input condition of the MC instruction is reset. Therefore, the program scan time in this case is not decreased." That puzzles me, why is this so "high efficient" if the instructions are still processed even when the MC is reset? Or do they mean that the instruction are processed ONLY for the first scan after the MC is resetted?? Does anyone know that?? Michel |
|
|
|
#2 | |
|
Member
|
Quote:
This disables all outputs within this section. (there is more to the MC instruction but that is what it is foe) |
|
|
|
|
#3 | |
|
Member
![]() Join Date: Sep 2006
Location: Sydney
Posts: 9
|
Quote:
|
|
|
|
|
#4 |
|
Lifetime Supporting Member
|
That is incredibly stupid terminology.
They probably claim that an MC/MCR pair is [Choke] "Highly Efficient" because it doesn't actually scan the logic in between the MC and MCR instructions if the MC is false; rather, it just sets the outputs off. Don't get hung up on words... Or, for that matter, the ethereal "Efficiency". Write a program that is safe, and performs the desired task. Only if you see that you have a scantime issue later, should you try to optimize it (and probably not even then). |
|
|
|
#5 | |
|
Member
![]() Join Date: Sep 2006
Location: Sydney
Posts: 9
|
Quote:
|
|
|
|
|
#6 |
|
Lifetime Supporting Member + Moderator
|
I can't speak from experience with Mitsubishi, but on the PLCs with which I am familiar, using the MCR instruction minimizes the difference in scan between when the function is active and when it is not. In other words, if the scan time is X milliseconds when the logic controlling the MCR is true, it will still be X milliseconds when the logic controlling the MCR is false.
What is your "scan time issue"? If your goal is minimizing scan time, then you should be using JUMP instructions or subroutine CALLs with logic controlling when to JUMP or CALL. If the scan time would be too long if all of the JUMPs were false and all of the CALLs were true in a single scan, then your challenge is to design the logic so that doesn't happen, yet still execute the subroutines (or the Jumped rungs) often enough to keep the process under control. Also, remember that in the absence of an instruction turning it on or off, an output will retain the last state it was told to be in. That means if you don't call a subroutine or if you continually execute the JUMP instruction, outputs turned on or off by the rungs in the subroutine or in the JUMPed zone will not change their state. You should also read the documentation for your PLC to determine what happens to timers within a JUMP zone or subroutine. Last edited by Steve Bailey; September 25th, 2006 at 07:22 PM. |
|
|
|
#7 |
|
Member
|
I agree, if you have problme with scan time, you can try skipping
parts of the program or call parts of program conditionally. personally I would also rather use CALL Pn and FEND but this has to be verified for particular CPU. I'm not sure if they all support it (anything reasonably recent should). what PLC and programming software you have there? Last edited by panic mode; September 25th, 2006 at 08:31 PM. |
|
|
|
#8 | |
|
Member
![]() Join Date: Sep 2006
Location: Sydney
Posts: 9
|
Quote:
|
|
|
|
|
#9 | |
|
Member
|
Quote:
http://forums.mrplc.com/index.php?dlcategory=20 or if not, just sign up. They have both the F1 hardware and programming manuals listed. Bob |
|
|
|
|
#10 | |
|
Member
![]() Join Date: Sep 2006
Location: Sydney
Posts: 9
|
Quote:
|
|
|
![]() |
| 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 |
| AB MicroLogix 1500 PLS function | Shawn Cassidy | LIVE PLC Questions And Answers | 2 | October 29th, 2009 02:44 PM |
| Allen-Bradley MCR instruction | Chris335577 | LIVE PLC Questions And Answers | 13 | May 4th, 2006 05:08 PM |
| Question? | robmo62 | LIVE PLC Questions And Answers | 15 | July 15th, 2005 01:28 AM |
| Acheiving output with PLS | bigjoe | LIVE PLC Questions And Answers | 10 | July 12th, 2005 09:49 AM |
| MCS / MCR Instrutions | dandrade | LIVE PLC Questions And Answers | 1 | February 9th, 2004 09:13 PM |