RSLogix 5000 Problem: Mytagno Not Updating

  • Thread starter Thread starter Jobrag
  • Start date Start date
AI Thread Summary
In RSLogix 5000, variable naming conventions are crucial for proper code functionality. The issue arises from the use of special characters in the variable name "I/Omoduletagno," which may be interpreted as a mathematical operation rather than a single variable. This can lead to unexpected behavior, such as the variable "Mytagno" not updating when "I/Omoduletagno" changes. To resolve this, it is recommended to use variable names that avoid special characters, such as "IOModuleTagNo" or "I_O_ModuleTagNo," ensuring compatibility with the compiler and correct code execution.
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.
 
This week, I saw a documentary done by the French called Les sacrifiés de l'IA, which was presented by a Canadian show Enquête. If you understand French I recommend it. Very eye-opening. I found a similar documentary in English called The Human Cost of AI: Data workers in the Global South. There is also an interview with Milagros Miceli (appearing in both documentaries) on Youtube: I also found a powerpoint presentation by the economist Uma Rani (appearing in the French documentary), AI...
Back
Top