![]() ![]() ![]() ![]() ![]() ![]() |
||
![]() |
||
![]() ![]() ![]() ![]() This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
![]() |
![]() |
#1 |
Member
|
AB SLC "Always on" status bit
Is there a status bit on SLCs which is always on (or off for that matter). If memory serves me, Mitsubishi has such a feature (though its been a long time).
I recognize (and use) that a pair of rungs, early in file 2 thus:
... would (and does) solve the problem, but it feels a bit inelegant. |
![]() |
![]() |
#2 |
Member
|
A SLC will allow a branch without an instruction, which will do what you are talking about.
It also seems inelegant. The SLC is lacking the AFI (always false instruction), but the PLC5 and Controlgix do have it. |
![]() |
![]() |
#3 |
Lifetime Supporting Member
|
I usually have two rungs at the top of a program with comments to not change or remove them:
Throughout the program I use the OPEN as a placeholder and to "dummy" stuff out of the program. The SHORT can also be used as a placeholder or to branch around sections of rungs that you want to eliminate.
__________________
nOrM ====================== nOrM=Norman Dziedzic Jr. I've never been to China but my phone has. |
![]() |
![]() |
#4 |
Member
|
![]()
On extremely large programs (FANUC 9030), I would put an always on at the beginning of the rungs. During testing, startup, etc, I could toggle these to always off, if need be. Some times I left them in, but usually I would convert some to MCR functions and others would disapere with the "final" run program after starting and checking the machine.
I never considered them inelegant, just plain useful. I was surprised to find that few people knew about them. Whenever I used them I always had to tell someone what they were. regards.....casey
__________________
73 de casey nine eye aitch |
![]() |
![]() |
#5 | |
Lifetime Supporting Member + Moderator
|
Just to point out a subtle but important difference between the AFI instruction and inserting a contact that is OFF in the beginning of the rung.
From the help file: Quote:
condition output This will scan the rung, and as the initial condition is "OFF" then it will set the output OFF in any case. OFF condition output To achieve "AFI" functionality in the SLC you have to jump past rungs that you want to deactivate.
__________________
Jesper ![]() NOTICE: JesperMP has passive-aggressive tendencies, can be impolite and may even use sarcasm ! Also: ᛁᚠ ᚢᚬᚢ ᚴᚬᚾ ᚱᛅᚬᛏ ᚦᛁᛋ ᚦᛅᚾ ᚢᚬᚢ ᚼᚬᚠᛅ ᚴᚬᛁᚾᛅᛏ ᛘᚢ ᚱᛅᛋᛒᛅᚴᛏ |
|
![]() |
![]() |
#6 |
Member
|
Always on ------------------------------------------(A )-
Always off ---|B|----|B\|---------------------------(B )- Last edited by bobwithdana; December 17th, 2004 at 02:47 AM. |
![]() |
![]() |
#7 | |
Member
![]() ![]() Join Date: Jun 2002
Location: Auckland
Posts: 1,142
|
Quote:
|
|
![]() |
![]() |
#8 |
Lifetime Supporting Member + Moderator
|
Gerry, you are absolutely right.
Somehow it has crept into my memory that "AFI disables the rung" and I cannot clear this erronous information. So it pops up every now and then. The information in the help file is simply wrong. The name "Always False Instruction" is correct. Thanks for pointing it out.
__________________
Jesper ![]() NOTICE: JesperMP has passive-aggressive tendencies, can be impolite and may even use sarcasm ! Also: ᛁᚠ ᚢᚬᚢ ᚴᚬᚾ ᚱᛅᚬᛏ ᚦᛁᛋ ᚦᛅᚾ ᚢᚬᚢ ᚼᚬᚠᛅ ᚴᚬᛁᚾᛅᛏ ᛘᚢ ᚱᛅᛋᛒᛅᚴᛏ |
![]() |
![]() |
#9 |
Lifetime Supporting Member
|
Why have two bits? I use only one always false bit.
Then I can use either XIC or XIO instructions and get an always false or always true condition. Ken
__________________
Certified Siemens Functional Safety Professional, ID: SFSP17010238 NRA Benefactor |
![]() |
![]() |
#10 |
Member
![]() ![]() Join Date: Apr 2002
Location: West Chester, PA
Posts: 1,368
|
From the archives....
For those interested in "Always Off" bits and the AFI instruction, look at THIS POST BY RON BEAUFORT and the subsequent discussion
__________________
©¿©¬ |
![]() |
![]() |
#11 |
Member
|
I'm with Ken ... set up one bit and use xic and xio as required. 'Course if it's confusing that
not "always off" = "always on", then back away slowly from the code. |
![]() |
![]() |
#12 | |
Member
![]() ![]() Join Date: Apr 2002
Location: Milwaukee, WI
Posts: 1,538
|
Quote:
You may be thinking of a dis-abled subroutine. |
|
![]() |
![]() |
#13 | |
Member
|
Quote:
|
|
![]() |
![]() |
#14 |
Lifetime Supporting Member
|
![]()
I have always used an "always on" bit at the start of every rung. Two reasons
1) if you wish to add a bit to the start of the rung it is easy to move the whole lot right and not have to delete a number of horizontal line segments, draw in vertical lines etc. 2) When commissioning, it is very easy to turn the always on to always off by just putting a slash through it and this then disables the rung. I am referring to Omron here and it is very easy to do point 2. Some software really makes life much more difficult. You can also use an "always off" bit and put a slash through it. Same effect.
__________________
The Old Pfhaart ![]() |
![]() |
![]() |
#15 |
Member
|
personally i prefer to use 16-bit integers as group of 'debug'
bits and clear them all on first scan using FLL. this makes testing much faster because you can simply toggle bit instead if editing rung. also, diferent rungs would have different bit so they are independant (you can always have few rungs use same bit) and they can have individual comments which makes things easier. i use it often to enable new code when testing outcome on running machine. if the new code doesn't perform as expected, toggle bit back and let them run old veresion until new one is working as expected. things that are permanent have their debug bit removed and if you forget to set something back, it's enough to power down machine to disable tested code. next time you are working on something it's easy to see what is not finished by looking for used debug bits. one thing i really don't like about AFI is that it is instruction and not tag. this makes search very tedious (have to change dozen setting in Find which takes blody ages). the guy who invented AFI should be shot, dragged by a racing car and then beaten with an ugly stick... but then again, that's just how i feel about it ![]() Last edited by panic mode; December 19th, 2004 at 01:12 PM. |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
AB SLC 5/05 Ethernet MSG Errors | mrdegold | LIVE PLC Questions And Answers | 7 | January 20th, 2009 01:10 PM |
10 Bit Encoder Decoder/ GE90-30 | Control Freak | LIVE PLC Questions And Answers | 6 | July 12th, 2005 12:28 PM |
AB CTC units..with 2 SLC 5/04 DH+ | Russ | LIVE PLC Questions And Answers | 4 | December 15th, 2004 05:02 PM |
AB: RTO timer - TT bit status vs. TON | GJM | LIVE PLC Questions And Answers | 7 | October 9th, 2004 08:02 AM |
Ab SLC FLOAT to Double Int Conversion | wirehead | LIVE PLC Questions And Answers | 10 | March 29th, 2003 10:56 AM |