N7 Integer Files Micrologix

Sherlock4me

Member
Join Date
May 2012
Location
Indiana
Posts
122
This will be too simple for you programmers. I am relearning programming skills for Rockwell software. I've got the basic instructions relearned after 10 years away...For now I have a Micrologix 1000, because that's the trainer I have at the moment. I have a few manuals but have yet to understand how N7 integer files are used as the Source B in say an EQU comparison instruction. Are we using a 16 digit binary word to compare with say the ACC bit of a T4 timer, so if the ACC gets to 25 or 60 or whatever, How does that compare in any way to a 16 bit binary word? Or are we not using binary in N7 files? Or are we turning the 16 bit binary word into a base 10 decimal number like 101 binary = 5?
It may be asking a lot for you to come down to my level. Perhaps someone may have suggested reading for me? Thanks so Much!!
 
Last edited:
The N7 file contents, like all other data files, is ultimately a collection of bits. The 'N' files are typically DISPLAYED as an integer. The 'B' files are typically DISPLAYED as individual bits. Though either can be displayed in the format of the other. In the lower right of a data file display note the 'Radix' box. Try changing that to view the data in different ways.
 
The N in the N7 file mean that it's an 16 bit integer file. It can hold integer values from -32768 to 32767. Normally you would of course store a single integer value in it. But you could just address one bit, i.e N7:0/1. You wouldn't normally do this. A Binary file such as B3, is also made up of 16 bit words. But here, they are usually addressed to the bit level such as b3:1/2. But for some purposes, the whole word can be addressed as B3:0 for example.

People use integer file in comparsions when the value may change depending on some other logic. Or the number may be entered via an HMI. Did this explain at least some of your questions?
 
N7 files are just a collection of integers. An integer is just a collection of bits. Whether you want to treat them as binary (base 2) or base 10 or base 16 is entirely a matter of perspective. The plc doesn't distinguish this. Only thing to keep in mind is if the MSB is to be interpreted a a signed bit or not.
 
Hello I need to use a hmi to change the preset value of a counter. I need a high limit of 25 and a lower limit of five. My hmi is already setup with the keypad. How do I use the N7 file with the limit test. I know I need to use the mov function. I'm having trouble addressing the code correctly. Thanks for the help.
 
If the HMI has the ability on entry to display and enforce entry limits it is wise to use that IN ADDITION to the limit check in the ladder program. The presence of the limits would then be more apparent to the operator.
 

Similar Topics

The standard Micrologix 1000 PLC comes with N7:0 as integer data file, how can I add 2 more integer files, let say N9:0 and N10:0? I'm using...
Replies
15
Views
12,430
Hello, I am new to the Allen Bradley connected components workbench software. I am working with an AB panelview component Hmi and would like to...
Replies
0
Views
1,190
Hi, new guy here! I'm going through a program on RSLogix 500 and it uses N files quite a bit. I'm trying to understand how the different words...
Replies
4
Views
2,146
Hey folks, I want to be able to do a mass subtract of integer files... N10 (length of 110) - (minus) N12 (length of 110) = (move to) N13...
Replies
7
Views
2,353
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...
Replies
4
Views
3,549
Back
Top Bottom