Using arrays in rslogix5000

oxlacey

Member
Join Date
Aug 2012
Location
SC
Posts
38
I created a tag called rack_and_contents which is a 13,1 array.

I want to put into this array, a rack # (int) and its corresponding contents (int).

what is the instruction and syntax i would use?
 
Do you want to put the Contents into the array at the rack# position or to you want and array filled with (rack#,contents)?

If you want to store contents AT the rack# position then you can use many many ways to enter elements into the array one such is

MOV(contents,rack_and_contents[rack#])

otherwise you should make a 2d array rack_and_Conents[x,2]
and put rack# in at rack_contents[x,0]
and contents in at rack_and_contents[x,1]

As for what specific instruction. As long as destination field is the element in the array you want the result will get stored there
 

Similar Topics

Somewhat new to Schneider (aka Modicon) PLC's and the Unity Pro XL programming software. I have a TSX P57 6634M PLC. I would like to take an...
Replies
3
Views
3,189
I ran into a slight problem when doing some work. I found the solution to the problem, but, the two lines of code read the same to me. One works...
Replies
3
Views
2,715
0 down vote favorite I am using B&R Automation Studio on a simulation PLC. I am...
Replies
4
Views
1,530
I need help in creating Arrays in RS5000 v17 using udts. I am very new to RS5000 and do not have the savy to pull this off by myself. I need to...
Replies
6
Views
3,836
Hey all! I am developing a general function block that will read quite some data from a PROFIBUS slave. This data is received with a length of...
Replies
14
Views
4,963
Back
Top Bottom