Posted by1 year ago
Archived
So I've got a ControlLogix processor running code with indirectly addressed arrays. The simplest example is a tag like TankLevel[Index], where a value is moved to Index just before the JSR to the routine. This makes it easy to have one program for 50 tanks, but troubleshooting can be difficult as it is not possible to 'follow the green' on the ladder logic. So my thoughts are...
This is a short video demonstrates how to change the IP address on a 1756-ENBT EtherNet/IP card in a RSLogix5000 project. Version 17 of RSLogix5000 was used. The process is similar on other.
- Is there a way to filter the Watch Window to see tag values only when Index=1 for example?
- What other tricks are out there?
Many thanks
11 comments
How to declare local variable in structured Text in Allen Bradley studio 5000. I have tried the following which did not work. mnemonic/syntax is not recognized?
global variables do work as, TEST_INPUT and TEST_INPUT_BOOL are globally declared.
user6235593
user6235593user6235593
1 Answer
In Allen-Bradley RSLogix 5000 / Studio 5000, local tags (variables) are not declared inline in structured text routines. Instead, tags are defined in the Tag Browser. 'Controller Tags' holds the controller-scoped (global) tags, and each Program has its own 'Parameters and Local Tags' section where the program-scoped tags are defined. Tags shown in the Local Tags section of a program can be used in any routine in that program.
Once you add your program-scoped tag to the appropriate Tag Browser, you can use the tag in your structured text routine. If you try to use a tag that is not declared as either a program-scoped or controller-scoped tag, you will get a verify error.
Ben MillerBen Miller