5000 Data Types

DBLD99

Member
Join Date
Oct 2003
Location
USA
Posts
230
what is the purpose of using this type of addressing. I seen this is a recent customers program.

Real[1,8]

I know it makes sense if it was Real[8,8] but this first one just does not make sense to me and every data type is setup like that, as 1,8

Thanks
 
Well, that's an array - 1 "column" by 8 "rows". View it like this:

Real[1,1]
Real[1,2]
Real[1,3]
...
Real[1,8]

I'm not sure why they would have done it that way. Unless they were planning on possibly more than one identical machine/line/system. When I have multiple units, I tend to use arrays like that, with the "column" representing the unit and the "row" representing the parameter.

e.g., Real[2,4] would be parameter 4 for machine 2
Real[3,2] would be parameter 2 for machine 3

Real[1,1] Real[2,1] ... Real[x,1]
Real[1,2] Real[2,2] ... Real[x,2]
...
Real[1,y] Real[2,y] ... Real[x,y]



When used like you've described, it could have just as well been Real[8]
 
Last edited:
Yeah I know, This is a standalong unit no need for expansion so why take the time to add another dimension when all he had to do was do like you said. [8]

Anyway - just ranting because it is friday and anyone can be a programmer!
 

Similar Topics

Hello, It my first post here! I have been programming on Schneider PLC for the last few years and am now doing some work with RSLogix. RSLogix...
Replies
3
Views
1,582
Hello, I was wondering if this was ever covered in previous threads: I am new to AOI's (Add On Instructions) and to Data types. I usually just...
Replies
4
Views
4,587
Is there a command that you can use against a UDT that will fill it with zeros? Of course the UDT has dint, bool and strings... EX: FLL...
Replies
14
Views
11,266
Hi, I would like to know how to delete user defined data types...No tag are related to those data types... thanks Martin.
Replies
6
Views
19,453
Hi! I would like to export to a file (to send to my customer) the user defined data types I have made under RSLogix 5000... It's easy to...
Replies
13
Views
9,843
Back
Top Bottom