User Defined Tag in RS5000 program

tcat_chucky

Member
Join Date
Mar 2007
Location
Eau Claire Wisconsin
Posts
15
Good Afternoon all,

What started out as a "small" change has ballooned into something more than I bargained for.

The program I am working on has a "User defined tag" that stores variables for my machine including accels, velocities, distance etc. for 14 different products.

For each code there are 13 different REAL/Float arrays. One of the REAL arrays I wish to increase from Dim 0 of four to a Dim 0 of six. This array currently stores four different distances for my axis to travel to. I wish to add two more distances for another condition that has presented itself.

When I made the change and executed some code that would use the new elements of the array I came upon the attached fault on the processor.

The software didn't bark at me when it compiled. Is there a check sum that I am stepping on here? Any ideas? I'm obviously new to the "user diffined tag" side of life.

thanks in advance
 
Last edited:
I will work to get the error code attached. Didn't seem to go through for me.

Still can't attach my jpeg. but the text is as follows:

Code 20 Array subscript too large or CONTROL data type POS or LEN invalid.

????
 
Last edited:
Sounds like a programming issue. For example, you could have a tag with 4 elements, but are trying to access an element higher than the fourth element. Remember the indexing starts at 0, so a tag that's listed as a DINT[4] will be used as YourTag[0], YourTag[1], YourTag[2], and YourTag[3]. If you try to access YourTag[4] or YourTag[any number greater than 3] you will get the error and processor fault.

Post your code if possible.

Regards,

Justin

edit: added more information
 
Last edited:

Similar Topics

Hello all, I am new here and this is my first post so I apologize if I am doing anything wrong. I am working on converting a Wonderware app to a...
Replies
15
Views
8,015
I'm working on an RSLogix 5000 v15 applications and when opening one of the User-Defined data types I receive the error: "This data type was...
Replies
3
Views
9,449
Hi, I created my own tag (6 reals and 2 dints). I tried to send it via msg to another PLC, and error 16#0013 "configuration data size too...
Replies
6
Views
18,469
1) I am poor 2) I have written some useful plc code in the past 3) Anyone here ever try and sell a user defined FB?
Replies
29
Views
6,668
I am working on a project on an s7-1200 with an hmi, but I am looking to remove the HMI and substitute its functionality using the User-Defined...
Replies
2
Views
1,919
Back
Top Bottom