SLC500 How to read an N7:0 integer file

tooslow

Supporting Member
Join Date
Jul 2011
Location
Lockport
Posts
11
Ex If I Read from Integer file N7:0
N7:0 is an 8 point input card , input 0 and 2 are on , rest off
When I look at :
N7:0 -7 6 5 4 3 2 1 0 I see decimal numbers
How do I interpet the Data ?
 
N7:0 is an 8 point input card
I think that's the source of your confusion. N7 is an integer file. N7:0 is the first word in the N7 file.
Input modules in the SLC are mapped into Input memory (I), not integer memory (N). The input points from the module in slot number 7 are addressed I:7.1/0 through I:7.1/7
 
Is that an 8-pt digital input or 8-pt analog input? I am going to assume digital.

In the SLC5 N-files are integer files. N7:0 designates the first INTEGER in the N7 file. You want to look at the bits in the integer, specifically bits 0-7. I don't have Logix500 in front of me but I THINK you can select to view N7:0 as its combination of bits. Look for a pulldown selection where you can select stuff like "Decimal" or "Hex" and select the "Binary" or "Bool" selection.

Keith
 
N7:0 is the word and N7:0/0 is the first bit correct?
What is the function of the 'Control Block' ?
 
Last edited:
Taking the 8 input card being in slot 7 of the rack look at the first pic below.


The inputs would be addressed as I:7.0/0 to I:7.0/7


The 7th data file of integers (N7:x) is just to hold numbers for your use in the program. See pic 2 below.


You can address the individual bits of an integer (N7:0/0) but this is mostly used for moving bit values in a group to another PLC or a HMI or other monitoring system. It might be for a quick check to see if the value is at a minimum level. Plus I have seen it used by a centerless grinder OEM that didn't want to confuse their people with binary value training so they gave them a list of values to add and enter when the machine had certain options or features. (IE - Oil Lube = 1, Grease lube = 2, Self cleaning = 4, automatic feed = 8, etc that really just set a bit for that feature)


EDIT: A control block is used internally by the PLC for messaging or sequence operations and not normally anything you would be reading or manipulating without years of experience in those

Capture1.PNG Capture2.PNG
 
Last edited:

Similar Topics

Hello. I am trying to read in ascii data (from a welder) to a slc504 com port. I have looked at the ascii instruction set but I am not familiar...
Replies
3
Views
5,891
Hi all, I need to write program to read/write data between SLC500 and Controllogix via enthernet, For my knoledge, it can use MSG instruction, but...
Replies
4
Views
11,945
I am having trouble to read/write from PLC5 (on DH+) or SLC500 (on DH-485) to Excel spreadsheet. Both networks are connected to the Gateway...
Replies
2
Views
6,953
Anybody has a sample C code which can read SLC500 data using DF1 serial protocol ( not using RSLinx ) ? I couldn't find any sample coding in the...
Replies
1
Views
3,411
I cannot add SLC500 analog input tag (I: 8.3) to EZSeries Touch Panel Editor (V 5.3). I used all the listed tag datatype but it all says "Invalid...
Replies
10
Views
259
Back
Top Bottom