RSLogix 5000 Problem: Mytagno Not Updating

  • Thread starter Thread starter Jobrag
  • Start date Start date
Click For Summary
SUMMARY

The forum discussion addresses a problem in RSLogix 5000 where the variable Mytagno does not update as expected when assigned the value of I/Omoduletagno. The issue arises from the use of the character "/" in the variable name I/Omoduletagno, which is not permitted in RSLogix 5000 variable naming conventions. The compiler interprets the name incorrectly, leading to the failure of the assignment. Suggested solutions include renaming the variable to IOModuleTagNo or I_O_ModuleTagNo to comply with naming rules.

PREREQUISITES
  • Understanding of RSLogix 5000 programming environment
  • Familiarity with variable naming conventions in programming
  • Basic knowledge of PLC (Programmable Logic Controller) operations
  • Experience with debugging code in RSLogix 5000
NEXT STEPS
  • Research RSLogix 5000 variable naming conventions
  • Learn how to debug variable assignments in RSLogix 5000
  • Explore best practices for naming variables in PLC programming
  • Investigate common pitfalls in RSLogix 5000 programming
USEFUL FOR

PLC programmers, automation engineers, and anyone troubleshooting variable assignment issues in RSLogix 5000.

Jobrag
Messages
551
Reaction score
28
Any RSLogix 5000 users out there I have a problem.
I have a line of code Mytagno := I/Omoduletagno
If I dummy in the input I/Omoduletagno changes but Mytagno doesn't, I don't see how this cannot work.
Any ideas please.
 
Computer science news on Phys.org
It seems to me that you are trying to use a variable whose name is I/Omoduletagno. I don't know anything about RSLogix 5000, but most programming languages allow only a limited set of characters that can be used to create variable names. Characters that are typically not allowed include +, -, *, /, and others, since these are operators.

The RSLogix compiler/interpreter probably thinks you want to divide I by Omoduletagno, and neither of these names is declared or initialized.

Names that would probably be OK are IOModuleTagNo and I_O_ModuleTagNo.
 

Similar threads

  • · Replies 51 ·
2
Replies
51
Views
7K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
27
Views
18K
Replies
6
Views
9K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
10
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K