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.
 
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Sorry if 'Profile Badge' is not the correct term. I have an MS 365 subscription and I've noticed on my Word documents the small circle with my initials in it is sometimes different in colour document to document (it's the circle at the top right of the doc, that, when you hover over it it tells you you're signed in; if you click on it you get a bit more info). Last night I had four docs with a red circle, one with blue. When I closed the blue and opened it again it was red. Today I have 3...
Back
Top