N7 integers

Mmancillas

Lifetime Supporting Member
Join Date
Feb 2010
Location
Long Beach
Posts
20
Hello fellows,

I have been trying to understand/learn how to use file N7 (integers)without much luck. Would anybody please post a brief explanation about this instruction and how to use it.. An example in a simple program will also be helpful.

Best Regards,
Manny
 
N7 is just a data file that contains Integers. You can use them in numerous ways. A common way to use them is to compare data (like counts) in your process.

You could use the EQU, NEQ, LES, LEQ, GRT, GEQ. You can also ADD, SUB, MUL, DIV.

ADD
Source A N7:0
Source B N7:1
Destination N7:3

This adds N7:0 and N7:1 and places the result in N7:3

You could also use the N7 file as you would bits (B3 file), by defining the address at the bit level, N7:0/0, N7:0/1, etc.
 

Similar Topics

Hi, how do I convert 2x Integer registers to a Real? The two integers are from Modbus registers that contain a floating point value, I need to...
Replies
2
Views
93
Is there a way in CX-Programmer to ad UINTs together with an instruction without a compiler warning. Ladder Rung: Warning: Instructions...
Replies
2
Views
1,250
So I'm looking at replacing some obsolete Prosoft boxes that currently convert DH+ to Ethernet. I have a logix chassis that already has a...
Replies
10
Views
2,904
I'm looking at program for a air compressor (SLC 04). I'm trying to figure out why I can't change a setpoint that's located in a N: address. The...
Replies
10
Views
4,031
I have to take a 16 bit N register and split some of the bits into separate integers. example: Bits 0-1 = integer with a value from 0-3 Bit 2 is...
Replies
22
Views
5,862
Back
Top Bottom