Sign in to follow this  
Followers 0
bryan_1shirt

RSlogix5000 array

3 posts in this topic

I want to start off by saying my programming level in satisfactory at best and I need some help. Should get myself to school for this, but don't have the time. I have the following application that I could use some help with: When the equipment sees an "end of strip" input (bool)), I want to push the following down into an array say 100 elements deep. Coil Number (dint) Heat Number (dint) Coil Footage (real) # of prime pieces (dint) prime length (real) # of scrap pieces (dint) scrap length (real) Bundle Number (dint) All I want to do is populate this array at this time. Thanks for the help.

Share this post


Link to post
Share on other sites
Create a UDT with the listed elements Create an array [100] of that UDT type Create a single tag of that type as you currently working set. At 'end of strip' COP Array[1] Array[0] 99 then COP single_tag Array[99] 1 You are technically pushing the array toward 0 (1->0, 2->1, 3->2 etc) with the added element being placed into Array[99] Edited by b_carlton

Share this post


Link to post
Share on other sites
We got it to register like that. Thanks for your help!!!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0