RSLogix 5000 array tags (I/O points)

Vuli

Member
Join Date
Mar 2006
Location
Toronto
Posts
13
Hi

I am using ControlLogix L32E and
RSLogix 5000 V13 (Structured Text).
I was wandering if its possible to assign IO points to tag array.

example:

Tag Name: IOArray
Data Type: BOOL[16]

Output card: 1769-IQ16/A (16 outputs) in slot 1


Is it possible to assign an IO point to each element of IOArray.

End result would be something like this:

IOArray[0] is alias for Local:1:O.Data.0
IOArray[1] is alias for Local:1:O.Data.1
IOArray[2] is alias for Local:1:O.Data.2

makes sense ... (?)

If this is not possible what do you think would be the best
way to loop through IO points (I have about 200 :( ).

Thanx

Vuli
 
Yes...
1) Create a user defined type, containing an array of bools. (Ex. UDT: BitArray, with one entry 'Bits' of type 'BOOL[32]')
2) Create a tag of that type (Ex: TestBitArray of type BitArray)
3) Use the COP instruction to copy your base input tag (ex: Local:5:I.Data) to your UDT Tag (Ex: TestBitArray), with Length set to the number of bits to copy (8/16/32/12)
 

Similar Topics

Hey all, I am trying to figure out how to import some alarm messages without having to type them all in by hand. They are in the format of an...
Replies
4
Views
1,104
Hello i have been trying to figure out a good way to take hex and convert it to an array of SINT[]. Here is what my failed attempt looks like.
Replies
5
Views
1,227
I have a subroutine that gets called to copy a UDT In an array to a tag. This subroutine will be called around once per minute and has been...
Replies
4
Views
2,106
Hello! I have an application where I can only have 3 pumps running out of 6. I load the pumpRunning bits into an array. What I need to do is...
Replies
6
Views
3,098
Hello Currently have a project in which I have to find the highest value in a dint array. Once the highest value is found I will have to move...
Replies
20
Views
11,314
Back
Top Bottom