S:24 Displays Zero Always

PlastekGroup

Member
Join Date
Sep 2016
Location
North Carolina
Posts
28
Just curious about something with the index register bit S:24. I noticed that in our programs we use it multiple times however no matter where I look at it, it's value appears as zero to me.

I'm assuming it's still working however, not sure what's going on though. If anyone understands this better it would be greatly appreciated if this could be explained to me. Thanks!

XgwFk6A.png
 
Correct it will change anytime the PLC does any kind of COP or other type instruction.

You can use it with a MOV for example. If you MOV a 2 into S:24 then the very next rung you do a MOV of #N7:0 into N10:0 it will move the value of N7:2 into N10:0. Basically indexing starting at N7:0 + 2 where the # tells the PLC to offset the address the number in S:24.

It's really another way to do indirect addressing but they call it indexed addressing. The same MOV using N7:[N20:0] to N10:0 if N20:0 has the value of 2 would do the same thing.
 
Last edited:

Similar Topics

I've never paid attention to this, is this normal?
Replies
13
Views
459
Hello everyone, Other than the "Find" binoculars, and typing each Display name out one at a time, is there an easier way to see which of the...
Replies
2
Views
400
Hello everyone, this is my first post. FactoryTalk View SE v.13 I have a macro defined in my project that I would like to call up when someone...
Replies
0
Views
302
Hello, I have a SINT array I am receiving and one of the positions of this array contains the direction of the product. Inside the ladder...
Replies
4
Views
1,121
Hi, We have been using the ViewMarq displays with great success, so am thinking of including them in some areas where the temps are -3 & -18...
Replies
18
Views
6,522
Back
Top Bottom