![]() ![]() ![]() ![]() ![]() ![]() |
||
![]() |
||
![]() ![]() ![]() ![]() This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
![]() |
![]() |
#1 |
Member
![]() ![]() Join Date: Feb 2006
Location: Condon, or
Posts: 29
|
Integer files
I am studying a Rss file from one of our machine centers that has a Micrologix 1000 processor. In my practice programming sessions I have been using Binary Bits (B file) to control ladder functions. The person who wrote this program appears to have used the N file for ladder programs. Some of the XIO and XIC components have addresses in the N file. From what I can tell there are no whole numbers used for any of the decesions on any of the rungs.
Is this a standard practice in programming and if so is it better than using the B bit files? Or why use the N as opposed to the B files? Just when I think I have a clue someone throws me a bone. |
![]() |
![]() |
#2 |
Lifetime Supporting Member
|
a bit is a bit is a bit ... the only difference is that the bits in the binary files may be numbered sequentially ... example: B3/412; B3/413; B3/414; etc. ... with the integer files you have to specify the :WORD and then the /BIT to get the addressing job done ... but as long as the addressing is done correctly, then either type of bit can be used for something like a "seal-in" rung or an OSR (One-Shot Rising) status bit, etc. ...
going further ... there is one BIG difference between types of bits ... an Input bit (one whose address starts with I: ) is sort of special ... that's because its status gets updated at the first part of each processor scan cycle ... Step I ... do I have current? ... yes or no? ... what's in the box? ... a 1 or a 0 ...
__________________
Last edited by Ron Beaufort; March 16th, 2007 at 02:01 PM. |
![]() |
![]() |
#3 |
Member
![]() ![]() Join Date: Feb 2006
Location: Condon, or
Posts: 29
|
Bits and bones
Thanks again Ron. Your skills are outstanding in explaining this voodo. I have discovered that a N bit puts out the same amount of smoke as the B bit and have a better understanding each time I work on this.
|
![]() |
![]() |
#4 |
Member
![]() ![]() Join Date: Oct 2004
Location: Montreal
Posts: 729
|
There is actually a difference in ladder monitoring radix for B (monitored in binary radix) and N (monitored in decimal radix) words.
Still no difference for bits in this aspect. |
![]() |
![]() |
#5 | |
Member
![]() ![]() Join Date: Mar 2006
Location: Kansas
Posts: 1,694
|
Quote:
That's not a problem -- you can set it to monitor B's as decimal and N's as binary if you want to... |
|
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
OT..... Securing Laptop Computer Files | bikerdude | LIVE PLC Questions And Answers | 8 | July 9th, 2006 09:08 PM |
Just a question - I/O Mapping to Integer files | sparky64 | LIVE PLC Questions And Answers | 3 | May 17th, 2006 11:13 AM |
step 5 for DOS program files Structure | netvisor | LIVE PLC Questions And Answers | 5 | December 30th, 2003 09:55 PM |
binary conversion, tying arrays to bits with text files (VB source code included) | Altair | LIVE PLC Questions And Answers | 3 | May 6th, 2003 02:50 PM |
String Files VS Integer Files | Steve Meisel | LIVE PLC Questions And Answers | 5 | September 16th, 2002 08:09 PM |