Rslogix5000 Array Question

Michael_Baker

Member
Join Date
Dec 2013
Location
Herentals
Posts
2
Hi all,

I'm trying to access a variable address in a shift register. I have used BSL with an array DINT[20].

Now I wan't to access shiftregister[20].variable --> How do I access this? (So operator can change the place of blowout on HMI)

Thank you for your reply.

//First time user of allen bradley
 
Check the help file and look up indirect addressing. Basically you have it already. If you made varible a DINT Tag the operator could write to that tag and enter 0-31.
 
Michael, you will need to put your variable name that addresses the bit number in square brackets, e.g.

shiftregister[20].[variable]

You must also either....

1. provide limit checking so that variable cannot be less than 0 or greater than 31

or,

2. write a program fault routine to trap the specific error, and deal with it in your code.
 
Hi all,

I'm trying to access a variable address in a shift register. I have used BSL with an array DINT[20].

Now I wan't to access shiftregister[20].variable --> How do I access this? (So operator can change the place of blowout on HMI)

Thank you for your reply.

//First time user of allen bradley

If your DINT[20] array is called shiftregister, then shiftregister[20] does not exist.

0 to 19 is 20 elements.
 

Similar Topics

Hi all, I am using RSLogix5000 version 7 to modify a program on a 1756-L1 controller. We have installed 5 more drives on a conveyor system. The...
Replies
2
Views
2,687
This should be a simple one. I have a Dint array in my program that is setup for 30 elements. If I want to increase the array size, will the...
Replies
3
Views
3,511
Hi All, I have some job settings in an array of real[6], I would like to save into another array in order to be able to load those settings back...
Replies
12
Views
4,466
Hello All, I was wondering if there is a way to reset an array of timers by using a FLL or similar instruction. Timer[100] Thanks:beer:
Replies
17
Views
5,134
I have a tag called 'MBTCP.DATA.ReadData' INT[600] of which I would like to pull 16 sequential values into an add-on instruction. I will need...
Replies
6
Views
2,533
Back
Top Bottom