N7:0/10 bit

RobertB

Member
Join Date
Oct 2017
Location
WI
Posts
78
Hi, All...

I want to use the bits in an N7: register to set outputs.
Example... N7:0/10 equals 1, turn on O:0/1.
I am with RS500 and it isn't as easy as it sounds.
Every time I put N7:0/10 in an instruction, an error message pops up and says "Address must be specified to the word level!"
I really don't want to do LIM comparisons to 'extrapolate' what the N7:0/10 value must be.
 
"Address must be specified to the word level!" means the instruction expects a word but N7:0/10 is a bit, not a word
 
Je ce connais, mon ami. (French- I know this, my friend)
But it doesn't solve the problem though.
 
Provided your using a 16 bit output card, I think you can use a MOV instruction and write N7.0 to O:1.0 (or wherever your output card is)
When a bit is toggled in the N register, it would also toggle in the corresponding output register.
 
Dmargineau had it! That works! I did not know you could use N7:x/bit in a program like that. If you set it to N7:0/0 and feed N7:0 from a counter. Makes a great "Even/Odd" toggle or identifier.

Thank you, Dmargineau!
 
If you try to put N7:0/ 10 (or any bit from the word in an INSTRUCTION.... you get the error. Dmargineau threw me until I figured out he meant -----] N7:0/10 [------. Not -----l N7:0/10 l-----
 

Similar Topics

A couple days ago I accidentally toggled an alwasyoff bit. The issue is it was set up as a single OTU on a rung, nothing else, and used as XICs...
Replies
3
Views
194
Hi I have an old panel builder 32 that I’m replacing for a factory talk me hmi . In the plc for the old panel builder there is a coms bit for the...
Replies
0
Views
61
Hello, Haven't been on in a while. I need to generate a bit level pdf of the I/O for RSLogix 500. I can generate a report but it just shows the...
Replies
1
Views
115
I tried researching but I still don't quite get it. As far as I understood, it's used after a function is called in STL and then if the function...
Replies
1
Views
127
Hi. I'm struggling over some basic stuff here. 41001 I is a 16 bits integer that I'm able to read with InTouch. What I need to do is to read...
Replies
1
Views
84
Back
Top Bottom